Function at 0x40aa60
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42e544
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push ebp
push esi
push edi
mov dword [esp + 0x7c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x1b0], ebx
mov edi, dword [0x43db78]
lea eax, [esp + 0x7c]
add edi, 0x10
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x43dbf0]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call fcn.00412040
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x118], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
lea eax, [esp + 0x13c]
push eax
mov byte [esp + 0x1b4], 1
call fcn.0040b370
lea ecx, [esp + 0x27]
mov byte [esp + 0x1b0], 2
push ecx
lea edx, [esp + 0x15c]
push edx
mov dword [esp + 0x11c], 0x435654
mov dword [esp + 0x13c], 0x435668
mov dword [esp + method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_52], 0x435670
mov dword [esp + 0x15c], ebx
call fcn.0040bec0
mov ebp, 7
xor eax, eax
mov dword [esp + 0x198], ebp
mov dword [esp + 0x194], ebx
mov word [esp + 0x184], ax
mov edx, dword [esp + 0x1b8]
lea ecx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x1b8], 3
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x40ac13
push str.CommandLineToArgvW_failed_n
call fcn.00417303
add esp, 4
lea eax, [esp + 0x114]
mov byte [esp + 0x1b0], bl
call fcn.0040b0c0
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x40abea
push eax
call fcn.00416e1d
add esp, 4
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
cmp eax, ebx
je 0x40ac0c
push eax
call fcn.00416e1d
add esp, 4
xor eax, eax
jmp 0x40b066
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x38], ebx
jle 0x40afd3
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40ac40
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x64]
call fcn.00409020
sub esp, 8
mov dword [esp + 0x28], esp
mov edi, esp
push ecx
mov byte [esp + 0x1bc], 4
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00415433
mov dword [esi], eax
call fcn.004151f2
push ebx
lea ecx, [esp + 0x6c]
mov esi, eax
call fcn.0041551c
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x40ac95
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x68]
call fcn.00415544
movzx eax, byte [0x43dbf8]
push eax
mov ebx, edi
call fcn.0040d540
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x70]
add esp, 8
mov esi, ecx
cmp edx, 8
jae 0x40ad9c
lea esi, [esp + 0x68]
mov eax, esi
mov edi, dword [esp + 0x78]
lea eax, [eax + edi*2]
cmp edx, 8
jae 0x40acdc
lea ecx, [esp + 0x68]
push esi
push eax
push ecx
lea ecx, [esp + 0x108]
call fcn.0040d640
xor edi, edi
add esp, 0x14
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
push 1
sub esp, 0xc
mov ebx, 5
mov esi, esp
mov byte [esp + 0x1c0], bl
mov dword [esp + 0x30], esp
call fcn.0040d760
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0040d7a0
add esp, 0xc
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.0040d860
mov ecx, dword [esp + 0x34]
call fcn.0040d8a0
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0xc
add eax, edx
push edi
cmp eax, 1
jbe 0x40ada3
xor edx, edx
mov word [esp + 0xfc], dx
lea ecx, [esi + 0x1c]
or eax, 0xffffffff
lea edx, [esp + 0xfc]
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], edi
call fcn.00408c40
or dword [esp + 0x14], 1
lea esi, [esp + 0xf8]
jmp 0x40add1
mov eax, ecx
jmp 0x40accc
xor eax, eax
mov word [esp + 0xdc], ax
mov eax, 0x435060
lea esi, [esp + 0xdc]
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xec], edi
call fcn.00409020
or dword [esp + 0x14], 2
xor ecx, ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
cmp edx, esi
je 0x40ae2d
xor eax, eax
cmp dword [esi + 0x14], 8
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], ax
jae 0x40ae11
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edx
call fcn.00416880
add esp, 0xc
jmp 0x40ae19
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov dword [esi], edi
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x1b0], 8
mov ecx, dword [esp + 0x28]
xor eax, eax
mov word [esp + 0xb4], ax
push edi
or eax, 0xffffffff
lea edx, [esp + 0xb8]
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], edi
call fcn.00408c40
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x158]
mov dword [esp + 0x1b0], 0xa
call fcn.0040b410
mov edx, eax
push edi
or eax, 0xffffffff
lea ecx, [esp + 0x40]
call fcn.00408c40
mov esi, 8
cmp dword [esp + 0xc8], esi
jb 0x40aeaf
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00416629
add esp, 4
xor edx, edx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], edi
mov word [esp + 0xb4], dx
cmp dword [esp + 0x50], esi
jb 0x40aeda
mov eax, dword [esp + 0x3c]
push eax
call fcn.00416629
add esp, 4
xor ecx, ecx
test byte [esp + 0x14], 2
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
je 0x40af26
and dword [esp + 0x14], 0xfffffffd
cmp dword [esp + 0xec], esi
jb 0x40af0e
mov edx, dword [esp + 0xd8]
push edx
call fcn.00416629
add esp, 4
xor eax, eax
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], edi
mov word [esp + 0xd8], ax
mov dword [esp + 0x1b0], ebx
test byte [esp + 0x14], 1
je 0x40af52
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0x10c], esi
jb 0x40af52
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.00416629
add esp, 4
mov esi, dword [esp + 0x28]
cmp esi, edi
je 0x40af92
mov ebx, dword [esp + 0x2c]
cmp esi, ebx
je 0x40af89
cmp dword [esi + 0x14], 8
jb 0x40af73
mov eax, dword [esi]
push eax
call fcn.00416629
add esp, 4
xor edx, edx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], edi
mov word [esi], dx
add esi, 0x1c
cmp esi, ebx
jne 0x40af62
mov esi, dword [esp + 0x28]
push esi
call fcn.00416629
add esp, 4
mov byte [esp + 0x1b0], 3
cmp dword [esp + 0x74], 8
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
jb 0x40afba
mov eax, dword [esp + 0x60]
push eax
call fcn.00416629
add esp, 4
mov eax, dword [esp + 0x18]
inc eax
xor ebx, ebx
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
jl 0x40ac21
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edi, [esp + 0x114]
call fcn.0040b2b0
test eax, eax
je 0x40abbc
mov ecx, dword [esp + 0x1bc]
mov edx, dword [esp + 0x118]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x7c]
call fcn.00411910
mov esi, eax
call fcn.004117d0
lea eax, [esp + 0x114]
mov byte [esp + 0x1b0], bl
call fcn.0040b0c0
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x40b042
push eax
call fcn.00416e1d
add esp, 4
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
cmp eax, ebx
je 0x40b064
push eax
call fcn.00416e1d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a4
ret