Function at 0x180250480
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 [0x1804e0010]
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 [0x1803f7240]
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.180005cd0
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 0x18025054f
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x180250713
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18025070e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18025070e
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 0x18025065a
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 0x1802505cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802505c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802505c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
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.1802395d0
test al, al
je 0x180250c68
test rdi, rdi
je 0x180250613
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.180251650
test al, al
jne 0x180250c68
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x21], xmm1
mov word [rbp - 0x31], r12w
mov r8d, 0xa
lea rdx, str.PicDefault
lea rcx, [rbp - 0x31]
call fcn.180005cd0
nop
xor bl, bl
mov byte [rbp - 0x49], bl
test rdi, rdi
jne 0x180250b37
xor sil, sil
jmp 0x180250b51
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, rsi
test eax, eax
jne 0x1802506c0
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 0x180250713
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18025070e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18025070e
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 0x180250713
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18025070e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18025070e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
call fcn.180252770
test al, al
jne 0x1802505dd
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 [0x1803f7240]
movdqu xmmword [rbp - 0x19], xmm1
mov word [rbp - 0x29], r12w
mov r8d, 3
lea rdx, [0x1803e0b20]
lea rcx, [rbp - 0x29]
call fcn.180005cd0
nop
mov rdx, qword [rbp - 1]
cmp qword [rbp + 7], rdx
je 0x1802507b7
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 [0x1803f7240]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r12w
add qword [rbp - 1], 0x28
jmp 0x1802507c5
lea r8, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.1802523b0
nop
lea rcx, [rbp - 0x29]
call fcn.180005c50
test rdi, rdi
je 0x1802507e7
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.180251650
test al, al
jne 0x1802508c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x21], xmm1
mov word [rbp - 0x31], r12w
mov r8d, 0xa
lea rdx, str.PdfDefault
lea rcx, [rbp - 0x31]
call fcn.180005cd0
nop
xor bl, bl
mov byte [rbp - 0x49], bl
test rdi, rdi
jne 0x180250827
xor sil, sil
jmp 0x180250841
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rdi
call fcn.180250d30
movzx esi, al
movzx ebx, byte [rbp - 0x49]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x180250884
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18025087f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18025087f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
test bl, bl
je 0x1802508b7
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.180251c20
test sil, sil
jne 0x180250a94
mov rsi, qword [rbp - 1]
mov rbx, qword [rbp - 9]
mov qword [rbp - 0x41], rbx
cmp rbx, rsi
je 0x1802508eb
lea rcx, [rbx + 8]
call fcn.180005c50
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rsi
jne 0x1802508d1
mov rbx, qword [rbp - 9]
mov qword [rbp - 1], rbx
lea r8, [0x1804e3340]
lea rdx, [0x1804e2cb0]
lea rcx, [rbp - 9]
call fcn.18023b670
test rdi, rdi
je 0x18025091f
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.180251650
test al, al
jne 0x180250a02
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x21], xmm1
mov word [rbp - 0x31], r12w
mov r8d, 0xc
lea rdx, str.ImageDefault
lea rcx, [rbp - 0x31]
call fcn.180005cd0
nop
xor bl, bl
mov byte [rbp - 0x49], bl
test rdi, rdi
jne 0x18025095f
xor sil, sil
jmp 0x180250979
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rdi
call fcn.180250d30
movzx esi, al
movzx ebx, byte [rbp - 0x49]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1802509bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802509b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802509b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
test bl, bl
je 0x1802509f9
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 0x1802509f9
mov rax, qword [rcx]
call qword [rax + 0x10]
test sil, sil
jne 0x180250a94
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x180250d02
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x180250a3a
nop dword [rax]
lea rcx, [rbx + 8]
call fcn.180005c50
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x180250a20
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 0x180250cee
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180250cee
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 0x180250b30
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x180250aca
nop
lea rcx, [rbx + 8]
call fcn.180005c50
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x180250ab0
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 0x180250b1c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180250b1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180393fb0
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r12
mov al, 1
jmp 0x180250d04
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rdi
call fcn.180250d30
movzx esi, al
movzx ebx, byte [rbp - 0x49]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x180250b94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180250b8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180250b8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
test bl, bl
je 0x180250bd1
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 0x180250bd1
mov rax, qword [rcx]
call qword [rax + 0x10]
test sil, sil
je 0x180250c68
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x180250b30
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x180250c0e
lea rcx, [rbx + 8]
call fcn.180005c50
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x180250bf4
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 0x180250b1c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180250b1c
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 0x180250d02
mov rdi, qword [rbp - 1]
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
je 0x180250c9c
lea rcx, [rbx + 8]
call fcn.180005c50
add rbx, 0x28
mov qword [rbp - 0x41], rbx
cmp rbx, rdi
jne 0x180250c82
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 0x180250cee
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180250cee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180393fb0
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.180393f50
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret