Function at 0x105b3bf
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 0x100acd8
inc edi
xor ebx, ebx
push 4
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
call fcn.01055c8a
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x105b402
push 0x100acc8
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x105b402
mov dword [ebp + 8], ebx
push 0xf003f
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
ret
jne 0x105b420
mov dword [ebp - 4], ebx
jmp 0x105b5a0
push esi
push 0xf01ff
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x105b43f
mov dword [ebp - 4], edi
jmp 0x105b580
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x105b515
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105b462
push 0x57
pop eax
cmp eax, 0x426
je 0x105b437
cmp eax, 0x425
jne 0x105b48c
cmp dword [ebp - 0x30], edi
je 0x105b437
cmp dword [ebp - 0x30], 2
jne 0x105b515
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x105b43f
cmp eax, 0x41b
jne 0x105b526
cmp dword [ebp - 0x10], ebx
jne 0x105b526
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
pop ecx
pop ecx
cmp esi, ebx
je 0x105b526
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 0x105b50b
cmp dword [ebp - 0xc], 0
jbe 0x105b4fc
mov edi, esi
push dword [edi]
push dword [ebp + 8]
call fcn.0105b3bf
test eax, eax
jne 0x105b4f0
and dword [ebp - 4], eax
inc ebx
add edi, 0x24
cmp ebx, dword [ebp - 0xc]
jb 0x105b4df
xor edi, edi
inc edi
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor ebx, ebx
jmp 0x105b43f
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x105b526
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x105b52b
mov dword [ebp - 4], ebx
jmp 0x105b580
cmp dword [ebp - 0x30], edi
je 0x105b580
mov esi, 0x1f4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x64
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
jg 0x105b569
mov ebx, 0x2710
jmp 0x105b569
cmp dword [ebp - 0x30], edi
je 0x105b57e
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 0x105b57a
sub ebx, esi
test ebx, ebx
jg 0x105b54a
cmp dword [ebp - 0x30], edi
je 0x105b57e
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
jne 0x105b535
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 0x105b595
push dword [ebp - 8]
call esi
pop esi
mov eax, 0x100acb4
cmp dword [ebp - 4], ebx
jne 0x105b5a5
mov eax, 0x100aca4
push eax
push dword [ebp + 0xc]
push 0x100ac88
push 4
call fcn.01055c8a
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop ebx
leave
ret 8