Function at 0x102b815
Capabilities:
Enumerate services
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push dword [ebp + 0xc]
xor edi, edi
push 0x1006b04
inc edi
xor ebx, ebx
push 5
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
call fcn.0102ae85
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x102b858
push 0x1006af4
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x102b858
mov dword [ebp + 8], ebx
push 0xf003f
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x102b876
mov dword [ebp - 4], ebx
jmp 0x102b9ff
push esi
push 0xf01ff
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x102b965
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x102b974
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x102b8b4
push 0x57
pop eax
cmp eax, 0x426
je 0x102b965
cmp eax, 0x425
jne 0x102b8e6
cmp dword [ebp - 0x30], edi
je 0x102b965
cmp dword [ebp - 0x30], 2
jne 0x102b974
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102b891
cmp eax, 0x41b
jne 0x102b985
cmp dword [ebp - 0x10], ebx
jne 0x102b985
push 0x24
push 0x64
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x102b985
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xe10
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x102b96a
cmp dword [ebp - 0xc], 0
jbe 0x102b956
mov edi, esi
push dword [edi]
push dword [ebp + 8]
call fcn.0102b815
test eax, eax
jne 0x102b94a
and dword [ebp - 4], eax
inc ebx
add edi, 0x24
cmp ebx, dword [ebp - 0xc]
jb 0x102b939
xor edi, edi
inc edi
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor ebx, ebx
jmp 0x102b891
mov dword [ebp - 4], edi
jmp 0x102b9df
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x102b985
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x102b98a
mov dword [ebp - 4], ebx
jmp 0x102b9df
cmp dword [ebp - 0x30], edi
je 0x102b9df
mov esi, 0x1f4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x64
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
jg 0x102b9c8
mov ebx, 0x2710
jmp 0x102b9c8
cmp dword [ebp - 0x30], edi
je 0x102b9dd
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x102b9d9
sub ebx, esi
test ebx, ebx
jg 0x102b9a9
cmp dword [ebp - 0x30], edi
je 0x102b9dd
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
jne 0x102b994
and dword [ebp - 4], 0
xor ebx, ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
cmp dword [ebp - 8], ebx
je 0x102b9f4
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
pop esi
mov eax, 0x1006ae0
jne 0x102ba04
mov eax, 0x1006ad0
push eax
push dword [ebp + 0xc]
push 0x1006ab4
push 5
call fcn.0102ae85
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop ebx
leave
ret 8