Function at 0x49d580
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6233
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x532008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x198], ecx
cmp dword [0x537ac4], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x180], ebx
je 0x49d653
push ecx
mov ecx, 0x537ac4
call fcn.004b08f0
mov eax, dword [0x537ac4]
cmp byte [eax + 0x54], 0
je 0x49d653
cmp dword [eax + 0x58], 4
jb 0x49d653
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x17
push str.Entry_GetAllServiceInfo
mov dword [ebp - 4], 0
call fcn.0040a960
push 0x17e
push str.RC::DM::RCServiceDManager::GetAllServiceInfo
push str.d:workcode_git_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
push 4
call fcn.004b11c0
test bl, bl
je 0x49d63e
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
call fcn.004b14e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov ebx, dword [ebp - 0x180]
mov eax, dword [ebx]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov dword [ebx + 4], 0
cmp esi, dword [ebx]
je 0x49d6a2
nop dword [eax]
mov edi, dword [esi]
lea ecx, [esi + 8]
call fcn.004a9080
push 0x12c
push esi
mov dword [ebp - 4], 1
call fcn.004b45ea
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov esi, edi
cmp edi, dword [ebx]
jne 0x49d670
mov edi, dword [ebp - 0x190]
push 4
push 0
push 0
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x49d75b
cmp dword [0x537ac4], eax
je 0x49d747
push ecx
mov ecx, 0x537ac4
call fcn.004b08f0
mov eax, dword [0x537ac4]
cmp byte [eax + 0x54], 0
je 0x49d747
cmp dword [eax + 0x58], 2
jb 0x49d747
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x1b
push str.Open_service_manage_failed_
mov dword [ebp - 4], 2
call fcn.0040a960
push 0x187
push str.RC::DM::RCServiceDManager::GetAllServiceInfo
push str.d:workcode_git_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
push 2
call fcn.004b11c0
test bl, bl
je 0x49d738
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
call fcn.004b14e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov dword [edi], 0xa803b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x49db0e
push 0
push 0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0
push 3
push 0x13f
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov eax, dword [ebp - 0x18c]
push eax
mov dword [ebp - 0x188], eax
call fcn.004b4a89
add esp, 4
mov dword [ebp - 0x180], eax
test eax, eax
jne 0x49d831
cmp dword [0x537ac4], eax
je 0x49d826
push ecx
mov ecx, 0x537ac4
call fcn.004b08f0
mov eax, dword [0x537ac4]
cmp byte [eax + 0x54], 0
je 0x49d826
cmp dword [eax + 0x58], 2
jb 0x49d826
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x28
push str.EnumServicesStatusEx_windows_API_failed_
mov dword [ebp - 4], 3
call fcn.0040a960
push 0x19d
push str.RC::DM::RCServiceDManager::GetAllServiceInfo
push str.d:workcode_git_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
push 2
call fcn.004b11c0
test bl, bl
je 0x49d817
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
call fcn.004b14e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov dword [edi], 0xa803ba
jmp 0x49db0e
push 0
push 0
lea ecx, [ebp - 0x184]
push ecx
lea ecx, [ebp - 0x18c]
push ecx
push dword [ebp - 0x188]
push eax
push 3
push 0x13f
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
xor esi, esi
cmp dword [ebp - 0x184], esi
jbe 0x49dafa
mov edi, dword [ebp - 0x180]
add edi, 8
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], vtable.RC::DM::ISerialization.0
lea ecx, [ebp - 0x178]
mov dword [ebp - method.RC::DM::RCService.virtual_0], vtable.RC::DM::RCService.0
call fcn.0040a090
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 4
call fcn.0040a090
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.0040a090
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 6
call fcn.0040a090
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.0040a090
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xf0], vtable.RC::DM::ISerialization.0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], vtable.RC::DM::RCWinServiceConfig.0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
call fcn.0040a090
lea ecx, [ebp - 0xc8]
call fcn.0040a090
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xb0], 0
call fcn.0040a090
lea ecx, [ebp - 0x94]
call fcn.0040a090
lea ecx, [ebp - 0x7c]
call fcn.0040a090
mov byte [ebp - 4], 9
lea eax, [ebp - 0x64]
push 0
push 0
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
call fcn.0049c1b0
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x5c], 0
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
push dword [edi - 8]
call fcn.0040a040
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x160]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0040a960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
call fcn.00409f90
push dword [edi - 4]
lea ecx, [ebp - 0x40]
call fcn.0040a040
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x148]
push eax
call fcn.0040a960
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040a960
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call fcn.00409f90
mov ecx, dword [edi]
cmp ecx, 1
mov eax, dword [edi + 0x10]
push dword [edi - 8]
mov dword [ebp - 0xf8], ecx
sete byte [ebp - 0x5c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xe4], eax
call fcn.0040a040
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x17c]
push edx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x1a0]
push edx
call dword [eax + 0x18]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.00409f90
mov eax, dword [ebx]
lea edx, [ebp - 0x17c]
push edx
mov dword [ebp - 0x188], eax
mov ecx, dword [eax + 4]
push ecx
push eax
mov dword [ebp - 0x194], ecx
call fcn.0049f570
mov edx, dword [ebx + 4]
mov ecx, eax
mov eax, 0xda740c
sub eax, edx
cmp eax, 1
jb 0x49dbb1
lea eax, [edx + 1]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x188]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x194]
mov dword [eax], ecx
lea ecx, [ebp - 0x17c]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9080
inc esi
add edi, 0x2c
cmp esi, dword [ebp - 0x184]
jb 0x49d880
mov edi, dword [ebp - 0x190]
push dword [ebp - 0x180]
call fcn.004b4866
add esp, 4
mov dword [edi], 0
cmp dword [0x537ac4], 0
je 0x49db91
push ecx
mov ecx, 0x537ac4
call fcn.004b08f0
mov eax, dword [0x537ac4]
cmp byte [eax + 0x54], 0
je 0x49db91
cmp dword [eax + 0x58], 4
jb 0x49db91
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x16
push str.Exit_GetAllServiceInfo
mov dword [ebp - 4], 0x11
call fcn.0040a960
push 0x1c0
push str.RC::DM::RCServiceDManager::GetAllServiceInfo
push str.d:workcode_git_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
push 4
call fcn.004b11c0
test bl, bl
je 0x49db82
lea eax, [ebp - 0x28]
mov ecx, 0x537ac4
push eax
call fcn.004b14e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b432c
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3