Function at 0x401f90
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.00402858
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x20]
call fcn.004071f0
pop ecx
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c3e
lea eax, [esp + 0x1c]
call fcn.004027d1
lea esi, [esp + 0xdc]
call fcn.00402874
push 1
push ebx
lea edi, [esp + 0x24]
call fcn.00403bc7
pop ecx
pop ecx
lea esi, [esp + 0x114]
call fcn.004073a6
mov eax, edi
push eax
mov edi, esi
call fcn.0040745f
test al, al
jne 0x402049
call fcn.00401df3
jmp 0x402593
xor eax, eax
lea ecx, [esp + 0x114]
call fcn.004077e6
cmp byte [eax], bl
jne 0x40258e
xor edi, edi
inc edi
mov eax, edi
call fcn.004077e6
cmp byte [eax], bl
jne 0x40258e
mov eax, ecx
call fcn.00405f05
mov esi, eax
call fcn.004027bb
cmp eax, ebx
jne 0x402089
mov dword [esp + 0x14], edi
jmp 0x4020a2
cmp eax, edi
jg 0x40203f
push ebx
call fcn.0040b16f
push eax
lea edi, [esp + 0x18]
call fcn.00401e47
test al, al
pop ecx
je 0x40203f
lea eax, [esp + 0x14]
call fcn.00401c11
mov edx, eax
lea eax, [esp + 0x74]
call fcn.0040bc21
push edx
push eax
call fcn.00401f5d
pop ecx
pop ecx
push 3
pop eax
lea ecx, [esp + 0x114]
call fcn.004077e6
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.004063e1
call fcn.00406133
neg al
pop ecx
sbb al, al
push ebx
inc al
push 1
lea esi, [esp + 0xc8]
mov byte [esp + 0x16], al
call fcn.00402c3e
cmp byte [esp + 0xe], bl
je 0x402123
push edi
lea eax, [esp + 0xe0]
push eax
call fcn.00402893
push 4
pop eax
lea ecx, [esp + 0x114]
call fcn.004077e6
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 0x40216f
push ebx
lea esi, [eax + 8]
call fcn.0040b16f
push 0xffffffffffffffff
lea ecx, [esp + 0xfc]
push ecx
xor ebx, ebx
call fcn.00402b4a
lea eax, [esp + 0x190]
call fcn.00405e37
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00405e0a
test al, al
pop ecx
pop ecx
jne 0x4021ee
push 0x27e2
call fcn.00403b6c
lea ecx, [esp + 0xc4]
call fcn.00406fde
lea ecx, [esp + 0xc0]
mov esi, 0x462bb4
call fcn.004018b9
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c3e
lea eax, [esp + 0x190]
call fcn.00405e65
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c3e
lea esi, [esp + 0x74]
call fcn.004028ae
jmp 0x402593
lea eax, [esp + 0x190]
call fcn.00405f11
test al, al
jne 0x40218f
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.004077e6
cmp byte [eax], 0
je 0x402253
push ebx
lea esi, [eax + 8]
call fcn.0040b16f
push 0xffffffffffffffff
lea ecx, [esp + 0x14c]
push ecx
xor ebx, ebx
call fcn.00402b4a
lea eax, [esp + 0x148]
push 0x10
push eax
call fcn.004057e5
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.004027f9
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x68]
call fcn.004027f9
lea eax, [esp + 0x74]
call fcn.004158e5
mov esi, eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4022a8
call fcn.00437725
cmp edi, dword [esi + 8]
jb 0x4022af
call fcn.00437725
mov eax, edi
call fcn.00417e37
cmp dword [esp + 0x14], 2
mov dword [esp + 0x18], eax
je 0x4024bf
push 0x60
call fcn.00437457
cmp eax, ebx
pop ecx
je 0x4022da
mov edi, eax
call fcn.00407edb
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.00408f9c
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 0x402325
mov eax, dword [edi]
lea ecx, [esp + 0xf8]
push ecx
mov ecx, edi
call dword [eax + 0x40]
lea eax, [esp + 0x164]
call fcn.00407b3a
mov cl, byte [esp + 0xe]
call fcn.00407c00
sub esp, 0x1c
lea eax, [esp + 0x114]
mov esi, esp
call fcn.00402874
lea eax, [esp + 0x180]
push eax
call fcn.00407c04
mov edi, dword [esp + 0x2c]
add edi, 4
mov dword [ebx + 0x10], edi
lea edx, [esp + 0x1d8]
mov dword [esp + 0x168], edi
call fcn.0040a1bf
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.00402b4a
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.00402608
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.0040a230
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.00402874
lea ecx, [esp + 0xb0]
call fcn.00401a49
xor eax, eax
add esp, 0x28
cmp dword [esp + 0x18], ebx
lea esi, [esp + 0x30]
setne al
mov dword [esp + 0x10], eax
call fcn.00428669
lea eax, [esp + 0xb0]
call fcn.004028d3
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c3e
lea edi, [esp + 0x1d8]
call fcn.004025d0
push ebx
push 1
lea esi, [esp + 0x17c]
call fcn.00402c3e
lea eax, [esp + 0x40]
mov dword [esp + method.RC::IUnknown.virtual_0], 0x44fc30
call fcn.004158d9
jmp 0x40251f
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.0040d007
add esp, 0x18
lea esi, [esp + 0x30]
mov dword [esp + 0x40], eax
call fcn.00428669
cmp edi, ebx
je 0x402512
mov eax, edi
call fcn.00401a04
xor eax, eax
cmp dword [esp + 0x40], ebx
setne al
mov dword [esp + 0x10], eax
lea esi, [esp + 0x64]
call fcn.00402af5
lea esi, [esp + 0x54]
call fcn.00402af5
push ebx
push 1
lea esi, [esp + 0x150]
call fcn.00402c3e
lea eax, [esp + 0x190]
call fcn.00405e65
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c3e
lea esi, [esp + 0x74]
call fcn.004028ae
lea edi, [esp + 0x114]
call fcn.00407429
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c3e
lea esi, [esp + 0x1c]
call fcn.00402af5
mov eax, dword [esp + 0x10]
jmp 0x4025b9
call fcn.00401c1b
lea edi, [esp + 0x114]
call fcn.00407429
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c3e
lea esi, [esp + 0x1c]
call fcn.00402af5
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436f2c
mov esp, ebp
pop ebp
ret 8