Function at 0x407024
Capabilities:
Accept command line arguments

Disassembly:
push 0x70
mov eax, 0x425b19
call fcn.00422aed
mov eax, dword [ebp + 0x10]
xor edi, edi
xor bl, bl
inc edi
test eax, eax
je 0x407051
push str.__stat
push eax
call fcn.00409c64
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
mov cl, bl
call fcn.004032f6
xor esi, esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call fcn.00406543
mov dword [ebp - 0x7c], eax
test bl, bl
je 0x407096
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040451c
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00404541
lea ecx, [ebp - 0x7c]
call fcn.00402479
add esp, 0x18
jmp 0x4070ae
lea ecx, [ebp - 0x28]
call fcn.00406ed2
cmp dword [ebp - 0x18], esi
je 0x4070ae
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x28]
call fcn.0040269a
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00404851
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.00404aa9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040729e
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x7c]
setne bl
xor esi, esi
push esi
push 1
call fcn.00404851
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
test bl, bl
je 0x4071c9
xor ebx, ebx
push str.partner
mov dword [ebp - 0x18], ebx
call fcn.00404aa9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004060af
mov esi, eax
cmp esi, dword [ebp - 0x7c]
je 0x407154
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404806
test al, al
je 0x40717d
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.004073e2
push eax
add eax, 0x10
lea ecx, [ebp - 0x7c]
push eax
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.004066c1
mov esi, dword [ebp - 0x74]
push ebx
push 1
lea ecx, [ebp - 0x28]
add esi, 0x28
call fcn.00404851
cmp dword [esi + 0x10], ebx
je 0x4071c4
push str.noaction_p
lea ecx, [ebp - 0x40]
call fcn.00404d0d
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00404541
lea ecx, [ebp - 0x58]
call fcn.00407b89
add esp, 0x18
lea ecx, [ebp - 0x40]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00404ecb
lea ecx, [ebp - 0x58]
jmp 0x40722d
xor edi, edi
inc edi
jmp 0x407243
push str.stat
mov dword [ebp - 0x18], esi
call fcn.00404aa9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040729e
push esi
push 1
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x7c]
setne bl
call fcn.00404851
test bl, bl
je 0x407237
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x70]
call fcn.00406c5f
mov esi, eax
lea eax, [ebp - 0x40]
xor ebx, ebx
cmp eax, esi
je 0x407226
push ebx
push 1
mov ecx, eax
call fcn.00404cbc
push esi
lea ecx, [ebp - 0x40]
call fcn.00404f62
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00404cbc
jmp 0x407243
lea ecx, [ebp - 0x7c]
call fcn.004037dd
mov edi, eax
xor ebx, ebx
cmp dword [ebp - 0x30], 0
je 0x40725b
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.004074f7
mov edi, eax
push edi
push str.stat_res:__d_n
push dword [0x4315b0]
call fcn.0040101c
add esp, 0xc
push dword [0x4315b0]
call fcn.0040bf87
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [0x4315b0], ebx
call fcn.00404cbc
lea ecx, [ebp - 0x7c]
call fcn.0040426a
mov eax, edi
call fcn.00422a97
ret 0x10