Function at 0x14010253c
Capabilities:
Create process on windows
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x8a0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
xor r15d, r15d
test rcx, rcx
je 0x1401025ca
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14010259e
mov rcx, rbx
call fcn.140106f64
mov edx, 0x9c4
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401025bc
mov r9d, 0x55
lea r8, str.C:UsersconemuSRCconemu_srcConEmuUpdate.cpp
lea edx, [r9 + 0xf]
mov rcx, qword [rbx + 8]
call fcn.140127204
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], r15
mov rcx, rbx
call fcn.140104640
lea rcx, [rbx + 0x20]
mov dl, 1
call fcn.140104614
lea r14, [rbx + 0x768]
mov rcx, r14
call fcn.1401211c4
mov eax, dword [rbx + 0x284]
sub eax, 5
cmp eax, 1
ja 0x14010272e
lea rdi, [rbx + 0x1a0]
mov rcx, rdi
call fcn.1401000d0
test al, al
je 0x14010272e
mov rcx, rbx
call fcn.140107d30
movups xmm0, xmmword [0x14016bd78]
movdqu xmmword [rsp + 0x60], xmm0
mov rcx, rdi
call fcn.1401000bc
mov r8, rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [0x1401afce4]
lea rdx, str._c___
lea rcx, [rsp + 0x50]
call fcn.140120be0
lea rdx, [0x14016aed8]
lea rcx, str.ConEmuInUpdate
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rax, str.runas
lea rdx, str.open
cmp byte [rbx + 0x280], r15b
cmovne rdx, rax
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], r15
mov r9, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rsi, rax
cmp rax, 0x20
jg 0x140102724
mov rcx, rdi
call fcn.1401000bc
mov r8, rax
mov r9d, esi
lea rdx, str.Failed_to_start_update_batch_n_s_nError_code_i
lea rcx, [rsp + 0x70]
call fcn.1400011bc
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [0x14016a968]
mov edx, 0x1010
lea rcx, [rsp + 0x70]
call fcn.14002b0f8
mov dl, 1
mov rcx, rdi
call fcn.1401000e4
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x140102716
cmp byte [rax + 0x68], r15b
jne 0x140102724
lea rcx, [rbx + 0x148]
mov dl, 1
call fcn.1401000e4
lea rcx, [rsp + 0x50]
call fcn.140120ddc
lea rsi, [rbx + 0x1a0]
xor edx, edx
mov rcx, rsi
call fcn.1401000e4
lea rbp, [rbx + 0x148]
xor edx, edx
mov rcx, rbp
call fcn.1401000e4
mov rdi, qword [rbx + 0x40]
test rdi, rdi
je 0x140102772
mov rcx, rdi
call fcn.140107f10
mov edx, 0x78
mov rcx, rdi
call fcn.140139990
mov qword [rbx + 0x40], r15
mov rcx, r14
call fcn.140120ddc
lea rcx, [rbx + 0x270]
call fcn.140120ddc
lea rcx, [rbx + 0x260]
call fcn.140120ddc
lea rcx, [rbx + 0x250]
call fcn.140120ddc
lea rcx, [rbx + 0x1f8]
call fcn.1400ffafc
mov rcx, rsi
call fcn.1400ffafc
mov rcx, rbp
call fcn.1400ffafc
lea rcx, [rbx + 0xf0]
call fcn.1400ffafc
lea rcx, [rbx + 0x98]
call fcn.1400ffafc
lea rcx, [rbx + 0x88]
call fcn.140120ddc
lea rcx, [rbx + 0x58]
call fcn.140128e00
nop
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret