Function at 0x401f8a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x45b5fc]
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.00407210
pop ecx
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c1e
lea eax, [esp + 0x1c]
call fcn.004027cb
lea esi, [esp + 0xdc]
call fcn.0040286e
push 1
push ebx
lea edi, [esp + 0x24]
call fcn.00403bcc
pop ecx
pop ecx
lea esi, [esp + 0x114]
call fcn.004073c6
mov eax, edi
push eax
mov edi, esi
call fcn.00407483
test al, al
jne 0x402043
call fcn.00401ded
jmp 0x40258d
xor eax, eax
lea ecx, [esp + 0x114]
call fcn.0040780a
cmp byte [eax], bl
jne 0x402588
xor edi, edi
inc edi
mov eax, edi
call fcn.0040780a
cmp byte [eax], bl
jne 0x402588
mov eax, ecx
call fcn.0040747f
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.0040b27b
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.0040bd70
push edx
push eax
call fcn.00401f57
pop ecx
pop ecx
push 3
pop eax
lea ecx, [esp + 0x114]
call fcn.0040780a
mov al, byte [eax]
mov edi, 0x44f778
push edi
mov byte [esp + 0x13], al
push 4
pop ecx
lea eax, [esp + 0xe0]
lea edx, [esp + 0xc4]
call fcn.004063b0
call fcn.004060fa
neg al
pop ecx
sbb al, al
push ebx
inc al
push 1
lea esi, [esp + 0xc8]
mov byte [esp + 0x16], al
call fcn.00402c1e
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.0040780a
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.0040b27b
push 0xffffffffffffffff
lea ecx, [esp + 0xfc]
push ecx
xor ebx, ebx
call fcn.00402b2a
lea eax, [esp + 0x190]
call fcn.00405dfa
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00405dcd
test al, al
pop ecx
pop ecx
jne 0x4021e8
push 0x27e2
call fcn.00403b71
lea ecx, [esp + 0xc4]
call fcn.00406ffe
lea ecx, [esp + 0xc0]
mov esi, 0x462b94
call fcn.004018b3
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c1e
lea eax, [esp + 0x190]
call fcn.00405e28
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c1e
lea esi, [esp + 0x74]
call fcn.004028a8
jmp 0x40258d
lea eax, [esp + 0x190]
call fcn.00405ed4
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.0040780a
cmp byte [eax], 0
je 0x40224d
push ebx
lea esi, [eax + 8]
call fcn.0040b27b
push 0xffffffffffffffff
lea ecx, [esp + 0x14c]
push ecx
xor ebx, ebx
call fcn.00402b2a
lea eax, [esp + 0x148]
push 0x10
push eax
call fcn.0040579d
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.00417fae
mov esi, eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4022a2
call fcn.004376e5
cmp edi, dword [esi + 8]
jb 0x4022a9
call fcn.004376e5
mov eax, edi
call fcn.0040a20e
cmp dword [esp + 0x14], 2
mov dword [esp + 0x18], eax
je 0x4024b9
push 0x60
call fcn.00437417
cmp eax, ebx
pop ecx
je 0x4022d4
mov edi, eax
call fcn.00407fde
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.00408feb
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.00407b5e
mov cl, byte [esp + 0xe]
call fcn.00407ce9
sub esp, 0x1c
lea eax, [esp + 0x114]
mov esi, esp
call fcn.0040286e
lea eax, [esp + 0x180]
push eax
call fcn.00407ced
mov edi, dword [esp + 0x2c]
add edi, 4
mov dword [ebx + 0x10], edi
lea edx, [esp + 0x1d8]
mov dword [esp + 0x168], edi
call fcn.0040a212
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.00402b2a
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.0040a33c
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.00428750
lea eax, [esp + 0xb0]
call fcn.004028cd
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c1e
lea edi, [esp + 0x1d8]
call fcn.004025ca
push ebx
push 1
lea esi, [esp + 0x17c]
call fcn.00402c1e
lea eax, [esp + 0x40]
mov dword [esp + method.RC::IUnknown.virtual_0], 0x44fc38
call fcn.00413260
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.0040d156
add esp, 0x18
lea esi, [esp + 0x30]
mov dword [esp + 0x40], eax
call fcn.00428750
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.00402ad5
lea esi, [esp + 0x54]
call fcn.00402ad5
push ebx
push 1
lea esi, [esp + 0x150]
call fcn.00402c1e
lea eax, [esp + 0x190]
call fcn.00405e28
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c1e
lea esi, [esp + 0x74]
call fcn.004028a8
lea edi, [esp + 0x114]
call fcn.00407449
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c1e
lea esi, [esp + 0x1c]
call fcn.00402ad5
mov eax, dword [esp + 0x10]
jmp 0x4025b3
call fcn.00401c15
lea edi, [esp + 0x114]
call fcn.00407449
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c1e
lea esi, [esp + 0x1c]
call fcn.00402ad5
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436ee0
mov esp, ebp
pop ebp
ret 8