Function at 0x140065318
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x1400ade58]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_OpenSCManagerA]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x1400653bc
cmp dword [0x1400ac158], 5
jbe 0x1400653b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
and dword [rbp + 0x13], esi
lea rdx, [0x14009e2b7]
mov dword [rbp - 0x39], eax
lea rcx, [0x1400ac158]
lea rax, [rbp - 0x39]
mov dword [rbp + 0xf], 4
mov qword [rbp + 7], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
call fcn.1400017fc
xor al, al
jmp 0x14006555e
xor r14d, r14d
lea rbx, str.rpcss
mov rdx, qword [rbx]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x140065444
cmp dword [0x1400ac158], 5
jbe 0x14006553c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
and dword [rbp + 0x43], r15d
lea rdx, [0x14009e295]
mov dword [rbp - 0x39], eax
lea rcx, [0x1400ac158]
lea rax, [rbp - 0x39]
mov dword [rbp + 0x3f], 4
mov qword [rbp + 0x37], rax
xor r9d, r9d
lea rax, [rbp + 0x17]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
call fcn.1400017fc
jmp 0x14006553c
xor eax, eax
lea r8, [rbp - 0x19]
xorps xmm0, xmm0
mov dword [rbp + 7], eax
lea rax, [rbp - 0x21]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, r15
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
nop dword [rax + rax]
test eax, eax
je 0x1400654d8
mov ecx, dword [rbp + 3]
call fcn.140065590
test al, al
jne 0x14006549e
cmp dword [0x1400ac158], 5
jbe 0x14006552d
lea rdx, [0x14009e25a]
jmp 0x1400654b2
cmp dword [0x1400ac158], 5
jbe 0x14006552d
lea rdx, [0x14009e3a4]
mov rax, qword [rbx]
mov qword [rbp - 0x29], rax
mov eax, dword [rbp + 3]
mov dword [rbp - 0x35], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x35]
mov qword [rsp + 0x20], rax
call fcn.140003030
jmp 0x14006552d
cmp dword [0x1400ac158], 5
jbe 0x14006552d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
and dword [rbp + 0x43], 0
lea rdx, [0x14009e314]
mov dword [rbp - 0x31], eax
lea rcx, [0x1400ac158]
lea rax, [rbp - 0x31]
mov dword [rbp + 0x3f], 4
mov qword [rbp + 0x37], rax
xor r9d, r9d
lea rax, [rbp + 0x17]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
call fcn.1400017fc
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
inc r14d
add rbx, 8
cmp r14d, 1
jb 0x1400653c6
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14007c650
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret