Function at 0x41f510
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d648
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4be5b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
jne 0x41f797
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41f56d
xor eax, eax
cmp ax, word [edx]
je 0x41f56d
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f560
jmp 0x41f58d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
jne 0x41f57d
xor ecx, ecx
jmp 0x41f591
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f582
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00416a50
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push dword [ebx]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41f797
xor ebx, ebx
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x18], ebx
jle 0x41f78b
mov esi, dword [eax + ebx*4]
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x41f7ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x41f7ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov edi, esp
mov dword [ebp - 0x20], edi
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x41f7ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00406bc0
test al, al
jne 0x41f668
test esi, esi
jne 0x41f643
xor eax, eax
jmp 0x41f65f
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f650
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.00416a50
mov byte [ebp - 4], 1
call fcn.0041f7c0
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x41f73d
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
add ebx, 4
push eax
mov ecx, ebx
call fcn.0041d0f0
mov esi, eax
mov eax, dword [ebx]
mov ecx, eax
cmp esi, eax
je 0x41f6ad
push dword [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
js 0x41f6a9
mov ecx, dword [ebx]
jmp 0x41f6af
mov eax, dword [ebx]
mov ecx, eax
mov esi, eax
cmp ecx, esi
jne 0x41f73a
lea eax, [edi - 0x10]
push eax
call fcn.00407840
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
push eax
call fcn.00407840
add eax, 0x10
add esp, 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.0041c8c0
push eax
add eax, 0x10
mov ecx, ebx
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.0041cf70
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f71f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f73a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f75c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41f77b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
inc ebx
mov dword [ebp + 0xc], ebx
cmp ebx, dword [ebp - 0x18]
jl 0x41f5c2
push eax
mov esi, 1
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 8
push 0x80004005
call fcn.004068b0
int3