Function at 0x475c70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov rbx, rcx
call fcn.004762f0
xor eax, eax
xorps xmm0, xmm0
xor edx, edx
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x48], eax
movups xmmword [rsp + 0x30], xmm0
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x475d04
mov edx, 0x86
lea rcx, [0x004d26c0]
call fcn.004036d0
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdi, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceServiceInstaller.cpp
mov r8d, 0x90
lea rdx, [rdi + rbx*2]
mov dword [rsp + 0x20], eax
lea r9, str.OpenSCManager_failed_w_err_0x_08lx_n
lea ecx, [rbp + 4]
call fcn.0044a600
jmp 0x475f0e
mov r8d, 0x10024
mov qword [rsp + 0x78], rsi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x475d69
mov edx, 0x86
lea rcx, [0x004d26c0]
call fcn.004036d0
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdi, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceServiceInstaller.cpp
mov r8d, 0x99
lea rdx, [rdi + rbx*2]
mov dword [rsp + 0x20], eax
lea r9, str.OpenService_failed_w_err_0x_08lx_n
lea ecx, [rsi + 4]
call fcn.0044a600
mov rcx, rbp
jmp 0x475f03
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
lea rdi, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceServiceInstaller.cpp
test eax, eax
je 0x475e80
mov edx, 0x86
lea rcx, [0x004d26c0]
call fcn.004036d0
lea r9, str.Stopping__s.
mov qword [rsp + 0x20], rbx
mov ecx, 4
mov r8d, 0xa0
lea rdx, [rdi + rax*2]
call fcn.0044a600
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x475e32
nop dword [rax]
mov eax, dword [rsp + 0x34]
cmp eax, 3
jne 0x475e36
mov edx, 0x86
lea rcx, [0x004d26c0]
call fcn.004036d0
lea r9, [0x004ba91c]
mov ecx, 4
mov r8d, 0xa7
lea rdx, [rdi + rax*2]
call fcn.0044a600
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x475de0
mov eax, dword [rsp + 0x34]
lea rcx, [0x004d26c0]
mov edx, 0x86
cmp eax, 1
jne 0x475e5b
call fcn.004036d0
lea r9, str._n_s_is_stopped._n
mov r8d, VarDecAdd
jmp 0x475e6d
call fcn.004036d0
lea r9, str._n_s_failed_to_stop._n
mov r8d, 0xb3
lea rdx, [rdi + rax*2]
mov qword [rsp + 0x20], rbx
mov ecx, 4
call fcn.0044a600
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x475ebe
mov edx, 0x86
lea rcx, [0x004d26c0]
call fcn.004036d0
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rdi + rbx*2]
lea r9, str.DeleteService_failed_w_err_0x_08lx_n
mov r8d, 0xba
jmp 0x475eed
mov rcx, rbx
call fcn.00476110
mov edx, 0x86
lea rcx, [0x004d26c0]
call fcn.004036d0
mov qword [rsp + 0x20], rbx
lea r9, str._s_is_removed._n
mov r8d, 0xc2
lea rdx, [rdi + rax*2]
mov ecx, 4
call fcn.0044a600
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00479310
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret