Function at 0x6e2380
Capabilities:
Enumerate services
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6e2849
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.006e2998
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.006e2b98
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TList_]
call sub.rtl120.bpl__System_TObject__bctr_qqrv
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
xor ebx, ebx
push 0x80000000
push 0x6e285c
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x6e2826
xor eax, eax
push ebp
push 0x6e281f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push 1
push 0x30
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EnumServicesStatusW
call sub.kernel32.dll_GetLastError
cmp eax, 0xea
jne 0x6e2802
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x6e27fb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 1
push 0x30
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EnumServicesStatusW
test eax, eax
je 0x6e27e5
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jl 0x6e27e5
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 4]
mov ebx, dword [ebp - 0x24]
lea ebx, [ebx + ebx*8]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + ebx*4]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + ebx*4 + 4]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
push 0x80000000
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x6e27d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x54], 4
je 0x6e2500
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x6e27d9
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_QueryServiceConfigW
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x6e27bb
mov eax, dword [ebp - 0x1c]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x6e27b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_QueryServiceConfigW
test eax, eax
je 0x6e2573
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0xc]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0xc]
call fcn.006e2a30
mov ebx, eax
test bl, bl
je 0x6e259b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.006e2904
test al, al
je 0x6e259b
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x6e27d9
test bl, bl
jne 0x6e25bd
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.006e287c
test al, al
je 0x6e25bd
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x6e27d9
mov eax, 0x18
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x30]
add eax, 4
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x30]
mov byte [eax + 0xc], bl
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0x14]
cmp dword [edx + eax*4 + 0xc], 4
sete al
mov edx, dword [ebp - 0x30]
mov byte [edx + 0xd], al
mov eax, dword [ebp - 0x30]
add eax, 8
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x7a0550]
cmp dword [eax], 0
je 0x6e26a3
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x7a0550]
mov eax, dword [eax]
call eax
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x6e26a3
mov eax, dword [ebp - 0x1c]
inc eax
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x6e269c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x7a0550]
mov eax, dword [eax]
call eax
test eax, eax
je 0x6e2686
mov eax, dword [ebp - 0x30]
add eax, 8
mov edx, dword [ebp - 0x34]
mov edx, dword [edx]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e26a3
mov eax, dword [ebp - 0x34]
call sub.rtl120.bpl__System__FreeMem_qqrpv
ret
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [eax + 0x14], edx
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x38]
push eax
push 3
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_EnumDependentServicesW
call sub.kernel32.dll_GetLastError
cmp eax, 0xea
jne 0x6e2790
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x6e2789
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 3
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_EnumDependentServicesW
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x1c]
add eax, eax
add eax, eax
add eax, eax
call sub.rtl120.bpl__System_AllocMem_qqrui
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x10], eax
mov esi, dword [ebp - 0x1c]
dec esi
test esi, esi
jl 0x6e2773
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
lea eax, [eax + ebx*8]
lea edi, [ebx + ebx*8]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + edi*4]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
lea eax, [eax + ebx*8 + 4]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + edi*4 + 4]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
inc ebx
dec esi
jne 0x6e2742
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e2790
mov eax, dword [ebp - 0x38]
call sub.rtl120.bpl__System__FreeMem_qqrpv
ret
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x30]
call sub.rtl120.bpl__Classes_TList_Add_qqrpv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e27bb
mov eax, dword [ebp - 0x2c]
call sub.rtl120.bpl__System__FreeMem_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e27d9
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
inc dword [ebp - 0x24]
dec dword [ebp - 0x3c]
jne 0x6e2498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e2802
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System__FreeMem_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e2826
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 8]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e2850
lea eax, [ebp - 0x5c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret