Function at 0x4b6a89
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 0x4b6ae9
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 0x4b6ab9
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 [0x4b5d7c]
call fcn.0040308c
mov edx, dword [0x535fc8]
mov dword [edx], eax
mov eax, dword [0x535fc8]
mov eax, dword [eax]
call fcn.004b5df4
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x4b6a95
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
mov eax, dword [0x536040]
mov eax, dword [eax]
call fcn.004505b4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
call fcn.004625dc
mov ebx, eax
mov ecx, 3
xor edx, edx
mov eax, ebx
call fcn.00462254
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.004620b0
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.004b65f0
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 0x4b6a7c
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push esi
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
jne 0x4b6a89
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x4b6a6d
mov eax, dword [ebp - 0x24]
inc eax
call fcn.004027b4
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4b6a66
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 0x4b686b
mov eax, dword [ebx + 8]
mov edx, 0x4b6b04
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a45
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 0x4b69b5
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0x22
jne 0x4b68db
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, 0x4b6b20
call fcn.00409c54
test eax, eax
je 0x4b6908
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b20
call fcn.00409c54
mov byte [eax], 0
jmp 0x4b6973
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b24
call fcn.00409c54
test eax, eax
je 0x4b6936
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b24
call fcn.00409c54
mov byte [eax + 4], 0
jmp 0x4b6973
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b2c
call fcn.00409c54
test eax, eax
je 0x4b6973
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b2c
call fcn.00409c54
mov byte [eax], 0
mov eax, dword [ebp - 0x2c]
call fcn.00404268
mov edx, 0x4b6b24
call fcn.00409b88
mov eax, dword [0x535fc8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x2c]
call fcn.004b5e20
lea ecx, [ebp - 0x64]
mov eax, dword [0x535fc8]
mov eax, dword [eax]
mov edx, 0x4b6b38
call fcn.004b626c
mov edx, dword [ebp - 0x64]
mov eax, 0x4b6b50
call fcn.00404390
test eax, eax
jg 0x4b69b5
mov ecx, 6
xor edx, edx
mov eax, ebx
call fcn.00462254
lea eax, [ebp - 0x4c]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b69fd
mov eax, dword [ebp - 0x48]
cmp eax, 7
jne 0x4b69da
mov eax, dword [ebx + 8]
mov edx, 0x4b6b68
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a0a
cmp eax, 4
jne 0x4b69ee
mov eax, dword [ebx + 8]
mov edx, 0x4b6b78
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a0a
mov eax, dword [ebx + 8]
mov edx, 0x4b6b88
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a0a
mov eax, dword [ebx + 8]
mov edx, 0x4b6b98
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp eax, 4
jne 0x4b6a24
mov eax, dword [ebx + 8]
mov edx, 0x4b6ba8
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a45
cmp eax, 3
jne 0x4b6a38
mov eax, dword [ebx + 8]
mov edx, 0x4b6bbc
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a45
mov eax, dword [ebx + 8]
mov edx, 0x4b6bcc
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 0x4b6a89
mov eax, dword [ebp - 0x20]
call fcn.004027cc
ret
mov eax, dword [ebx + 8]
mov edx, 0x4b6be0
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4b6a89
mov eax, dword [ebx + 8]
mov edx, 0x4b6c04
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 8]
dec dword [ebp - 0x30]
jne 0x4b6781
mov eax, dword [0x535fc8]
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 0x4b6af0
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