Function at 0x40f0d0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x44f5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, ebp
je 0x40f397
cmp dword [esp + 0x18], ebp
jle 0x40f390
mov dword [esp + 0x14], 1
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov edx, dword [esi + ebp*4]
test edx, edx
jne 0x40f159
xor eax, eax
jmp 0x40f16f
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f160
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x24]
call fcn.004053c0
mov ebx, dword [esp + 0x20]
push 0x45b898
push ebx
call fcn.004248c8
add esp, 8
test eax, eax
jne 0x40f1e5
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
jge 0x40f1e5
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x24]
call fcn.00423620
mov edi, 0x4701a0
mov byte [esp + 0x3c], 1
call fcn.004050a0
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f1dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
inc ebp
inc dword [esp + 0x14]
push 0x45d95c
push ebx
call fcn.004248c8
add esp, 8
test eax, eax
jne 0x40f24b
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
jge 0x40f24b
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x28]
call fcn.00423620
mov edi, 0x4701a4
mov byte [esp + 0x3c], 2
call fcn.004050a0
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
inc ebp
inc dword [esp + 0x14]
push 0x45d964
push ebx
call fcn.004248c8
add esp, 8
test eax, eax
jne 0x40f2b1
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
jge 0x40f2b1
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x2c]
call fcn.00423620
mov edi, 0x4701a8
mov byte [esp + 0x3c], 3
call fcn.004050a0
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f2a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
inc ebp
inc dword [esp + 0x14]
push 0x45d96c
push ebx
call fcn.004248c8
add esp, 8
test eax, eax
jne 0x40f35d
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x30]
call fcn.00423620
mov byte [esp + 0x3c], 4
mov ecx, dword [eax]
mov esi, dword [0x4701ac]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40f334
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40f322
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40f322
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40f317
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [0x4701ac], ebx
jmp 0x40f330
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, 0x4701ac
call fcn.004053c0
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
lea eax, [ebx - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f381
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x18]
jl 0x40f12f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x4701a0]
cmp dword [ecx - 0xc], 0
jle 0x40f3c8
mov edx, dword [0x4701a4]
cmp dword [edx - 0xc], 0
jle 0x40f3c8
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret