; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.21005.1 

include listing.inc

INCLUDELIB LIBCMTD
INCLUDELIB OLDNAMES

_DATA	SEGMENT
$SG87132 DB	'%s:', 0aH, 00H
	ORG $+3
$SG87138 DB	'  %S', 0aH, 00H
	ORG $+2
$SG87139 DB	'  %04x ', 00H
$SG87140 DB	' %02x', 00H
	ORG $+2
$SG87148 DB	'   ', 00H
$SG87149 DB	'  %S', 0aH, 00H
	ORG $+6
$SG87163 DB	'[E] GetLastError: %s: %s', 0aH, 00H
_DATA	ENDS
PUBLIC	RtlSecureZeroMemory
PUBLIC	OutputDebug
PUBLIC	HexDump
PUBLIC	handleLastError
EXTRN	__report_rangecheckfailure:PROC
EXTRN	__imp_OutputDebugStringA:PROC
EXTRN	__imp_GetLastError:PROC
EXTRN	__imp_LocalFree:PROC
EXTRN	__imp_FormatMessageA:PROC
EXTRN	free:PROC
EXTRN	malloc:PROC
EXTRN	_snprintf_s:PROC
EXTRN	_vsnprintf_s:PROC
EXTRN	_RTC_CheckStackVars:PROC
EXTRN	_RTC_InitBase:PROC
EXTRN	_RTC_Shutdown:PROC
EXTRN	__GSHandlerCheck:PROC
EXTRN	__security_check_cookie:PROC
EXTRN	__security_cookie:QWORD
;	COMDAT pdata
pdata	SEGMENT
$pdata$RtlSecureZeroMemory DD imagerel $LN3
	DD	imagerel $LN3+68
	DD	imagerel $unwind$RtlSecureZeroMemory
pdata	ENDS
pdata	SEGMENT
$pdata$OutputDebug DD imagerel $LN3
	DD	imagerel $LN3+192
	DD	imagerel $unwind$OutputDebug
$pdata$HexDump DD imagerel $LN16
	DD	imagerel $LN16+483
	DD	imagerel $unwind$HexDump
$pdata$handleLastError DD imagerel $LN4
	DD	imagerel $LN4+241
	DD	imagerel $unwind$handleLastError
pdata	ENDS
;	COMDAT rtc$TMZ
rtc$TMZ	SEGMENT
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
rtc$TMZ	ENDS
;	COMDAT rtc$IMZ
rtc$IMZ	SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ	ENDS
xdata	SEGMENT
$unwind$OutputDebug DD 023c19H
	DD	07015b219H
	DD	imagerel __GSHandlerCheck
	DD	058H
$unwind$HexDump DD 023d19H
	DD	07010f217H
	DD	imagerel __GSHandlerCheck
	DD	078H
$unwind$handleLastError DD 033619H
	DD	0114010dH
	DD	07006H
	DD	imagerel __GSHandlerCheck
	DD	0890H
xdata	ENDS
CONST	SEGMENT
OutputDebug$rtcName$0 DB 076H
	DB	041H
	DB	072H
	DB	067H
	DB	073H
	DB	00H
	ORG $+10
OutputDebug$rtcVarDesc DD 038H
	DD	08H
	DQ	FLAT:OutputDebug$rtcName$0
	ORG $+48
OutputDebug$rtcFrameData DD 01H
	DD	00H
	DQ	FLAT:OutputDebug$rtcVarDesc
HexDump$rtcName$0 DB 062H
	DB	075H
	DB	066H
	DB	066H
	DB	00H
	ORG $+3
HexDump$rtcFrameData DD 01H
	DD	00H
	DQ	FLAT:HexDump$rtcVarDesc
handleLastError$rtcName$0 DB 065H
	DB	072H
	DB	072H
	DB	00H
	ORG $+4
HexDump$rtcVarDesc DD 038H
	DD	011H
	DQ	FLAT:HexDump$rtcName$0
	ORG $+48
handleLastError$rtcName$1 DB 062H
	DB	075H
	DB	066H
	DB	066H
	DB	065H
	DB	072H
	DB	00H
	ORG $+1
handleLastError$rtcFrameData DD 02H
	DD	00H
	DQ	FLAT:handleLastError$rtcVarDesc
	ORG $+8
handleLastError$rtcVarDesc DD 080H
	DD	0800H
	DQ	FLAT:handleLastError$rtcName$1
	DD	058H
	DD	08H
	DQ	FLAT:handleLastError$rtcName$0
