Function at 0x140002370
Capabilities:
Modify service

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x270], rax
or rbx, 0xffffffffffffffff
mov r14, r8
xor r12d, r12d
mov rbp, rdx
mov r15, rcx
inc rbx
cmp word [rdx + rbx*2], r12w
jne 0x1400023a2
cmp rbx, 2
jbe 0x14000241a
lea rdx, str.maintenanceservice_tmp.exe
mov rcx, rbp
call fcn.140007f74
test rax, rax
jne 0x14000241a
cmp word [rbp], 0x22
jne 0x14000241a
cmp word [rbp + rbx*2 - 2], 0x22
jne 0x14000241a
mov eax, dword [0x14002def4]
mov ebx, 1
test bl, al
jne 0x1400023ff
or eax, ebx
mov qword [0x14002df30], r12
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.The_MozillaMaintenance_service_path_is_correct.
lea rcx, [0x14002df30]
call fcn.140006fb8
mov dword [r14], r12d
jmp 0x1400025e4
mov eax, dword [0x14002def4]
mov ebx, 1
test bl, al
jne 0x140002444
or eax, ebx
mov qword [0x14002df30], r12
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
mov r8, rbp
lea rdx, str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
lea rcx, [0x14002df30]
call fcn.140006fb8
xor edx, edx
mov dword [r14], ebx
mov r8d, 0x20a
lea rcx, [rsp + 0x60]
call fcn.140008490
mov r8d, 0x104
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.14000903c
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x1400024e4
mov eax, dword [0x14002def4]
test bl, al
jne 0x1400024c1
or eax, ebx
mov qword [0x14002df30], r12
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Couldnt_remove_file_spec.____d_
mov r8d, eax
lea rcx, [0x14002df30]
call fcn.140007010
xor eax, eax
jmp 0x1400025e6
lea rdx, [0x140026a10]
lea rcx, [rsp + 0x60]
call fcn.140006994
test eax, eax
jne 0x14000252d
mov eax, dword [0x14002def4]
test bl, al
jne 0x14000251e
or eax, ebx
mov qword [0x14002df30], r12
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Couldnt_append_file_spec.____d_
jmp 0x1400024ce
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r12
or edx, 0xffffffff
mov qword [rsp + 0x40], r12
mov r9d, edx
mov qword [rsp + 0x38], r12
mov r8d, edx
mov qword [rsp + 0x30], r12
mov rcx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
mov eax, dword [0x14002def4]
jne 0x1400025ad
test bl, al
jne 0x14000259b
or eax, ebx
mov qword [0x14002df30], r12
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_fix_service_path.____d_
jmp 0x1400024ce
test bl, al
jne 0x1400025cc
or eax, ebx
mov qword [0x14002df30], r12
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea r8, [rsp + 0x60]
lea rdx, str.Fixed_service_path_to:__ls.
lea rcx, [0x14002df30]
call fcn.140006fb8
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140007300
add rsp, 0x280
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret