Function at 0x100fc15
Capabilities:
Enumerate services
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
xor ebx, ebx
mov edi, 0x104
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
mov dword [0x102c90c], ebx
call esi
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x100fc54
push dword [ebp - 0x14]
call esi
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x100fc5c
push 8
pop eax
jmp 0x100ff12
cmp dword [0x103f924], ebx
je 0x100fc69
call fcn.01020dda
lea eax, [ebp - 0x3c]
push eax
push ebx
push 0x10029a4
push dword [ebp + 0xc]
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
test eax, eax
je 0x100fcb2
mov esi, dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
jmp 0x100fca0
push ebx
push dword [ebp - 8]
call fcn.01020b69
lea eax, [ebp - 0x3c]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
test eax, eax
je 0x100fcb2
push ebx
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
push ebx
push ebx
push ebx
push eax
call esi
test eax, eax
jne 0x100fc88
mov eax, dword [0x102de64]
cmp eax, ebx
je 0x100fe92
push 8
push ebx
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x100fcef
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1002978
call fcn.01015c5a
pop ecx
pop ecx
call esi
jmp 0x100ff12
cmp dword [ebp - 0x18], ebx
je 0x100fe92
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp byte [eax], 0x23
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], ebx
jne 0x100fd13
inc eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 8], eax
push 0xe0000000
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0xc], esi
jne 0x100fd39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100fe76
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100fe89
mov eax, dword [ebp - 0x54]
cmp eax, 1
mov dword [ebp - 0x2c], eax
je 0x100fe76
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x100fe24
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
jne 0x100fe1d
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
je 0x100fe14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push 1
push dword [ebp + 0xc]
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x100fe27
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
jbe 0x100fe27
mov esi, edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x104
push dword [esi]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameA]
test eax, eax
jne 0x100fdf6
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x100fdec
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push dword [esi]
call fcn.01017bd9
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add esi, 0x24
cmp eax, dword [ebp - 0x24]
jb 0x100fdca
jmp 0x100fe27
mov dword [ebp - 4], 8
jmp 0x100fe27
call edi
mov dword [ebp - 4], eax
jmp 0x100fe27
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x104
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameA]
test eax, eax
jne 0x100fe57
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x100fe4d
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.01017bd9
cmp dword [ebp - 4], ebx
jne 0x100fed9
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x100fcf8
jmp 0x100fe92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [0x102c904], ebx
je 0x100fed6
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0100f5cb
test eax, eax
jne 0x100feb2
mov dword [ebp - 4], 0x4c7
jmp 0x100fed9
mov esi, dword [0x102c904]
jmp 0x100fed0
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0100f723
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100fed9
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x100feba
jmp 0x100fed9
mov dword [ebp - 4], ebx
jmp 0x10a0bc8
pop edi
pop esi
pop ebx
leave
ret 8