Function at 0x180042610
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rbx, rcx
mov qword [rbp - 0x68], rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x180042653
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 1
mov rdx, qword [rbx + 0x10]
call fcn.180006990
cmp rax, 0xffffffffffffffff
je 0x18004289b
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
xor r15d, r15d
cmp rax, 0xffffffffffffffff
je 0x1800427eb
mov dword [rbp - 0x30], 0x130
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1800037a0
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1800424f0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rax, [rbp - 4]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800426d0
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.180002dd0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800424f0
mov r14, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x180042705
mov rax, qword [rax]
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x180042713
mov rdi, qword [rdi]
mov r8, rsi
cmp r14, rsi
cmovb r8, r14
mov rdx, rax
mov rcx, rdi
call sub.VCRUNTIME140D.dll_memcmp
mov edi, eax
test eax, eax
jne 0x180042741
cmp rsi, r14
jae 0x18004273a
mov edi, 0xffffffff
jmp 0x180042741
mov edi, r15d
seta dil
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18004277e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180042779
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004282a
call fcn.180112700
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x1800427c8
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800427c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180042831
call fcn.180112700
test edi, edi
je 0x180042838
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180042693
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1800429c8
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180042820
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180042894
mov rcx, r8
call fcn.180112700
jmp 0x1800429c8
call qword [sym.imp.ucrtbased.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ucrtbased.dll__invalid_parameter_noinfo_noreturn]
int3
mov edx, dword [rbp - 0x28]
lea rcx, [0x18049a410]
call fcn.180045c20
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rbp - 0x28]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1800429c6
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800429c1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1800429be
call qword [sym.imp.ucrtbased.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.ucrtbased.dll__invalid_parameter_noinfo_noreturn]
nop
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1800037a0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800424f0
cmp qword [rax + 0x18], 0xf
jbe 0x1800428cf
mov rax, qword [rax]
mov r8d, 4
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180042924
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004291f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004291f
call qword [sym.imp.ucrtbased.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180112700
movdqa xmm0, xmmword [0x1801cdc50]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x58], xmm1
movups xmmword [rbp - 0x48], xmm1
mov dword [rbp - 0x38], eax
xor r15d, r15d
mov dword [rbp - 0x60], r15d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [rbp - 0x3c]
lea rcx, [0x18049a410]
call fcn.180045c20
mov edi, dword [rbp - 0x3c]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1800429c6
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800429c1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180042a02
mov rcx, r8
call fcn.180112700
mov eax, edi
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r15
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.180111e20
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.ucrtbased.dll__invalid_parameter_noinfo_noreturn]
int3