Function at 0x401f90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x45c5f0]
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.00402873
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040c665
pop ecx
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c59
lea eax, [esp + 0x1c]
call fcn.004027ec
lea esi, [esp + 0xdc]
call fcn.0040288f
push 1
push ebx
lea edi, [esp + 0x24]
call fcn.00403bfd
pop ecx
pop ecx
lea esi, [esp + 0x114]
call fcn.0040c81b
mov eax, edi
push eax
mov edi, esi
call fcn.0040c8d4
test al, al
jne 0x402049
call fcn.00401df3
jmp 0x402593
xor eax, eax
lea ecx, [esp + 0x114]
call fcn.0040cc5b
cmp byte [eax], bl
jne 0x40258e
xor edi, edi
inc edi
mov eax, edi
call fcn.0040cc5b
cmp byte [eax], bl
jne 0x40258e
mov eax, ecx
call fcn.0040556c
mov esi, eax
call fcn.004027d6
cmp eax, ebx
jne 0x402089
mov dword [esp + 0x14], edi
jmp 0x4020a2
cmp eax, edi
jg 0x40203f
push ebx
call fcn.00409604
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.0040a18c
push edx
push eax
call fcn.00401f5d
pop ecx
pop ecx
push 3
pop eax
lea ecx, [esp + 0x114]
call fcn.0040cc5b
mov al, byte [eax]
mov edi, 0x450770
push edi
mov byte [esp + 0x13], al
push 4
pop ecx
lea eax, [esp + 0xe0]
lea edx, [esp + 0xc4]
call fcn.00405a6e
call fcn.004057c8
neg al
pop ecx
sbb al, al
push ebx
inc al
push 1
lea esi, [esp + 0xc8]
mov byte [esp + 0x16], al
call fcn.00402c59
cmp byte [esp + 0xe], bl
je 0x402123
push edi
lea eax, [esp + 0xe0]
push eax
call fcn.004028ae
push 4
pop eax
lea ecx, [esp + 0x114]
call fcn.0040cc5b
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.00409604
push 0xffffffffffffffff
lea ecx, [esp + 0xfc]
push ecx
xor ebx, ebx
call fcn.00402b65
lea eax, [esp + 0x190]
call fcn.0040549e
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00405471
test al, al
pop ecx
pop ecx
jne 0x4021ee
push 0x27e2
call fcn.00403ba2
lea ecx, [esp + 0xc4]
call fcn.00407045
lea ecx, [esp + 0xc0]
mov esi, 0x463b8c
call fcn.004018b9
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c59
lea eax, [esp + 0x190]
call fcn.004054cc
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c59
lea esi, [esp + 0x74]
call fcn.004028c9
jmp 0x402593
lea eax, [esp + 0x190]
call fcn.0040557c
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.0040cc5b
cmp byte [eax], 0
je 0x402253
push ebx
lea esi, [eax + 8]
call fcn.00409604
push 0xffffffffffffffff
lea ecx, [esp + 0x14c]
push ecx
xor ebx, ebx
call fcn.00402b65
lea eax, [esp + 0x148]
push 0x10
push eax
call fcn.00406830
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.00402814
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x68]
call fcn.00402814
lea eax, [esp + 0x74]
call fcn.00415c44
mov esi, eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4022a8
call fcn.00437ca5
cmp edi, dword [esi + 8]
jb 0x4022af
call fcn.00437ca5
mov eax, edi
call fcn.004181f9
cmp dword [esp + 0x14], 2
mov dword [esp + 0x18], eax
je 0x4024bf
push 0x60
call fcn.004379d7
cmp eax, ebx
pop ecx
je 0x4022da
mov edi, eax
call fcn.0040d335
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.00403c8d
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.0040cee7
mov cl, byte [esp + 0xe]
call fcn.0040d072
sub esp, 0x1c
lea eax, [esp + 0x114]
mov esi, esp
call fcn.0040288f
lea eax, [esp + 0x180]
push eax
call fcn.0040d076
mov edi, dword [esp + 0x2c]
add edi, 4
mov dword [ebx + 0x10], edi
lea edx, [esp + 0x1d8]
mov dword [esp + 0x168], edi
call fcn.00408630
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.00402b65
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.004086bb
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.0040288f
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.00428a67
lea eax, [esp + 0xb0]
call fcn.004028ee
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c59
lea edi, [esp + 0x1d8]
call fcn.004025d0
push ebx
push 1
lea esi, [esp + 0x17c]
call fcn.00402c59
lea eax, [esp + 0x40]
mov dword [esp + method.RC::IUnknown.virtual_0], 0x450c30
call fcn.0041df61
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.0040b5fe
add esp, 0x18
lea esi, [esp + 0x30]
mov dword [esp + 0x40], eax
call fcn.00428a67
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.00402b10
lea esi, [esp + 0x54]
call fcn.00402b10
push ebx
push 1
lea esi, [esp + 0x150]
call fcn.00402c59
lea eax, [esp + 0x190]
call fcn.004054cc
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c59
lea esi, [esp + 0x74]
call fcn.004028c9
lea edi, [esp + 0x114]
call fcn.0040c89e
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c59
lea esi, [esp + 0x1c]
call fcn.00402b10
mov eax, dword [esp + 0x10]
jmp 0x4025b9
call fcn.00401c1b
lea edi, [esp + 0x114]
call fcn.0040c89e
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c59
lea esi, [esp + 0x1c]
call fcn.00402b10
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004375f4
mov esp, ebp
pop ebp
ret 8