Function at 0x401f8a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x45b87c]
xor eax, esp
mov dword [esp + 0x290], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc0]
call fcn.00402852
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040720b
pop ecx
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c39
lea eax, [esp + 0x1c]
call fcn.004027cb
lea esi, [esp + 0xdc]
call fcn.0040286e
push 1
push ebx
lea edi, [esp + 0x24]
call fcn.00403bc2
pop ecx
pop ecx
lea esi, [esp + 0x114]
call fcn.004073c1
mov eax, edi
push eax
mov edi, esi
call fcn.0040747a
test al, al
jne 0x402043
call fcn.00401ded
jmp 0x40258d
xor eax, eax
lea ecx, [esp + 0x114]
call fcn.00407801
cmp byte [eax], bl
jne 0x402588
xor edi, edi
inc edi
mov eax, edi
call fcn.00407801
cmp byte [eax], bl
jne 0x402588
mov eax, ecx
call fcn.00405f10
mov esi, eax
call fcn.004027b5
cmp eax, ebx
jne 0x402083
mov dword [esp + 0x14], edi
jmp 0x40209c
cmp eax, edi
jg 0x402039
push ebx
call fcn.0040b186
push eax
lea edi, [esp + 0x18]
call fcn.00401e41
test al, al
pop ecx
je 0x402039
lea eax, [esp + 0x14]
call fcn.00401c0b
mov edx, eax
lea eax, [esp + 0x74]
call fcn.0040bcf8
push edx
push eax
call fcn.00401f57
pop ecx
pop ecx
push 3
pop eax
lea ecx, [esp + 0x114]
call fcn.00407801
mov al, byte [eax]
mov edi, 0x44f770
push edi
mov byte [esp + 0x13], al
push 4
pop ecx
lea eax, [esp + 0xe0]
lea edx, [esp + 0xc4]
call fcn.004063fc
call fcn.00406146
neg al
pop ecx
sbb al, al
push ebx
inc al
push 1
lea esi, [esp + 0xc8]
mov byte [esp + 0x16], al
call fcn.00402c39
cmp byte [esp + 0xe], bl
je 0x40211d
push edi
lea eax, [esp + 0xe0]
push eax
call fcn.0040288d
push 4
pop eax
lea ecx, [esp + 0x114]
call fcn.00407801
mov cl, byte [eax]
test cl, cl
push 7
pop edi
mov byte [esp + 0xe], cl
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
je 0x402169
push ebx
lea esi, [eax + 8]
call fcn.0040b186
push 0xffffffffffffffff
lea ecx, [esp + 0xfc]
push ecx
xor ebx, ebx
call fcn.00402b45
lea eax, [esp + 0x190]
call fcn.00405e42
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00405e15
test al, al
pop ecx
pop ecx
jne 0x4021e8
push 0x27e2
call fcn.00403b67
lea ecx, [esp + 0xc4]
call fcn.00406ff9
lea ecx, [esp + 0xc0]
mov esi, 0x462b94
call fcn.004018b3
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c39
lea eax, [esp + 0x190]
call fcn.00405e70
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c39
lea esi, [esp + 0x74]
call fcn.004028a8
jmp 0x40258d
lea eax, [esp + 0x190]
call fcn.00405f20
test al, al
jne 0x402189
push 5
pop eax
lea ecx, [esp + 0x114]
mov dword [esp + 0x160], edi
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], bx
call fcn.00407801
cmp byte [eax], 0
je 0x40224d
push ebx
lea esi, [eax + 8]
call fcn.0040b186
push 0xffffffffffffffff
lea ecx, [esp + 0x14c]
push ecx
xor ebx, ebx
call fcn.00402b45
lea eax, [esp + 0x148]
push 0x10
push eax
call fcn.004057e0
pop ecx
pop ecx
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x58]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.004027f3
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x68]
call fcn.004027f3
lea eax, [esp + 0x74]
call fcn.0040f148
mov esi, eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4022a2
call fcn.004376d5
cmp edi, dword [esi + 8]
jb 0x4022a9
call fcn.004376d5
mov eax, edi
call fcn.0040a1d2
cmp dword [esp + 0x14], 2
mov dword [esp + 0x18], eax
je 0x4024b9
push 0x60
call fcn.00437407
cmp eax, ebx
pop ecx
je 0x4022d4
mov edi, eax
call fcn.00407f10
mov ebx, eax
mov ecx, ebx
neg ecx
lea edi, [ebx + 8]
sbb ecx, ecx
and ecx, edi
lea esi, [esp + 0x40]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ecx
call fcn.0041178f
xor eax, eax
cmp byte [esp + 0xe], al
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
je 0x40231f
mov eax, dword [edi]
lea ecx, [esp + 0xf8]
push ecx
mov ecx, edi
call dword [eax + 0x40]
lea eax, [esp + 0x164]
call fcn.00407b55
mov cl, byte [esp + 0xe]
call fcn.00407c1b
sub esp, 0x1c
lea eax, [esp + 0x114]
mov esi, esp
call fcn.0040286e
lea eax, [esp + 0x180]
push eax
call fcn.00407c1f
mov edi, dword [esp + 0x2c]
add edi, 4
mov dword [ebx + 0x10], edi
lea edx, [esp + 0x1d8]
mov dword [esp + 0x168], edi
call fcn.0040a1d6
and dword [esp + 0x1e0], 0
cmp dword [esp + 0x14], 0
push 0xffffffffffffffff
sete al
mov byte [esp + 0x1dd], al
xor eax, eax
cmp byte [esp + 0x13], al
mov byte [esp + 0x1dc], 0
setne al
xor ebx, ebx
mov dword [esp + 0x1e8], eax
lea eax, [esp + 0x23c]
push eax
lea eax, [esp + 0x150]
call fcn.00402b45
mov al, byte [esp + 0xf]
lea esi, [esp + 0x88]
mov byte [esp + 0x1da], al
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
call fcn.00402602
lea eax, [esp + 0xc0]
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x16c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x28]
mov edx, esi
lea ecx, [esp + 0x1f4]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.0040a247
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edi
call dword [eax + 0x44]
push edx
push eax
sub esp, 0x1c
lea eax, [esp + 0xe8]
mov esi, esp
call fcn.0040286e
lea ecx, [esp + 0xb0]
call fcn.00401a43
xor eax, eax
add esp, 0x28
cmp dword [esp + 0x18], ebx
lea esi, [esp + 0x30]
setne al
mov dword [esp + 0x10], eax
call fcn.00402902
lea eax, [esp + 0xb0]
call fcn.004028cd
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c39
lea edi, [esp + 0x1d8]
call fcn.004025ca
push ebx
push 1
lea esi, [esp + 0x17c]
call fcn.00402c39
lea eax, [esp + 0x40]
mov dword [esp + method.RC::IUnknown.virtual_0], 0x44fc30
call fcn.00429515
jmp 0x402519
mov edi, dword [esp + 0x2c]
add edi, 4
push edi
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x16]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
lea edx, [esp + 0x58]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.0040d0de
add esp, 0x18
lea esi, [esp + 0x30]
mov dword [esp + 0x40], eax
call fcn.00402902
cmp edi, ebx
je 0x40250c
mov eax, edi
call fcn.004019fe
xor eax, eax
cmp dword [esp + 0x40], ebx
setne al
mov dword [esp + 0x10], eax
lea esi, [esp + 0x64]
call fcn.00402af0
lea esi, [esp + 0x54]
call fcn.00402af0
push ebx
push 1
lea esi, [esp + 0x150]
call fcn.00402c39
lea eax, [esp + 0x190]
call fcn.00405e70
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c39
lea esi, [esp + 0x74]
call fcn.004028a8
lea edi, [esp + 0x114]
call fcn.00407444
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c39
lea esi, [esp + 0x1c]
call fcn.00402af0
mov eax, dword [esp + 0x10]
jmp 0x4025b3
call fcn.00401c15
lea edi, [esp + 0x114]
call fcn.00407444
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c39
lea esi, [esp + 0x1c]
call fcn.00402af0
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436edd
mov esp, ebp
pop ebp
ret 8