Function at 0x14004ef20
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
xor r8d, r8d
lea rdx, [0x14010bc34]
lea rcx, [rsp + 0x48]
call fcn.140017c00
nop
lea rdx, [rsp + 0x28]
call fcn.14004f200
nop
lea rbx, [rsi + 0x430]
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov r10, qword [rsp + 0x40]
cmp r10, 8
cmovae rcx, r8
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14004efb8
mov r9, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rsp + 0x38]
jne 0x14004efe9
test rdx, rdx
je 0x14004f138
sub r9, rcx
nop
movzx eax, word [rcx]
cmp word [r9 + rcx], ax
jne 0x14004efe9
add rcx, 2
sub rdx, 1
jne 0x14004efd0
jmp 0x14004f138
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14004f0f2
mov rdx, qword [rsi]
mov rcx, rsi
mov rax, qword [rdx]
call qword [0x1400fac68]
mov rdx, rax
mov r8d, 0xf003f
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14004f0d3
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400c5120
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.1400c5120
lea r9, [rsp + 0x70]
lea r8, str.__s__102
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140017d20
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14004f0bf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync__SetServiceDescription___ChangeServiceConfig2_fail__0x_x
call fcn.140095ab0
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x14004f106
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync__SetServiceDescription___OpenService_fail__0x_x
call fcn.140095ab0
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x14004f106
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync__SetServiceDescription___OpenSCManager_fail__0x_x
call fcn.140095ab0
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x14004f12e
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140017c00
mov r8, qword [rsp + 0x28]
mov r10, qword [rsp + 0x40]
cmp r10, 8
jb 0x14004f173
lea rdx, [r10*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x14004f16b
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f1f4
mov rcx, r8
call fcn.1400c2470
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004f1c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f1c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f1ee
call fcn.1400c2470
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400c8b64
nop
call fcn.1400c8b64
nop
int3