Function at 0x401f90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x45b5ec]
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.00402863
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x20]
call fcn.00407234
pop ecx
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c49
lea edi, [esp + 0x1c]
call fcn.004027e8
lea esi, [esp + 0xdc]
call fcn.0040287f
push 1
push ebx
call fcn.00403bf5
pop ecx
pop ecx
lea esi, [esp + 0x114]
call fcn.004073ea
mov eax, edi
push eax
mov edi, esi
call fcn.004074a3
test al, al
jne 0x402045
call fcn.00401df3
jmp 0x40258f
xor eax, eax
lea ecx, [esp + 0x114]
call fcn.0040782a
cmp byte [eax], bl
jne 0x40258a
xor edi, edi
inc edi
mov eax, edi
call fcn.0040782a
cmp byte [eax], bl
jne 0x40258a
mov eax, ecx
call fcn.00405f3e
mov esi, eax
call fcn.004027d2
cmp eax, ebx
jne 0x402085
mov dword [esp + 0x14], edi
jmp 0x40209e
cmp eax, edi
jg 0x40203b
push ebx
call fcn.0040b0c2
push eax
lea edi, [esp + 0x18]
call fcn.00401e47
test al, al
pop ecx
je 0x40203b
lea eax, [esp + 0x14]
call fcn.00401c11
mov edx, eax
lea eax, [esp + 0x74]
call fcn.0040bb86
push edx
push eax
call fcn.00401f5d
pop ecx
pop ecx
push 3
pop eax
lea ecx, [esp + 0x114]
call fcn.0040782a
mov al, byte [eax]
mov edi, 0x44f774
push edi
mov byte [esp + 0x13], al
push 4
pop ecx
lea eax, [esp + 0xe0]
lea edx, [esp + 0xc4]
call fcn.00406425
call fcn.00406177
neg al
pop ecx
sbb al, al
push ebx
inc al
push 1
lea esi, [esp + 0xc8]
mov byte [esp + 0x16], al
call fcn.00402c49
cmp byte [esp + 0xe], bl
je 0x40211f
push edi
lea eax, [esp + 0xe0]
push eax
call fcn.0040289e
push 4
pop eax
lea ecx, [esp + 0x114]
call fcn.0040782a
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 0x40216b
push ebx
lea esi, [eax + 8]
call fcn.0040b0c2
push 0xffffffffffffffff
lea ecx, [esp + 0xfc]
push ecx
xor ebx, ebx
call fcn.00402b55
lea eax, [esp + 0x190]
call fcn.00405e70
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00405e43
test al, al
pop ecx
pop ecx
jne 0x4021ea
push 0x27e2
call fcn.00403b9a
lea ecx, [esp + 0xc4]
call fcn.00407022
lea ecx, [esp + 0xc0]
mov esi, 0x462bbc
call fcn.004018b9
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c49
lea eax, [esp + 0x190]
call fcn.00405e9e
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c49
lea esi, [esp + 0x74]
call fcn.004028b9
jmp 0x40258f
lea eax, [esp + 0x190]
call fcn.00405f55
test al, al
jne 0x40218b
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.0040782a
cmp byte [eax], 0
je 0x40224f
push ebx
lea esi, [eax + 8]
call fcn.0040b0c2
push 0xffffffffffffffff
lea ecx, [esp + 0x14c]
push ecx
xor ebx, ebx
call fcn.00402b55
lea eax, [esp + 0x148]
push 0x10
push eax
call fcn.00405813
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.00402804
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x68]
call fcn.00402804
lea eax, [esp + 0x74]
call fcn.004337fb
mov esi, eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4022a4
call fcn.00437375
cmp edi, dword [esi + 8]
jb 0x4022ab
call fcn.00437375
mov eax, edi
call fcn.0040a1f7
cmp dword [esp + 0x14], 2
mov dword [esp + 0x18], eax
je 0x4024bb
push 0x60
call fcn.00436d7d
cmp eax, ebx
pop ecx
je 0x4022d6
mov edi, eax
call fcn.00407f21
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.00411603
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 0x402321
mov eax, dword [edi]
lea ecx, [esp + 0xf8]
push ecx
mov ecx, edi
call dword [eax + 0x40]
lea eax, [esp + 0x164]
call fcn.00407b7e
mov cl, byte [esp + 0xe]
call fcn.00407c44
sub esp, 0x1c
lea eax, [esp + 0x114]
mov esi, esp
call fcn.0040287f
lea eax, [esp + 0x180]
push eax
call fcn.00407c48
mov edi, dword [esp + 0x2c]
add edi, 4
mov dword [ebx + 0x10], edi
lea edx, [esp + 0x1d8]
mov dword [esp + 0x168], edi
call fcn.0040a1fb
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.00402b55
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.00402604
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.0040a26c
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.0040287f
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.00421680
lea eax, [esp + 0xb0]
call fcn.004028de
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.00402c49
lea edi, [esp + 0x1d8]
call fcn.004025cc
push ebx
push 1
lea esi, [esp + 0x17c]
call fcn.00402c49
lea eax, [esp + 0x40]
mov dword [esp + method.RC::IUnknown.virtual_0], 0x44fc38
call fcn.0041fa95
jmp 0x40251b
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.0040cf6f
add esp, 0x18
lea esi, [esp + 0x30]
mov dword [esp + 0x40], eax
call fcn.00421680
cmp edi, ebx
je 0x40250e
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.00402b00
lea esi, [esp + 0x54]
call fcn.00402b00
push ebx
push 1
lea esi, [esp + 0x150]
call fcn.00402c49
lea eax, [esp + 0x190]
call fcn.00405e9e
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.00402c49
lea esi, [esp + 0x74]
call fcn.004028b9
lea edi, [esp + 0x114]
call fcn.0040746d
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c49
lea esi, [esp + 0x1c]
call fcn.00402b00
mov eax, dword [esp + 0x10]
jmp 0x4025b5
call fcn.00401c1b
lea edi, [esp + 0x114]
call fcn.0040746d
push ebx
push 1
lea esi, [esp + 0xe4]
call fcn.00402c49
lea esi, [esp + 0x1c]
call fcn.00402b00
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436c44
mov esp, ebp
pop ebp
ret 8