Function at 0x1000c8e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036f90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1004f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
push str.GetTermSrvState__s_..
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
push 1
push str.ServicesActive
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x1000c971
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push str.OpenSCManager_failed__error_code:__08x
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call fcn.10028c35
push 4
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x1000c9b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push edi
push str.OpenSCManager_Service:_s_failed__error_code:__08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], esi
call fcn.10028c35
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push esi
call ebx
cmp eax, 1
je 0x1000ca02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1000ca02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push edi
push str.OpenSCManager_QueryServiceStatusEx:_s_failed__error_code:__08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call fcn.10028c35
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1002651c
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
push edx
push eax
push edi
push 0
push esi
call ebx
test eax, eax
jne 0x1000ca54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
mov ecx, dword [ebp + 8]
push esi
push ecx
push str.OpenSCManager_QueryServiceStatusEx:_s_failed__error_code:__08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], esi
call fcn.10028c35
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x1000ca97
test esi, esi
je 0x1000caa2
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000cab0
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
push eax
mov eax, dword [edx]
push ecx
push eax
push esi
push str.GetTermSrvState_Rlt:_08x_Status:_d_Name:_s_Pid:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret