Function at 0x756e24
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x75703a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x80619c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x757058
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x757010
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x756eb9
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x757017
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_LockServiceDatabase
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x756ee1
call sub.kernel32.dll_GetLastError
cmp eax, 0x41f
jne 0x756ee1
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x757017
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
push 3
push 0xb
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EnumServicesStatusW
cmp dword [ebp - 0x1c], 0
ja 0x756f10
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x757017
mov eax, dword [ebp - 0x1c]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x18], eax
xor ebx, ebx
jmp 0x756f45
inc ebx
cmp ebx, 0xa
jbe 0x756f2f
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x757017
call sub.kernel32.dll_GetLastError
cmp eax, 0xea
je 0x756f45
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x757017
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 3
push 0xb
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EnumServicesStatusW
test eax, eax
je 0x756f1f
cmp dword [ebp - 0x20], 0
ja 0x756f7a
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x757017
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x756fd6
inc esi
lea eax, [ebp - 4]
mov edx, dword [ebx]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
lea eax, [ebp - 8]
mov edx, dword [ebx + 4]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
lea edx, [ebp - 0x38]
mov ecx, 1
mov eax, 0x75708c
call fcn.00411984
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 0x24
dec esi
jne 0x756f86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x757017
cmp dword [ebp - 0x18], 0
je 0x756ff1
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System__FreeMem_qqrpv
cmp dword [ebp - 0x14], 0
je 0x757000
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_UnlockServiceDatabase
cmp dword [ebp - 0x10], 0
je 0x75700f
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x757041
lea eax, [ebp - 0x28]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret