Function at 0x1004984b
Capabilities:
Enumerate services

Disassembly:
push 0x34
mov eax, 0x1009f9bf
call fcn.10094bba
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call fcn.10062b84
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x1004989d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 0xc]
push 0x1000c8cc
push 5
mov ecx, eax
call fcn.1002a44e
jmp 0x10049a27
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push ebx
push 1
push 0x30
push ebx
push eax
jmp 0x10049905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xea
jne 0x1004990d
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x10], ebx
je 0x100498e0
push dword [ebp - 0x10]
call fcn.10087908
pop ecx
push dword [ebp - 0x14]
call fcn.100878f8
pop ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push eax
push 1
push 0x30
push ebx
push dword [ebp - 0x30]
call edi
test eax, eax
je 0x100498bc
jmp 0x10049926
mov edi, dword [ebp + 0xc]
push 0x1000c8e8
push 5
mov ecx, esi
call fcn.1002a44e
cmp esi, ebx
jne 0x10049a0d
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x18], ebx
jbe 0x10049a0d
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [edi + 0x24]
xor esi, esi
mov dword [ebp - 0x34], ecx
cmp eax, ebx
jle 0x10049958
mov edx, dword [edx]
cmp dword [edx], ecx
je 0x1004995b
inc esi
add edx, 4
cmp esi, eax
jl 0x1004994c
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x100499a1
push dword [edi]
lea eax, [ebp - 0x24]
push eax
call fcn.1005f448
mov dword [ebp - 4], ebx
cmp esi, ebx
jl 0x10049a2f
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 8]
jge 0x10049a2f
imul esi, esi, 0xc
add esi, dword [eax + 4]
lea ebx, [ebp - 0x24]
call fcn.10060181
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10084c29
jmp 0x100499f6
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 1
push dword [edi]
lea eax, [ebp - 0x28]
push eax
call fcn.1005f448
lea ebx, [ebp - 0x28]
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10060181
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.10084c29
lea eax, [ebp - 0x34]
mov edi, esi
mov esi, dword [ebp + 8]
push eax
call fcn.10062b0a
or dword [ebp - 4], 0xffffffff
mov esi, edi
call fcn.1006f403
mov edi, dword [ebp - 0x2c]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add edi, 0x2c
xor ebx, ebx
mov dword [ebp - 0x2c], edi
cmp eax, dword [ebp - 0x18]
jb 0x10049938
cmp dword [ebp - 0x10], ebx
je 0x10049a1b
push dword [ebp - 0x10]
call fcn.10087908
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
call fcn.10094ca6
ret 8
call fcn.10083339
int3