CONST	ENDS
;	COMDAT xdata
xdata	SEGMENT
$unwind$RtlSecureZeroMemory DD 022301H
	DD	0700b120fH
xdata	ENDS
; Function compile flags: /Odtp /RTCsu
_TEXT	SEGMENT
errCode$ = 64
err$ = 88
buffer$ = 128
__$ArrayPad$ = 2192
szMessage$ = 2224
handleLastError PROC
; File c:\users\unknown\stuff\lotus\64bit\actproxy\actproxy\debug.c
; Line 64
$LN4:
	mov	QWORD PTR [rsp+8], rcx
	push	rdi
	sub	rsp, 2208				; 000008a0H
	mov	rdi, rsp
	mov	ecx, 552				; 00000228H
	mov	eax, -858993460				; ccccccccH
	rep stosd
	mov	rcx, QWORD PTR [rsp+2224]
	mov	rax, QWORD PTR __security_cookie
	xor	rax, rsp
	mov	QWORD PTR __$ArrayPad$[rsp], rax
; Line 65
	call	QWORD PTR __imp_GetLastError
	mov	DWORD PTR errCode$[rsp], eax
; Line 73
	mov	QWORD PTR [rsp+48], 0
	mov	DWORD PTR [rsp+40], 0
	lea	rax, QWORD PTR err$[rsp]
	mov	QWORD PTR [rsp+32], rax
	mov	r9d, 1024				; 00000400H
	mov	r8d, DWORD PTR errCode$[rsp]
	xor	edx, edx
	mov	ecx, 4352				; 00001100H
	call	QWORD PTR __imp_FormatMessageA
	test	eax, eax
	jne	SHORT $LN1@handleLast
; Line 74
	jmp	SHORT $LN2@handleLast
$LN1@handleLast:
; Line 77
	mov	rax, QWORD PTR err$[rsp]
	mov	QWORD PTR [rsp+40], rax
	mov	rax, QWORD PTR szMessage$[rsp]
	mov	QWORD PTR [rsp+32], rax
	lea	r9, OFFSET FLAT:$SG87163
	mov	r8, -1
	mov	edx, 2048				; 00000800H
	lea	rcx, QWORD PTR buffer$[rsp]
	call	_snprintf_s
; Line 78
	lea	rcx, QWORD PTR buffer$[rsp]
	call	QWORD PTR __imp_OutputDebugStringA
; Line 79
	mov	rcx, QWORD PTR err$[rsp]
	call	QWORD PTR __imp_LocalFree
$LN2@handleLast:
; Line 80
	mov	rcx, rsp
	lea	rdx, OFFSET FLAT:handleLastError$rtcFrameData
	call	_RTC_CheckStackVars
	mov	rcx, QWORD PTR __$ArrayPad$[rsp]
	xor	rcx, rsp
	call	__security_check_cookie
	add	rsp, 2208				; 000008a0H
	pop	rdi
	ret	0
handleLastError ENDP
_TEXT	ENDS
; Function compile flags: /Odtp /RTCsu
_TEXT	SEGMENT
i$ = 32
buff$ = 56
pc$ = 88
$T4 = 104
tv132 = 112
__$ArrayPad$ = 120
desc$ = 144
addr$ = 152
len$ = 160
HexDump	PROC
; File c:\users\unknown\stuff\lotus\64bit\actproxy\actproxy\debug.c
; Line 20
$LN16:
	mov	DWORD PTR [rsp+24], r8d
	mov	QWORD PTR [rsp+16], rdx
	mov	QWORD PTR [rsp+8], rcx
	push	rdi
	sub	rsp, 128				; 00000080H
	mov	rdi, rsp
	mov	ecx, 32					; 00000020H
	mov	eax, -858993460				; ccccccccH
	rep stosd
	mov	rcx, QWORD PTR [rsp+144]
	mov	rax, QWORD PTR __security_cookie
	xor	rax, rsp
	mov	QWORD PTR __$ArrayPad$[rsp], rax
; Line 23
	mov	rax, QWORD PTR addr$[rsp]
	mov	QWORD PTR pc$[rsp], rax
; Line 26
	cmp	QWORD PTR desc$[rsp], 0
	je	SHORT $LN11@HexDump
; Line 27
	mov	rdx, QWORD PTR desc$[rsp]
	lea	rcx, OFFSET FLAT:$SG87132
	call	OutputDebug
$LN11@HexDump:
; Line 30
	mov	DWORD PTR i$[rsp], 0
	jmp	SHORT $LN10@HexDump
$LN9@HexDump:
	mov	eax, DWORD PTR i$[rsp]
	inc	eax
	mov	DWORD PTR i$[rsp], eax
$LN10@HexDump:
	mov	eax, DWORD PTR len$[rsp]
	cmp	DWORD PTR i$[rsp], eax
	jae	$LN8@HexDump
; Line 33
	xor	edx, edx
	mov	eax, DWORD PTR i$[rsp]
	mov	ecx, 16
	div	ecx
	mov	eax, edx
	test	eax, eax
	jne	SHORT $LN7@HexDump
; Line 35
	cmp	DWORD PTR i$[rsp], 0
	je	SHORT $LN6@HexDump
; Line 36
	lea	rdx, QWORD PTR buff$[rsp]
	lea	rcx, OFFSET FLAT:$SG87138
	call	OutputDebug
$LN6@HexDump:
; Line 39
	mov	edx, DWORD PTR i$[rsp]
	lea	rcx, OFFSET FLAT:$SG87139
	call	OutputDebug
$LN7@HexDump:
; Line 43
	mov	eax, DWORD PTR i$[rsp]
	mov	rcx, QWORD PTR pc$[rsp]
	movzx	eax, BYTE PTR [rcx+rax]
	mov	edx, eax
	lea	rcx, OFFSET FLAT:$SG87140
	call	OutputDebug
; Line 46
	mov	eax, DWORD PTR i$[rsp]
	mov	rcx, QWORD PTR pc$[rsp]
	movzx	eax, BYTE PTR [rcx+rax]
	cmp	eax, 32					; 00000020H
	jl	SHORT $LN4@HexDump
	mov	eax, DWORD PTR i$[rsp]
	mov	rcx, QWORD PTR pc$[rsp]
	movzx	eax, BYTE PTR [rcx+rax]
	cmp	eax, 126				; 0000007eH
	jle	SHORT $LN5@HexDump
$LN4@HexDump:
; Line 47
	xor	edx, edx
	mov	eax, DWORD PTR i$[rsp]
	mov	ecx, 16
	div	ecx
	mov	eax, edx
	mov	eax, eax
	mov	BYTE PTR buff$[rsp+rax], 46		; 0000002eH
; Line 48
	jmp	SHORT $LN3@HexDump
$LN5@HexDump:
; Line 49
	mov	eax, DWORD PTR i$[rsp]
	mov	QWORD PTR tv132[rsp], rax
	xor	edx, edx
	mov	eax, DWORD PTR i$[rsp]
	mov	ecx, 16
	div	ecx
	mov	eax, edx
	mov	eax, eax
	mov	rcx, QWORD PTR pc$[rsp]
	mov	rdx, QWORD PTR tv132[rsp]
	movzx	ecx, BYTE PTR [rcx+rdx]
	mov	BYTE PTR buff$[rsp+rax], cl
$LN3@HexDump:
; Line 50
	xor	edx, edx
	mov	eax, DWORD PTR i$[rsp]
	mov	ecx, 16
	div	ecx
	mov	eax, edx
	inc	eax
	mov	eax, eax
	mov	QWORD PTR $T4[rsp], rax
	cmp	QWORD PTR $T4[rsp], 17
	jae	SHORT $LN14@HexDump
	jmp	SHORT $LN15@HexDump
$LN14@HexDump:
	call	__report_rangecheckfailure
$LN15@HexDump:
	mov	rax, QWORD PTR $T4[rsp]
	mov	BYTE PTR buff$[rsp+rax], 0
; Line 51
	jmp	$LN9@HexDump
$LN8@HexDump:
$LN2@HexDump:
; Line 54
	xor	edx, edx
	mov	eax, DWORD PTR i$[rsp]
	mov	ecx, 16
	div	ecx
	mov	eax, edx
	test	eax, eax
	je	SHORT $LN1@HexDump
; Line 55
	lea	rcx, OFFSET FLAT:$SG87148
	call	OutputDebug
; Line 56
	mov	eax, DWORD PTR i$[rsp]
	inc	eax
	mov	DWORD PTR i$[rsp], eax
; Line 57
	jmp	SHORT $LN2@HexDump
