Function at 0x140041700
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rsi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x58], eax
lea rdx, [rbp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400417d9
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
lea rbx, str.service_command.cpp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 0xcc
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.QueryServiceStatus_failed:
lea rcx, [rsp + 0x48]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.140030540
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
xor al, al
jmp 0x140041850
cmp dword [rbp + 0x44], 1
jne 0x140041874
call fcn.1400553d0
mov r8d, 3
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
lea rbx, str.service_command.cpp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 0xd2
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Service_is_already_stopped
lea rcx, [rsp + 0x48]
call fcn.1400244e0
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
mov al, 1
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14014f8e0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r8, [rbp + 0x40]
mov edx, 1
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
lea rbx, str.service_command.cpp
lea rdi, vtable.std::ios_base.0
test eax, eax
jne 0x14004190f
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 0xd9
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Failed_to_send_service_stop_event:
lea rcx, [rsp + 0x48]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.140030540
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
xor r14d, r14d
cmp dword [rbp + 0x44], 1
je 0x14004184e
nop dword [rax]
call fcn.1400553d0
mov r8d, 3
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 0xe0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Waiting_for_1_sec_before_querying_service_status...
lea rcx, [rsp + 0x48]
call fcn.1400244e0
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp r14d, dword [rsi + 8]
jge 0x140041a9a
lea rdx, [rbp + 0x40]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140041a22
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], 0xec
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Failed_to_query_service:
lea rcx, [rsp + 0x48]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.140030540
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
mov eax, dword [rbp + 0x44]
jmp 0x140041a2a
mov eax, dword [rbp + 0x44]
cmp eax, 1
je 0x140041a38
cmp eax, 1
jne 0x140041920
jmp 0x14004184e
call fcn.1400553d0
mov r8d, 3
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], 0xf2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Service_stopped_successfully
lea rcx, [rsp + 0x48]
call fcn.1400244e0
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
jmp 0x14004184e
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], 0xe6
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Timeout_while_waiting_for_service_to_stop
lea rcx, [rsp + 0x48]
call fcn.1400244e0
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
xor al, al
jmp 0x140041850