Function at 0x140108840
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1020]
mov eax, 0x1120
call fcn.1402a90d0
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1150], rbx
mov qword [rsp + 0x1158], rsi
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x1010], rax
mov rdi, rdx
mov rbx, rcx
call fcn.140107230
test al, al
jne 0x1401088a5
lea rcx, str.Failed_to_update_the_original_executable_r_n
call fcn.140298d38
xor al, al
jmp 0x140108ac6
lea rax, [0x140323de0]
mov qword [rsp + 0x50], rax
xor esi, esi
mov qword [rsp + 0x58], rsi
lea rdx, [rsp + 0x50]
lea rcx, [0x14032bd30]
call fcn.140108650
test al, al
je 0x1401088e3
mov rcx, rbx
call fcn.14010a3e0
xor ecx, ecx
call fcn.140117380
xor ecx, ecx
call fcn.140117ec0
lea r14, [0x1403fe1b0]
cmp word [0x1403fe1b0], 0
jne 0x140108905
mov r8d, 0x104
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x20], r14
mov r9, qword [rbx]
lea r8, str.__s___updated:__s_
mov edx, 0x800
lea rcx, [rbp + 0x10]
call fcn.14029b4b4
lea rcx, [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jle 0x140108a30
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rbx, rax
lea rax, vtable.Core::SharedPtr_class_Core::Collections::Generic::IEnumerator_class_Core::String__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rbx
mov rdi, rsi
mov qword [rbp - 0x78], rsi
test rbx, rbx
je 0x140108982
mov ecx, 4
call fcn.14029806c
mov rdi, rax
test rax, rax
je 0x140108975
mov dword [rax], esi
mov qword [rbp - 0x78], rax
jmp 0x14010897c
mov rdi, rsi
mov qword [rbp - 0x78], rsi
mov dword [rdi], 1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
test al, al
je 0x140108a0c
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov r8d, 1
lea rdx, [0x140329d94]
mov rcx, rax
call fcn.1401eb700
test al, al
je 0x140108a00
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, rax
xor r8d, r8d
lea rdx, str._update
call fcn.1401eb700
test al, al
jne 0x140108a00
lea r8, [0x140329d98]
mov edx, 0x800
lea rcx, [rbp + 0x10]
call fcn.14029a500
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov r8, qword [rax]
mov edx, 0x800
lea rcx, [rbp + 0x10]
call fcn.14029a500
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
test al, al
jne 0x140108990
test rdi, rdi
je 0x140108a30
mov eax, dword [rdi]
test eax, eax
jle 0x140108a1b
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140108a30
mov rcx, rbx
call fcn.1402012c0
mov rcx, rdi
call fcn.1402012c0
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x58]
call fcn.1402a04b0
mov qword [rsp + 0x60], rsi
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x60], 0x68
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140108ab0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x140108ab2
xor bl, bl
cmp dword [rsp + 0x58], 0
jle 0x140108ac3
mov rcx, qword [rsp + 0x50]
call fcn.140298600
movzx eax, bl
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret