Function at 0x401730
Capabilities:
Accept command line arguments
Get memory capacity
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x788
push ebx
push esi
push edi
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
lea eax, [ebp - 0x788]
push eax
push 0x202
mov dword [ebp - 8], ebx
call sub.WS2_32.dll_WSAStartup
xor esi, esi
push 0x5499a0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push 0x5499a0
call fcn.00403040
push 0x5499a0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x3c]
push eax
push 0x5499a0
call fcn.00403040
push 0x5499a0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
push 0x5499a0
call fcn.00403040
push 0x5499a0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push 0x5499a0
call fcn.00403040
xor edi, edi
mov byte [ebp - 0x14], 0
cmp dword [ebp - 0xc], esi
jle 0x401b03
lea ebx, [ebx]
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
add esp, 4
mov edx, str._pid
inc edi
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40185a
test si, si
je 0x401856
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40185a
add ecx, 4
add edx, 4
test si, si
jne 0x401834
xor ecx, ecx
jmp 0x40185f
sbb ecx, ecx
or ecx, 1
mov esi, dword [ebp - 0xc]
test ecx, ecx
jne 0x401886
cmp edi, esi
jge 0x401886
push 0xa
push 0
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov esi, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x18], eax
inc edi
jmp 0x401af8
mov edx, str._log
mov ecx, eax
lea ecx, [ecx]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x4018b6
test bx, bx
je 0x4018b2
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x4018b6
add ecx, 4
add edx, 4
test bx, bx
jne 0x401890
xor ecx, ecx
jmp 0x4018bb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4018de
cmp edi, esi
jge 0x4018de
mov ebx, dword [ebp - 8]
push 0xa
push ecx
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov esi, dword [ebp - 0xc]
add esp, 0xc
inc edi
jmp 0x401af8
mov edx, str._section
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x40190b
test bx, bx
je 0x401907
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x40190b
add ecx, 4
add edx, 4
test bx, bx
jne 0x4018e5
xor ecx, ecx
jmp 0x401910
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x40193d
cmp edi, esi
jge 0x40193d
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + edi*4]
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push esi
call fcn.00403040
mov esi, dword [ebp - 0xc]
inc edi
jmp 0x401af8
mov edx, str._configresourceid
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x40196a
test bx, bx
je 0x401966
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x40196a
add ecx, 4
add edx, 4
test bx, bx
jne 0x401944
xor ecx, ecx
jmp 0x40196f
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x401995
cmp edi, esi
jge 0x401995
mov ebx, dword [ebp - 8]
push 0xa
push ecx
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov esi, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x1c], eax
inc edi
jmp 0x401af8
mov edx, str._userconfig
mov ecx, eax
lea esp, [esp]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x4019c6
test bx, bx
je 0x4019c2
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x4019c6
add ecx, 4
add edx, 4
test bx, bx
jne 0x4019a0
xor ecx, ecx
jmp 0x4019cb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4019f5
cmp edi, esi
jge 0x4019f5
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + edi*4]
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.00403040
mov esi, dword [ebp - 0xc]
inc edi
jmp 0x401af8
mov edx, str._hangevent
mov ecx, eax
lea esp, [esp]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x401a26
test bx, bx
je 0x401a22
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x401a26
add ecx, 4
add edx, 4
test bx, bx
jne 0x401a00
xor ecx, ecx
jmp 0x401a2b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x401a55
cmp edi, esi
jge 0x401a55
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + edi*4]
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x3c]
push eax
push esi
call fcn.00403040
mov esi, dword [ebp - 0xc]
inc edi
jmp 0x401af8
mov edx, str._shutdownevent
mov ecx, eax
lea esp, [esp]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x401a86
test bx, bx
je 0x401a82
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x401a86
add ecx, 4
add edx, 4
test bx, bx
jne 0x401a60
xor ecx, ecx
jmp 0x401a8b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x401ab2
cmp edi, esi
jge 0x401ab2
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + edi*4]
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
push esi
call fcn.00403040
mov esi, dword [ebp - 0xc]
inc edi
jmp 0x401af8
mov ecx, str._nowindow
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401add
test dx, dx
je 0x401ad9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401add
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ab7
xor eax, eax
jmp 0x401ae2
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x14]
test eax, eax
mov ebx, dword [ebp - 8]
mov eax, 1
movzx ecx, cl
cmove ecx, eax
mov dword [ebp - 0x14], ecx
cmp edi, esi
jl 0x401820
mov esi, dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x402dfd
xor bl, bl
cmp byte [ebp - 0x14], bl
sete byte [ebp - 0xd]
jmp 0x401b20
lea ecx, [ebp - 0x550]
call fcn.00412f80
mov al, byte [ebp - 0xd]
mov edi, 0x5b3144
push dword [ebp - 0x1c]
mov byte [ebp - 0x50f], al
mov esi, 0x5b3144
mov eax, dword [ebp - 0x24]
mov edx, 0x5b3144
test eax, eax
mov ecx, 0x5b3144
cmovne edi, eax
mov eax, dword [ebp - 0x244]
test eax, eax
push edi
mov edi, dword [ebp - 0x18]
cmovne esi, eax
mov eax, dword [ebp - 0x44]
test eax, eax
push esi
cmovne edx, eax
mov eax, dword [ebp - 0x34]
test eax, eax
push edx
cmovne ecx, eax
push ecx
push edi
lea ecx, [ebp - 0x550]
call fcn.00413320
test al, al
je 0x402de8
lea ecx, [ebp - 0x3fc]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0x24
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0x3f400000
mov dword [ebp - 0x404], 0
call fcn.0042c4a0
mov eax, dword [ebp - 0x244]
mov ecx, 0x5b3144
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push ecx
push edi
lea ecx, [ebp - 0x41c]
call fcn.0040fad0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 8]
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401c20
sub ecx, esi
sar ecx, 1
lea eax, [ecx + 1]
push eax
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov esi, dword [ebp - 8]
push esi
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.00420e00
add esp, 0xc
lea ecx, [ebp - 0x7c]
push eax
push esi
call fcn.00403040
push str.CorrelationID
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x6c]
push eax
push str.CorrelationID
call fcn.00403040
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x60]
add eax, eax
push eax
push dword [ebp - 0x64]
call fcn.00420bb0
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
add eax, eax
mov dword [ebp - 0x64], 0
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
call fcn.00420bb0
push dword [ebp - 8]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x550]
call fcn.004140b0
test al, al
mov dword [ebp - 0x9c], 0
mov eax, str.False
mov dword [ebp - 0x98], 0
mov esi, str.True
mov dword [ebp - 0x94], 0
cmove esi, eax
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x9c]
push eax
push esi
call fcn.00403040
push str.AppHung
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x8c]
push eax
push str.AppHung
call fcn.00403040
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x80]
add eax, eax
push eax
push dword [ebp - 0x84]
call fcn.00420bb0
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x90]
add eax, eax
mov dword [ebp - 0x84], 0
push eax
push dword [ebp - 0x94]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
call fcn.00420bb0
lea ecx, [ebp - 0x550]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
call fcn.004140a0
test al, al
mov dword [ebp - 0xbc], 0
mov eax, str.False
mov dword [ebp - 0xb8], 0
mov esi, str.True
mov dword [ebp - 0xb4], 0
cmove esi, eax
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0xbc]
push eax
push esi
call fcn.00403040
push str.ForcingDiagnostics
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0xac]
push eax
push str.ForcingDiagnostics
call fcn.00403040
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa0]
add eax, eax
push eax
push dword [ebp - 0xa4]
call fcn.00420bb0
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb0]
add eax, eax
mov dword [ebp - 0xa4], 0
push eax
push dword [ebp - 0xb4]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
call fcn.00420bb0
lea eax, [ebp - 0x29c]
mov dword [ebp - 0xb4], 0
push eax
lea ecx, [ebp - 0x550]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xbc], 0
call fcn.00413c80
mov esi, 0x5b3144
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0xdc], 0
cmovne esi, eax
push esi
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0xdc]
push eax
push esi
call fcn.00403040
push str.FaultingModule
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0xcc]
push eax
push str.FaultingModule
call fcn.00403040
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc0]
add eax, eax
push eax
push dword [ebp - 0xc4]
call fcn.00420bb0
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd0]
add eax, eax
mov dword [ebp - 0xc4], 0
push eax
push dword [ebp - 0xd4]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x290]
add eax, eax
mov dword [ebp - 0xd4], 0
push eax
push dword [ebp - 0x294]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
call fcn.00420bb0
push str.MemoryTotalPhysical
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0xec]
push eax
push str.MemoryTotalPhysical
call fcn.00403040
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0040f970
lea ecx, [ebp - 0x2a0]
mov esi, dword [eax]
mov eax, dword [ebp - 0x2a8]
add eax, eax
push eax
push dword [ebp - 0x2a4]
call fcn.00420bb0
mov eax, dword [ebp - 0xe8]
add eax, eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2ac], 0
push eax
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xe0]
call fcn.00420bb0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xec], 0
test esi, esi
jne 0x402480
push 0x3c
lea eax, [ebp - 0x288]
mov dword [ebp - 0x28c], 0x40
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402480
lea eax, [ebp - 0x284]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x11c]
lea eax, [ebp - 4]
mov dword [ebp - 0x118], esi
push eax
push 0x549b0c
mov dword [ebp - 0x114], esi
call fcn.00401400
mov eax, dword [ebp - 0x114]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
cmovne esi, eax
mov dword [ebp - 0x104], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x10c]
push eax
push esi
call fcn.00403040
push str.MemoryTotalPhysical
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0xfc]
push eax
push str.MemoryTotalPhysical
call fcn.00403040
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf0]
add eax, eax
push eax
push dword [ebp - 0xf4]
call fcn.00420bb0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x100]
add eax, eax
mov dword [ebp - 0xf4], 0
push eax
push dword [ebp - 0x104]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xfc], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x110]
add eax, eax
mov dword [ebp - 0x104], 0
push eax
push dword [ebp - 0x114]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
call fcn.00420bb0
mov ecx, dword [ebp - 0x284]
sub ecx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x280]
sbb eax, dword [ebp - 0x278]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
push 0x549b0c
lea ecx, [ebp - 0x14c]
call fcn.00401400
mov eax, dword [ebp - 0x144]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
cmovne esi, eax
mov dword [ebp - 0x134], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x13c]
push eax
push esi
call fcn.00403040
push str.MemoryUsedPhysical
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x12c]
push eax
push str.MemoryUsedPhysical
call fcn.00403040
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x120]
add eax, eax
push eax
push dword [ebp - 0x124]
call fcn.00420bb0
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x130]
add eax, eax
mov dword [ebp - 0x124], 0
push eax
push dword [ebp - 0x134]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x140]
add eax, eax
mov dword [ebp - 0x134], 0
push eax
push dword [ebp - 0x144]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x13c], 0
call fcn.00420bb0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x14c], 0
push str.MemoryWorkingSetSize
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x15c]
push eax
push str.MemoryWorkingSetSize
call fcn.00403040
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0040f970
lea ecx, [ebp - 0x2b0]
mov esi, dword [eax]
mov eax, dword [ebp - 0x2b8]
add eax, eax
push eax
push dword [ebp - 0x2b4]
call fcn.00420bb0
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x150]
add eax, eax
mov dword [ebp - 0x2b4], 0
push eax
push dword [ebp - 0x154]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2bc], 0
call fcn.00420bb0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x15c], 0
test esi, esi
jne 0x402d0b
push edi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402d0b
xor eax, eax
mov dword [ebp - 0x278], 0x2c
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x278]
push 0x2c
push eax
push edi
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x402d04
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x18c], esi
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x18c]
lea eax, [ebp - 4]
mov dword [ebp - 0x188], esi
push eax
push 0x549b0c
mov dword [ebp - 0x184], esi
call fcn.0040e470
mov eax, dword [ebp - 0x184]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
cmovne esi, eax
mov dword [ebp - 0x174], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x17c]
push eax
push esi
call fcn.00403040
push str.MemoryWorkingSetSize
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x16c]
push eax
push str.MemoryWorkingSetSize
call fcn.00403040
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x160]
add eax, eax
push eax
push dword [ebp - 0x164]
call fcn.00420bb0
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x170]
add eax, eax
mov dword [ebp - 0x164], 0
push eax
push dword [ebp - 0x174]
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x16c], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x188]
lea ecx, [ebp - 0x180]
add eax, eax
mov dword [ebp - 0x174], 0
push eax
push dword [ebp - 0x184]
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x17c], 0
call fcn.00420bb0
lea eax, [ebp - 0x270]
mov dword [ebp - 0x184], 0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1bc]
lea eax, [ebp - 4]
mov dword [ebp - 0x188], 0
push eax
push 0x549b0c
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
call fcn.0040e470
mov eax, dword [ebp - 0x1b4]
mov esi, 0x5b3144
test eax, eax
cmovne esi, eax
push esi
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x1ac]
push eax
push esi
call fcn.00403040
push str.MemoryPeakWorkingSetSize
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x19c]
push eax
push str.MemoryPeakWorkingSetSize
call fcn.00403040
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x198]
lea ecx, [ebp - 0x190]
add eax, eax
push eax
push dword [ebp - 0x194]
call fcn.00420bb0
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1a0]
add eax, eax
mov dword [ebp - 0x194], 0
push eax
push dword [ebp - 0x1a4]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x19c], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1b0]
add eax, eax
mov dword [ebp - 0x1a4], 0
push eax
push dword [ebp - 0x1b4]
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1ac], 0
call fcn.00420bb0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1ec]
lea eax, [ebp - 4]
mov dword [ebp - 0x1b8], 0
push eax
push 0x549b0c
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
call fcn.0040e470
mov eax, dword [ebp - 0x1e4]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
cmovne esi, eax
mov dword [ebp - 0x1d4], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x1dc]
push eax
push esi
call fcn.00403040
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
push str.MemoryPagefileUsage
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x1cc]
push eax
push str.MemoryPagefileUsage
call fcn.00403040
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c0]
add eax, eax
push eax
push dword [ebp - 0x1c4]
call fcn.00420bb0
mov eax, dword [ebp - 0x1d8]
lea ecx, [ebp - 0x1d0]
add eax, eax
mov dword [ebp - 0x1c4], 0
push eax
push dword [ebp - 0x1d4]
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1e0]
add eax, eax
mov dword [ebp - 0x1d4], 0
push eax
push dword [ebp - 0x1e4]
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1dc], 0
call fcn.00420bb0
lea eax, [ebp - 0x254]
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 4]
mov dword [ebp - 0x1e8], 0
push eax
push 0x549b0c
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call fcn.0040e470
mov eax, dword [ebp - 0x214]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
cmovne esi, eax
mov dword [ebp - 0x204], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x20c]
push eax
push esi
call fcn.00403040
push str.MemoryPeakPagefileUsage
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x1fc]
push eax
push str.MemoryPeakPagefileUsage
call fcn.00403040
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x1f8]
add eax, eax
push eax
push dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f0]
call fcn.00420bb0
mov eax, dword [ebp - 0x208]
lea ecx, [ebp - 0x200]
add eax, eax
mov dword [ebp - 0x1f4], 0
push eax
push dword [ebp - 0x204]
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1fc], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
add eax, eax
mov dword [ebp - 0x204], 0
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x20c], 0
call fcn.00420bb0
lea eax, [ebp - 0x250]
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 4]
mov dword [ebp - 0x218], 0
push eax
push 0x549b0c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.0040e470
mov eax, dword [ebp - 0x54]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
cmovne esi, eax
mov dword [ebp - 0x234], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x23c]
push eax
push esi
call fcn.00403040
push str.MemoryPrivateUsage
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x22c]
push eax
push str.MemoryPrivateUsage
call fcn.00403040
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00410a10
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
add eax, eax
push eax
push dword [ebp - 0x224]
call fcn.00420bb0
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x230]
add eax, eax
mov dword [ebp - 0x224], 0
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
call fcn.00420bb0
mov dword [ebp - 0x234], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
add eax, eax
mov dword [ebp - 0x238], 0
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x23c], 0
call fcn.00420bb0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x14], 0
je 0x402d89
lea ecx, [ebp - 0x274]
call fcn.0040e780
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x274]
call fcn.0040e8e0
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
add eax, eax
push eax
push dword [ebp - 0x254]
call fcn.00420bb0
mov eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x260]
add eax, eax
mov dword [ebp - 0x254], 0
push eax
push dword [ebp - 0x264]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x25c], 0
call fcn.00420bb0
jmp 0x402db8
lea ecx, [ebp - 0x5f8]
call fcn.0041b6a0
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x5f8]
call fcn.0041f020
lea ecx, [ebp - 0x5f8]
call fcn.0041b970
lea ecx, [ebp - 0x550]
call fcn.004140a0
test al, al
movzx ebx, bl
mov eax, 1
lea ecx, [ebp - 0x3fc]
cmove ebx, eax
call fcn.00401670
lea ecx, [ebp - 0x41c]
call fcn.00401580
jmp 0x402dea
mov bl, 1
lea ecx, [ebp - 0x550]
call fcn.00413150
test bl, bl
je 0x401b20
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
add eax, eax
push eax
push dword [ebp - 0x24]
call fcn.00420bb0
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
add eax, eax
mov dword [ebp - 0x24], 0
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
add eax, eax
mov dword [ebp - 0x44], 0
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x240]
add eax, eax
mov dword [ebp - 0x34], 0
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
call fcn.00420bb0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret