Function at 0x4762f0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r14d, edx
mov rbx, rcx
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 0x47659f
mov r8d, 0xf01ff
mov qword [rsp + 0x4d8], rsi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x47636d
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor eax, eax
jmp 0x476597
xor ebx, ebx
xorps xmm0, xmm0
lea edx, [rbx + 0x40]
test r14d, r14d
je 0x476480
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x54], 0xa
mov qword [rsp + 0x5c], 0xa
mov dword [rsp + 0x64], 0xa
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
lfence
lea rcx, [rsp + 0x20]
call fcn.004050e0
mov rax, qword [rsp + 0x20]
lea edx, [rbx + 2]
xorps xmm0, xmm0
mov rcx, rsi
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov r8, qword [rsp + 0x20]
add rax, 0x40
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov dword [r8], 0x15180
mov qword [r8 + 0x10], rbx
mov qword [r8 + 8], rbx
mov dword [r8 + 0x18], 3
mov qword [r8 + 0x20], rax
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x476435
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.004a2370
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str._n_ServiceHelper__ChangeServiceConfig_failed_code___d
lea rcx, [rbp - 0x80]
call fcn.00456b90
jmp 0x47643a
mov ebx, 1
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x476583
mov rdx, qword [rsp + 0x30]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x47657e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x47657e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x6c], 0x3e8
mov qword [rsp + 0x74], 0x3e8
mov dword [rsp + 0x7c], 0x3e8
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
lfence
lea rcx, [rsp + 0x38]
call fcn.004050e0
mov rax, qword [rsp + 0x38]
xorps xmm0, xmm0
mov edx, 2
mov rcx, rsi
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov r8, qword [rsp + 0x38]
add rax, 0x40
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov dword [r8], 0x15180
mov qword [r8 + 0x10], rbx
mov qword [r8 + 8], rbx
mov dword [r8 + 0x18], 3
mov qword [r8 + 0x20], rax
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x47653f
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.004a2370
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str._n_ServiceHelper__ChangeServiceConfig_failed_code___d
lea rcx, [rbp + 0x190]
call fcn.00456b90
jmp 0x476544
mov ebx, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x476583
mov rdx, qword [rsp + 0x48]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x47657e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x47657e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.00479330
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]
mov eax, ebx
mov rsi, qword [rsp + 0x4d8]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.00479310
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop r14
pop rdi
pop rbp
ret