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

Disassembly:
push r13
push r14
push r15
mov eax, 0x2770
call fcn.1400eea70
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x2798], rbx
mov qword [rsp + 0x27a0], rdi
mov qword [rsp + 0x27a8], r12
mov rax, qword [0x14013f2b0]
xor rax, rsp
mov qword [rsp + 0x2760], rax
mov r12b, cl
xor edi, edi
test dl, dl
je 0x1400ba67a
cmp word [0x14015572e], di
je 0x1400ba6df
cmp qword [0x14019d3f8], rdi
je 0x1400ba6df
mov word [0x14015572e], di
jmp 0x1400ba6df
mov cl, 1
call fcn.1400c06b8
mov dword [0x140158878], 3
mov qword [0x140147e60], rdi
mov cl, byte [0x140145ca4]
test cl, cl
jne 0x1400ba7d7
xor r8d, r8d
lea rdx, [0x14015eb58]
lea rcx, [0x14016c120]
call fcn.14004011c
cmp byte [0x14016d1a2], dil
je 0x1400ba6df
mov eax, dword [0x140158874]
mov r15d, 4
cmp qword [0x14015eb88], 1
cmova eax, r15d
mov dword [0x140158874], eax
jmp 0x1400ba6e5
mov r15d, 4
mov cl, byte [0x140145ca4]
test cl, cl
jne 0x1400ba7dd
cmp word [0x14015db52], di
jne 0x1400ba7dd
mov r12b, dil
mov ebx, 0x800
mov r8d, ebx
lea rdx, [0x14015db52]
mov ecx, dword [0x14015aaf4]
call fcn.1400c0274
mov dword [rsp + 0x20], ebx
lea r13, [0x14010d188]
mov r9, r13
lea r8, [rsp + 0x1760]
lea rdx, str.DefFolder
lea rcx, str.Compression
call fcn.14009f6dc
cmp word [rsp + 0x1760], di
jne 0x1400ba770
cmp byte [0x14016d1a2], dil
je 0x1400ba7ae
lea rcx, [rsp + 0x1760]
call fcn.14003b11c
cmp word [rsp + 0x1760], di
je 0x1400ba7ae
mov rdx, rbx
lea rcx, [rsp + 0x1760]
call fcn.140077908
mov r8, rbx
lea rdx, [0x14015db52]
lea rcx, [rsp + 0x1760]
call fcn.14008df20
mov r8, rbx
lea rdx, [rsp + 0x1760]
lea rcx, [0x14015db52]
call fcn.14008df58
cmp word [0x140153728], di
setne r8b
mov r9d, dword [0x14015aaf4]
mov rdx, rbx
lea rcx, [0x14015db52]
call fcn.1400c3c54
mov cl, byte [0x140145ca4]
jmp 0x1400ba7e9
mov r15d, 4
lea r13, [0x14010d188]
mov ebx, 0x800
mov eax, dword [0x140158874]
mov edx, 5
test eax, eax
cmove eax, edx
mov dword [0x140158874], eax
test cl, cl
je 0x1400ba95c
mov r14d, dword [0x140169344]
cmp r14d, 1
jbe 0x1400ba853
cmp dword [0x140158844], 3
je 0x1400badfc
lea ecx, [rdx + 0x60]
call fcn.140087e6c
mov rbx, rax
mov ecx, 0x1fd
call fcn.140087e6c
mov rdx, rax
mov r9d, 0x30
mov r8, rbx
mov rcx, qword [0x140145cd8]
call fcn.1400c6670
jmp 0x1400badfc
mov r8, rbx
lea rdx, [0x14015db52]
lea rcx, [0x140169340]
call fcn.1400050cc
mov r8, rbx
lea rdx, [0x140156740]
lea rcx, [0x140169340]
call fcn.1400054a0
cmp word [0x140156740], di
je 0x1400ba897
mov rdx, rbx
lea rcx, [0x140156740]
call fcn.140077908
mov byte [0x1401588e8], dil
lea rdx, [rsp + 0x110]
lea rcx, [0x140169340]
call fcn.1400054c0
mov eax, dword [rsp + 0x258]
mov dword [0x14015aaf4], eax
mov qword [rsp + 0x1320], rdi
mov qword [rsp + 0x1328], rdi
mov qword [rsp + 0x1330], rdi
xor r8d, r8d
lea rdx, [rsp + 0x310]
lea rcx, [0x14015db52]
call fcn.14006a4b4
test al, al
je 0x1400ba8fd
cmp qword [rsp + 0x1310], 0x18
je 0x1400ba91e
cmp dword [rsp + 0x258], edi
jne 0x1400ba917
cmp byte [rsp + 0x190], dil
mov byte [0x1401588d0], 1
jne 0x1400ba91e
mov byte [0x1401588d0], dil
test r14d, r14d
jne 0x1400ba92c
cmp dword [rsp + 0x2e0], edi
je 0x1400ba93a
movzx eax, byte [rsp + 0x252]
mov dword [0x140158864], eax
mov r14d, 0x2a
cmp qword [rsp + 0x248], rdi
je 0x1400ba953
mov dword [0x140153728], r14d
jmp 0x1400ba962
mov word [0x140153728], di
jmp 0x1400ba962
mov r14d, 0x2a
mov rcx, qword [0x140145cd8]
call qword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb rcx, rcx
and rcx, qword [0x140145cd8]
xor r8d, r8d
mov dl, r12b
call fcn.1400bd7e0
test al, al
je 0x1400baddd
mov al, byte [0x14019d417]
neg al
sbb ecx, ecx
and ecx, dword [0x14019d418]
mov dword [0x140158858], ecx
mov eax, dword [0x14019d404]
dec eax
cmp eax, 1
ja 0x1400baa03
mov eax, dword [0x14019d410]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14019d40c]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14019d408]
lea r8, str._dd_dh_dm
mov edx, 0x50
lea rcx, [rsp + 0x50]
call fcn.1400026d8
lea rdx, [rsp + 0x50]
cmp dword [0x14019d404], 1
lea rcx, [0x1401589f0]
je 0x1400ba9fe
lea rcx, [0x1401589f8]
call fcn.14008f538
mov rcx, qword [0x14019d3f8]
test rcx, rcx
je 0x1400baa16
call fcn.1400c459c
jmp 0x1400baa3a
cmp byte [0x140145ca4], dil
je 0x1400baa3a
cmp qword [rsp + 0x248], rdi
je 0x1400baa3a
cmp word [0x140153728], r14w
jne 0x1400baa3a
mov word [0x140153728], di
cmp qword [0x14015eb88], rdi
jne 0x1400baa77
mov ecx, 0x65
call fcn.140087e6c
mov rbx, rax
mov ecx, 0x14b
call fcn.140087e6c
mov rdx, rax
mov r9d, 0x30
mov r8, rbx
mov rcx, qword [0x140145cd8]
call fcn.1400c6670
jmp 0x1400baddd
cmp word [0x14015572e], di
je 0x1400bab68
cmp dword [0x140156730], edi
jne 0x1400bab68
lea rdx, [0x140111c68]
lea rcx, [0x14015572e]
call fcn.140069ee4
mov r12, rax
test rax, rax
je 0x1400bab68
mov r9, rax
mov edx, 1
mov r8d, 0x400
lea rcx, [rsp + 0x1360]
call fcn.1400f9e14
mov r14, rax
mov rcx, r12
call fcn.1400f5e3c
mov eax, 0x3ff
cmp r14, rax
cmovb rax, r14
cmp rax, 0x400
jae 0x1400bab62
mov byte [rsp + rax + 0x1360], dil
mov dword [rsp + 0x40], 0x30c
test r14, r14
je 0x1400bab24
lea r8, [rsp + 0x40]
mov edx, r14d
lea rcx, [rsp + 0x1360]
call qword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x1400bab24
mov dword [0x140156730], 3
jmp 0x1400bab68
cmp r14, 3
jbe 0x1400bab68
cmp byte [rsp + 0x1360], 0xef
jne 0x1400bab68
cmp byte [rsp + 0x1361], 0xbb
jne 0x1400bab68
cmp byte [rsp + 0x1362], 0xbf
jne 0x1400bab68
lea rcx, [rsp + 0x1360]
call fcn.140090b1c
test al, al
je 0x1400bab68
mov dword [0x140156730], r15d
jmp 0x1400bab68
call fcn.1400ee84c
nop
lea rcx, [rsp + 0x50]
call fcn.14008df9c
nop
lea rcx, [0x14015eb58]
call fcn.14008e1bc
mov r15d, 0x25
lea rcx, [0x14015eb58]
call fcn.14008e04c
mov r14, rax
test rax, rax
je 0x1400bac9f
mov r9, rbx
lea r8, [rsp + 0x1760]
mov rdx, rax
lea rcx, [0x14016c120]
call fcn.140040770
cmp word [r14], 0x40
jne 0x1400bac24
lea rcx, [rsp + 0x1760]
call fcn.140068f88
test al, al
jne 0x1400bac24
lea rdx, [r14 + 2]
mov r9, rbx
lea r8, [rsp + 0x1760]
lea rcx, [0x14016c120]
call fcn.140040770
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov eax, dword [0x140156734]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1760]
call fcn.140069f98
test al, al
je 0x1400bac24
jmp 0x1400bab85
mov edx, r15d
mov rcx, r14
call fcn.1400efc50
test rax, rax
je 0x1400bac8b
mov edx, r15d
lea rcx, [rax + 2]
call fcn.1400efc50
test rax, rax
je 0x1400bac8b
lea rcx, [rsp + 0x1760]
call fcn.140068f88
test al, al
jne 0x1400bac8b
mov r8d, ebx
lea rdx, [rsp + 0x310]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ff
ja 0x1400bac8b
mov r8, rbx
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x1760]
call fcn.14008df58
lea rdx, [rsp + 0x1760]
lea rcx, [rsp + 0x50]
call fcn.14008dfd8
jmp 0x1400bac1f
lea rdx, [rsp + 0x50]
lea rcx, [0x14015eb58]
call fcn.1400ba5ac
nop
lea rcx, [rsp + 0x50]
call fcn.140004128
nop
jmp 0x1400baccc
cmp byte [0x14015cb05], dil
jne 0x1400bacf2
mov r9, rbx
lea r8, [0x14015db52]
lea rdx, [0x14015db52]
lea rcx, [0x14016c120]
call fcn.140040770
mov al, byte [0x140157840]
mov byte [0x14016bd10], al
lea rcx, [0x14016bce0]
call fcn.1400a7f20
cmp byte [0x14015cb21], dil
je 0x1400bad1a
call fcn.1400bb6c0
jmp 0x1400bad2c
mov dl, byte [0x14015cb03]
lea rcx, [0x140169340]
call fcn.140004284
cmp qword [0x14019d3f8], rdi
je 0x1400bad41
lea rcx, [0x14015572e]
call fcn.140068c94
cmp dword [0x140146d08], 1
je 0x1400baddd
cmp byte [0x140145ca4], dil
je 0x1400bad65
lea rcx, [0x14016c120]
call fcn.140043d78
jmp 0x1400baddd
cmp byte [0x1401588ce], dil
je 0x1400bad7a
lea rcx, [0x1401526e8]
call fcn.1400addf8
mov r8, rbx
lea rdx, [rsp + 0x1760]
lea rcx, [0x14016c120]
call fcn.140040094
lea rax, [rsp + 0x1760]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400bad9d
lea rdx, [0x14015db52]
lea rcx, [rsp + 0x1760]
call fcn.1400910d0
test eax, eax
jne 0x1400badce
lea rcx, [0x14015db52]
call fcn.1400792dc
mov r13, rax
mov rdx, r13
lea rcx, [0x14016c120]
call fcn.140043178
mov rcx, qword [0x14019d3f8]
call int.1400eeb8c
mov byte [0x14016bd10], dil
lea rcx, [0x14016bce0]
call fcn.1400a7f20
mov rcx, qword [rsp + 0x2760]
xor rcx, rsp
call fcn.1400eeae0
lea r11, [rsp + 0x2770]
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