Function at 0x4984d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536d0d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58e5a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x49851b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x498545
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0048e580
xor edi, edi
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x18], edi
jle 0x4986f0
nop dword [eax]
mov esi, dword [esi + edi*4]
call fcn.00410080
test eax, eax
je 0x498726
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push esi
call fcn.0040c680
test al, al
jne 0x4985b9
test esi, esi
jne 0x498599
xor eax, eax
jmp 0x4985af
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4985a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0040d3a0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x498730
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4985eb
push esi
lea ecx, [ebp - 0x10]
call fcn.0040d330
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004fbeca
mov eax, dword [ebp - 0x10]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x498730
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + esi*2], cx
mov ecx, 0x54471c
mov eax, dword [ebp - 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49863e
test dx, dx
je 0x49863a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49863e
add eax, 4
add ecx, 4
test dx, dx
jne 0x498618
xor eax, eax
jmp 0x498643
sbb eax, eax
or eax, 1
test eax, eax
je 0x4986ba
lea eax, [ebp - 0x10]
push 0x544724
push eax
call fcn.00488030
add esp, 8
test al, al
jne 0x4986ba
lea eax, [ebp - 0x10]
push 0x544728
push eax
call fcn.00488030
add esp, 8
test al, al
jne 0x4986b1
lea eax, [ebp - 0x10]
push 0x54472c
push eax
call fcn.00488030
add esp, 8
test al, al
jne 0x4986b1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x498730
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x49870e
cmp ecx, 0x2f
je 0x49870e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x344]
call fcn.0041a410
jmp 0x4986c1
mov byte [ebx + 0x341], 1
jmp 0x4986c1
mov byte [ebx + 0x340], 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4986e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
inc edi
cmp edi, dword [ebp - 0x18]
jl 0x498560
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c110
mov esi, dword [ebp - 0x14]
jmp 0x4986f0
push 0x80004005
call fcn.0040fbc0
push 0x80070057
call fcn.0040fbc0
int3