Function at 0x140003510
Capabilities:
Check if file exists
Get file attributes
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x270
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r15, rcx
mov r8d, 0x105
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140003575
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_module_filename_when_attempting_to_modify_service_description.____lu_
jmp 0x14000379a
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000359e
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____lu_
jmp 0x14000379a
lea rcx, [rsp + 0x50]
mov r12, 0xffffffffffffffff
mov rax, r12
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400035b0
add rax, 0xb
cmp rax, 0x104
jae 0x140003785
lea rdx, str.updater.ini
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140003785
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000360e
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.updater.ini_file_does_not_exist__will_not_modify_service_description.____lu_
jmp 0x14000379a
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
lea r8d, [rbp + 1]
lea rdx, str.MozillaMaintenanceDescription
lea rcx, [rsp + 0x50]
call fcn.14000a6e0
mov edi, eax
mov eax, ebp
test edi, edi
je 0x14000364c
lea ecx, [rbp + 1]
call fcn.14000ef7c
mov byte [rax], bpl
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rbx
test rax, rax
je 0x140003663
mov rcx, rax
call fcn.14000ef74
test edi, edi
jne 0x14000375f
mov rax, r12
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140003670
test rax, rax
je 0x14000375f
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov r9d, r12d
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
mov eax, 2
mul rsi
mov rdi, rax
cmovo rdi, r12
mov rcx, rdi
call fcn.14000ef7c
mov r14, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9d, r12d
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400036fb
call fcn.1400010f0
lea rsi, str.Could_not_convert_description_to_wide_string_format.____lu_
jmp 0x140003723
mov qword [rsp + 0x40], r14
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14000373c
call fcn.1400010f0
lea rsi, str.Could_not_change_service_config.____lu_
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rsi
mov rcx, rdi
call fcn.140007b80
jmp 0x140003755
call fcn.1400010f0
lea rdx, str.The_service_description_was_updated_successfully.
mov rcx, rax
call fcn.140007a50
mov ebp, 1
mov rcx, r14
call fcn.14000ef74
jmp 0x140003774
call fcn.1400010f0
lea rdx, str.updater.ini_file_does_not_contain_a_maintenance_service_description.
mov rcx, rax
call fcn.140007b80
nop
test rbx, rbx
je 0x140003781
mov rcx, rbx
call fcn.14000ef74
mov eax, ebp
jmp 0x1400037a7
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_append_updater.ini_filename_when_attempting_to_modify_service_description.____lu_
mov r8d, eax
mov rcx, rbx
call fcn.140007b80
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000e7a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret