Function at 0x1400419b0
Capabilities:
Check if file exists
Query service status

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor bl, bl
mov rdi, qword [rdx]
mov r14d, 1
mov r8d, r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
jne 0x140041a95
lea rcx, [rsp + 0x50]
call fcn.140011c30
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Service_Manager::Get_Scm_And_SvrHandle:_fail_to_Open_SC_Manager._error
lea rcx, [rsp + 0x60]
call fcn.140013440
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140089628]
call fcn.140013250
mov rcx, rax
lea rdx, str.Hwa::Ux::GetScmAndSvrHandle
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089624]
call fcn.140013250
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [r14 + 3]
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.1400094c0
cmp r14d, 2
sete al
jmp 0x140041c5d
mov r8d, 5
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140041b4b
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rsp + 0x50]
call fcn.140011c30
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Servic_eManager::Get_Scm_And_SvrHandle:_fail_to_Open_Service._error
lea rcx, [rsp + 0x60]
call fcn.140013440
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140089628]
call fcn.140013250
mov rcx, rax
lea rdx, str.Hwa::Ux::GetScmAndSvrHandle
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089624]
call fcn.140013250
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [rbp + 4]
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.1400094c0
mov r14d, 2
cmp r14d, r14d
sete al
jmp 0x140041c5d
lea rdx, [0x1400890a8]
mov ecx, 0x400
call fcn.14006be38
mov rsi, rax
test rax, rax
jne 0x140041bd1
lea rcx, [rsp + 0x50]
call fcn.140011c30
nop
lea rdx, str.fail_to_new_configBuf
lea rcx, [rsp + 0x60]
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089628]
call fcn.140013250
mov rcx, rax
lea rdx, str.Hwa::Ux::HwaFrameWnd::IsPopUpMainServiceFixTip
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089624]
call fcn.140013250
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [rsi + 4]
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.1400094c0
jmp 0x140041c3b
mov rdi, rsi
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x28]
mov r8d, 0x400
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140041c3b
cmp dword [rsi + 4], 4
jne 0x140041c08
movzx ebx, r14b
jmp 0x140041c3b
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140041c3b
movzx ebx, bl
cmp dword [rsp + 0x34], r14d
cmove ebx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x140041c5a
mov rcx, rsi
call fcn.14006ba9c
movzx eax, bl
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14006b6b0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret