Function at 0x140004008
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov eax, dword [0x14002df0c]
xor r12d, r12d
mov r14, r9
mov rdi, rdx
mov esi, ecx
lea r13d, [r12 + 1]
test r13b, al
jne 0x140004062
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Starting_update_process_as_the_service_in_session_0.
lea rcx, [0x14002df50]
call fcn.140007008
xor edx, edx
lea rcx, [rbp - 0x31]
lea r8d, [rdx + 0x60]
call fcn.140008760
lea rax, str.winsta0Default
mov dword [rbp - 0x39], 0x68
mov qword [rbp - 0x29], rax
mov rdx, rdi
xor eax, eax
mov qword [rbp - 0x59], r12
mov ecx, esi
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
call fcn.140001c2c
mov rdx, rdi
mov ecx, esi
mov r15, rax
mov ebx, 3
call fcn.140003ea8
test al, al
lea ecx, [rbx - 1]
cmovne ebx, ecx
cmp esi, ebx
jl 0x1400040e0
or dword [rbp + 3], r13d
lea rax, [0x140027708]
mov qword [rbp - 0x29], rax
mov word [rbp + 7], r12w
lea rcx, str.MOZ_USING_SERVICE1
call fcn.14000cd90
mov eax, dword [0x14002df0c]
test r13b, al
jne 0x140004113
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
mov r8, r15
lea rdx, str.Starting_service_with_cmdline:__ls
lea rcx, [0x14002df50]
call fcn.140007008
mov rcx, qword [rdi]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, r15
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [r14], eax
mov ebx, r12d
test eax, eax
je 0x1400043d2
mov eax, dword [0x14002df0c]
mov r14d, r12d
mov esi, r12d
test r13b, al
jne 0x14000419f
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Process_was_started..._waiting_on_result.
lea rcx, [0x14002df50]
call fcn.140007008
mov rcx, qword [rbp - 0x59]
mov edx, 0xdbba0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x59]
cmp eax, 0x102
jne 0x1400041dd
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r14d, r13d
jmp 0x140004269
lea rdx, [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov eax, dword [0x14002df0c]
je 0x140004232
test r13b, al
jne 0x140004212
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
mov r8d, dword [rbp + 0x67]
lea rdx, str.Process_finished_with_return_code__d.
lea rcx, [0x14002df50]
call fcn.140007008
cmp dword [rbp + 0x67], r12d
sete bl
jmp 0x140004269
test r13b, al
jne 0x140004253
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Process_finished_but_could_not_obtain_return_code.
lea rcx, [0x14002df50]
call fcn.140007060
mov esi, r13d
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x67]
mov dword [rbp + 0x67], r12d
call fcn.140003c1c
test eax, eax
je 0x14000441e
cmp dword [rbp + 0x67], r12d
je 0x14000441e
mov eax, dword [0x14002df0c]
test ebx, ebx
je 0x140004336
test r13b, al
jne 0x1400042cf
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.update.status_is_still_applying_even_though_update_was_successful.
lea rcx, [0x14002df50]
call fcn.140007008
mov rcx, qword [rdi + 8]
mov edx, 0x1d
call fcn.14000695c
test eax, eax
jne 0x14000432e
mov eax, dword [0x14002df0c]
test r13b, al
jne 0x14000431b
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Could_not_write_update.status_still_applying_on_success_error.
lea rcx, [0x14002df50]
call fcn.140007060
mov ebx, r12d
jmp 0x14000441e
test r13b, al
jne 0x140004357
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.update.status_is_still_applying_and_update_was_not_successful.
lea rcx, [0x14002df50]
call fcn.140007060
mov edx, 0x1e
test esi, esi
je 0x14000437a
mov edx, 0x33
jmp 0x140004385
test r14d, r14d
mov eax, 0x32
cmovne edx, eax
mov rcx, qword [rdi + 8]
call fcn.14000695c
test eax, eax
jne 0x14000441e
mov eax, dword [0x14002df0c]
test r13b, al
jne 0x1400043bd
or eax, r13d
mov qword [0x14002df50], r12
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Could_not_write_update.status_still_applying_on_failure_error.
lea rcx, [0x14002df50]
call fcn.140007060
jmp 0x14000441e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x14002df0c]
mov esi, eax
test r13b, cl
jne 0x140004401
or ecx, r13d
mov qword [0x14002df50], r12
mov dword [0x14002df0c], ecx
lea rcx, [0x14001dc10]
call fcn.140007614
mov r8, qword [rdi]
lea rdx, str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____d_
mov r9, r15
mov dword [rsp + 0x20], esi
lea rcx, [0x14002df50]
call fcn.140007060
lea rcx, str.MOZ_USING_SERVICE
call fcn.14000cd90
mov rcx, r15
call fcn.14000c8c8
lea r11, [rsp + 0xe0]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret