Function at 0x10558f3
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 0x100955c
inc edi
xor ebx, ebx
push 4
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
call fcn.0105e5ad
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x1055936
push 0x100954c
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1055936
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 0x1055954
mov dword [ebp - 4], ebx
jmp 0x1055ad4
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
jne 0x1055973
mov dword [ebp - 4], edi
jmp 0x1055ab4
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1055a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1055996
push 0x57
pop eax
cmp eax, 0x426
je 0x105596b
cmp eax, 0x425
jne 0x10559c0
cmp dword [ebp - 0x30], edi
je 0x105596b
cmp dword [ebp - 0x30], 2
jne 0x1055a49
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1055973
cmp eax, 0x41b
jne 0x1055a5a
cmp dword [ebp - 0x10], ebx
jne 0x1055a5a
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 0x1055a5a
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 0x1055a3f
cmp dword [ebp - 0xc], 0
jbe 0x1055a30
mov edi, esi
push dword [edi]
push dword [ebp + 8]
call fcn.010558f3
test eax, eax
jne 0x1055a24
and dword [ebp - 4], eax
inc ebx
add edi, 0x24
cmp ebx, dword [ebp - 0xc]
jb 0x1055a13
xor edi, edi
inc edi
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor ebx, ebx
jmp 0x1055973
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1055a5a
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1055a5f
mov dword [ebp - 4], ebx
jmp 0x1055ab4
cmp dword [ebp - 0x30], edi
je 0x1055ab4
mov esi, 0x1f4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x64
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
jg 0x1055a9d
mov ebx, 0x2710
jmp 0x1055a9d
cmp dword [ebp - 0x30], edi
je 0x1055ab2
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 0x1055aae
sub ebx, esi
test ebx, ebx
jg 0x1055a7e
cmp dword [ebp - 0x30], edi
je 0x1055ab2
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
jne 0x1055a69
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 0x1055ac9
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
pop esi
mov eax, 0x1009538
jne 0x1055ad9
mov eax, 0x1009528
push eax
push dword [ebp + 0xc]
push 0x100950c
push 4
call fcn.0105e5ad
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop ebx
leave
ret 8