Function at 0x14002a720
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push rbx
push rbp
mov eax, 0x10078
call fcn.1400e0af0
sub rsp, rax
test rcx, rcx
mov rbx, rcx
mov byte [0x14012c890], 1
cmove rbx, qword [0x14012d140]
cmp dword [0x14012d170], 0
mov word [0x14012d174], 0
jne 0x14002a7a5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002a7a5
lea r8, str.Script_file_not_found:_n_s
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x8018
call fcn.1400b9320
xor ebp, ebp
lea rcx, [rsp + 0x30]
xorpd xmm3, xmm3
lea edx, [rbp + 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call fcn.1400c0060
xor eax, eax
add rsp, 0x10078
pop rbp
pop rbx
ret
cmp qword [0x14012c448], 0
mov qword [rsp + 0x10060], r14
lea r14, [0x1400f1514]
jne 0x14002a7cf
call fcn.1400b6140
mov qword [0x14012c448], rax
test rax, rax
je 0x14002a82d
mov rdx, qword [0x14012c450]
cmp qword [rdx + 0x10], 0x28
jae 0x14002a7f2
call fcn.1400b6140
mov rdx, qword [0x14012c450]
mov qword [rdx + 0x18], rax
test rax, rax
je 0x14002a82d
mov rcx, qword [rdx + 8]
add qword [rdx + 0x10], 0xffffffffffffffd8
lea rax, [rcx + 0x28]
mov qword [0x14012c458], rcx
mov qword [rdx + 8], rax
test rcx, rcx
je 0x14002a82d
xor ebp, ebp
lea rax, vtable.Label.0
mov qword [rcx + 8], r14
mov qword [rcx], rax
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
mov qword [rcx + 0x20], rbp
jmp 0x14002a831
xor ebp, ebp
mov ecx, ebp
mov qword [0x14012cc68], rcx
test rcx, rcx
je 0x14002ada7
cmp dword [0x14012d170], 2
lea rax, [0x1400f894c]
lea rcx, [0x14012c5c0]
cmove rbx, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.14002b2c0
cmp eax, 1
jne 0x14002ada7
lea rcx, [0x14012c5c0]
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov qword [rsp + 0x20], rbp
call fcn.140033270
test eax, eax
je 0x14002ada7
mov rax, qword [0x14012c5c8]
mov qword [rax + 0x10], 1
mov rcx, qword [0x14012c5c0]
call fcn.14003ca80
test eax, eax
je 0x14002ada7
mov rcx, qword [0x14012c5c0]
mov qword [rsp + 0x100a0], rdi
call fcn.14003cbc0
cmp qword [0x14012c5d0], 0
je 0x14002a905
mov rcx, qword [0x14012c5c0]
mov rax, qword [0x14012c5d8]
mov qword [rax + 0x20], rcx
mov rcx, qword [0x14012c5c0]
mov rax, qword [0x14012c5d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14012c5d0]
mov qword [0x14012c5c0], rax
mov ecx, dword [0x14012c5f8]
mov qword [rsp + 0x10098], rsi
mov edi, ebp
test ecx, ecx
jle 0x14002a967
mov rsi, rbp
nop dword [rax]
mov rax, qword [0x14012c5f0]
mov rbx, qword [rax + rsi]
cmp byte [rbx + 0x5d], 0
jne 0x14002a95d
test byte [rbx + 0x5c], 4
jne 0x14002a95d
mov rdx, qword [rbx + 0x30]
lea r8, [rbx + 0x48]
mov rcx, rbx
call fcn.14004f3c0
mov rdx, qword [rbx + 0x38]
lea r8, [rbx + 0x50]
mov rcx, rbx
call fcn.14004f3c0
mov ecx, dword [0x14012c5f8]
inc edi
add rsi, 8
cmp edi, ecx
jl 0x14002a920
cmp qword [0x14012c870], 0
je 0x14002a992
call fcn.140039b50
test eax, eax
je 0x14002ad9f
mov rcx, qword [0x14012c870]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [0x14012c870], rbp
cmp dword [0x14012ac30], 0
je 0x14002a9a0
call fcn.14004f4c0
cmp qword [0x14012d180], 0
je 0x14002a9ce
xor eax, eax
mov rsi, qword [rsp + 0x10098]
mov rdi, qword [rsp + 0x100a0]
mov r14, qword [rsp + 0x10060]
add rsp, 0x10078
pop rbp
pop rbx
ret
mov rcx, qword [0x14012b638]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [0x14012c88c]
lea rcx, [0x14012c5c0]
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov qword [rsp + 0x20], rbp
call fcn.140033270
test eax, eax
je 0x14002ad9f
lea rcx, [0x14012c5c0]
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov qword [rsp + 0x20], rbp
call fcn.140033270
test eax, eax
je 0x14002ad9f
mov rax, qword [0x14012c5c8]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rbp
mov qword [rcx + 0x10], 1
mov rax, qword [0x14012c5c8]
mov qword [rax + 0x10], 1
mov rcx, qword [0x14012cc68]
mov rax, qword [0x14012c5c8]
mov qword [rcx + 0x10], rax
mov rdx, qword [0x14012c5c0]
lea rcx, [0x14012c5c0]
call fcn.14003cc50
test rax, rax
je 0x14002ad9f
mov rcx, qword [0x14012c5c0]
call fcn.14003d1c0
test rax, rax
je 0x14002ad9f
lea rdx, [0x1400f8950]
lea rcx, [0x14012c5c0]
mov r9d, 3
xor r8d, r8d
call fcn.14003bdc0
mov rbx, rax
mov qword [0x14012b628], rax
test rax, rax
je 0x14002ad9f
movzx eax, byte [rax + 0x23]
mov qword [rsp + 0x10068], r13
test al, al
jne 0x14002aaf3
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400f1604]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bd650
jmp 0x14002ad3a
lea r13, [0x1400f1604]
mov qword [rsp + 0x10070], r12
cmp qword [rbx + 8], r13
jne 0x14002ab11
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x14002ab17
mov r12d, 1
lea rcx, [r12 + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x14002ab34
mov rdx, r12
mov rcx, r13
call fcn.140006d20
jmp 0x14002ad32
mov r9, qword [0x1401255a0]
cmp rsi, r9
jbe 0x14002ab61
cmp rsi, qword [rbx + 0x18]
jbe 0x14002ab61
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x14012c5c0]
mov r8, r14
call fcn.14004e5e0
jmp 0x14002ad32
cmp rcx, 2
jae 0x14002ab7b
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400bdd00
jmp 0x14002ad32
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x14002ab98
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [0x1401255a0]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x14002ad0d
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x14002abd1
cmp al, 2
je 0x14002ac0e
mov rdi, qword [rsp + 0x10090]
mov rax, qword [rsp + 0x10090]
jmp 0x14002ad01
mov edi, 0x80
cmp rsi, rdi
ja 0x14002ac0e
cmp rsi, 8
ja 0x14002abe8
mov edi, 8
jmp 0x14002abf4
mov eax, reloc.WSOCK32.dll_recv
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b60b0
test rax, rax
je 0x14002ad32
mov byte [rbx + 0x20], 1
jmp 0x14002ad01
cmp rsi, 0x20
jae 0x14002ac1e
mov edi, SafeArrayAllocDescriptor
jmp 0x14002acc8
mov edi, 0x208
cmp rsi, rdi
jb 0x14002acc8
cmp rsi, 0x50000
jae 0x14002ac84
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x14002ac4b
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor eax, eax
comisd xmm0, xmm1
jbe 0x14002ac7a
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14002ac7a
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x14002acc8
cmp rsi, 0x320000
jae 0x14002ac96
lea rdi, [rsi + 0x8000]
jmp 0x14002acc8
cmp rsi, 0xc80000
jae 0x14002acc1
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x14002acc8
lea rdi, [rsi + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r8b, 2
jne 0x14002ace8
test rcx, rcx
je 0x14002ace8
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400d6fd8
jmp 0x14002aceb
xor sil, sil
test rdi, rdi
js 0x14002ad66
mov rcx, rdi
call fcn.1400d6f18
test rax, rax
je 0x14002ad66
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x14002ad22
lea r8, [r12 + r12]
mov rdx, r13
call fcn.1400d7a40
mov rcx, qword [rbx + 8]
lea rdx, [r12 + r12]
mov word [rdx + rcx], bp
mov qword [rbx + 0x10], rdx
mov r12, qword [rsp + 0x10070]
lea rcx, [rsp + 0x10090]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x10090]
call fcn.140023c40
mov r13, qword [rsp + 0x10068]
mov eax, 1
jmp 0x14002a9ac
test sil, sil
je 0x14002ad7c
lea rax, [0x14012c4b8]
mov qword [rbx + 0x18], rbp
mov qword [rbx + 8], rax
jmp 0x14002ad83
mov rax, qword [rbx + 8]
mov word [rax], bp
lea rdx, str.Out_of_memory.
lea rcx, [0x14012c5c0]
mov r8, r14
mov qword [rbx + 0x10], rbp
call fcn.14004e5e0
jmp 0x14002ad32
or eax, 0xffffffff
jmp 0x14002a9ac
or eax, 0xffffffff
mov r14, qword [rsp + 0x10060]
add rsp, 0x10078
pop rbp
pop rbx
ret