Function at 0x140006300
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14002f160]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov r14, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], eax
xor r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x20], 0x64
lea rcx, [rsp + 0x20]
call fcn.140002700
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400065cd
lea rdx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000637a
cmp dword [rbp - 0x34], 2
je 0x140006387
inc ebx
cmp ebx, 0x32
jge 0x140006587
jmp 0x140006350
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], eax
mov rax, qword [r14]
lea r8, [rbp - 0x60]
mov rdx, r15
mov rcx, r14
mov rax, qword [rax + 0x30]
call qword [0x1400202e0]
mov r8d, dword [rbp - 0x44]
test r8d, r8d
je 0x1400065f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___void____ptr64___int__void____ptr64_.0
mov qword [rsp + 0x50], rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x30], r12
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000645d
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x140006455
mov rax, qword [rcx]
lea rdx, [rbp - 8]
mov rax, qword [rax + 8]
call qword [0x1400202e0]
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000645d
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [0x1400202e0]
jmp 0x140006459
mov qword [rbp + 0x30], rcx
mov qword [rbp - 0x78], r12
mov rax, qword [rbp - 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140006551
mov rbx, r12
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x68], 0xfa
imul rax, qword [rsi], 0x3e8
test rax, rax
jle 0x1400065aa
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000665b
lea rdx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [rbp - 0x34]
test eax, eax
je 0x1400064b2
cmp ecx, 4
je 0x1400064e2
cmp ecx, 2
lea rcx, [rbp - 0x68]
jne 0x140006613
call fcn.140002700
add rbx, 0xfa
mov qword [rsp + 0x20], rbx
imul rax, qword [rsi], 0x3e8
cmp rbx, rax
jge 0x1400065aa
jmp 0x140006490
mov rdx, qword [rbp - 0x10]
lea rax, [rdx - 1]
mov rcx, qword [rbp + 0x30]
cmp rax, 0xfffffffffffffffd
ja 0x140006516
test rcx, rcx
je 0x140006512
mov qword [rbp - 0x68], rdx
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
mov rax, qword [rax + 0x10]
call qword [0x1400202e0]
mov rcx, qword [rbp + 0x30]
mov qword [rbp - 0x10], r12
test rcx, rcx
je 0x140006533
mov rax, qword [rcx]
lea rdx, [rbp - 8]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [0x1400202e0]
nop
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140008d50
add rsp, 0x150
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
call fcn.1400075a0
mov r8, rax
lea r9, str.No_process_found_for_the_started_service
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140003270
lea rdx, [0x14002daa8]
lea rcx, [rsp + 0x28]
call fcn.140009ad4
nop
lea rdx, str.Service_did_not_start_in_time.
lea rcx, [rsp + 0x28]
call fcn.140003040
lea rdx, [0x14002da50]
lea rcx, [rsp + 0x28]
call fcn.140009ad4
nop
lea rdx, str.The_service_did_not_start_in_time
lea rcx, [rsp + 0x28]
call fcn.140003040
lea rdx, [0x14002da50]
lea rcx, [rsp + 0x28]
call fcn.140009ad4
nop
lea rdx, str.sc_handle_not_initialized
lea rcx, [rsp + 0x28]
call fcn.140003040
lea rdx, [0x14002da50]
lea rcx, [rsp + 0x28]
call fcn.140009ad4
int3
lea rdx, str.No_process_found_for_the_started_service
lea rcx, [rsp + 0x28]
call fcn.140003040
lea rdx, [0x14002da50]
lea rcx, [rsp + 0x28]
call fcn.140009ad4
nop
lea r8, [rsp + 0x20]
mov rdx, rsi
call fcn.140001210
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400026f0
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140004560
lea rdx, str.The_service_process_did_not_start_in_time
lea rcx, [rsp + 0x28]
call fcn.140003040
lea rdx, [0x14002da50]
lea rcx, [rsp + 0x28]
call fcn.140009ad4
int3
lea rdx, str.sc_handle_not_initialized
lea rcx, [rsp + 0x28]
call fcn.140003040
lea rdx, [0x14002da50]
lea rcx, [rsp + 0x28]
call fcn.140009ad4
int3