Function at 0x405a70
Capabilities:
Accept command line arguments

Disassembly:
push 0x70
mov eax, 0x423dd6
call fcn.004210ec
mov eax, dword [ebp + 0x10]
xor edi, edi
xor bl, bl
inc edi
test eax, eax
je 0x405a9d
push str.__stat
push eax
call fcn.004082e4
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
mov cl, bl
call fcn.00402328
xor esi, esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call fcn.00404ff3
mov dword [ebp - 0x7c], eax
test bl, bl
je 0x405ae2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.004031cc
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004031f1
lea ecx, [ebp - 0x7c]
call fcn.00401fe9
add esp, 0x18
jmp 0x405afa
lea ecx, [ebp - 0x28]
call fcn.0040591e
cmp dword [ebp - 0x18], esi
je 0x405afa
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x28]
call fcn.00402205
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00403407
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push str.noaction
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov edi, eax
mov byte [ebp - 0x40], al
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.0040365f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405cea
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x7c]
setne bl
xor esi, esi
push esi
push 1
call fcn.00403407
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
test bl, bl
je 0x405c15
xor ebx, ebx
push str.partner
mov dword [ebp - 0x18], ebx
call fcn.0040365f
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404b37
mov esi, eax
cmp esi, dword [ebp - 0x7c]
je 0x405ba0
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004033bc
test al, al
je 0x405bc9
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00405e2e
push eax
add eax, 0x10
lea ecx, [ebp - 0x7c]
push eax
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0040510d
mov esi, dword [ebp - 0x74]
push ebx
push 1
lea ecx, [ebp - 0x28]
add esi, 0x28
call fcn.00403407
cmp dword [esi + 0x10], ebx
je 0x405c10
push str.noaction_p
lea ecx, [ebp - 0x40]
call fcn.004038c5
sub esp, 0x18
mov ecx, esp
push esi
call fcn.004031f1
lea ecx, [ebp - 0x58]
call fcn.004065a9
add esp, 0x18
lea ecx, [ebp - 0x40]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00403a95
lea ecx, [ebp - 0x58]
jmp 0x405c79
xor edi, edi
inc edi
jmp 0x405c8f
push str.stat
mov dword [ebp - 0x18], esi
call fcn.0040365f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405cea
push esi
push 1
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x7c]
setne bl
call fcn.00403407
test bl, bl
je 0x405c83
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x70]
call fcn.004056ab
mov esi, eax
lea eax, [ebp - 0x40]
xor ebx, ebx
cmp eax, esi
je 0x405c72
push ebx
push 1
mov ecx, eax
call fcn.00403872
push esi
lea ecx, [ebp - 0x40]
call fcn.00403b33
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00403872
jmp 0x405c8f
lea ecx, [ebp - 0x7c]
call fcn.0040280f
mov edi, eax
xor ebx, ebx
cmp dword [ebp - 0x30], 0
je 0x405ca7
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.00405f43
mov edi, eax
push edi
push str.stat_res:__d_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
push dword [0x42f5a0]
call fcn.0040a5d7
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [0x42f5a0], ebx
call fcn.00403872
lea ecx, [ebp - 0x7c]
call fcn.00402fb5
mov eax, edi
call fcn.004210a7
ret 0x10