Function at 0x14004c1d0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x14004c273
mov r8d, 4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
jne 0x14004c233
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14004c273
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_41
lea r8, [rbp - 0x19]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x14004c273
cmp dword [rbp - 0x15], 4
je 0x14004c5a4
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14004c290
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.14005f7b0
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
mov rax, qword [rbp - 9]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x19]
cmova rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x79]
call fcn.14005f280
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14004c2e0
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14005f7b0
nop
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rdx, qword [rbp - 0x39]
mov rax, qword [rbp - 0x29]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x39]
cmova rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14005f280
nop
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rcx, qword [rbp - 0x59]
call fcn.14004bfa0
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0xf
cmova rcx, qword [rbp - 0x79]
lea rdx, [rbp + 0xf]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
xor r14d, r14d
test eax, eax
je 0x14004c44d
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r14
mov rdi, qword [rbp - 0x69]
lea rsi, [rbp - 0x79]
cmp qword [rbp - 0x61], 0xf
cmova rsi, qword [rbp - 0x79]
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
ja 0x14004c5c1
cmp rdi, 0xf
ja 0x14004c3ab
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0xf], xmm0
jmp 0x14004c43f
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x14004c3e3
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140118acc
mov rcx, rax
test rax, rax
je 0x14004c418
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14004c424
mov rbx, rax
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x14004c400
mov rax, r14
jmp 0x14004c424
cmp rcx, 0x1000
jb 0x14004c41f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14004c5c7
jmp 0x14004c3c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118acc
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, 0x67
lea rcx, [rbp + 0xf]
call fcn.14004ae30
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rdx, qword [rbp - 0x59]
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0xf
cmova rcx, qword [rbp - 0x79]
call fcn.14004c010
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14004c4ad
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c4a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c4a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118e20
movdqa xmm0, xmmword [0x140157390]
movdqu xmmword [rbp - 0x49], xmm0
mov byte [rbp - 0x59], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14004c501
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c4fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c4fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118e20
movdqa xmm0, xmmword [0x140157370]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x14004c551
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c54c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c54c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118e20
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x79], 0
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x14004c5a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c59f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c59f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118e20
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140031920
nop
call fcn.14000bf40
int3