Function at 0x498c90
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58347b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc4], 0
push edi
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 4
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x498d0c
push dword [ebp - 0x10]
mov dword [ebx], eax
mov ecx, ebx
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004994c0
jmp 0x4990f9
xor ecx, ecx
mov edx, 0xf
xor eax, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
mov byte [ebp - 4], 1
nop dword [eax + eax]
cmp ecx, eax
ja 0x498d47
cmp edx, 0x10
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [eax + ecx], 0
jmp 0x498d54
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.00413e70
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 1
push 0x3b
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x498e01
cmp eax, 0xea
je 0x498d92
cmp eax, 0x7a
jne 0x498d9d
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x498d30
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebx], 0
push eax
mov ecx, ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.004994c0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x498dd4
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.004067d0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00495660
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov dword [ebp - 0x40], 0
cmovae esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], 0
jle 0x4990b0
add esi, 8
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
mov byte [ebp - 4], 2
xor eax, eax
mov edx, dword [esi - 8]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x498e7a
xor ecx, ecx
jmp 0x498e8f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498e80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00405d60
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00497210
mov edi, eax
lea eax, [ebp - 0xbc]
cmp eax, edi
je 0x498ef9
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
jb 0x498ed2
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.004067d0
push edi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
call fcn.004065e0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x498f0e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004067d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 8
jb 0x498f39
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407050
mov edx, dword [esi - 4]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x498f59
xor ecx, ecx
jmp 0x498f6f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498f60
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00405d60
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00497210
mov edi, eax
lea eax, [ebp - 0xa4]
cmp eax, edi
je 0x498fd9
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x498fb2
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.004067d0
push edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
call fcn.004065e0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x498fee
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004067d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 8
jb 0x499019
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407050
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xbc]
movups xmmword [ebp - 0x8c], xmm0
push eax
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x7c], xmm0
call fcn.00499150
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x499064
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.004067d0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
cmp eax, 0x10
jb 0x49909d
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.004067d0
mov eax, dword [ebp - 0x40]
add esi, 0x24
inc eax
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x38]
jl 0x498e20
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebx], 0
push eax
mov ecx, ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.004994c0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x4990e7
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.004067d0
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x49912e
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.004957f0
mov ecx, dword [ebp - 0x14]
mov eax, 0x6bca1af3
sub ecx, esi
add esp, 8
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00495730
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret