Function at 0x51a840
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac359
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x1004618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x51a8c6
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x51a8ae
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
jmp 0x51aa44
lea eax, [ebp - 0x20]
push eax
call dword [0x10069e8]
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x51a8f9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], edx
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x51a915
mov ecx, dword [ebp - 0x20]
call fcn.00402570
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
jmp 0x51a927
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x51a9ee
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4]
push edx
lea eax, [ebp - 0x28]
push eax
call dword [0x10069d4]
add esp, 8
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 2
push ecx
mov edx, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
je 0x51a989
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp - 0x48]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx], 0
je 0x51a9bf
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 0x54]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x78], ecx
push 0
call dword [0x1006a08]
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x28], 0
je 0x51a9e9
mov ecx, dword [ebp - 0x28]
call fcn.00402570
mov dword [ebp - 0x28], 0
jmp 0x51a91e
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x51aa1f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x51aa41
mov ecx, dword [ebp - 0x18]
call fcn.00402570
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret