Function at 0x1800059c0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x110
mov rax, qword [0x180166080]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x180005a38
lea rdx, str.Failed_to_open_service_manager._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.18000e540
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x18000e720]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x180005b9c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x60]
call fcn.18000cf20
nop
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180005a8f
mov r8, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.18000da20
nop
lea rcx, [rsp + 0x60]
call fcn.18000ce30
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180005b14
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005b0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005b0f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180115b2c
movdqa xmm0, xmmword [0x18014c9f0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
test rbx, rbx
jne 0x180005b41
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.Failed_to_open_service._Error:
jmp 0x180005a01
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_41
lea r8, [rsp + 0xe0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
test eax, eax
jne 0x180005b86
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.Failed_to_query_service_status._Error:
jmp 0x180005a01
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.180115690
mov rbx, qword [rsp + 0x128]
add rsp, 0x110
pop rdi
ret