Function at 0x1800d0640
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r9
mov r15, r8
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm1
xor r12d, r12d
mov word [rbp - 0x31], r12w
lea r8d, [r12 + 4]
lea rdx, str.ucpd
lea rcx, [rbp - 0x31]
call fcn.1800055c0
nop
lea r8d, [r12 + 1]
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1800d070f
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d08d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d08ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d08ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdx, qword [rbp - 0x31]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1800d081a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d078b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d0786
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0786
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
mov qword [rbp - 9], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
lea rcx, [rbp - 9]
call fcn.1800dd980
test al, al
je 0x1800d0e28
test rdi, rdi
je 0x1800d07d3
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.1800d1840
test al, al
jne 0x1800d0e28
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm1
mov word [rbp - 0x31], r12w
mov r8d, 0xa
lea rdx, str.PicDefault
lea rcx, [rbp - 0x31]
call fcn.1800055c0
nop
xor bl, bl
mov byte [rbp - 0x49], bl
test rdi, rdi
jne 0x1800d0cf7
xor sil, sil
jmp 0x1800d0d11
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, rsi
test eax, eax
jne 0x1800d0880
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d08d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d08ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d08ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d08d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d08ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d08ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
call fcn.1800d9d80
test al, al
jne 0x1800d079d
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r12
mov dword [rbp - 0x31], 0x64
movdqu xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x19], xmm1
mov word [rbp - 0x29], r12w
mov r8d, 3
lea rdx, [0x1801bdd50]
lea rcx, [rbp - 0x29]
call fcn.1800055c0
nop
mov rdx, qword [rbp - 1]
cmp qword [rbp + 7], rdx
je 0x1800d0977
mov qword [rbp - 0x41], rdx
mov eax, dword [rbp - 0x31]
mov dword [rdx], eax
mov qword [rdx + 0x18], r12
mov qword [rdx + 0x20], r12
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rdx + 8], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rdx + 0x18], xmm1
movdqa xmm0, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r12w
add qword [rbp - 1], 0x28
jmp 0x1800d0985
lea r8, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.1800d26d0
nop
lea rcx, [rbp - 0x29]
call fcn.180005540
test rdi, rdi
je 0x1800d09a7
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.1800d1840
test al, al
jne 0x1800d0a80
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm1
mov word [rbp - 0x31], r12w
mov r8d, 0xa
lea rdx, str.PdfDefault
lea rcx, [rbp - 0x31]
call fcn.1800055c0
nop
xor bl, bl
mov byte [rbp - 0x49], bl
test rdi, rdi
jne 0x1800d09e7
xor sil, sil
jmp 0x1800d0a01
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rdi
call fcn.1800d0f20
movzx esi, al
movzx ebx, byte [rbp - 0x49]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d0a44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d0a3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0a3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
test bl, bl
je 0x1800d0a77
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0xa8]
call fcn.1800d1e10
test sil, sil
jne 0x1800d0c54
mov rsi, qword [rbp - 1]
mov rbx, qword [rbp - 9]
mov qword [rbp - 0x41], rbx
cmp rbx, rsi
je 0x1800d0aab
lea rcx, [rbx + 8]
call fcn.180005540
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rsi
jne 0x1800d0a91
mov rbx, qword [rbp - 9]
mov qword [rbp - 1], rbx
lea r8, [0x180224870]
lea rdx, [0x1802241e0]
lea rcx, [rbp - 9]
call fcn.1800ddc40
test rdi, rdi
je 0x1800d0adf
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.1800d1840
test al, al
jne 0x1800d0bc2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm1
mov word [rbp - 0x31], r12w
mov r8d, InitCommonControls
lea rdx, str.ImageDefault
lea rcx, [rbp - 0x31]
call fcn.1800055c0
nop
xor bl, bl
mov byte [rbp - 0x49], bl
test rdi, rdi
jne 0x1800d0b1f
xor sil, sil
jmp 0x1800d0b39
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rdi
call fcn.1800d0f20
movzx esi, al
movzx ebx, byte [rbp - 0x49]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d0b7c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d0b77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0b77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
test bl, bl
je 0x1800d0bb9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0xa8]
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1800d0bb9
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
test sil, sil
jne 0x1800d0c54
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x1800d0ec2
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x1800d0bfa
nop dword [rax]
lea rcx, [rbx + 8]
call fcn.180005540
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x1800d0be0
mov rbx, qword [rbp - 9]
mov rcx, qword [rbp + 7]
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800d0eae
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0eae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x1800d0cf0
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x1800d0c8a
nop
lea rcx, [rbx + 8]
call fcn.180005540
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x1800d0c70
mov rbx, qword [rbp - 9]
mov rcx, qword [rbp + 7]
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800d0cdc
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0cdc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.18017df04
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r12
mov al, 1
jmp 0x1800d0ec4
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rdi
call fcn.1800d0f20
movzx esi, al
movzx ebx, byte [rbp - 0x49]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d0d54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d0d4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0d4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
test bl, bl
je 0x1800d0d91
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0xa8]
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1800d0d91
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
test sil, sil
je 0x1800d0e28
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x1800d0cf0
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x1800d0dce
lea rcx, [rbx + 8]
call fcn.180005540
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x1800d0db4
mov rbx, qword [rbp - 9]
mov rcx, qword [rbp + 7]
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800d0cdc
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0cdc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x1800d0ec2
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x1800d0e5c
lea rcx, [rbx + 8]
call fcn.180005540
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x1800d0e42
mov rbx, qword [rbp - 9]
mov rcx, qword [rbp + 7]
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800d0eae
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d0eae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.18017df04
xorps xmm0, xmm0
mov qword [rbp + 7], r12
movdqu xmmword [rbp - 9], xmm0
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret