Function at 0x472880
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor edi, edi
mov rbp, rcx
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x4c], edi
call fcn.004726a0
mov r14, rax
test rax, rax
jne 0x472974
movzx eax, byte [0x004d1969]
lea ebx, [rdi + 0x7a]
cmp al, 0x2f
je 0x4728eb
cmp al, 0x5c
je 0x4728eb
lfence
lea edx, [rdi + 0x78]
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceMain.cpp
call fcn.004036d0
mov r14, rax
jmp 0x4728ee
mov r14, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rsi, [0x004d16f0]
mov ecx, 1
mov qword [rsp + 0x20], rbp
lea rdx, [rsi + r14*2]
mov r8d, 0x176
lea r9, str.ERROR:_Failed_to_get_handle_of_service___s_._Error_code0x_08lx
call fcn.0044a600
movzx eax, byte [0x004d1969]
cmp al, 0x2f
je 0x472945
cmp al, 0x5c
je 0x472945
lfence
mov edx, 0x78
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceMain.cpp
call fcn.004036d0
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rdx, [rsi + rbx*2]
mov ecx, 1
mov qword [rsp + 0x20], rbp
lea r9, str.ERROR:_Failed_to_get_handle_of_service___s_._Error_code0x_08lx
mov r8d, 0x176
call fcn.0044b390
jmp 0x472b2f
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], 1
lea r8, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 2
mov qword [rsp + 0x60], 1
mov rcx, r14
mov qword [rsp + 0x68], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x30], 0x15180
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
cmp eax, 1
mov ebx, 0x7a
movzx eax, byte [0x004d1969]
je 0x472a93
mov qword [rsp + 0xa8], r15
cmp al, 0x2f
je 0x472a02
cmp al, 0x5c
je 0x472a02
lfence
lea edx, [rbx - 2]
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceMain.cpp
call fcn.004036d0
mov r15, rax
jmp 0x472a05
mov r15, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rsi, [0x004d16f0]
mov ecx, 1
mov qword [rsp + 0x20], rbp
lea rdx, [rsi + r15*2]
mov r8d, 0x199
lea r9, str.ERROR:_Failed_to_change_configuration_of_service___s_._Error_code0x_08lx
call fcn.0044a600
movzx eax, byte [0x004d1969]
mov r15, qword [rsp + 0xa8]
cmp al, 0x2f
je 0x472a64
cmp al, 0x5c
je 0x472a64
lfence
mov edx, 0x78
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceMain.cpp
call fcn.004036d0
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rdx, [rsi + rbx*2]
mov ecx, 1
mov qword [rsp + 0x20], rbp
lea r9, str.ERROR:_Failed_to_change_configuration_of_service___s_._Error_code0x_08lx
mov r8d, 0x199
call fcn.0044b390
jmp 0x472b26
cmp al, 0x2f
je 0x472ab1
cmp al, 0x5c
je 0x472ab1
lfence
mov edx, 0x78
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceMain.cpp
call fcn.004036d0
jmp 0x472ab4
mov rax, rbx
lea rsi, [0x004d16f0]
mov qword [rsp + 0x20], rbp
lea rdx, [rsi + rax*2]
mov ecx, 1
lea r9, str.Change_configuration_of_service___s__successfully.
mov r8d, 0x19d
call fcn.0044a600
movzx eax, byte [0x004d1969]
cmp al, 0x2f
je 0x472b01
cmp al, 0x5c
je 0x472b01
lfence
mov edx, 0x78
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceServiceMain.cpp
call fcn.004036d0
mov rbx, rax
lea rdx, [rsi + rbx*2]
mov qword [rsp + 0x20], rbp
lea r9, str.Change_configuration_of_service___s__successfully.
mov ecx, 1
mov r8d, 0x19d
call fcn.0044b390
mov edi, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.00479310
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret