Function at 0x45dd40
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c807c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x502054]
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
mov ebx, edx
mov dword [ebp - 0x38], ebx
mov eax, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x34], 0
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x7c], edi
test edi, edi
je 0x45e03a
push 0xc
call fcn.004a9d6b
add esp, 4
mov esi, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 1
mov dword [esi], vtable.StartupAreas::FreeProcPtr_int____stdcall___struct_SC_HANDLE______struct_SC_HANDLE____.0
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 3
push ebx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x45e024
mov byte [ebp - 4], 3
push ebx
call fcn.004b37d1
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x60], eax
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push eax
push 3
push dword [ebp - 0x38]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x45e000
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], eax
xor ebx, ebx
mov dword [ebp - 0x48], ebx
nop word [eax + eax]
cmp ebx, eax
jae 0x45e000
imul eax, ebx, 0x2c
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
push 1
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x68], edi
test edi, edi
je 0x45dff1
push dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea ecx, [ebp - 0x78]
call fcn.00461780
mov byte [ebp - 4], 4
mov dword [ebp - 0x30], 0
sub esp, 8
lea ecx, [ebp - 0x88]
call fcn.0045f250
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push edi
mov eax, dword [eax + 8]
call eax
cmp dword [ebp - 0x30], 0
je 0x45dfe5
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x30]
push edi
call fcn.004b37d1
mov dword [ebp - 0x64], eax
or dword [ebp - 0x34], 1
push ecx
lea ecx, [ebp - 0x94]
call fcn.0045f250
lea ecx, [ebp - 0x30]
push ecx
push edi
mov edi, dword [ebp - 0x64]
push edi
push dword [ebp - 0x68]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x45df13
mov eax, dword [edi + 4]
cmp eax, 2
je 0x45df0f
test eax, eax
je 0x45df0f
cmp eax, 1
jne 0x45df13
mov al, 1
jmp 0x45df15
xor al, al
and dword [ebp - 0x34], 0xfffffffe
test al, al
je 0x45dfb4
lea ecx, [ebp - 0x5c]
call fcn.004586f0
mov byte [ebp - 4], 6
mov dword [ebp - 0x5c], 1
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00461630
push eax
lea ecx, [ebp - 0x58]
call fcn.00460830
push 0x4ec208
lea ecx, [ebp - 0x58]
call fcn.004607e0
push str.SYSTEMCurrentControlSetServices
lea ecx, [ebp - 0x58]
call fcn.004607e0
push 0x4ec208
lea ecx, [ebp - 0x58]
call fcn.004607e0
mov eax, dword [ebp - 0x6c]
push dword [eax]
lea ecx, [ebp - 0x58]
call fcn.004607e0
push dword [edi + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00460330
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0045a540
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00460b90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00458780
push edi
call fcn.004b377c
add esp, 4
mov dword [ebp - 4], 4
jmp 0x45dfe5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.00457600
inc ebx
mov dword [ebp - 0x48], ebx
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x38]
jmp 0x45de60
push dword [ebp - 0x50]
call fcn.004b377c
add esp, 4
mov dword [ebp - 4], 2
jmp 0x45e024
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
xor al, al
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.004a9913
mov esp, ebp
pop ebp
ret