Function at 0x40f9f0
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
push ebx
push edi
mov edi, ecx
push edi
push 3
push eax
call fcn.00413ed0
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 0x14], ebx
je 0x40fc78
push ebp
mov ebp, 8
push esi
mov dword [esp + 0x14], ebx
cmp dword [edi + 0x18], ebp
jb 0x40fa38
mov eax, dword [edi + 4]
jmp 0x40fa3b
lea eax, [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [eax]
mov dword [esp + 0x18], eax
xor edx, edx
mov eax, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40fa65
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00402040
lea eax, [edi + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push 3
push ecx
call fcn.00413ed0
add esp, 0xc
cmp dword [esp + 0x50], ebp
jb 0x40faa5
mov edx, dword [esp + 0x3c]
push edx
call fcn.004390ba
add esp, 4
mov ebp, 1
cmp dword [esp + 0x14], ebp
mov byte [esp + 0x13], 1
jle 0x40fc6b
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov edx, dword [edx + ebp*4]
mov eax, 7
mov dword [esp + 0x6c], eax
xor ecx, ecx
mov dword [esp + 0x34], eax
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
mov dword [esp + 0x30], ebx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40faf0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00402040
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x20]
push 3
push edx
call fcn.00413ed0
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x34], esi
jb 0x40fb36
mov eax, dword [esp + 0x20]
push eax
call fcn.004390ba
add esp, 4
lea ecx, [esp + 0x54]
cmp byte [esp + 0x13], bl
jne 0x40fb5d
push ecx
lea ecx, [edi + 0x58]
call fcn.0040f940
cmp dword [esp + 0x6c], esi
jb 0x40fc60
mov edx, dword [esp + 0x58]
push edx
jmp 0x40fc58
mov eax, dword [esp + 0x68]
push 2
push 0x4a6a5c
push eax
push ebx
call fcn.00401300
test eax, eax
jne 0x40fb8b
mov byte [esp + 0x13], bl
cmp dword [esp + 0x6c], esi
jb 0x40fc60
mov ecx, dword [esp + 0x58]
push ecx
jmp 0x40fc58
xor edx, edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
mov word [esp + 0x78], dx
push ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
call fcn.0040e320
add esp, 0xc
test al, al
je 0x40fbed
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0x38]
call fcn.0040f300
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call fcn.00401e30
jmp 0x40fbfa
lea edx, [esp + 0x54]
push edx
lea ecx, [edi + 0x58]
call fcn.0040f940
cmp dword [esp + 0x88], esi
jb 0x40fc10
mov eax, dword [esp + 0x74]
push eax
call fcn.004390ba
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
jb 0x40fc3d
mov edx, dword [esp + 0x3c]
push edx
call fcn.004390ba
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x6c], esi
jb 0x40fc60
mov eax, dword [esp + 0x58]
push eax
call fcn.004390ba
add esp, 4
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x40fac0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
pop edi
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x80
ret 4