Function at 0x1400da248
Capabilities:
Create thread
Query environment variable

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f60]
mov eax, 0x3060
call fcn.1400ec1b0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x3090], rbx
mov qword [rsp + 0x30a0], rsi
mov qword [rsp + 0x30a8], rdi
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov r14b, r8b
mov r15, rdx
mov r13d, 0x800
xor r12d, r12d
test r9, r9
jne 0x1400da300
mov dword [rsp + 0x20], r13d
lea r9, [0x14010a100]
lea r8, [rsp + 0x50]
lea rdx, str.ExternalViewer
lea rcx, [0x14010b028]
call fcn.14009dd5c
mov r8d, r13d
lea rdx, [rbp + 0x1f50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400da31a
mov r8d, r13d
lea rdx, [rbp + 0x1f50]
lea rcx, [rsp + 0x50]
call fcn.14008c7ec
jmp 0x1400da31a
lea rcx, [rsp + 0x50]
sub rcx, r9
movzx eax, word [r9]
mov word [rcx + r9], ax
lea r9, [r9 + 2]
test ax, ax
jne 0x1400da308
cmp word [rsp + 0x50], r12w
jne 0x1400da329
xor al, al
jmp 0x1400da519
mov r8, r13
mov rdx, r15
lea rcx, [rbp + 0xf50]
call fcn.14008c7ec
mov rdx, r13
lea rcx, [rbp + 0xf50]
call fcn.1400a6508
lea rcx, [rsp + 0x50]
call fcn.140068a84
test al, al
jne 0x1400da43d
mov eax, 0x22
cmp word [rsp + 0x50], ax
jne 0x1400da379
mov edx, eax
lea rcx, [rsp + 0x52]
call fcn.1400ed380
jmp 0x1400da41c
lea rax, [rsp + 0x50]
jmp 0x1400da41c
lea rdx, [0x140119b48]
mov rcx, rax
call fcn.1400f8008
mov rbx, rax
test rax, rax
je 0x1400da43d
mov rdi, rax
movzx ecx, word [rax]
jmp 0x1400da3ad
add rdi, 2
movzx ecx, word [rdi]
call fcn.14008c3ac
test al, al
jne 0x1400da3a6
mov r8, r13
mov rdx, rdi
lea rcx, [rbp + 0x1f50]
call fcn.14008c7ec
mov r8, r13
lea rdx, [0x14010eb64]
lea rcx, [rbp + 0x1f50]
call fcn.14008c7b4
mov r8, r13
lea rdx, [rbp + 0xf50]
lea rcx, [rbp + 0x1f50]
call fcn.14008c7b4
movzx esi, word [rbx]
mov word [rbx], r12w
mov eax, 0x22
cmp word [rsp + 0x50], ax
je 0x1400da427
lea rcx, [rsp + 0x50]
call fcn.140068a84
test al, al
jne 0x1400da427
mov word [rbx], si
lea rax, [rdi + 2]
test rax, rax
jne 0x1400da383
jmp 0x1400da43d
mov r8, r13
lea rdx, [rbp + 0x1f50]
lea rcx, [rbp + 0xf50]
call fcn.14008c7ec
mov ecx, dword [0x1401d8dd0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401abd70], ecx
jle 0x1400da49b
lea rcx, [0x1401abd70]
call fcn.1400ec950
cmp dword [0x1401abd70], 0xffffffff
jne 0x1400da49b
lea rcx, [0x1401abc6e]
call fcn.140089c84
nop
lea rcx, [0x140108d34]
call fcn.1400ec760
nop
lea rcx, [0x1401abd70]
call fcn.1400ec8f0
mov r8b, 1
mov rdx, r15
lea rbx, [0x1401a7c40]
mov rcx, rbx
call fcn.1400daaec
test r14b, r14b
sete al
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], al
lea r9, [rbp + 0xf50]
xor r8d, r8d
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.1400dbc48
test al, al
jne 0x1400da4eb
mov rcx, rbx
call fcn.1400d97f4
jmp 0x1400da322
test r14b, r14b
je 0x1400da50f
cmp qword [0x1401a7c40], r12
je 0x1400da50f
mov r8, rbx
mov edx, 0x10000
lea rcx, [0x1400d9ae0]
call fcn.1400f3cf8
jmp 0x1400da517
mov rcx, rbx
call fcn.1400d97f4
mov al, 1
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.1400ec220
lea r11, [rsp + 0x3060]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret