Function at 0x140048b4c
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r12, rdx
mov rbx, rcx
xor esi, esi
and dword [rax + 0x18], esi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor r13d, r13d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140048bb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenSCManager_is_failed._ErrorCode__0x_1_lx__n
lea rdx, str.IsServiceRunning
mov r9d, eax
mov ecx, 2
call fcn.140009480
xor eax, eax
jmp 0x140048e1c
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140048c0c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140048bfd
lea r8, str._1_s__does_not_exist._n
lea rdx, str.IsServiceRunning
lea ecx, [rbp + 2]
mov r9, rbx
call fcn.140009480
jmp 0x140048bab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenService_is_failed._ErrorCode__0x_1_lx__n
jmp 0x140048b97
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140048de2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140048db4
mov ebx, dword [rsp + 0x70]
lea r8d, [rax - 0x3f]
lea rdx, str...CommonNTService.cpp
mov rcx, rbx
call fcn.140048afc
mov rsi, rax
test rax, rax
je 0x140048de2
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140048c27
mov r9, qword [rsi + 0x38]
lea rbx, str.IsServiceRunning
lea r8, str.Service______1_s__n
mov rdx, rbx
mov ecx, 4
call fcn.140009480
mov r9d, dword [rsi]
lea r8, str.Type_________1_lu__n
mov rdx, rbx
mov ecx, 4
call fcn.140009480
mov r9d, dword [rsi + 4]
lea r8, str.Start_Type___1_lu__n
mov rdx, rbx
mov ecx, 4
call fcn.140009480
test r12, r12
je 0x140048ccb
mov eax, dword [rsi + 4]
mov dword [r12], eax
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140048cff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.QueryServiceStatus_is_failed._ErrorCode__0x_1_lx__n
mov rdx, rbx
mov r9d, eax
mov ecx, 2
call fcn.140009480
jmp 0x140048dfa
cmp dword [rsp + 0x24], 4
mov rdx, rbx
je 0x140048d15
lea r8, str.Service_is_not_running._n
jmp 0x140048df0
mov r9, qword [rsi + 0x38]
mov r13d, 1
lea r8, str.__1_s__._n
lea r12d, [r13 + 4]
mov ecx, r12d
call fcn.140009480
mov r9d, dword [rsp + 0x24]
lea r8, str.Current_State:__1_lu__n
mov rdx, rbx
mov ecx, r12d
call fcn.140009480
mov r9d, dword [rsp + 0x2c]
lea r8, str.Exit_Code:__1_lu__n
mov rdx, rbx
mov ecx, r12d
call fcn.140009480
mov r9d, dword [rsp + 0x30]
lea r8, str.Service_Specific_Exit_Code:__1_lu__n
mov rdx, rbx
mov ecx, r12d
call fcn.140009480
mov r9d, dword [rsp + 0x34]
lea r8, str.Check_Point:__1_lu__n
mov rdx, rbx
mov ecx, r12d
call fcn.140009480
mov r9d, dword [rsp + 0x38]
lea r8, str.Wait_Hint:__1_lu__n
mov rdx, rbx
mov ecx, r12d
call fcn.140009480
lea r8, str._n
mov rdx, rbx
mov ecx, r12d
jmp 0x140048df5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.QueryServiceConfig_failed._ErrorCode__0x_1_lx__n
lea rdx, str.IsServiceRunning
mov r9d, eax
mov ecx, 2
call fcn.140009480
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
jmp 0x140048dfa
lea rdx, str.IsServiceRunning
lea r8, str.memory_cannot_be_allocated._n
mov ecx, 2
call fcn.140009480
mov rcx, rsi
call fcn.140048b24
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140048e19
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, r13d
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret