Function at 0x105b39e
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.01055c69
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x105b3e1
push 0x100acc8
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x105b3e1
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
jne 0x105b3ff
mov dword [ebp - 4], ebx
jmp 0x105b57f
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 0x105b41e
mov dword [ebp - 4], edi
jmp 0x105b55f
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x105b4f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105b441
push 0x57
pop eax
cmp eax, 0x426
je 0x105b416
cmp eax, 0x425
jne 0x105b46b
cmp dword [ebp - 0x30], edi
je 0x105b416
cmp dword [ebp - 0x30], 2
jne 0x105b4f4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x105b41e
cmp eax, 0x41b
jne 0x105b505
cmp dword [ebp - 0x10], ebx
jne 0x105b505
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 0x105b505
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 0x105b4ea
cmp dword [ebp - 0xc], 0
jbe 0x105b4db
mov edi, esi
push dword [edi]
push dword [ebp + 8]
call fcn.0105b39e
test eax, eax
jne 0x105b4cf
and dword [ebp - 4], eax
inc ebx
add edi, 0x24
cmp ebx, dword [ebp - 0xc]
jb 0x105b4be
xor edi, edi
inc edi
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor ebx, ebx
jmp 0x105b41e
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x105b505
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x105b50a
mov dword [ebp - 4], ebx
jmp 0x105b55f
cmp dword [ebp - 0x30], edi
je 0x105b55f
mov esi, 0x1f4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x64
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
jg 0x105b548
mov ebx, 0x2710
jmp 0x105b548
cmp dword [ebp - 0x30], edi
je 0x105b55d
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 0x105b559
sub ebx, esi
test ebx, ebx
jg 0x105b529
cmp dword [ebp - 0x30], edi
je 0x105b55d
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
jne 0x105b514
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 0x105b574
push dword [ebp - 8]
call esi
pop esi
mov eax, 0x100acb4
cmp dword [ebp - 4], ebx
jne 0x105b584
mov eax, 0x100aca4
push eax
push dword [ebp + 0xc]
push 0x100ac88
push 4
call fcn.01055c69
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop ebx
leave
ret 8