Function at 0x1001764c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
push edi
push 4
xor esi, esi
mov edi, ecx
push esi
push esi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x10017680
push 0x10061d80
mov ecx, edi
call fcn.10003b7e
jmp 0x10017915
lea ecx, [ebp - 0x54]
call fcn.10001e6f
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
push esi
lea eax, [ebp - 0xa8]
push eax
push 3
push 0x3b
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x100178fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x100178fb
mov esi, dword [ebp - 8]
push esi
call fcn.10037a45
pop ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push 3
push 0x3b
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 4], esi
jbe 0x100178f2
mov edi, dword [ebp - 0x20]
push 0x10067a84
lea ecx, [ebp - 0x3c]
call fcn.10003b7e
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x6c]
push eax
call fcn.10003cff
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10002e42
lea ecx, [ebp - 0x6c]
call fcn.10001e30
lea ecx, [ebp - 0x3c]
call fcn.10001e30
push 0x10067a84
lea ecx, [ebp - 0x6c]
call fcn.10003b7e
mov edx, dword [edi]
lea ecx, [ebp - 0x3c]
push eax
call fcn.10003cff
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10002e42
lea ecx, [ebp - 0x3c]
call fcn.10001e30
lea ecx, [ebp - 0x6c]
call fcn.10001e30
push 0x10067a84
lea ecx, [ebp - 0x84]
call fcn.10003b7e
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x6c]
push eax
call fcn.10018a0b
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.100028be
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10002e42
lea ecx, [ebp - 0x3c]
call fcn.10001e30
lea ecx, [ebp - 0x6c]
call fcn.10001e30
lea ecx, [ebp - 0x84]
call fcn.10001e30
and dword [ebp - 0xc], 0
push 1
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], eax
push ecx
push 0
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x100178d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100178d6
mov esi, dword [ebp - 0xc]
push esi
call fcn.10037a45
pop ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [esi]
lea ecx, [ebp - 0x3c]
push 0x10067a84
call fcn.10018a0b
mov edx, eax
lea ecx, [ebp - 0x84]
call fcn.10002936
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10002e42
lea ecx, [ebp - 0x84]
call fcn.10001e30
lea ecx, [ebp - 0x3c]
call fcn.10001e30
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x3c]
push 0x10067a84
call fcn.10018a0b
mov edx, eax
lea ecx, [ebp - 0x84]
call fcn.10002936
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10002e42
lea ecx, [ebp - 0x84]
call fcn.10001e30
lea ecx, [ebp - 0x3c]
call fcn.10001e30
push 0x1006771c
push 0x10067a84
lea ecx, [ebp - 0x6c]
call fcn.10003b7e
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x3c]
push eax
call fcn.10003cff
pop ecx
mov edx, eax
lea ecx, [ebp - 0x84]
call fcn.10002936
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10002e42
lea ecx, [ebp - 0x84]
call fcn.10001e30
lea ecx, [ebp - 0x3c]
call fcn.10001e30
lea ecx, [ebp - 0x6c]
call fcn.10001e30
push esi
call fcn.10037a40
mov esi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
add edi, 0x24
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 4]
jb 0x10017700
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.10037a40
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.10002e4b
lea ecx, [ebp - 0x54]
call fcn.10001e30
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret