Function at 0x409eb0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dba92
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x6eadf4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x6eaddc
call fcn.0040e3e0
mov eax, dword [0x6eadf4]
mov dword [eax + 4], eax
xor edi, edi
mov dword [0x6eadf8], edi
mov eax, dword [0x6eadf4]
mov dword [eax], eax
mov eax, dword [0x6eadf4]
mov dword [eax + 8], eax
mov byte [ebp - 0x11], 0
push 4
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, edi
je 0x40a190
mov edx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
push ebx
lea esi, [ebp - 0x4c]
call fcn.00414120
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push edi
push 3
push 0x30
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, dword [ebp - 0x20]
cmp esi, edi
je 0x40a173
mov byte [ebp - 4], 1
push esi
call fcn.0059409d
add esp, 4
mov edi, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
push 0
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push 3
push 0x30
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x40a163
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
xor esi, esi
mov dword [ebp - 0x34], esi
cmp esi, dword [ebp - 0x38]
jae 0x40a163
mov edx, esi
imul edx, edx, 0x2c
mov eax, dword [ebp - 0x3c]
add eax, edx
mov dword [ebp - 0x28], eax
push 1
mov ecx, dword [eax]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
je 0x40a14a
mov edx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
push edi
lea esi, [ebp - 0x44]
call fcn.00414120
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp dword [ebp - 0x1c], 0
je 0x40a13b
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov esi, eax
push eax
call fcn.0059409d
add esp, 4
mov ebx, eax
mov dword [ebp - 0x40], ebx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40a128
lea edx, [ebp - 0x5c]
push edx
call fcn.00406ff0
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], 1
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004140e0
mov edx, eax
lea edi, [ebp - 0x58]
call fcn.0040b9c0
mov edx, 0x692fe8
call fcn.0040ba00
mov edx, str.SYSTEMCurrentControlSetServices
call fcn.0040ba00
mov edx, 0x692fe8
call fcn.0040ba00
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call fcn.0040ba00
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040b7e0
mov byte [ebp - 4], 5
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x78]
call fcn.0040b2d0
mov byte [ebp - 4], 6
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call fcn.00408650
add esp, 8
mov byte [ebp - 4], 5
lea esi, [ebp - 0x78]
call fcn.00440d90
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40a10f
lea edi, [ebp - 0x18]
call fcn.0040bc80
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0040b8a0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2c]
push eax
mov ebx, 0x6eaddc
call fcn.0040c9e0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov edi, eax
call fcn.0040b9c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0040b950
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040b950
mov byte [ebp - 4], 3
lea edx, [ebp - 0x5c]
push edx
call fcn.0041b9d0
push ebx
call fcn.00593fc0
add esp, 4
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x44]
call fcn.00406380
mov esi, dword [ebp - 0x34]
inc esi
mov dword [ebp - 0x34], esi
mov edi, dword [ebp - 0x48]
jmp 0x409fa7
push edi
call fcn.00593fc0
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax]
call edx
mov eax, dword [esi]
push 1
mov ecx, esi
mov edx, dword [eax + 4]
call edx
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret