Function at 0x140021260
Capabilities:
Query service status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0x100
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rbp - 1], rax
mov r15, r9
mov r12d, r8d
mov rdi, rdx
mov qword [rsp + 0x28], rdx
mov qword [rbp - 0x79], rdx
mov r8d, dword [rbp + 0x7f]
xor r13b, r13b
xor ebx, ebx
mov esi, ebx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14002143a
cmp qword [rdx + 0x18], 8
jb 0x1400212cb
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x51], xmm1
movdqa xmmword [rbp - 0x41], xmm0
mov qword [rsp + 0x70], rbx
mov r8, rbx
lea rdx, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], rbx
je 0x140021329
mov qword [rsp + 0x38], rdx
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x38]
mov rcx, r14
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x31], rbx
test r8, r8
je 0x14002136c
mov qword [rbp - 0x69], rdx
mov rax, qword [r8 + 8]
mov qword [rbp - 0x61], rax
lea rbx, [rbp - 0x69]
mov qword [rbp - 0x31], rbx
lea rax, [rsp + 0x38]
cmp r8, rax
je 0x14002136c
mov edx, 0x10
mov rcx, r8
call fcn.1401218ec
mov rbx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x71]
test r14, r14
je 0x140021407
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x20], rax
mov bl, 1
mov r14d, dword [rbp + 0x77]
mov rdi, rax
nop dword [rax]
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov dword [rbp - 9], eax
lea rdx, [rbp - 0x21]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
cmovne esi, dword [rbp - 0x1d]
cmp esi, r12d
je 0x1400213e1
test r15, r15
je 0x1400213d6
mov edx, r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400213e4
xor bl, bl
jmp 0x1400213e4
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400213e4
mov r13b, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
test bl, bl
je 0x1400213fa
cmp esi, r12d
je 0x1400213fa
sub eax, edi
cmp eax, dword [rbp + 0x6f]
jb 0x140021390
mov rbx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x71]
mov rdi, qword [rsp + 0x28]
test rcx, rcx
je 0x14002141c
test rbx, rbx
je 0x1400214af
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x31]
test rbx, rbx
je 0x140021438
lea rax, [rbp - 0x69]
cmp rbx, rax
je 0x140021438
mov edx, 0x10
mov rcx, rbx
call fcn.1401218ec
nop
xor ebx, ebx
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140021475
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140021470
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400214b5
mov rcx, r8
call fcn.1401218ec
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
movzx eax, r13b
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140121cc0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ffb0c
nop
call fcn.1401431fc
int3