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

Disassembly:
push rbx
push rdi
mov eax, 0x10078
call fcn.1400e0020
sub rsp, rax
mov rdi, rdx
mov rbx, rcx
mov byte [rcx + 0x2d0], 1
mov word [rcx + 0xbb4], 0
test rdx, rdx
jne 0x14002a5f2
mov rdi, qword [rcx + 0xb80]
cmp dword [rcx + 0xbb0], 0
mov qword [rsp + 0x10098], rbp
jne 0x14002a659
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002a659
lea r8, str.Script_file_not_found:_n_s
lea rcx, [rsp + 0x30]
mov r9, rdi
mov edx, 0x8018
call fcn.1400b80b0
xor ebp, ebp
lea rcx, [rsp + 0x30]
xorpd xmm3, xmm3
lea edx, [rbp + 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call fcn.1400bed30
xor eax, eax
mov rbp, qword [rsp + 0x10098]
add rsp, 0x10078
pop rdi
pop rbx
ret
cmp qword [0x14012b3a8], 0
mov qword [rsp + 0x10060], r14
lea r14, [0x1400f0524]
jne 0x14002a683
call fcn.1400b4ef0
mov qword [0x14012b3a8], rax
test rax, rax
je 0x14002a6e1
mov rdx, qword [0x14012b3b0]
cmp qword [rdx + 0x10], 0x28
jae 0x14002a6a6
call fcn.1400b4ef0
mov rdx, qword [0x14012b3b0]
mov qword [rdx + 0x18], rax
test rax, rax
je 0x14002a6e1
mov rcx, qword [rdx + 8]
add qword [rdx + 0x10], 0xffffffffffffffd8
lea rax, [rcx + 0x28]
mov qword [0x14012b3b8], rcx
mov qword [rdx + 8], rax
test rcx, rcx
je 0x14002a6e1
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 0x14002a6e5
xor ebp, ebp
mov ecx, ebp
mov qword [rbx + 0x6a8], rcx
test rcx, rcx
je 0x14002ac21
cmp dword [rbx + 0xbb0], 2
lea rax, [0x1400f787c]
mov rcx, rbx
cmove rdi, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.14002b130
cmp eax, 1
jne 0x14002ac21
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.140032fa0
test eax, eax
je 0x14002ac21
mov rax, qword [rbx + 8]
mov rcx, rbx
mov qword [rax + 0x10], 1
mov rdx, qword [rbx]
call fcn.14003c770
test eax, eax
je 0x14002ac21
mov rdx, qword [rbx]
mov rcx, rbx
mov qword [rsp + 0x100a0], rsi
call fcn.14003c8a0
cmp qword [rbx + 0x10], 0
je 0x14002a794
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x18]
mov qword [rcx + 0x20], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx], rax
cmp dword [rbx + 0x38], 0
mov qword [rsp + 0x10070], r12
mov esi, ebp
jle 0x14002a7f5
mov r12, rbp
nop word [rax + rax]
mov rax, qword [rbx + 0x30]
mov rdi, qword [r12 + rax]
cmp byte [rdi + 0x5d], 0
jne 0x14002a7ea
test byte [rdi + 0x5c], 4
jne 0x14002a7ea
mov r8, qword [rdi + 0x30]
lea r9, [rdi + 0x48]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ed80
mov r8, qword [rdi + 0x38]
lea r9, [rdi + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ed80
inc esi
add r12, 8
cmp esi, dword [rbx + 0x38]
jl 0x14002a7b0
cmp qword [rbx + 0x2b0], 0
je 0x14002a823
mov rcx, rbx
call fcn.140039880
test eax, eax
je 0x14002ac19
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rbx + 0x2b0], rbp
cmp dword [0x140129b8c], 0
je 0x14002a834
mov rcx, rbx
call fcn.14004ee80
mov rcx, qword [rbx + 0xbc0]
test rcx, rcx
je 0x14002a876
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
mov r12, qword [rsp + 0x10070]
mov rsi, qword [rsp + 0x100a0]
mov r14, qword [rsp + 0x10060]
mov rbp, qword [rsp + 0x10098]
add rsp, 0x10078
pop rdi
pop rbx
ret
mov rcx, qword [0x14012a590]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [rbx + 0x2cc]
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.140032fa0
test eax, eax
je 0x14002ac19
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.140032fa0
test eax, eax
je 0x14002ac19
mov rax, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rbp
mov qword [rcx + 0x10], 1
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], 1
mov rcx, qword [rbx + 0x6a8]
mov rax, qword [rbx + 8]
mov qword [rcx + 0x10], rax
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14003c920
test rax, rax
je 0x14002ac19
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14003ce90
test rax, rax
je 0x14002ac19
lea rdx, [0x1400f7880]
mov r9d, 3
xor r8d, r8d
mov rcx, rbx
call fcn.14003bab0
mov rbx, rax
mov qword [0x14012a580], rax
test rax, rax
je 0x14002ac19
movzx eax, byte [rax + 0x23]
mov qword [rsp + 0x10068], r13
test al, al
jne 0x14002a97d
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400f0614]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bc2f0
jmp 0x14002abb4
lea r13, [0x1400f0614]
cmp qword [rbx + 8], r13
jne 0x14002a993
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x14002a999
mov r12d, 1
lea rcx, [r12 + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x14002a9b6
mov rdx, r12
mov rcx, r13
call fcn.140006f00
jmp 0x14002abb4
mov r9, qword [0x140124580]
cmp rsi, r9
jbe 0x14002a9e3
cmp rsi, qword [rbx + 0x18]
jbe 0x14002a9e3
lea rdx, [0x14010f290]
lea rcx, [0x14012b510]
mov r8, r14
call fcn.14004e080
jmp 0x14002abb4
cmp rcx, 2
jae 0x14002a9fd
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400bc9a0
jmp 0x14002abb4
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x14002aa1a
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 [0x140124580]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x14002ab8f
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x14002aa53
cmp al, 2
je 0x14002aa90
mov rdi, qword [rsp + 0x10090]
mov rax, qword [rsp + 0x10090]
jmp 0x14002ab83
mov edi, 0x80
cmp rsi, rdi
ja 0x14002aa90
cmp rsi, 8
ja 0x14002aa6a
mov edi, 8
jmp 0x14002aa76
mov eax, reloc.WSOCK32.dll_recv
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b4e60
test rax, rax
je 0x14002abb4
mov byte [rbx + 0x20], 1
jmp 0x14002ab83
cmp rsi, 0x20
jae 0x14002aaa0
mov edi, SafeArrayAllocDescriptor
jmp 0x14002ab4a
mov edi, 0x208
cmp rsi, rdi
jb 0x14002ab4a
cmp rsi, 0x50000
jae 0x14002ab06
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x14002aacd
addsd xmm0, qword [0x140110e78]
mulsd xmm0, qword [0x140110eb0]
movsd xmm1, qword [0x140110ea8]
xor eax, eax
comisd xmm0, xmm1
jbe 0x14002aafc
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14002aafc
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x14002ab4a
cmp rsi, 0x320000
jae 0x14002ab18
lea rdi, [rsi + 0x8000]
jmp 0x14002ab4a
cmp rsi, 0xc80000
jae 0x14002ab43
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x14002ab4a
lea rdi, [rsi + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r8b, 2
jne 0x14002ab6a
test rcx, rcx
je 0x14002ab6a
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400d5bd8
jmp 0x14002ab6d
xor sil, sil
test rdi, rdi
js 0x14002abe0
mov rcx, rdi
call fcn.1400d5b18
test rax, rax
je 0x14002abe0
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 0x14002aba4
lea r8, [r12 + r12]
mov rdx, r13
call fcn.1400d6960
mov rax, qword [rbx + 8]
lea rcx, [r12 + r12]
mov word [rcx + rax], bp
mov qword [rbx + 0x10], rcx
lea rcx, [rsp + 0x10090]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x10090]
call fcn.140023aa0
mov r13, qword [rsp + 0x10068]
mov eax, 1
jmp 0x14002a84c
test sil, sil
je 0x14002abf6
lea rax, [0x14012b418]
mov qword [rbx + 0x18], rbp
mov qword [rbx + 8], rax
jmp 0x14002abfd
mov rax, qword [rbx + 8]
mov word [rax], bp
lea rdx, str.Out_of_memory.
lea rcx, [0x14012b510]
mov r8, r14
mov qword [rbx + 0x10], rbp
call fcn.14004e080
jmp 0x14002abb4
or eax, 0xffffffff
jmp 0x14002a84c
or eax, 0xffffffff
jmp 0x14002a85c