Function at 0x140052f38
Capabilities:
Stop service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r13d, edx
mov r14, rcx
lea rdi, str..._nsService.cpp
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r15, [r14 + 0x40]
mov rbx, qword [r15]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x330
lea rdx, str.Stop___s:_d_
mov rcx, r15
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [r14 + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022a08
nop
mov rax, qword [r14]
mov rcx, r14
call qword [rax + pe_nt_image_headers64]
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r15]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x335
mov r8d, r13d
lea rdx, str.Timeout_lu___s:_d_
mov rcx, r15
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0xa8]
mov esi, eax
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rdi, qword [r15]
lea r12, [r14 + 0x270]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rbx, rax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x338
mov qword [rsp + 0x20], rbx
mov r9d, esi
lea rdx, str.Service__s_.CurrentStatus_d___s:_d_
mov rcx, r15
call qword [rdi + 0x148]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
cmp esi, 1
je 0x140053274
xor edx, edx
lea r8d, [rdx + 0x1c]
lea rcx, [rbp + 0x80]
call fcn.14005b500
lea rcx, [r14 + 0x2f0]
call fcn.14004cbe8
lea r8, [rbp + 0x80]
mov edx, 1
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140053153
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rdi, qword [r15]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rbx, rax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x20], 0x341
mov r9, rbx
lea rdx, str.Stopping_Service__s____s:_d_
mov rcx, r15
call qword [rdi + 0x148]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
test r13d, r13d
je 0x140053274
mov rax, qword [r14]
mov r8d, r13d
mov edx, 1
mov rcx, r14
call qword [rax + 0xb0]
jmp 0x140053274
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0x426
je 0x140053274
lea r13, str..._nsService.cpp
mov rdx, r13
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rsi, qword [r15]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rdi, rax
mov ecx, r14d
call fcn.140023e14
mov ebx, eax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x34d
mov qword [rsp + 0x20], rdi
mov r9d, ebx
lea rdx, str.ControlService__s_0x_x___s:_d_
mov rcx, r15
call qword [rsi + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
xor ebx, ebx
mov qword [rbp + 0x50], rbx
mov word [rbp + 0x40], bx
cmp word [0x1400a6650], bx
jne 0x1400531f0
mov eax, ebx
jmp 0x1400531fc
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], rbx
mov byte [rbp + 0x60], bl
mov rcx, r13
call fcn.1400657f0
mov r8, rax
mov rdx, r13
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r14d
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x34e
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0xa0]
call fcn.1400230c8
lea rdx, [0x1400c7a90]
lea rcx, [rbp + 0xa0]
call fcn.14005ba94
nop
lea rcx, [rbp]
call fcn.140022a60
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140058630
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret