Function at 0x10010a91
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c0b2
mov eax, dword fs:[0]
push eax
mov eax, 0x2084
call fcn.10036cd0
mov eax, dword [0x1004d330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
push 4
mov dword [ebp - 0x208c], edi
mov dword [ebp - 0x2090], ebx
call fcn.10025267
pop ecx
cmp eax, ebx
je 0x10010ae6
mov dword [eax], edi
jmp 0x10010ae8
xor eax, eax
mov dword [edi], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.10010f19
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
push 4
push ebx
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x2090], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x207c], eax
cmp eax, ebx
je 0x10010d08
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
push ebx
lea ecx, [ebp - 0x2078]
push ecx
lea ecx, [ebp - 0x2074]
push ecx
push ebx
push ebx
push 3
push 0x30
push eax
mov dword [ebp - 0x2074], ebx
mov dword [ebp - 0x2078], ebx
call esi
cmp dword [ebp - 0x2074], ebx
jbe 0x10010cfc
push dword [ebp - 0x2074]
call fcn.10025dfd
pop ecx
mov dword [ebp - 0x2088], eax
cmp eax, ebx
je 0x10010cfc
push ebx
lea ecx, [ebp - 0x2078]
push ecx
lea ecx, [ebp - 0x2074]
push ecx
push dword [ebp - 0x2074]
push eax
push 3
push 0x30
push dword [ebp - 0x207c]
call esi
test eax, eax
je 0x10010cf0
mov dword [ebp - 0x2080], ebx
cmp dword [ebp - 0x2078], ebx
jbe 0x10010cf0
mov esi, dword [ebp - 0x2088]
lea eax, [ebp - 0x2070]
call fcn.1001014a
mov dword [ebp - 4], 2
push dword [esi]
lea eax, [ebp - 0x2070]
push eax
call fcn.100040d0
push dword [esi + 4]
lea eax, [ebp - 0x2054]
push eax
call fcn.100040d0
mov eax, dword [esi + 0xc]
push 1
push dword [esi]
mov dword [ebp - 0x2038], eax
push dword [ebp - 0x207c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2084], eax
cmp eax, ebx
je 0x10010cae
push 0x1fff
lea eax, [ebp - 0x200f]
push ebx
push eax
mov byte [ebp - 0x2010], bl
call fcn.10028410
add esp, 0xc
lea eax, [ebp - 0x2074]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2084]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x10010c4e
mov eax, dword [ebp - 0x200c]
mov dword [ebp - 0x2034], eax
push 0x2000
lea eax, [ebp - 0x2010]
push ebx
push eax
call fcn.10028410
add esp, 0xc
lea eax, [ebp - 0x2074]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push 1
push dword [ebp - 0x2084]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x10010ca2
cmp dword [ebp - 0x2010], ebx
je 0x10010ca2
push dword [ebp - 0x2010]
lea eax, [ebp - 0x2030]
push eax
call fcn.100040d0
push dword [ebp - 0x2084]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x2070]
push eax
call fcn.10010ea8
lea edi, [ebp - 0x2070]
mov byte [ebp - 4], bl
call fcn.100030ae
inc dword [ebp - 0x2080]
mov eax, dword [ebp - 0x2080]
mov edi, dword [ebp - 0x208c]
add esi, 0x24
cmp eax, dword [ebp - 0x2078]
jb 0x10010bae
push dword [ebp - 0x2088]
call fcn.10025d20
pop ecx
push dword [ebp - 0x207c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100251b7
leave
ret