Function at 0x140048b30
Capabilities:
Modify service

Disassembly:
jmp 0x140048b30
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
movzx r14d, dl
mov rbx, rcx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140048b8a
lea rdx, str.Failed_OpenSCManager__
mov rcx, rbx
call fcn.14000f620
jmp 0x140048e07
lea rdx, [rbx + 0x48]
mov qword [rsp + 0x4f8], rdi
mov r8d, reloc.WS2_32.dll_select
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140048de7
mov rcx, qword [0x140243b38]
lea r8, [rbp - 0x40]
mov r9d, 0x200
mov qword [rsp + 0x500], r15
mov edx, 0x65
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140048be8
lea rdx, str.Failed_to_LoadString_
mov rcx, rbx
call fcn.14000f620
xor r15d, r15d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
mov edx, 0xffffffff
mov qword [rsp + 0x48], r15
mov r9d, edx
mov qword [rsp + 0x40], r15
mov rcx, rdi
mov qword [rsp + 0x38], r15
lea r8d, [r15 + 2]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140048c3a
lea rdx, str.Failed_ChangeServiceConfig_SERVICE_AUTO_START__IDS_SERVICEDISPLAYNAME__
mov rcx, rbx
call fcn.14000f620
mov rcx, qword [0x140243b38]
lea r8, [rbp - 0x40]
mov r9d, 0x200
mov edx, 0x66
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140048c69
lea rdx, str.Failed_to_LoadString_
mov rcx, rbx
call fcn.14000f620
lea rax, [rbp - 0x40]
mov edx, 1
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140048c98
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_DESCRIPTION__
mov rcx, rbx
call fcn.14000f620
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 1
mov edx, 3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140048cc6
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_DELAYED_AUTO_START_INFO__
mov rcx, rbx
call fcn.14000f620
mov dword [rbp - 0x58], 1
xorps xmm0, xmm0
mov dword [rbp - 0x54], 0x1388
lea rax, [rbp - 0x58]
mov qword [rbp - 0x60], rax
lea r8, [rbp - 0x80]
mov dword [rbp - 0x50], 1
mov edx, 2
mov qword [rbp - 0x4c], 0x3a98
mov rcx, rdi
mov dword [rbp - 0x44], 0x493e0
movdqu xmmword [rbp - 0x78], xmm0
test r14b, r14b
je 0x140048d1f
mov dword [rbp - 0x54], 0xbb8
mov dword [rbp - 0x80], r15d
mov dword [rbp - 0x68], 1
jmp 0x140048d2d
mov dword [rbp - 0x80], 0x15180
mov dword [rbp - 0x68], 3
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140048d46
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_FAILURE_ACTIONS__
mov rcx, rbx
call fcn.14000f620
lea r8, [rsp + 0x64]
mov dword [rsp + 0x64], 1
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov r15, qword [rsp + 0x500]
test eax, eax
jne 0x140048d7c
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_FAILURE_ACTIONS_FLAG__
mov rcx, rbx
call fcn.14000f620
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], 1
mov edx, 5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140048daa
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_SERVICE_SID_INFO__
mov rcx, rbx
call fcn.14000f620
lea rax, str.SeChangeNotifyPrivilege
mov edx, 6
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140048ddc
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO__
mov rcx, rbx
call fcn.14000f620
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140048df6
lea rdx, str.Failed_OpenService__
mov rcx, rbx
call fcn.14000f620
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x4f8]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14000fde0
mov rbx, qword [rsp + 0x508]
add rsp, 0x4d0
pop r14
pop rsi
pop rbp
ret