Function at 0x1400dc920
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.1400eea70
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 [0x14013f2b0]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov r14b, r8b
mov r15, rdx
mov r13d, 0x800
xor r12d, r12d
test r9, r9
jne 0x1400dc9d8
mov dword [rsp + 0x20], r13d
lea r9, [0x14010d188]
lea r8, [rsp + 0x50]
lea rdx, str.ExternalViewer
lea rcx, str.Viewer
call fcn.14009f6dc
mov r8d, r13d
lea rdx, [rbp + 0x1f50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400dc9f2
mov r8d, r13d
lea rdx, [rbp + 0x1f50]
lea rcx, [rsp + 0x50]
call fcn.14008df58
jmp 0x1400dc9f2
lea rcx, [rsp + 0x50]
sub rcx, r9
movzx eax, word [r9]
mov word [rcx + r9], ax
lea r9, [r9 + 2]
test ax, ax
jne 0x1400dc9e0
cmp word [rsp + 0x50], r12w
jne 0x1400dca01
xor al, al
jmp 0x1400dcbf1
mov r8, r13
mov rdx, r15
lea rcx, [rbp + 0xf50]
call fcn.14008df58
mov rdx, r13
lea rcx, [rbp + 0xf50]
call fcn.1400a829c
lea rcx, [rsp + 0x50]
call fcn.140068f88
test al, al
jne 0x1400dcb15
mov eax, 0x22
cmp word [rsp + 0x50], ax
jne 0x1400dca51
mov edx, eax
lea rcx, [rsp + 0x52]
call fcn.1400efc50
jmp 0x1400dcaf4
lea rax, [rsp + 0x50]
jmp 0x1400dcaf4
lea rdx, [0x14011cfa8]
mov rcx, rax
call fcn.1400fa8d8
mov rbx, rax
test rax, rax
je 0x1400dcb15
mov rdi, rax
movzx ecx, word [rax]
jmp 0x1400dca85
add rdi, 2
movzx ecx, word [rdi]
call fcn.14008db18
test al, al
jne 0x1400dca7e
mov r8, r13
mov rdx, rdi
lea rcx, [rbp + 0x1f50]
call fcn.14008df58
mov r8, r13
lea rdx, [0x140111c44]
lea rcx, [rbp + 0x1f50]
call fcn.14008df20
mov r8, r13
lea rdx, [rbp + 0xf50]
lea rcx, [rbp + 0x1f50]
call fcn.14008df20
movzx esi, word [rbx]
mov word [rbx], r12w
mov eax, 0x22
cmp word [rsp + 0x50], ax
je 0x1400dcaff
lea rcx, [rsp + 0x50]
call fcn.140068f88
test al, al
jne 0x1400dcaff
mov word [rbx], si
lea rax, [rdi + 2]
test rax, rax
jne 0x1400dca5b
jmp 0x1400dcb15
mov r8, r13
lea rdx, [rbp + 0x1f50]
lea rcx, [rbp + 0xf50]
call fcn.14008df58
mov ecx, dword [0x1401dd210]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401b01b0], ecx
jle 0x1400dcb73
lea rcx, [0x1401b01b0]
call fcn.1400ef210
cmp dword [0x1401b01b0], 0xffffffff
jne 0x1400dcb73
lea rcx, [0x1401b00ae]
call fcn.14008b1a4
nop
lea rcx, [0x14010b734]
call fcn.1400ef020
nop
lea rcx, [0x1401b01b0]
call fcn.1400ef1b0
mov r8b, 1
mov rdx, r15
lea rbx, [0x1401ac080]
mov rcx, rbx
call fcn.1400dd1c4
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.1400de2b4
test al, al
jne 0x1400dcbc3
mov rcx, rbx
call fcn.1400dbecc
jmp 0x1400dc9fa
test r14b, r14b
je 0x1400dcbe7
cmp qword [0x1401ac080], r12
je 0x1400dcbe7
mov r8, rbx
mov edx, 0x10000
lea rcx, [0x1400dc1b8]
call fcn.1400f65c8
jmp 0x1400dcbef
mov rcx, rbx
call fcn.1400dbecc
mov al, 1
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.1400eeae0
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