Function at 0x14009c590
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, r8
mov r12d, edx
lea rdx, str.OperateService::ControlPrintBuddyService
lea rcx, [rbp - 0x29]
call fcn.14001abe0
nop
lea r13, [0x1402a8360]
lea rsi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14009c668
test byte [rcx + 0x1c], 1
je 0x14009c628
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x45
lea r8, [0x140259e30]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14009c668
test byte [rcx + 0x1c], 1
je 0x14009c668
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
movzx eax, word [r15]
mov edx, 0x46
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
lea r8, [0x140259e30]
mov rcx, qword [rcx + 0x10]
call fcn.1400515a0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], eax
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x14009c74f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r10, qword [0x1402a8360]
cmp r10, r13
je 0x14009c6f5
test byte [r10 + 0x1c], 2
je 0x14009c6f5
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x29]
call fcn.14001b0b0
lea edx, [r14 + 0x47]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov r10, qword [0x1402a8360]
mov byte [rbp - 0x21], 1
cmp edi, 0x78
jne 0x14009c731
xor edi, edi
mov word [r15], di
lea ebx, [rdi + 1]
mov r10, qword [0x1402a8360]
cmp r10, r13
je 0x14009caba
test byte [r10 + 0x1c], bl
je 0x14009caba
lea edx, [rdi + 0x48]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
jmp 0x14009ca90
xor edi, edi
cmp r10, r13
je 0x14009ca50
test byte [r10 + 0x1c], 1
je 0x14009ca50
lea edx, [rdi + 0x49]
jmp 0x14009ca1a
mov r8d, 0xf01ff
lea rdx, str.NBAgntNT
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14009c7f5
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x14009c7c1
test byte [rax + 0x1c], 2
je 0x14009c7c1
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x29]
call fcn.14001b0b0
lea edx, [rdi + 0x4a]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rbp - 0x21], 1
mov ebx, 1
mov r10, qword [0x1402a8360]
cmp r10, r13
je 0x14009caba
test byte [r10 + 0x1c], bl
je 0x14009caba
lea edx, [rbx + 0x4a]
jmp 0x14009ca84
mov ebx, 1
mov rcx, rdi
test r12d, r12d
je 0x14009c8a6
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14009ca58
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x14009c86b
test byte [rax + 0x1c], 2
je 0x14009c86b
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x29]
call fcn.14001b0b0
mov edx, 0x4c
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rbp - 0x21], 1
xor edi, edi
mov r10, qword [0x1402a8360]
cmp r10, r13
je 0x14009ca50
test byte [r10 + 0x1c], 1
je 0x14009ca50
lea edx, [rdi + 0x4d]
jmp 0x14009ca1a
lea rdx, [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14009c945
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x14009c90a
test byte [rax + 0x1c], 2
je 0x14009c90a
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x29]
call fcn.14001b0b0
mov edx, 0x4e
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rbp - 0x21], 1
xor edi, edi
mov r10, qword [0x1402a8360]
cmp r10, r13
je 0x14009ca50
test byte [r10 + 0x1c], 1
je 0x14009ca50
lea edx, [rdi + 0x4f]
jmp 0x14009ca1a
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14009c97a
test byte [rcx + 0x1c], 4
je 0x14009c97a
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov eax, dword [rbp - 0x45]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140099980
cmp dword [rbp - 0x45], ebx
je 0x14009ca58
lea r8, [rbp - 0x49]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
je 0x14009ca54
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x14009c9ec
test byte [rax + 0x1c], 2
je 0x14009c9ec
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x29]
call fcn.14001b0b0
mov edx, 0x51
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rbp - 0x21], 1
xor edi, edi
mov r10, qword [0x1402a8360]
cmp r10, r13
je 0x14009ca50
test byte [r10 + 0x1c], 1
je 0x14009ca50
lea edx, [rdi + 0x52]
mov r9, rsi
cmp qword [0x1402bbdc8], 8
movzx eax, word [r15]
cmovae r9, qword [0x1402bbdb0]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
lea r8, [0x140259e30]
mov rcx, qword [r10 + 0x10]
call fcn.1400515a0
mov r10, qword [0x1402a8360]
mov ebx, edi
jmp 0x14009caba
mov word [r15], bx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rbp - 0x21], bl
mov r10, qword [0x1402a8360]
cmp r10, r13
je 0x14009caba
test byte [r10 + 0x1c], bl
je 0x14009caba
mov edx, 0x53
mov dword [rsp + 0x28], ebx
movzx eax, word [r15]
mov dword [rsp + 0x20], eax
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea r8, [0x140259e30]
mov rcx, qword [r10 + 0x10]
call fcn.1400515a0
mov r10, qword [0x1402a8360]
lea rax, vtable.WppTrace.0
mov qword [rbp - 0x29], rax
cmp byte [rbp - 0x21], 0
jne 0x14009cb12
cmp r10, r13
je 0x14009cb12
test byte [r10 + 0x1c], 1
je 0x14009cb12
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
cmp qword [0x1402bbdc8], 8
cmovae rsi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rsi
lea r8, [0x140252818]
mov rcx, qword [r10 + 0x10]
call fcn.140006c90
lea rcx, [rbp + 7]
call fcn.1400048a0
lea rcx, [rbp - 0x19]
call fcn.1400048a0
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret