Function at 0x140005630
Capabilities:
Create process on windows
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
mov eax, 0x350
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, r9
mov rsi, rdx
mov ebx, ecx
xor r13d, r13d
mov dword [r9], r13d
call fcn.1400010f0
lea rdx, str.Starting_update_process_as_the_service_in_session_0.
mov rcx, rax
call fcn.140007a50
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x80], 0x68
lea rax, str.winsta0Default
mov qword [rbp - 0x70], rax
mov r8, rsi
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.140002540
nop
mov rdx, rsi
mov ecx, ebx
call fcn.140005490
mov ecx, 3
mov edx, 2
test al, al
cmovne ecx, edx
cmp ebx, ecx
jl 0x140005706
lea rax, [0x140014670]
mov qword [rbp - 0x70], rax
or dword [rbp - 0x44], 1
mov word [rbp - 0x40], r13w
lea rcx, str.MOZ_USING_SERVICE1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
call fcn.1400010f0
mov r8, qword [rsp + 0x58]
lea rdx, str.Starting_service_with_cmdline:__ls
mov rcx, rax
call fcn.140007a50
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rdi], eax
mov edi, r13d
test eax, eax
je 0x1400059e6
mov r15d, r13d
mov r12d, r13d
call fcn.1400010f0
lea rdx, str.Process_was_started..._waiting_on_result.
mov rcx, rax
call fcn.140007a50
mov edx, 0xdbba0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
cmp eax, 0x102
jne 0x1400057c0
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r15d, 1
jmp 0x140005810
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400057f6
call fcn.1400010f0
mov r8d, dword [rsp + 0x50]
lea rdx, str.Process_finished_with_return_code__lu.
mov rcx, rax
call fcn.140007a50
mov edi, r13d
cmp dword [rsp + 0x50], r13d
sete dil
jmp 0x140005810
call fcn.1400010f0
lea rdx, str.Process_finished_but_could_not_obtain_return_code.
mov rcx, rax
call fcn.140007b80
mov r12d, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x30]
lea rdx, str..status
mov rcx, qword [rsi + 8]
call fcn.140008ee0
test eax, eax
jne 0x140005868
call fcn.1400010f0
lea rdx, str.Could_not_get_path_for_the_secure_update_status_file
mov rcx, rax
call fcn.140007b80
jmp 0x140005a0e
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400058b7
call fcn.1400010f0
lea rdx, str.Could_not_open_update.status_file
mov rcx, rax
call fcn.140007b80
nop
jmp 0x140005a0e
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, 0x20
lea rdx, [rbp + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000590c
call fcn.1400010f0
lea rdx, str.Could_not_read_from_update.status_file
mov rcx, rax
call fcn.140007b80
nop
test rbx, rbx
je 0x140005907
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140005a0e
movsd xmm0, qword [str.applying]
movsd qword [rbp - 8], xmm0
movzx eax, byte [0x140014610]
mov byte [rbp], al
mov r8d, 8
lea rdx, [rbp - 8]
lea rcx, [rbp + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov r14d, r13d
test eax, eax
sete r14b
test rbx, rbx
je 0x14000594f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14d, r14d
je 0x140005a0e
call fcn.1400010f0
mov rcx, rax
test edi, edi
je 0x14000599b
lea rdx, str.update.status_is_still_applying_even_though_update_was_successful.
call fcn.140007a50
mov edx, 0x1d
mov rcx, qword [rsi + 8]
call fcn.140009890
test eax, eax
jne 0x140005996
call fcn.1400010f0
lea rdx, str.Could_not_write_update.status_still_applying_on_success_error.
mov rcx, rax
call fcn.140007b80
mov edi, r13d
jmp 0x140005a0e
lea rdx, str.update.status_is_still_applying_and_update_was_not_successful.
call fcn.140007b80
mov edx, 0x1e
test r12d, r12d
je 0x1400059b8
mov edx, 0x33
jmp 0x1400059c3
mov eax, 0x32
test r15d, r15d
cmovne edx, eax
mov rcx, qword [rsi + 8]
call fcn.140009890
test eax, eax
jne 0x140005a0e
call fcn.1400010f0
lea rdx, str.Could_not_write_update.status_still_applying_on_failure_error.
mov rcx, rax
call fcn.140007b80
jmp 0x140005a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400010f0
mov dword [rsp + 0x20], ebx
mov r9, qword [rsp + 0x58]
mov r8, qword [rsi]
lea rdx, str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____lu_
mov rcx, rax
call fcn.140007b80
lea rcx, str.MOZ_USING_SERVICE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
nop
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], r13
test rcx, rcx
je 0x140005a30
call fcn.14000ef74
mov eax, edi
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14000e7a0
mov rbx, qword [rsp + 0x390]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret