Function at 0x50c2e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56729a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x50c568
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x50c54a
xor ebx, ebx
cmp dword [ebp - 0x20], ebx
jle 0x50c543
mov esi, dword [eax + ebx*4]
call fcn.004b98f0
test eax, eax
je 0x50c568
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test esi, esi
je 0x50c3b7
test esi, 0xffff0000
jne 0x50c3a1
movzx eax, si
lea ecx, [ebp - 0x10]
push eax
call fcn.004bb960
jmp 0x50c3c3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50c3a6
sub eax, edx
sar eax, 1
jmp 0x50c3b9
xor eax, eax
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004bbc70
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x10]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x50c55e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x50c3f5
push edi
lea ecx, [ebp - 0x10]
call fcn.004bbb80
mov esi, dword [ebp - 0x10]
lea eax, [edi + 1]
push eax
push esi
call fcn.0053a0a4
add esp, 8
cmp edi, dword [esi - 8]
jg 0x50c55e
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jl 0x50c431
push str._path:
push esi
call fcn.005290ec
add esp, 8
test eax, eax
je 0x50c431
sub eax, esi
sar eax, 1
je 0x50c462
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50c450
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x50c540
jmp 0x50c363
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x50c572
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
mov eax, str._path:
lea ecx, [ebp - 0x1c]
test eax, 0xffff0000
jne 0x50c49a
movzx eax, ax
push eax
call fcn.004bb960
jmp 0x50c4a6
push 6
push str._path:
call fcn.004bbc70
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi - 0xc]
mov byte [ebp - 4], 6
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c1160
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 0x14], 3
call fcn.004bad70
mov eax, 3
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c506
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x50c521
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x50c53d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
int3