Function at 0x409e70
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6107f2
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x72a744]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x72a72c
call fcn.0040e6d0
mov eax, dword [0x72a744]
mov dword [eax + 4], eax
xor edi, edi
mov dword [0x72a748], edi
mov eax, dword [0x72a744]
mov dword [eax], eax
mov eax, dword [0x72a744]
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 0x40a150
mov edx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
push ebx
lea esi, [ebp - 0x4c]
call fcn.00414110
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 0x40a133
mov byte [ebp - 4], 1
push esi
call fcn.005c40dd
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 0x40a123
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
xor esi, esi
mov dword [ebp - 0x34], esi
cmp esi, dword [ebp - 0x38]
jae 0x40a123
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 0x40a10a
mov edx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
push edi
lea esi, [ebp - 0x44]
call fcn.00414110
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 0x40a0fb
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov esi, eax
push eax
call fcn.005c40dd
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 0x40a0e8
lea edx, [ebp - 0x5c]
push edx
call fcn.00406fa0
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], 1
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004140d0
mov edx, eax
lea edi, [ebp - 0x58]
call fcn.0040bab0
mov edx, 0x6ca140
call fcn.0040baf0
mov edx, str.SYSTEMCurrentControlSetServices
call fcn.0040baf0
mov edx, 0x6ca140
call fcn.0040baf0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call fcn.0040baf0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040b8d0
mov byte [ebp - 4], 5
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x78]
call fcn.0040b3c0
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.00408600
add esp, 8
mov byte [ebp - 4], 5
lea esi, [ebp - 0x78]
call fcn.0044df60
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40a0cf
lea edi, [ebp - 0x18]
call fcn.0040bd70
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0040b990
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2c]
push eax
mov ebx, 0x72a72c
call fcn.0040cb30
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov edi, eax
call fcn.0040bab0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0040ba40
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040ba40
mov byte [ebp - 4], 3
lea edx, [ebp - 0x5c]
push edx
call fcn.004239e0
push ebx
call fcn.005c4000
add esp, 4
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x44]
call fcn.00433900
mov esi, dword [ebp - 0x34]
inc esi
mov dword [ebp - 0x34], esi
mov edi, dword [ebp - 0x48]
jmp 0x409f67
push edi
call fcn.005c4000
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