Function at 0x1400dcf24
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
mov eax, 0x32e0
call fcn.14011a0f0
sub rsp, rax
mov rax, qword [0x140183c48]
xor rax, rsp
mov qword [rsp + 0x32d0], rax
mov r12b, cl
xor edi, edi
test dl, dl
je 0x1400dd071
cmp word [0x14019f54e], di
je 0x1400dcf7e
cmp qword [0x1401ed660], rdi
je 0x1400dcf7e
mov word [0x14019f54e], di
mov r14d, 4
cmp byte [0x14018b804], dil
jne 0x1400dd0de
cmp word [0x1401aa992], di
jne 0x1400dd0de
mov r12b, dil
mov ebx, 0x800
mov r8d, ebx
lea rdx, [0x1401aa992]
mov ecx, dword [0x1401a5928]
call fcn.1400e337c
mov dword [rsp + 0x20], ebx
lea r13, [0x140140f10]
mov r9, r13
lea r8, [rsp + 0x12d0]
lea rdx, str.DefFolder
lea rcx, [0x140141430]
call fcn.1400bd620
cmp word [rsp + 0x12d0], di
jne 0x1400dd010
cmp byte [0x1401bf45e], dil
je 0x1400dd04e
mov edx, ebx
lea rcx, [rsp + 0x12d0]
call fcn.140052b40
cmp word [rsp + 0x12d0], di
je 0x1400dd04e
mov rdx, rbx
lea rcx, [rsp + 0x12d0]
call fcn.1400953f0
mov r8, rbx
lea rdx, [0x1401aa992]
lea rcx, [rsp + 0x12d0]
call fcn.1400ac8e0
mov r8, rbx
lea rdx, [rsp + 0x12d0]
lea rcx, [0x1401aa992]
call fcn.1400ac908
cmp word [0x14019d548], di
setne r8b
mov r9d, dword [0x1401a5928]
mov rdx, rbx
lea rcx, [0x1401aa992]
call fcn.1400e71f0
jmp 0x1400dd0ea
mov cl, 1
call fcn.1400e394c
mov dword [0x1401a35a0], 3
mov qword [0x14018c870], rdi
cmp byte [0x14018b804], dil
jne 0x1400dd0d8
xor r8d, r8d
lea rdx, [0x1401ab998]
lea rcx, [0x1401be3f0]
call fcn.140058760
cmp byte [0x1401bf45e], dil
je 0x1400dcf7e
mov eax, dword [0x1401a359c]
mov r14d, 4
cmp qword [0x1401ab9c0], 1
cmova eax, r14d
mov dword [0x1401a359c], eax
jmp 0x1400dcf84
mov r14d, 4
lea r13, [0x140140f10]
mov ebx, 0x800
mov eax, dword [0x1401a359c]
mov ecx, 2
test eax, eax
cmove eax, ecx
mov dword [0x1401a359c], eax
mov qword [rsp + 0x178], rdi
mov qword [rsp + 0x188], rdi
mov qword [rsp + 0x190], rdi
mov qword [rsp + 0x188], rdi
mov qword [rsp + 0x190], 7
mov word [rsp + 0x178], di
mov qword [rsp + 0x198], rdi
cmp byte [0x14018b804], dil
je 0x1400dd2f0
mov r15d, dword [0x1401bb634]
cmp r15d, 1
jbe 0x1400dd1e3
cmp dword [0x1401a3564], 3
je 0x1400dd193
mov ecx, 0x65
call fcn.1400a685c
mov rbx, rax
mov ecx, 0x1fd
call fcn.1400a685c
mov r9d, 0x30
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x14018b7d0]
call fcn.1400e9e04
nop
mov rdx, qword [rsp + 0x190]
cmp rdx, 8
jb 0x1400dd78b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400dd786
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dd7d5
jmp 0x1400dd786
mov r8, rbx
lea rdx, [0x1401aa992]
lea rcx, [0x1401bb630]
call fcn.14000985c
mov r8, rbx
lea rdx, [0x1401a0560]
lea rcx, [0x1401bb630]
call fcn.140009f04
cmp word [0x1401a0560], di
je 0x1400dd227
mov rdx, rbx
lea rcx, [0x1401a0560]
call fcn.1400953f0
mov byte [0x1401a35e9], dil
lea rdx, [rsp + 0x50]
lea rcx, [0x1401bb630]
call fcn.140009f24
mov eax, dword [rsp + 0x1c8]
mov dword [0x1401a5928], eax
mov qword [rsp + 0x1290], rdi
mov qword [rsp + 0x1298], rdi
mov qword [rsp + 0x12a0], rdi
xor r8d, r8d
lea rdx, [rsp + 0x280]
lea rcx, [0x1401aa992]
call fcn.1400871a0
test al, al
je 0x1400dd28a
cmp qword [rsp + 0x1280], 0x18
je 0x1400dd2ab
cmp dword [rsp + 0x1c8], edi
jne 0x1400dd2a4
cmp byte [rsp + 0xd0], dil
mov byte [0x1401a35d4], 1
jne 0x1400dd2ab
mov byte [0x1401a35d4], dil
test r15d, r15d
jne 0x1400dd2b9
cmp dword [rsp + 0x250], edi
je 0x1400dd2c7
movzx eax, byte [rsp + 0x1c2]
mov dword [0x1401a358c], eax
cmp qword [rsp + 0x1b8], rdi
je 0x1400dd2e9
mov r8, rbx
lea rdx, [0x140141330]
lea rcx, [0x14019d548]
call fcn.1400ac908
jmp 0x1400dd2f0
mov word [0x14019d548], di
mov rcx, qword [0x14018b7d0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb rcx, rcx
and rcx, qword [0x14018b7d0]
xor r8d, r8d
mov dl, r12b
call fcn.1400e0608
test al, al
je 0x1400dd727
mov al, byte [0x1401ed67f]
neg al
sbb ecx, ecx
and ecx, dword [0x1401ed680]
mov dword [0x1401a3578], ecx
mov rcx, qword [0x1401ed660]
test rcx, rcx
je 0x1400dd345
call fcn.1400e7b88
jmp 0x1400dd369
cmp byte [0x14018b804], dil
je 0x1400dd369
cmp qword [rsp + 0x1b8], rdi
je 0x1400dd369
cmp word [0x14019d548], 0x2a
jne 0x1400dd369
mov word [0x14019d548], di
cmp qword [0x1401ab9c0], rdi
jne 0x1400dd3a6
mov ecx, 0x65
call fcn.1400a685c
mov rbx, rax
mov ecx, 0x14b
call fcn.1400a685c
mov r9d, 0x30
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x14018b7d0]
call fcn.1400e9e04
jmp 0x1400dd727
cmp word [0x14019f54e], di
je 0x1400dd459
cmp dword [0x1401a0550], edi
jne 0x1400dd459
lea rdx, [0x140144da8]
lea rcx, [0x14019f54e]
call fcn.140086b98
mov r12, rax
test rax, rax
je 0x1400dd459
mov r9, rax
mov edx, 1
mov r8d, 0x400
lea rcx, [rsp + 0x12d0]
call fcn.14012ab2c
mov r15, rax
mov rcx, r12
call fcn.140126ac8
mov eax, 0x3ff
cmp r15, rax
cmovb rax, r15
cmp rax, 0x400
jae 0x1400dd7db
mov byte [rsp + rax + 0x12d0], dil
mov dword [rsp + 0x40], 0x30c
test r15, r15
je 0x1400dd523
lea r8, [rsp + 0x40]
mov edx, r15d
lea rcx, [rsp + 0x12d0]
call qword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x1400dd523
mov dword [0x1401a0550], 3
lea rcx, [rsp + 0x12d0]
call fcn.1400ac93c
nop
lea rcx, [0x1401ab998]
call fcn.1400acb70
mov r15d, 0x25
lea rcx, [0x1401ab998]
call fcn.1400ac9e0
mov r14, rax
test rax, rax
je 0x1400dd5da
mov r9, rbx
lea r8, [rsp + 0x22d0]
mov rdx, rax
lea rcx, [0x1401be3f0]
call fcn.140058dc8
cmp word [r14], 0x40
jne 0x1400dd559
lea rcx, [rsp + 0x22d0]
call fcn.140085aac
test al, al
jne 0x1400dd559
lea rdx, [r14 + 2]
mov r9, rbx
lea r8, [rsp + 0x22d0]
lea rcx, [0x1401be3f0]
call fcn.140058dc8
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov eax, dword [0x1401a0554]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x12d0]
lea rcx, [rsp + 0x22d0]
call fcn.140086c50
test al, al
je 0x1400dd559
jmp 0x1400dd479
lea rcx, [rsp + 0x12d0]
call fcn.1400ac110
cmp eax, 2
jne 0x1400dd541
mov dword [0x1401a0550], r14d
jmp 0x1400dd459
cmp eax, 1
jne 0x1400dd459
mov dword [0x1401a0550], 2
jmp 0x1400dd459
mov edx, r15d
mov rcx, r14
call fcn.14011b3d8
test rax, rax
je 0x1400dd5c0
mov edx, r15d
lea rcx, [rax + 2]
call fcn.14011b3d8
test rax, rax
je 0x1400dd5c0
lea rcx, [rsp + 0x22d0]
call fcn.140085aac
test al, al
jne 0x1400dd5c0
mov r8d, ebx
lea rdx, [rsp + 0x280]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ff
ja 0x1400dd5c0
mov r8, rbx
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x22d0]
call fcn.1400ac908
lea rdx, [rsp + 0x22d0]
lea rcx, [rsp + 0x12d0]
call fcn.1400ac96c
jmp 0x1400dd51e
lea rdx, [rsp + 0x12d0]
lea rcx, [0x1401ab998]
call fcn.1400dcec0
nop
mov rcx, qword [rsp + 0x12d0]
test rcx, rcx
je 0x1400dd602
call fcn.140125bf8
nop
jmp 0x1400dd612
mov r9, rbx
lea r8, [0x1401aa992]
lea rdx, [0x1401aa992]
lea rcx, [0x1401be3f0]
call fcn.140058dc8
mov al, byte [0x1401abd48]
mov byte [0x1401bdfe0], al
lea rcx, [0x1401bdfb0]
call fcn.1400c61b8
cmp byte [0x1401a9964], dil
je 0x1400dd657
call fcn.1400de0a8
jmp 0x1400dd669
mov dl, byte [0x1401a893b]
lea rcx, [0x1401bb630]
call fcn.1400082d4
cmp qword [0x1401ed660], rdi
je 0x1400dd67e
lea rcx, [0x14019f54e]
call fcn.14008579c
cmp dword [0x14018b808], 1
je 0x1400dd727
cmp byte [0x14018b804], dil
je 0x1400dd6af
cmp byte [0x1401a895e], dil
jne 0x1400dd727
lea rcx, [0x1401be3f0]
call fcn.14005c7bc
jmp 0x1400dd727
cmp byte [0x1401a35d2], dil
je 0x1400dd6c4
lea rcx, [0x14019c508]
call fcn.1400cc608
mov r8, rbx
lea rdx, [rsp + 0x22d0]
lea rcx, [0x1401be3f0]
call fcn.1400586dc
lea rax, [rsp + 0x22d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400dd6e7
lea rdx, [0x1401aa992]
lea rcx, [rsp + 0x22d0]
call fcn.1400afa78
test eax, eax
jne 0x1400dd718
lea rcx, [0x1401aa992]
call fcn.14009702c
mov r13, rax
mov rdx, r13
lea rcx, [0x1401be3f0]
call fcn.14005bc20
mov rcx, qword [0x1401ed660]
call fcn.140119d28
mov byte [0x1401bdfe0], dil
lea rcx, [0x1401bdfb0]
call fcn.1400c61b8
nop
mov rdx, qword [rsp + 0x190]
cmp rdx, 8
jb 0x1400dd78b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400dd786
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dd7e1
call fcn.140119d28
mov qword [rsp + 0x188], rdi
mov qword [rsp + 0x190], 7
mov word [rsp + 0x178], di
mov rcx, qword [rsp + 0x32d0]
xor rcx, rsp
call fcn.14011a150
lea r11, [rsp + 0x32e0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
call fcn.140121238
nop
call fcn.140119e44
nop
call fcn.140121238
int3