Function at 0x408650
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x44f958
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 + 0x20], esi
cmp esi, ebp
je 0x4088db
cmp dword [esp + 0x18], ebp
jle 0x4088d4
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 + 0x1c], eax
mov dword [esp + 0x3c], 0
mov edx, dword [esi + ebp*4]
test edx, edx
jne 0x4086d9
xor eax, eax
jmp 0x4086ef
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4086e0
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x20]
call fcn.004053c0
mov ecx, dword [esp + 0x1c]
push 0x45bae0
push ecx
call fcn.004248c8
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x408765
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x18]
jge 0x408765
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x24]
call fcn.00423620
mov edi, dword [esp + 0x44]
mov byte [esp + 0x3c], 1
call fcn.004050a0
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40875c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
inc ebp
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0x45bae8
push ecx
call fcn.004248c8
add esp, 8
cmp eax, ebx
jne 0x4087cd
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x18]
jge 0x4087cd
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x28]
call fcn.00423620
mov edi, dword [esp + 0x48]
mov byte [esp + 0x3c], 2
call fcn.004050a0
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
inc ebp
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0x45baf0
push ecx
call fcn.004248c8
add esp, 8
cmp eax, ebx
jne 0x408835
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x18]
jge 0x408835
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x2c]
call fcn.00423620
mov edi, dword [esp + 0x4c]
mov byte [esp + 0x3c], 3
call fcn.004050a0
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40882c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
inc ebp
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0x45baf8
push ecx
call fcn.004248c8
add esp, 8
cmp eax, ebx
jne 0x40889d
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x18]
jge 0x40889d
mov edi, dword [esi + ebp*4 + 4]
lea esi, [esp + 0x30]
call fcn.00423620
mov edi, dword [esp + 0x50]
mov byte [esp + 0x3c], 4
call fcn.004050a0
mov byte [esp + 0x3c], bl
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 0x408894
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
inc ebp
inc dword [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088c5
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 0x4086af
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
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