Function at 0x10006cf0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037f78
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push 4
push str.stop
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], esi
call fcn.10001a60
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10006d56
lea eax, [ebp - 0x2c]
push eax
push 2
push str.ProcessDependentServices_Config:_08x_Cmd:_s_...
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
push esi
push esi
push 1
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
push edi
call ebx
cmp eax, esi
je 0x10006daa
push 0x15
push str.no_dependent_services
lea ecx, [ebp - 0x30]
call fcn.10001a60
push 0x10049464
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], esi
call fcn.10028c35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
je 0x10006dda
push 0x3e
push str.run_infomation_error___last_error_shuould_been_ERROR_MORE_DATA
lea ecx, [ebp - 0x30]
call fcn.10001a60
push 0x10049464
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], esi
call fcn.10028c35
mov edx, dword [ebp - 0x3c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x10006e1c
push 0xf
push str.HeapAlloc_error
lea ecx, [ebp - 0x30]
call fcn.10001a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x10049464
lea eax, [ebp - 0x50]
push eax
call fcn.10028c35
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
push eax
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x10006e56
push str.EnumDependentServices_error
lea ecx, [ebp - 0x30]
call fcn.10001a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10049464
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], eax
call fcn.10028c35
xor ebx, ebx
jmp 0x10006e60
cmp ebx, dword [ebp - 0x40]
jae 0x10006f33
lea edx, [ebx + ebx*8]
lea esi, [esi + edx*4]
mov ecx, 9
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
call fcn.1001af90
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x78]
push esi
push ebx
push str.ProcessDependentServices__d_Name:_s_Status:_08x
mov ecx, eax
call fcn.1001b3f0
mov eax, 2
add esp, 0x28
test al, al
je 0x10006ebc
mov eax, dword [ebp + 8]
push eax
push 0
push esi
call fcn.100071d0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, 2
test al, 1
je 0x10006ed2
push eax
push esi
call fcn.10006ab0
add esp, 8
mov dword [ebp - 0x34], eax
call fcn.1001af90
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x78]
push ecx
sub esp, 0x1c
mov edi, esp
push edx
mov ecx, 7
lea esi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push ebx
push str.ProcessDependentServices__d_Name:_s_Status:_08x_Rlt:_08x
mov ecx, eax
call fcn.1001b3f0
mov esi, dword [ebp - 0x38]
add esp, 0x2c
inc ebx
jmp 0x10006e60
mov dword [ebp - 4], 0
test esi, esi
je 0x10006f4e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x10006f5e
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
push eax
push esi
push str.ProcessDependentServices_Rlt:_08x_Info:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x10006f88
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100269ba
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100269c5
mov esp, ebp
pop ebp
ret