Function at 0x484370
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587241
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x98], ebx
xor edi, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push 4
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x9c], esi
test esi, esi
jne 0x4843f0
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
jmp 0x48471e
xor ecx, ecx
mov edx, 0xf
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x38], al
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x9c]
cmp ecx, eax
ja 0x48442c
cmp edx, 0x10
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
mov byte [eax + ecx], 0
jmp 0x484439
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x38]
call fcn.00425050
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x28]
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
push 1
push 0x3b
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4844df
cmp eax, 0xea
je 0x484477
cmp eax, 0x7a
jne 0x484482
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
jmp 0x48440f
mov eax, dword [ebp - 0x24]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x4844c0
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.0040c0a0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.00487c20
jmp 0x48471e
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
cmp eax, 0x10
mov dword [ebp - 0x9c], 0
cmovae esi, ecx
cmp dword [ebp - 0x3c], 0
jle 0x484700
add esi, 8
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 2
sub esp, 0x18
mov edi, dword [esi - 8]
mov edx, esp
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [edi], ax
jne 0x484557
xor ecx, ecx
jmp 0x484575
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x98], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484562
sub ecx, dword [ebp - 0x98]
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.0040bc40
lea ecx, [ebp - 0xb4]
call fcn.00483f50
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x94]
cmp eax, edi
je 0x4845d7
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x4845b3
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.0040c0a0
push edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
call fcn.00425330
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x4845f9
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.0040c0a0
mov edi, dword [esi - 4]
sub esp, 0x18
mov edx, esp
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [edi], ax
je 0x484637
mov eax, edi
lea ecx, [eax + 2]
mov dword [ebp - 0x98], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484624
sub eax, dword [ebp - 0x98]
sar eax, 1
push eax
push edi
mov ecx, edx
call fcn.0040bc40
lea ecx, [ebp - 0xb4]
call fcn.00483f50
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x7c]
cmp eax, edi
je 0x484687
mov eax, dword [ebp - 0x68]
cmp eax, 0x10
jb 0x48466c
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.0040c0a0
push edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
call fcn.00425330
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x4846a9
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.0040c0a0
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x94]
movups xmmword [ebp - 0x64], xmm0
push eax
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x54], xmm0
call fcn.00487b60
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00484740
mov eax, dword [ebp - 0x9c]
add esi, 0x24
inc eax
mov dword [ebp - 0x9c], eax
cmp eax, dword [ebp - 0x3c]
jl 0x484505
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [ebx], edi
mov dword [ebx + 8], edx
cmp eax, 0x10
jb 0x48471e
inc eax
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040c0a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret