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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10060
call fcn.1400d9cc0
sub rsp, rax
mov eax, dword [0x140127db0]
test rdx, rdx
mov rbx, rdx
mov word [0x140127db4], 0
cmove rbx, qword [0x140127d78]
test eax, eax
jne 0x1400479c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400479bd
cmp byte [0x140127db7], 0
jne 0x14004797b
lea r9, str.Script_file_not_found.
mov qword [rsp + 0x20], rbx
lea r8, str._s_n_s
mov edx, 0x8018
lea rcx, [rsp + 0x30]
call fcn.14009c920
xor esi, esi
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 0x10]
call fcn.1400a36c0
jmp 0x1400479a3
lea rax, [0x140127d78]
mov qword [0x140125fc0], rax
lea r8, [0x1400fbbd0]
lea rdx, str.Script_file_not_found.
lea rcx, [0x140127620]
call fcn.140010a80
mov eax, 0xffffffff
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, dword [0x140127db0]
cmp eax, 2
mov qword [rsp + 0x10078], rbp
mov ebp, dword [0x140125fc8]
lea rcx, [0x1400ffd5c]
cmove rbx, rcx
lea rdx, [rsp + 0x10070]
xor esi, esi
lea rcx, [0x140127620]
mov r8, rbx
mov qword [rsp + 0x10070], rsi
xor r9d, r9d
mov byte [rsp + 0x20], sil
call fcn.140048020
mov rbx, qword [rsp + 0x10070]
mov edi, eax
cmp eax, 3
jne 0x140047a2b
mov r8d, ebp
lea rcx, [0x140127620]
mov rdx, rbx
call fcn.1400485c0
mov edi, eax
mov rbp, qword [rsp + 0x10078]
test rbx, rbx
je 0x140047a45
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
test edi, edi
je 0x1400479a3
xor ecx, ecx
mov byte [0x140125b37], sil
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea rcx, [0x140127620]
test eax, eax
jne 0x140047a7a
lea r8, [0x1400fbbd0]
lea rdx, str.An_internal_function_call_failed.
jmp 0x14004799e
mov rdx, qword [0x140127620]
call fcn.140055560
test eax, eax
je 0x1400479a3
lea rdx, [0x140127660]
lea rcx, [0x140127620]
call fcn.140055650
test eax, eax
je 0x1400479a3
lea rdx, [0x140127640]
lea rcx, [0x140127620]
call fcn.140055650
test eax, eax
je 0x1400479a3
lea rcx, [0x140127620]
call fcn.14005f720
test eax, eax
je 0x1400479a3
cmp dword [0x140127668], esi
mov ebx, esi
jle 0x140047b16
mov rdi, rsi
nop word [rax + rax]
mov rax, qword [0x140127660]
mov rdx, qword [rdi + rax]
call fcn.14005f3b0
test eax, eax
je 0x1400479a3
inc ebx
add rdi, 8
cmp ebx, dword [0x140127668]
jl 0x140047af0
cmp dword [0x140127648], esi
mov ebx, esi
jle 0x140047b56
mov rdi, rsi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x140127640]
mov rdx, qword [rdi + rax]
call fcn.14005f3b0
test eax, eax
je 0x1400479a3
inc ebx
add rdi, 8
cmp ebx, dword [0x140127648]
jl 0x140047b30
mov rcx, qword [0x140127660]
call fcn.1400c0680
mov rcx, qword [0x1401278d8]
test rcx, rcx
je 0x140047c5f
mov rax, qword [rcx + 0x18]
cmp dword [rax + 4], esi
je 0x140047c52
mov r8, qword [rax + 8]
mov rbx, qword [rax + 0x18]
test r8, r8
je 0x140047c52
lea rdx, str.Line
mov rcx, r8
call fcn.1400055e0
lea rcx, [0x1400fbbd0]
test rax, rax
je 0x140047bdd
mov edx, dword [rax + 8]
test edx, edx
je 0x140047bc1
cmp edx, 6
je 0x140047bbc
mov rdx, qword [rax]
jmp 0x140047bc8
mov rdx, rcx
jmp 0x140047bc8
mov rdx, qword [rax]
add rdx, 0x10
mov rax, rdx
mov dword [0x1401278f4], edx
sar rax, 0x20
mov dword [0x1401278f0], eax
jmp 0x140047be3
mov edx, dword [0x1401278f4]
test rbx, rbx
mov qword [0x140127cd0], rsi
cmovne rcx, rbx
cmp byte [0x140127db7], sil
je 0x140047c2a
cmp byte [0x140127db4], sil
jne 0x140047c2a
movzx r9d, word [0x1401278f0]
mov r8, rcx
mov dword [rsp + 0x20], edx
lea rcx, [0x140127620]
lea rdx, str.Unknown_class.
call fcn.14000f6f0
jmp 0x1400479a3
mov r9, rcx
mov qword [rsp + 0x28], rsi
lea rcx, [0x140127620]
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea rdx, str.Unknown_class.
call fcn.140010840
jmp 0x1400479a3
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [0x1401278d8], rsi
mov rcx, qword [0x140127d80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [0x140127d80]
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140060870
xor r9d, r9d
mov byte [rsp + 0x28], sil
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dl, 7
lea rcx, [0x140127620]
call fcn.14004fca0
test eax, eax
je 0x1400479a3
mov rdx, qword [0x140127620]
lea rcx, [0x140127620]
call fcn.1400556d0
test rax, rax
je 0x1400479a3
cmp byte [0x140127dbc], sil
sete sil
mov eax, esi
jmp 0x1400479a8