Function at 0x53e0620
Capabilities:
Enumerate services
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ecd3c
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x54183c4]
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
push SysReAllocString
push str.ServicesActive
xor edi, edi
push edi
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xc4], 0x80004005
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0xcc], esi
cmp esi, edi
je 0x53e0c23
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xe0]
push ecx
lea edx, [ebp - 0xc8]
push edx
push edi
push edi
push 3
push 0x3b
push esi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xe8], edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x53e0c1c
mov dword [ebp - 4], edi
lea eax, [ebp - 0xbd]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], edi
mov edi, dword [ebp - 0xc8]
push eax
lea esi, [ebp - 0x114]
mov byte [ebp - 0xbd], 0
call fcn.052edbc0
lea ecx, [ebp - 0xe8]
push ecx
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
push eax
sub ecx, esi
push ecx
push esi
push 3
push 0x3b
mov edi, esi
push edx
mov dword [ebp - 0xc4], edi
call ebx
xor eax, eax
mov dword [ebp - 0xe4], eax
jmp 0x53e0750
mov ecx, dword [ebp - 0xe4]
cmp ecx, dword [ebp - 0xe0]
jae 0x53e0c03
push 0x40
mov dword [ebp - 0xd4], eax
call fcn.053506ca
mov ebx, eax
add esp, 4
mov dword [ebp - 0xfc], ebx
test ebx, ebx
je 0x53e0bcc
mov dword [ebx], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebx + 4], ebx
push edi
lea edx, [ebp - 0x4c]
push edx
mov edx, str.ServiceName
mov byte [ebp - 4], 2
call fcn.052f0be0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 4]
push eax
push ecx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov esi, 8
mov dword [ecx], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0xd4], 1
cmp dword [ebp - 0x1c], esi
jb 0x53e07de
mov edx, dword [ebp - 0x30]
push edx
call fcn.053504e7
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x38], esi
jb 0x53e0803
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.053504e7
add esp, 4
lea edx, [edi + 4]
push edx
lea eax, [ebp - 0x4c]
push eax
mov edx, str.DisplayName
call fcn.052f0be0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
mov edx, dword [ebx + 4]
push ecx
push edx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0xd4], 2
cmp dword [ebp - 0x1c], esi
jb 0x53e084e
mov eax, dword [ebp - 0x30]
push eax
call fcn.053504e7
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], esi
jb 0x53e0873
mov edx, dword [ebp - 0x4c]
push edx
call fcn.053504e7
add esp, 4
mov eax, dword [edi]
mov ecx, dword [ebp - 0xcc]
push SysReAllocString
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0xdc], esi
test esi, esi
je 0x53e0b53
lea edx, [ebp - 0xc8]
push edx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x53e0b4c
mov edi, dword [ebp - 0xc8]
xor eax, eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xbd]
push eax
lea esi, [ebp - 0xf8]
mov byte [ebp - 0xbd], 0
call fcn.052edbc0
mov edx, dword [ebp - 0xdc]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0xf8]
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xc8]
push ecx
sub eax, edi
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x53e0b1b
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, str.BinaryPath
call fcn.052f0be0
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 6
mov eax, dword [ebx + 4]
push edx
push eax
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea esi, [ebp - 0x84]
mov dword [ebp - 0xd4], 3
mov dword [ecx], eax
mov byte [ebp - 4], 5
call fcn.052e5e60
mov ebx, dword [edi]
lea ecx, [ebp - 0x68]
push ecx
call fcn.053e0520
push eax
lea edx, [ebp - 0xbc]
push edx
mov edx, str.ServiceType
mov byte [ebp - 4], 7
call fcn.052ec900
mov ebx, dword [ebp - 0xfc]
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 8
mov ecx, dword [ebx + 4]
push eax
push ecx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea esi, [ebp - 0xbc]
mov dword [ebp - 0xd4], 4
mov dword [ecx], eax
call fcn.052e5e60
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 8
jb 0x53e09d6
mov edx, dword [ebp - 0x68]
push edx
call fcn.053504e7
add esp, 4
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x68]
push eax
call fcn.053e0460
push eax
lea ecx, [ebp - 0xbc]
push ecx
mov edx, str.StartType
mov byte [ebp - 4], 9
call fcn.052ec900
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
mov eax, dword [ebx + 4]
push edx
push eax
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea esi, [ebp - 0xbc]
mov dword [ebp - 0xd4], 5
mov dword [ecx], eax
call fcn.052e5e60
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 8
jb 0x53e0a40
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.053504e7
add esp, 4
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x68]
push edx
call fcn.053e03b0
push eax
lea eax, [ebp - 0xbc]
push eax
mov edx, str.ErrorControl
mov byte [ebp - 4], 0xb
call fcn.052f0c90
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
mov edx, dword [ebx + 4]
push ecx
push edx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea esi, [ebp - 0xbc]
mov dword [ebp - 0xd4], 6
mov dword [ecx], eax
call fcn.052e5e60
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 8
jb 0x53e0aaa
mov eax, dword [ebp - 0x68]
push eax
call fcn.053504e7
add esp, 4
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xc8]
push ecx
push 0x24
lea edx, [ebp - 0x38]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x53e0b1b
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.053e0240
push eax
lea eax, [ebp - 0xbc]
push eax
mov edx, str.State
mov byte [ebp - 4], 0xd
call fcn.052f0c90
lea eax, [ebp - 0xbc]
lea edi, [ebp - 0xd8]
mov byte [ebp - 4], 0xe
call fcn.052e64b0
lea esi, [ebp - 0xbc]
call fcn.052e5e60
lea ecx, [ebp - 0x68]
call fcn.052e52d0
mov edi, dword [ebp - 0xf8]
xor esi, esi
mov byte [ebp - 4], 2
cmp edi, esi
je 0x53e0b2e
push edi
call fcn.053504e7
add esp, 4
mov edi, dword [ebp - 0xc4]
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], esi
mov esi, dword [ebp - 0xdc]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x100]
mov ebx, dword [esi + 0x30]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0xd8]
push ecx
push edx
push ebx
call fcn.052e70a0
mov ecx, dword [esi + 0x34]
mov edx, 0x15555554
sub edx, ecx
cmp edx, 1
jae 0x53e0b86
push str.list_T__too_long
call fcn.05328b02
inc ecx
mov dword [esi + 0x34], ecx
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
add edi, 0x24
lea ebx, [ebp - 0xd8]
mov dword [ecx], eax
mov dword [ebp - 0xc4], edi
mov byte [ebp - 4], 1
call fcn.052e5ce0
mov eax, dword [ebp - 0xd8]
push eax
call fcn.053504e7
inc dword [ebp - 0xe4]
mov esi, dword [ebp - 0x114]
add esp, 4
xor eax, eax
jmp 0x53e0750
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x104], 0
call fcn.0535058b
push 0x540efd0
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.05350eca
mov dword [ebp - 0xc4], eax
cmp esi, eax
je 0x53e0c16
push esi
call fcn.053504e7
add esp, 4
mov esi, dword [ebp - 0xcc]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc4]
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.0534fc81
mov esp, ebp
pop ebp
ret