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

Disassembly:
push rbx
push rsi
mov eax, 0x10068
call fcn.1400f3640
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 0x140036806
cmp word [rcx], 0
je 0x140036806
cmp byte [0x140142883], 0
jne 0x1400364be
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400364be
cmp qword [0x140142820], 0
jne 0x1400364be
mov r9, qword [rbx + 0xbb0]
lea r8, str.Script_file_not_found:_n_s
mov edx, 0x8018
lea rcx, [rsp + 0x30]
call fcn.1400b9a60
xor esi, esi
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 0x10]
call fcn.1400c0900
xor eax, eax
add rsp, 0x10068
pop rsi
pop rbx
ret
mov ecx, 0x28
call fcn.1400b6a80
xor esi, esi
mov qword [rsp + 0x10080], rax
test rax, rax
je 0x1400364fa
lea rcx, vtable.Label.0
mov qword [rax + 0x10], rsi
mov qword [rax], rcx
lea rcx, [0x140103574]
mov qword [rax + 8], rcx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
jmp 0x1400364fd
mov rax, rsi
mov qword [rbx + 0x6d8], rax
test rax, rax
je 0x140036806
cmp byte [0x140142883], 0
lea rdx, [0x14011d294]
jne 0x140036524
mov rdx, qword [rbx + 0xbb0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.1400370b0
cmp eax, 1
jne 0x140036806
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14003f8d0
test eax, eax
je 0x140036806
mov rax, qword [rbx + 0x668]
mov rcx, rbx
mov qword [rax + 0x10], 1
mov rdx, qword [rbx + 0x660]
call fcn.140048f10
test eax, eax
je 0x140036806
mov rdx, qword [rbx + 0x660]
mov rcx, rbx
mov qword [rsp + 0x10088], rbp
call fcn.140049040
cmp qword [rbx + 0x670], 0
je 0x1400365d1
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 0x140036681
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 0x140036663
test byte [rdi + 0x78], 4
jne 0x140036663
mov r8, qword [rdi + 0x38]
lea r9, [rdi + 0x5c]
mov rdx, rdi
mov rcx, rbx
call fcn.140057cd0
mov r8, qword [rdi + 0x48]
lea r9, [rdi + 0x68]
mov rdx, rdi
mov rcx, rbx
call fcn.140057cd0
mov r8, qword [rdi + 0x40]
lea r9, [rdi + 0x64]
mov rdx, rdi
mov rcx, rbx
call fcn.140057cd0
mov r8, qword [rdi + 0x50]
lea r9, [rdi + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.140057cd0
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x698]
jl 0x140036600
mov r14, qword [rsp + 0x10060]
mov rdi, qword [rsp + 0x10090]
cmp qword [rbx + 0x270], 0
mov rbp, qword [rsp + 0x10088]
je 0x1400366b7
mov rcx, rbx
call fcn.140044bf0
test eax, eax
je 0x140036806
mov rcx, qword [rbx + 0x270]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rbx + 0x270], rsi
cmp dword [0x1401435c0], 0
je 0x1400366c8
mov rcx, rbx
call fcn.140057e70
mov rcx, qword [rbx + 0xbe8]
test rcx, rcx
je 0x1400366ea
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
add rsp, 0x10068
pop rsi
pop rbx
ret
mov rcx, qword [0x1401427c0]
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.14003f8d0
test eax, eax
je 0x140036806
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14003f8d0
test eax, eax
je 0x140036806
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.1400490d0
test rax, rax
je 0x140036806
mov rdx, qword [rbx + 0x660]
mov rcx, rbx
call fcn.1400494d0
test rax, rax
je 0x140036806
mov r9d, 3
lea rdx, str.ErrorLevel
xor r8d, r8d
mov rcx, rbx
call fcn.140048170
mov qword [0x140142748], rax
test rax, rax
je 0x140036806
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [0x140103654]
mov rcx, rax
lea r8, [r9 - 1]
call fcn.1400be640
lea rcx, [rsp + 0x10080]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x10080]
call fcn.14002f1c0
mov eax, 1
add rsp, 0x10068
pop rsi
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x10068
pop rsi
pop rbx
ret