Function at 0x140036090
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rsi, rdx
mov qword [rsp + 0x38], rdx
mov rbx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400360d7
mov rbx, qword [rdx]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x1400360ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov r15, qword [rsp + 0x38]
jmp 0x14003612f
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
jne 0x140036278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r12d, r12d
je 0x140036278
xor edi, edi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], di
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], di
mov ebx, 1
mov edx, ebx
lea rcx, [rbp]
call fcn.140029460
nop
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x14003618d
cmp eax, 1
jne 0x1400361ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140036170
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0xf8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0xf8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0xf8]
mov dword [rax + 0x10], 0x133
lea rbx, str.ManageMcServices::CMcService::GetServiceStatus
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFCommonCmcService.h
mov qword [rax + 0x20], rdx
mov dword [rbp - 0x50], 0x133
mov r8d, 0x4d
lea rcx, [rbp - 0x48]
call fcn.14002b640
mov dword [rbp - 8], 4
mov r8d, 0x2e
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14002b640
nop
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x140036232
mov r8, qword [rsi]
mov r9d, r12d
lea rdx, str.Manage_Service:_Failed_to_open_service:__s__error__d_
lea rcx, [rsp + 0x40]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14002be60
nop
lea rcx, [rsp + 0x40]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x50]
call fcn.140028cd0
nop
mov rcx, rsi
call fcn.14002ce60
xor eax, eax
jmp 0x140036415
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400363f5
xor edi, edi
mov qword [rbp + 0x118], rdi
mov qword [rbp + 0x120], 7
mov word [rbp + 0x108], di
mov qword [rbp + 0x138], rdi
mov qword [rbp + 0x140], 7
mov word [rbp + 0x128], di
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x150]
call fcn.140029460
nop
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x14003630d
cmp eax, 1
jne 0x14003632b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400362f0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x248], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x248]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x248]
mov dword [rax + 0x10], GetAltMonthNames
lea rbx, str.ManageMcServices::CMcService::GetServiceStatus
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFCommonCmcService.h
mov qword [rax + 0x20], rdx
mov dword [rbp + 0x100], GetAltMonthNames
mov r8d, 0x4d
lea rcx, [rbp + 0x108]
call fcn.14002b640
mov dword [rbp + 0x148], 4
mov r8d, 0x2e
mov rdx, rbx
lea rcx, [rbp + 0x128]
call fcn.14002b640
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Manage_Service:_Failed_to_query_service_status__error__d_
lea rcx, [rsp + 0x60]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x100]
call fcn.14002be60
nop
lea rcx, [rsp + 0x60]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x100]
call fcn.140028cd0
jmp 0x1400363f8
mov edi, dword [rbp - 0x7c]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rsi
call fcn.14002ce60
mov eax, edi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret