Function at 0x42cc10
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2765
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x5000f4]
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 0x42cea5
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
push ebx
lea esi, [ebp - 0x48]
call fcn.00430600
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 0x42ce88
mov byte [ebp - 4], 1
push esi
call fcn.004abbd8
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 0x42ce78
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
xor esi, esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x30]
jae 0x42ce78
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 0x42ce5f
mov edx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
push edi
lea esi, [ebp - 0x40]
call fcn.00430600
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0
lea esi, [ebp - 0x64]
call fcn.0042edf0
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 0x42ce50
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
push eax
call fcn.004abbd8
add esp, 4
mov ebx, eax
or dword [ebp - 0x18], 1
lea esi, [ebp - 0x70]
call fcn.0042edf0
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 0x42cd93
mov eax, dword [ebx + 4]
cmp eax, 2
je 0x42cd8f
test eax, eax
je 0x42cd8f
cmp eax, 1
jne 0x42cd93
mov al, 1
jmp 0x42cd95
xor al, al
test byte [ebp - 0x18], 1
je 0x42cd9f
and dword [ebp - 0x18], 0xfffffffe
test al, al
je 0x42ce3d
lea ecx, [ebp - 0x58]
push ecx
call fcn.00428dd0
mov byte [ebp - 4], 4
mov dword [ebp - 0x58], 1
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004304d0
push eax
lea ecx, [ebp - 0x54]
call fcn.00405590
mov edx, 0x4e9aa8
lea edi, [ebp - 0x54]
call fcn.00416fa0
mov edx, 0x4e9ab0
call fcn.00416fa0
mov edx, 0x4e9aac
call fcn.00416fa0
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx]
call fcn.00416fa0
mov eax, dword [ebx + 0xc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405c10
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x8c]
call fcn.0042a3d0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00405c80
mov byte [ebp - 4], 3
lea edx, [ebp - 0x58]
push edx
call fcn.0040cd40
push ebx
call fcn.004ababb
add esp, 4
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
call fcn.00428130
mov esi, dword [ebp - 0x2c]
inc esi
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp - 0x44]
jmp 0x42cce0
push edi
call fcn.004ababb
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