Function at 0x44ba90
Capabilities:
Enumerate services

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517f68
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [esi + 4], 0
call fcn.004b3240
push 4
push 0
push 0
mov byte [esi], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x44bd4d
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
lea eax, [ebp - 0x1c]
push 0
push 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0
push 3
push 0x30
push 0
push esi
mov dword [ebp - 0x1c], 0
call edi
test eax, eax
jne 0x44bd46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x44bd46
mov esi, dword [ebp - 0x20]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
add esi, 0x2c
mov dword [ebp - 0x30], vtable.RC::RCBuffer_char_.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.0044bda0
push dword [ebp - 0x2c]
push 0
push dword [ebp - 0x28]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0
push 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x48]
push 3
push 0x30
push 0
push esi
call edi
test eax, eax
je 0x44bcfc
xor edi, edi
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x1c], edi
jbe 0x44bcfc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44bbe0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.004033d0
cmp dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x48]
je 0x44bcca
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
push 5
cmovae eax, dword [ebp - 0x74]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x44bcca
xorps xmm0, xmm0
xor esi, esi
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], vtable.RC::RCBuffer_char_.0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
push ecx
push esi
push esi
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x44bcae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44bcae
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x44bc8b
push eax
call fcn.0050fb00
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x5c]
mov edi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
jmp 0x44bc8e
mov eax, dword [ebp - 0x3c]
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
jmp 0x44bcb1
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x44bd1d
lea ecx, [ebp - 0x40]
call fcn.0044bd70
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
mov byte [ebp - 0x41], 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.00403370
cmp byte [ebp - 0x41], 0
jne 0x44bce6
mov eax, dword [ebp - 0x54]
inc dword [eax + 4]
mov eax, dword [ebp - 0x58]
inc edi
add eax, 0x2c
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x58], eax
cmp edi, dword [ebp - 0x1c]
jb 0x44bbc1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x28]
mov esi, dword [esi + 4]
test eax, eax
je 0x44bd19
push eax
call fcn.0050fafb
add esp, 4
mov eax, esi
jmp 0x44bd4f
mov eax, dword [edi + 4]
cmp eax, 2
je 0x44bd32
test eax, eax
je 0x44bd32
mov byte [ebp - 0x41], 1
cmp eax, 1
jne 0x44bd36
mov byte [ebp - 0x41], 0
lea ecx, [ebp - 0x40]
call fcn.0044bd70
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
jmp 0x44bcce
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret