Function at 0x45dda0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c746c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4ff080]
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 0x45e09a
push 0xc
call fcn.004a9ec5
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 0x45e084
mov byte [ebp - 4], 3
push ebx
call fcn.004b3921
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 0x45e060
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 0x45e060
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 0x45e051
push dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea ecx, [ebp - 0x78]
call fcn.004617e0
mov byte [ebp - 4], 4
mov dword [ebp - 0x30], 0
sub esp, 8
lea ecx, [ebp - 0x88]
call fcn.0045f2b0
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 0x45e045
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x30]
push edi
call fcn.004b3921
mov dword [ebp - 0x64], eax
or dword [ebp - 0x34], 1
push ecx
lea ecx, [ebp - 0x94]
call fcn.0045f2b0
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 0x45df73
mov eax, dword [edi + 4]
cmp eax, 2
je 0x45df6f
test eax, eax
je 0x45df6f
cmp eax, 1
jne 0x45df73
mov al, 1
jmp 0x45df75
xor al, al
and dword [ebp - 0x34], 0xfffffffe
test al, al
je 0x45e014
lea ecx, [ebp - 0x5c]
call fcn.00458730
mov byte [ebp - 4], 6
mov dword [ebp - 0x5c], 1
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00461690
push eax
lea ecx, [ebp - 0x58]
call fcn.00460890
push 0x4e8858
lea ecx, [ebp - 0x58]
call fcn.00460840
push str.SYSTEMCurrentControlSetServices
lea ecx, [ebp - 0x58]
call fcn.00460840
push 0x4e8858
lea ecx, [ebp - 0x58]
call fcn.00460840
mov eax, dword [ebp - 0x6c]
push dword [eax]
lea ecx, [ebp - 0x58]
call fcn.00460840
push dword [edi + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00460390
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0045a5d0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00460bf0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.004587c0
push edi
call fcn.004b38cc
add esp, 4
mov dword [ebp - 4], 4
jmp 0x45e045
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.00457640
inc ebx
mov dword [ebp - 0x48], ebx
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x38]
jmp 0x45dec0
push dword [ebp - 0x50]
call fcn.004b38cc
add esp, 4
mov dword [ebp - 4], 2
jmp 0x45e084
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.004a9b96
mov esp, ebp
pop ebp
ret