$LN1@HexDump:
; Line 60
	lea	rdx, QWORD PTR buff$[rsp]
	lea	rcx, OFFSET FLAT:$SG87149
	call	OutputDebug
$LN13@HexDump:
; Line 61
	mov	rcx, rsp
	lea	rdx, OFFSET FLAT:HexDump$rtcFrameData
	call	_RTC_CheckStackVars
	mov	rcx, QWORD PTR __$ArrayPad$[rsp]
	xor	rcx, rsp
	call	__security_check_cookie
	add	rsp, 128				; 00000080H
	pop	rdi
	ret	0
HexDump	ENDP
_TEXT	ENDS
; Function compile flags: /Odtp /RTCsu
_TEXT	SEGMENT
vArgs$ = 56
strDebug$ = 72
__$ArrayPad$ = 88
strFormat$ = 112
OutputDebug PROC
; File c:\users\unknown\stuff\lotus\64bit\actproxy\actproxy\debug.c
; Line 7
$LN3:
	mov	QWORD PTR [rsp+8], rcx
	mov	QWORD PTR [rsp+16], rdx
	mov	QWORD PTR [rsp+24], r8
	mov	QWORD PTR [rsp+32], r9
	push	rdi
	sub	rsp, 96					; 00000060H
	mov	rdi, rsp
	mov	ecx, 24
	mov	eax, -858993460				; ccccccccH
	rep stosd
	mov	rcx, QWORD PTR [rsp+112]
	mov	rax, QWORD PTR __security_cookie
	xor	rax, rsp
	mov	QWORD PTR __$ArrayPad$[rsp], rax
; Line 10
	lea	rax, QWORD PTR strFormat$[rsp+8]
	mov	QWORD PTR vArgs$[rsp], rax
; Line 11
	mov	ecx, 8194				; 00002002H
	call	malloc
	mov	QWORD PTR strDebug$[rsp], rax
; Line 12
	mov	edx, 8194				; 00002002H
	mov	rcx, QWORD PTR strDebug$[rsp]
	call	RtlSecureZeroMemory
; Line 13
	mov	rax, QWORD PTR vArgs$[rsp]
	mov	QWORD PTR [rsp+32], rax
	mov	r9, QWORD PTR strFormat$[rsp]
	mov	r8, -1
	mov	edx, 8192				; 00002000H
	mov	rcx, QWORD PTR strDebug$[rsp]
	call	_vsnprintf_s
; Line 14
	mov	rcx, QWORD PTR strDebug$[rsp]
	call	QWORD PTR __imp_OutputDebugStringA
; Line 16
	mov	rcx, QWORD PTR strDebug$[rsp]
	call	free
; Line 17
	mov	rcx, rsp
	lea	rdx, OFFSET FLAT:OutputDebug$rtcFrameData
	call	_RTC_CheckStackVars
	mov	rcx, QWORD PTR __$ArrayPad$[rsp]
	xor	rcx, rsp
	call	__security_check_cookie
	add	rsp, 96					; 00000060H
	pop	rdi
	ret	0
OutputDebug ENDP
_TEXT	ENDS
; Function compile flags: /Odtp /RTCsu
;	COMDAT RtlSecureZeroMemory
_TEXT	SEGMENT
vptr$ = 0
ptr$ = 32
cnt$ = 40
RtlSecureZeroMemory PROC				; COMDAT
; File c:\program files (x86)\windows kits\8.1\include\um\winnt.h
; Line 17779
$LN3:
	mov	QWORD PTR [rsp+16], rdx
	mov	QWORD PTR [rsp+8], rcx
	push	rdi
	sub	rsp, 16
	mov	rdi, rsp
	mov	ecx, 4
	mov	eax, -858993460				; ccccccccH
	rep stosd
	mov	rcx, QWORD PTR [rsp+32]
; Line 17780
	mov	rax, QWORD PTR ptr$[rsp]
	mov	QWORD PTR vptr$[rsp], rax
; Line 17784
	mov	rdi, QWORD PTR vptr$[rsp]
	xor	eax, eax
	mov	rcx, QWORD PTR cnt$[rsp]
	rep stosb
; Line 17806
	mov	rax, QWORD PTR ptr$[rsp]
; Line 17807
	add	rsp, 16
	pop	rdi
	ret	0
RtlSecureZeroMemory ENDP
_TEXT	ENDS
END
