Function at 0x42c080
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d13d5
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x11], 0
push 4
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, edi
je 0x42c315
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
push ebx
lea esi, [ebp - 0x48]
call fcn.0042f9a0
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push edi
push edi
push 3
mov eax, dword [ebp + 0xc]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, dword [ebp - 0x20]
cmp esi, edi
je 0x42c2f8
mov byte [ebp - 4], 1
push esi
call fcn.004aace3
add esp, 4
mov edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edi
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
push edi
push 3
mov eax, dword [ebp + 0xc]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x42c2e8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
xor esi, esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x30]
jae 0x42c2e8
mov edx, esi
imul edx, edx, 0x2c
mov eax, dword [ebp - 0x34]
add eax, edx
mov dword [ebp - 0x3c], eax
push 1
mov ecx, dword [eax]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x42c2cf
mov edx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
push edi
lea esi, [ebp - 0x40]
call fcn.0042f9a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0
lea esi, [ebp - 0x64]
call fcn.0042e260
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push edi
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x1c], 0
je 0x42c2c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
push eax
call fcn.004aace3
add esp, 4
mov ebx, eax
or dword [ebp - 0x18], 1
lea esi, [ebp - 0x70]
call fcn.0042e260
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push ebx
push edi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x42c203
mov eax, dword [ebx + 4]
cmp eax, 2
je 0x42c1ff
test eax, eax
je 0x42c1ff
cmp eax, 1
jne 0x42c203
mov al, 1
jmp 0x42c205
xor al, al
test byte [ebp - 0x18], 1
je 0x42c20f
and dword [ebp - 0x18], 0xfffffffe
test al, al
je 0x42c2ad
lea ecx, [ebp - 0x58]
push ecx
call fcn.00428290
mov byte [ebp - 4], 4
mov dword [ebp - 0x58], 1
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042f870
push eax
lea ecx, [ebp - 0x54]
call fcn.004059e0
mov edx, 0x4e8aa8
lea edi, [ebp - 0x54]
call fcn.00416c30
mov edx, 0x4e8ab0
call fcn.00416c30
mov edx, 0x4e8aac
call fcn.00416c30
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx]
call fcn.00416c30
mov eax, dword [ebx + 0xc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00406060
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x8c]
call fcn.00429840
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.004060d0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x58]
push edx
call fcn.0040da50
push ebx
call fcn.004aabc6
add esp, 4
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
call fcn.004275f0
mov esi, dword [ebp - 0x2c]
inc esi
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp - 0x44]
jmp 0x42c150
push edi
call fcn.004aabc6
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
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