Function at 0x140079320
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140325af8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
xor dil, dil
cmp qword [rcx + 0x18], 0
jne 0x140079368
xor al, al
jmp 0x140079542
xor r15d, r15d
mov qword [rbp - 0x38], r15
mov r8d, 0x80000000
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x38], rax
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.1400192a0
test al, al
je 0x14007939f
xor dil, dil
jmp 0x140079535
mov qword [rbp - 0x40], r15
lea rbx, [rsi + 8]
cmp qword [rbx + 0x18], 8
jb 0x1400793b1
mov rbx, qword [rbx]
lea rcx, [rbp - 0x38]
call fcn.1400192b0
mov r8d, 5
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x40], rax
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400192a0
test al, al
je 0x1400793f9
lea rcx, [rbp - 0x38]
call fcn.1400192b0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor dil, dil
jmp 0x14007952b
mov r14d, r15d
mov dword [rbp - 0x48], r15d
mov rbx, r15
lea rcx, [rbp - 0x40]
call fcn.1400192b0
mov rcx, rax
lea r9, [rbp - 0x48]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14007944f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140079506
mov r14d, dword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, r14d
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
lea rcx, [rbp - 0x40]
call fcn.1400192b0
mov rcx, rax
lea r9, [rbp - 0x48]
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140079506
test rbx, rbx
je 0x140079494
cmp dword [rbx + 4], 4
jne 0x140079494
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140079506
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [rbp - 0x48], r15d
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
lea rcx, [rbp - 0x40]
call fcn.1400192b0
mov rcx, rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140079506
cmp dword [rbp - 0x2c], 4
jne 0x140079506
mov eax, dword [rbp - 0x14]
mov dword [rsi + 0x50], eax
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dil, 1
lea rcx, [rbp - 0x38]
call fcn.1400192b0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rbp - 0x40]
call fcn.1400192b0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rbp - 0x40]
call fcn.140019270
nop
lea rcx, [rbp - 0x38]
call fcn.140019270
movzx eax, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401d9c30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret