Function at 0x1400dada4
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.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
xor rax, rsp
mov qword [rsp + 0x32d0], rax
mov r12b, cl
xor edi, edi
test dl, dl
je 0x1400daef1
cmp word [0x14019d54e], di
je 0x1400dadfe
cmp qword [0x1401eb660], rdi
je 0x1400dadfe
mov word [0x14019d54e], di
mov r14d, 4
cmp byte [0x140189804], dil
jne 0x1400daf5e
cmp word [0x1401a8992], di
jne 0x1400daf5e
mov r12b, dil
mov ebx, 0x800
mov r8d, ebx
lea rdx, [0x1401a8992]
mov ecx, dword [0x1401a3928]
call fcn.1400e11fc
mov dword [rsp + 0x20], ebx
lea r13, [0x14013ef10]
mov r9, r13
lea r8, [rsp + 0x12d0]
lea rdx, str.DefFolder
lea rcx, [0x14013f430]
call fcn.1400bb700
cmp word [rsp + 0x12d0], di
jne 0x1400dae90
cmp byte [0x1401bd45e], dil
je 0x1400daece
mov edx, ebx
lea rcx, [rsp + 0x12d0]
call fcn.140050de8
cmp word [rsp + 0x12d0], di
je 0x1400daece
mov rdx, rbx
lea rcx, [rsp + 0x12d0]
call fcn.140093540
mov r8, rbx
lea rdx, [0x1401a8992]
lea rcx, [rsp + 0x12d0]
call fcn.1400aa9bc
mov r8, rbx
lea rdx, [rsp + 0x12d0]
lea rcx, [0x1401a8992]
call fcn.1400aa9e4
cmp word [0x14019b548], di
setne r8b
mov r9d, dword [0x1401a3928]
mov rdx, rbx
lea rcx, [0x1401a8992]
call fcn.1400e5070
jmp 0x1400daf6a
mov cl, 1
call fcn.1400e17cc
mov dword [0x1401a15a0], 3
mov qword [0x14018a870], rdi
cmp byte [0x140189804], dil
jne 0x1400daf58
xor r8d, r8d
lea rdx, [0x1401a9998]
lea rcx, [0x1401bc3f0]
call fcn.1400569f0
cmp byte [0x1401bd45e], dil
je 0x1400dadfe
mov eax, dword [0x1401a159c]
mov r14d, 4
cmp qword [0x1401a99c0], 1
cmova eax, r14d
mov dword [0x1401a159c], eax
jmp 0x1400dae04
mov r14d, 4
lea r13, [0x14013ef10]
mov ebx, 0x800
mov eax, dword [0x1401a159c]
mov ecx, 2
test eax, eax
cmove eax, ecx
mov dword [0x1401a159c], 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 [0x140189804], dil
je 0x1400db170
mov r15d, dword [0x1401b9634]
cmp r15d, 1
jbe 0x1400db063
cmp dword [0x1401a1564], 3
je 0x1400db013
mov ecx, 0x65
call fcn.1400a493c
mov rbx, rax
mov ecx, 0x1fd
call fcn.1400a493c
mov r9d, 0x30
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x1401897d0]
call fcn.1400e7c84
nop
mov rdx, qword [rsp + 0x190]
cmp rdx, 8
jb 0x1400db60b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db606
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400db655
jmp 0x1400db606
mov r8, rbx
lea rdx, [0x1401a8992]
lea rcx, [0x1401b9630]
call fcn.1400097e8
mov r8, rbx
lea rdx, [0x14019e560]
lea rcx, [0x1401b9630]
call fcn.140009e90
cmp word [0x14019e560], di
je 0x1400db0a7
mov rdx, rbx
lea rcx, [0x14019e560]
call fcn.140093540
mov byte [0x1401a15e9], dil
lea rdx, [rsp + 0x50]
lea rcx, [0x1401b9630]
call fcn.140009eb0
mov eax, dword [rsp + 0x1c8]
mov dword [0x1401a3928], 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, [0x1401a8992]
call fcn.1400852e8
test al, al
je 0x1400db10a
cmp qword [rsp + 0x1280], 0x18
je 0x1400db12b
cmp dword [rsp + 0x1c8], edi
jne 0x1400db124
cmp byte [rsp + 0xd0], dil
mov byte [0x1401a15d0], 1
jne 0x1400db12b
mov byte [0x1401a15d0], dil
test r15d, r15d
jne 0x1400db139
cmp dword [rsp + 0x250], edi
je 0x1400db147
movzx eax, byte [rsp + 0x1c2]
mov dword [0x1401a158c], eax
cmp qword [rsp + 0x1b8], rdi
je 0x1400db169
mov r8, rbx
lea rdx, [0x14013f330]
lea rcx, [0x14019b548]
call fcn.1400aa9e4
jmp 0x1400db170
mov word [0x14019b548], di
mov rcx, qword [0x1401897d0]
call qword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb rcx, rcx
and rcx, qword [0x1401897d0]
xor r8d, r8d
mov dl, r12b
call fcn.1400de488
test al, al
je 0x1400db5a7
mov al, byte [0x1401eb67f]
neg al
sbb ecx, ecx
and ecx, dword [0x1401eb680]
mov dword [0x1401a1578], ecx
mov rcx, qword [0x1401eb660]
test rcx, rcx
je 0x1400db1c5
call fcn.1400e5a08
jmp 0x1400db1e9
cmp byte [0x140189804], dil
je 0x1400db1e9
cmp qword [rsp + 0x1b8], rdi
je 0x1400db1e9
cmp word [0x14019b548], 0x2a
jne 0x1400db1e9
mov word [0x14019b548], di
cmp qword [0x1401a99c0], rdi
jne 0x1400db226
mov ecx, 0x65
call fcn.1400a493c
mov rbx, rax
mov ecx, 0x14b
call fcn.1400a493c
mov r9d, 0x30
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x1401897d0]
call fcn.1400e7c84
jmp 0x1400db5a7
cmp word [0x14019d54e], di
je 0x1400db2d9
cmp dword [0x14019e550], edi
jne 0x1400db2d9
lea rdx, [0x140142d88]
lea rcx, [0x14019d54e]
call fcn.140084ce0
mov r12, rax
test rax, rax
je 0x1400db2d9
mov r9, rax
mov edx, 1
mov r8d, 0x400
lea rcx, [rsp + 0x12d0]
call fcn.14012897c
mov r15, rax
mov rcx, r12
call fcn.140124918
mov eax, 0x3ff
cmp r15, rax
cmovb rax, r15
cmp rax, 0x400
jae 0x1400db65b
mov byte [rsp + rax + 0x12d0], dil
mov dword [rsp + 0x40], 0x30c
test r15, r15
je 0x1400db3a3
lea r8, [rsp + 0x40]
mov edx, r15d
lea rcx, [rsp + 0x12d0]
call qword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x1400db3a3
mov dword [0x14019e550], 3
lea rcx, [rsp + 0x12d0]
call fcn.1400aaa18
nop
lea rcx, [0x1401a9998]
call fcn.1400aac4c
mov r15d, 0x25
lea rcx, [0x1401a9998]
call fcn.1400aaabc
mov r14, rax
test rax, rax
je 0x1400db45a
mov r9, rbx
lea r8, [rsp + 0x22d0]
mov rdx, rax
lea rcx, [0x1401bc3f0]
call fcn.140057058
cmp word [r14], 0x40
jne 0x1400db3d9
lea rcx, [rsp + 0x22d0]
call fcn.140083dd0
test al, al
jne 0x1400db3d9
lea rdx, [r14 + 2]
mov r9, rbx
lea r8, [rsp + 0x22d0]
lea rcx, [0x1401bc3f0]
call fcn.140057058
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov eax, dword [0x14019e554]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x12d0]
lea rcx, [rsp + 0x22d0]
call fcn.140084d98
test al, al
je 0x1400db3d9
jmp 0x1400db2f9
lea rcx, [rsp + 0x12d0]
call fcn.1400aa1ec
cmp eax, 2
jne 0x1400db3c1
mov dword [0x14019e550], r14d
jmp 0x1400db2d9
cmp eax, 1
jne 0x1400db2d9
mov dword [0x14019e550], 2
jmp 0x1400db2d9
mov edx, r15d
mov rcx, r14
call fcn.140119228
test rax, rax
je 0x1400db440
mov edx, r15d
lea rcx, [rax + 2]
call fcn.140119228
test rax, rax
je 0x1400db440
lea rcx, [rsp + 0x22d0]
call fcn.140083dd0
test al, al
jne 0x1400db440
mov r8d, ebx
lea rdx, [rsp + 0x280]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ff
ja 0x1400db440
mov r8, rbx
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x22d0]
call fcn.1400aa9e4
lea rdx, [rsp + 0x22d0]
lea rcx, [rsp + 0x12d0]
call fcn.1400aaa48
jmp 0x1400db39e
lea rdx, [rsp + 0x12d0]
lea rcx, [0x1401a9998]
call fcn.1400dad40
nop
mov rcx, qword [rsp + 0x12d0]
test rcx, rcx
je 0x1400db482
call fcn.140123a48
nop
jmp 0x1400db492
mov r9, rbx
lea r8, [0x1401a8992]
lea rdx, [0x1401a8992]
lea rcx, [0x1401bc3f0]
call fcn.140057058
mov al, byte [0x1401a9d48]
mov byte [0x1401bbfe0], al
lea rcx, [0x1401bbfb0]
call fcn.1400c425c
cmp byte [0x1401a7964], dil
je 0x1400db4d7
call fcn.1400dbf28
jmp 0x1400db4e9
mov dl, byte [0x1401a693b]
lea rcx, [0x1401b9630]
call fcn.140008274
cmp qword [0x1401eb660], rdi
je 0x1400db4fe
lea rcx, [0x14019d54e]
call fcn.140083adc
cmp dword [0x140189808], 1
je 0x1400db5a7
cmp byte [0x140189804], dil
je 0x1400db52f
cmp byte [0x1401a695e], dil
jne 0x1400db5a7
lea rcx, [0x1401bc3f0]
call fcn.14005aa1c
jmp 0x1400db5a7
cmp byte [0x1401a15ce], dil
je 0x1400db544
lea rcx, [0x14019a508]
call fcn.1400ca6b8
mov r8, rbx
lea rdx, [rsp + 0x22d0]
lea rcx, [0x1401bc3f0]
call fcn.14005696c
lea rax, [rsp + 0x22d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400db567
lea rdx, [0x1401a8992]
lea rcx, [rsp + 0x22d0]
call fcn.1400adb58
test eax, eax
jne 0x1400db598
lea rcx, [0x1401a8992]
call fcn.140095154
mov r13, rax
mov rdx, r13
lea rcx, [0x1401bc3f0]
call fcn.140059e80
mov rcx, qword [0x1401eb660]
call fcn.140117b78
mov byte [0x1401bbfe0], dil
lea rcx, [0x1401bbfb0]
call fcn.1400c425c
nop
mov rdx, qword [rsp + 0x190]
cmp rdx, 8
jb 0x1400db60b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db606
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400db661
call fcn.140117b78
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.140117fa0
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.14011f088
nop
call fcn.140117c94
nop
call fcn.14011f088
int3