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

Disassembly:
push rbx
push rsi
mov eax, 0x10068
call fcn.1400d7ad0
sub rsp, rax
mov rbx, rcx
mov byte [rcx + 0x290], 1
mov word [rcx + 0xbe0], 0
mov rcx, qword [rcx + 0xbb0]
test rcx, rcx
je 0x140036ac6
cmp word [rcx], 0
je 0x140036ac6
cmp byte [0x140113b63], 0
jne 0x14003677e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003677e
cmp qword [0x140113b00], 0
jne 0x14003677e
mov r9, qword [rbx + 0xbb0]
lea r8, str.Script_file_not_found:_n_s
mov edx, 0x8018
lea rcx, [rsp + 0x30]
call fcn.1400ba350
xor esi, esi
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 0x10]
call fcn.1400c1280
xor eax, eax
add rsp, 0x10068
pop rsi
pop rbx
ret
mov ecx, 0x28
call fcn.1400b7310
xor esi, esi
mov qword [rsp + 0x10080], rax
test rax, rax
je 0x1400367ba
lea rcx, vtable.Label.0
mov qword [rax + 0x10], rsi
mov qword [rax], rcx
lea rcx, [0x1400da7a4]
mov qword [rax + 8], rcx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
jmp 0x1400367bd
mov rax, rsi
mov qword [rbx + 0x6d8], rax
test rax, rax
je 0x140036ac6
cmp byte [0x140113b63], 0
lea rdx, [0x1400f44c4]
jne 0x1400367e4
mov rdx, qword [rbx + 0xbb0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140037370
cmp eax, 1
jne 0x140036ac6
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14003fc70
test eax, eax
je 0x140036ac6
mov rax, qword [rbx + 0x668]
mov rcx, rbx
mov qword [rax + 0x10], 1
mov rdx, qword [rbx + 0x660]
call fcn.140049400
test eax, eax
je 0x140036ac6
mov rdx, qword [rbx + 0x660]
mov rcx, rbx
mov qword [rsp + 0x10088], rbp
call fcn.140049530
cmp qword [rbx + 0x670], 0
je 0x140036891
mov rax, qword [rbx + 0x660]
mov rcx, qword [rbx + 0x678]
mov qword [rcx + 0x20], rax
mov rcx, qword [rbx + 0x660]
mov rax, qword [rbx + 0x678]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x670]
mov qword [rbx + 0x660], rax
cmp dword [rbx + 0x698], 0
mov ebp, esi
jle 0x140036941
mov qword [rsp + 0x10090], rdi
mov qword [rsp + 0x10060], r14
mov r14, rsi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x690]
mov rdi, qword [r14 + rax]
cmp byte [rdi + 0x79], 0
jne 0x140036923
test byte [rdi + 0x78], 4
jne 0x140036923
mov r8, qword [rdi + 0x38]
lea r9, [rdi + 0x5c]
mov rdx, rdi
mov rcx, rbx
call fcn.1400581c0
mov r8, qword [rdi + 0x48]
lea r9, [rdi + 0x68]
mov rdx, rdi
mov rcx, rbx
call fcn.1400581c0
mov r8, qword [rdi + 0x40]
lea r9, [rdi + 0x64]
mov rdx, rdi
mov rcx, rbx
call fcn.1400581c0
mov r8, qword [rdi + 0x50]
lea r9, [rdi + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.1400581c0
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x698]
jl 0x1400368c0
mov r14, qword [rsp + 0x10060]
mov rdi, qword [rsp + 0x10090]
cmp qword [rbx + 0x270], 0
mov rbp, qword [rsp + 0x10088]
je 0x140036977
mov rcx, rbx
call fcn.140044ff0
test eax, eax
je 0x140036ac6
mov rcx, qword [rbx + 0x270]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rbx + 0x270], rsi
cmp dword [0x1401148a0], 0
je 0x140036988
mov rcx, rbx
call fcn.140058360
mov rcx, qword [rbx + 0xbe8]
test rcx, rcx
je 0x1400369aa
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
add rsp, 0x10068
pop rsi
pop rbx
ret
mov rcx, qword [0x140113aa0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [rbx + 0x28c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dl, 0x68
mov rcx, rbx
call fcn.14003fc70
test eax, eax
je 0x140036ac6
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14003fc70
test eax, eax
je 0x140036ac6
mov rax, qword [rbx + 0x668]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x18]
mov qword [rcx + 0x10], 1
mov rax, qword [rbx + 0x668]
mov qword [rax + 0x10], 1
mov rcx, qword [rbx + 0x6d8]
mov rax, qword [rbx + 0x668]
mov qword [rcx + 0x10], rax
mov rcx, rbx
mov rdx, qword [rbx + 0x660]
call fcn.1400495c0
test rax, rax
je 0x140036ac6
mov rdx, qword [rbx + 0x660]
mov rcx, rbx
call fcn.1400499c0
test rax, rax
je 0x140036ac6
mov r9d, 3
lea rdx, str.ErrorLevel
xor r8d, r8d
mov rcx, rbx
call fcn.140048640
mov qword [0x140113a28], rax
test rax, rax
je 0x140036ac6
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [0x1400da884]
mov rcx, rax
lea r8, [r9 - 1]
call fcn.1400befb0
lea rcx, [rsp + 0x10080]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x10080]
call fcn.14002f340
mov eax, 1
add rsp, 0x10068
pop rsi
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x10068
pop rsi
pop rbx
ret