Function at 0x4b6aa1
Capabilities:
Query service configuration
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b6b01
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b6ad1
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x24024
call fcn.004027b4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x24024
mov eax, dword [ebp - 0x1c]
push eax
push edi
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov dl, 1
mov eax, dword [0x4b5d94]
call fcn.0040308c
mov edx, dword [0x534fc8]
mov dword [edx], eax
mov eax, dword [0x534fc8]
mov eax, dword [eax]
call fcn.004b5e0c
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x4b6aad
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
mov eax, dword [0x535040]
mov eax, dword [eax]
call fcn.004505b4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
call fcn.004625e8
mov ebx, eax
mov ecx, 3
xor edx, edx
mov eax, ebx
call fcn.00462260
mov esi, dword [ebp - 8]
lea esi, [esi + esi*8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4 + 4]
lea edx, [ebp - 0x50]
call fcn.00409cc8
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.004620bc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4 + 4]
lea edx, [ebp - 0x54]
call fcn.00409cc8
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004b6608
push 5
mov eax, dword [ebp - 0x28]
call fcn.00404268
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x4b6a94
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push esi
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
jne 0x4b6aa1
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x4b6a85
mov eax, dword [ebp - 0x24]
inc eax
call fcn.004027b4
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4b6a7e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
push esi
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
jne 0x4b6883
mov eax, dword [ebx + 8]
mov edx, 0x4b6b1c
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a5d
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0xc]
call fcn.00403fdc
mov edx, dword [ebp - 0x58]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0xc]
call fcn.00403fdc
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x2c]
call fcn.004091ac
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x2c]
call fcn.00403ebc
cmp dword [ebp - 0x2c], 0
je 0x4b69cd
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0x22
jne 0x4b68f3
lea eax, [ebp - 0x2c]
call fcn.00404274
mov byte [eax], 0x20
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x2c]
call fcn.004091ac
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
call fcn.00403ebc
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b38
call fcn.00409c54
test eax, eax
je 0x4b6920
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b38
call fcn.00409c54
mov byte [eax], 0
jmp 0x4b698b
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b3c
call fcn.00409c54
test eax, eax
je 0x4b694e
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b3c
call fcn.00409c54
mov byte [eax + 4], 0
jmp 0x4b698b
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b44
call fcn.00409c54
test eax, eax
je 0x4b698b
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b44
call fcn.00409c54
mov byte [eax], 0
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b3c
call fcn.00409b88
mov eax, dword [0x534fc8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x2c]
call fcn.004b5e38
lea ecx, [ebp - 0x64]
mov eax, dword [0x534fc8]
mov eax, dword [eax]
mov edx, 0x4b6b50
call fcn.004b6284
mov edx, dword [ebp - 0x64]
mov eax, 0x4b6b68
call fcn.00404390
test eax, eax
jg 0x4b69cd
mov ecx, 6
xor edx, edx
mov eax, ebx
call fcn.00462260
lea eax, [ebp - 0x4c]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b6a15
mov eax, dword [ebp - 0x48]
cmp eax, 7
jne 0x4b69f2
mov eax, dword [ebx + 8]
mov edx, 0x4b6b80
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a22
cmp eax, 4
jne 0x4b6a06
mov eax, dword [ebx + 8]
mov edx, 0x4b6b90
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a22
mov eax, dword [ebx + 8]
mov edx, 0x4b6ba0
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a22
mov eax, dword [ebx + 8]
mov edx, 0x4b6bb0
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp eax, 4
jne 0x4b6a3c
mov eax, dword [ebx + 8]
mov edx, 0x4b6bc0
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a5d
cmp eax, 3
jne 0x4b6a50
mov eax, dword [ebx + 8]
mov edx, 0x4b6bd4
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a5d
mov eax, dword [ebx + 8]
mov edx, 0x4b6be4
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6aa1
mov eax, dword [ebp - 0x20]
call fcn.004027cc
ret
mov eax, dword [ebx + 8]
mov edx, 0x4b6bf8
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6aa1
mov eax, dword [ebx + 8]
mov edx, 0x4b6c1c
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 8]
dec dword [ebp - 0x30]
jne 0x4b6799
mov eax, dword [0x534fc8]
mov eax, dword [eax]
call fcn.004030bc
mov bl, 1
mov edx, 0x24024
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6b08
lea eax, [ebp - 0x64]
mov edx, 6
call fcn.00403e48
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00403e48
lea eax, [ebp - 4]
call fcn.00403e24
ret