Function at 0x40667e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x429030]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
xor bl, bl
inc esi
push edi
test eax, eax
je 0x4066bc
push str.__stat
push eax
call fcn.00408b1f
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, esi
mov cl, bl
call fcn.0040323e
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00406b05
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x50]
call fcn.00403e80
sub esp, 0x18
lea eax, [esp + 0x64]
mov ecx, esp
push eax
call fcn.00403e58
lea ecx, [esp + 0x28]
call fcn.004024bd
add esp, 0x18
mov dword [esp + 0x48], 0xf
xor eax, eax
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
mov edi, ebx
mov dword [esp + 0x30], 7
push str.noaction
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.004045d1
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.004068fa
push edi
push 1
lea ecx, [esp + 0x24]
cmp dword [eax], esi
setne bl
call fcn.0040485b
and dword [esp + 0x2c], edi
lea ecx, [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
test bl, bl
je 0x4067ef
push str.partner
call fcn.004045d1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.00404127
xor ebx, ebx
lea ecx, [esp + 0x1c]
push edi
inc ebx
mov esi, eax
push ebx
call fcn.0040485b
cmp dword [esi + 0x10], edi
je 0x4067e8
mov ebx, str.noaction_p
push ebx
call fcn.004010ca
pop ecx
push eax
push ebx
lea ecx, [esp + 0x3c]
call fcn.00404a4d
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00403e58
lea ecx, [esp + 0x7c]
call fcn.0040702d
add esp, 0x18
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push edi
push eax
call fcn.004042c1
xor ebx, ebx
lea ecx, [esp + 0x64]
inc ebx
jmp 0x406858
mov edi, ebx
jmp 0x40687d
push str.stat
call fcn.004045d1
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.004068fa
push 0
push 1
lea ecx, [esp + 0x24]
cmp dword [eax], esi
setne bl
call fcn.0040485b
test bl, bl
je 0x406862
lea edx, [esp + 0x10]
lea ecx, [esp + 0x7c]
call fcn.00406427
mov esi, eax
xor ebx, ebx
lea eax, [esp + 0x34]
inc ebx
cmp eax, esi
je 0x406854
push 0
push ebx
mov ecx, eax
call fcn.0040449d
push esi
lea ecx, [esp + 0x38]
call fcn.00404273
lea ecx, [esp + 0x7c]
push 0
push ebx
call fcn.0040449d
jmp 0x40687d
push ecx
push ecx
mov ecx, esp
lea eax, [esp + 0x18]
push ecx
push eax
call fcn.004069ce
call fcn.00403511
pop ecx
xor ebx, ebx
mov edi, eax
pop ecx
inc ebx
cmp dword [esp + 0x44], 0
je 0x406899
cmp dword [esp + 0x48], 0x10
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
call fcn.00406cab
mov edi, eax
push edi
push str.stat_res:__d_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
push dword [0x42b450]
call fcn.0040928e
and dword [0x42b450], 0
pop ecx
push 0
push ebx
lea ecx, [esp + 0x3c]
call fcn.0040449d
push 0
push ebx
lea ecx, [esp + 0x54]
call fcn.0040485b
lea ecx, [esp + 0x10]
call fcn.0040417f
mov ecx, dword [esp + 0x94]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407dcf
mov esp, ebp
pop ebp
ret 0x10