Function at 0x1400478d0
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.1400de6f0
sub rsp, rax
mov eax, dword [0x14012ce08]
test rdx, rdx
mov rdi, rdx
mov word [0x14012ce0c], 0
cmove rdi, qword [0x14012cdd0]
test eax, eax
jne 0x140047a73
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140047a6d
cmp byte [0x14012ce0f], 0
jne 0x14004796e
lea r9, str.Script_file_not_found.
mov qword [rsp + 0x20], rdi
lea r8, str._s_n_s
mov edx, 0x8018
lea rcx, [rsp + 0x30]
call fcn.1400a0ee0
xor ebx, ebx
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 0x10]
call fcn.1400a7a50
jmp 0x140047a53
mov rcx, qword [0x14012cd28]
lea rax, [0x14012cdd0]
mov qword [0x14012b010], rax
movzx eax, byte [0x14012ce0c]
test rcx, rcx
je 0x1400479ea
test al, al
je 0x1400479ee
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], 0
jne 0x1400479c0
cmp dword [0x14012cd88], 0
jne 0x1400479c0
cmp byte [0x140126ada], 0
jne 0x1400479c0
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
jmp 0x140047a36
xor ebx, ebx
lea r8, [0x140100be0]
mov r9, rcx
mov qword [rsp + 0x28], rbx
lea rdx, str.Script_file_not_found.
mov dword [rsp + 0x20], ebx
lea rcx, [0x14012c670]
call fcn.14000efc0
jmp 0x140047a53
test al, al
jne 0x140047a2a
test rcx, rcx
je 0x1400479fd
movzx r9d, word [rcx + 2]
mov eax, dword [rcx + 4]
jmp 0x140047a0a
mov r9d, dword [0x14012c948]
mov eax, dword [0x14012c94c]
lea r8, [0x140100be0]
mov dword [rsp + 0x20], eax
lea rdx, str.Script_file_not_found.
lea rcx, [0x14012c670]
call fcn.14000f360
jmp 0x140047a53
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [0x140100be0]
xor r8d, r8d
lea rdx, str.Script_file_not_found.
lea rcx, [0x14012c670]
call fcn.140010370
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 [0x14012ce08]
cmp eax, 2
mov qword [rsp + 0x10078], rbp
mov ebp, dword [0x14012b018]
lea rcx, [0x140104d0c]
cmove rdi, rcx
lea rdx, [rsp + 0x10070]
xor ebx, ebx
lea rcx, [0x14012c670]
mov r8, rdi
mov qword [rsp + 0x10070], rbx
xor r9d, r9d
mov byte [rsp + 0x20], bl
call fcn.140048180
mov rdi, qword [rsp + 0x10070]
mov esi, eax
cmp eax, 3
jne 0x140047ada
mov r8d, ebp
lea rcx, [0x14012c670]
mov rdx, rdi
call fcn.1400489f0
mov esi, eax
mov rbp, qword [rsp + 0x10078]
test rdi, rdi
je 0x140047af4
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test esi, esi
je 0x140047a53
xor ecx, ecx
mov byte [0x14012ab87], bl
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x140047bea
mov rcx, qword [0x14012cd28]
movzx eax, byte [0x14012ce0c]
test rcx, rcx
je 0x140047b7f
test al, al
je 0x140047b7f
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], ebx
jne 0x140047b54
cmp dword [0x14012cd88], ebx
jne 0x140047b54
cmp byte [0x140126ada], bl
jne 0x140047b54
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
jmp 0x140047bd4
mov r9, rcx
mov qword [rsp + 0x28], rbx
lea rcx, [0x14012c670]
mov dword [rsp + 0x20], ebx
lea r8, [0x140100be0]
lea rdx, str.An_internal_function_call_failed.
call fcn.14000efc0
jmp 0x140047a53
cmp byte [0x14012ce0f], bl
je 0x140047bca
test al, al
jne 0x140047bca
test rcx, rcx
je 0x140047b9a
movzx r9d, word [rcx + 2]
mov eax, dword [rcx + 4]
jmp 0x140047ba7
mov r9d, dword [0x14012c948]
mov eax, dword [0x14012c94c]
lea r8, [0x140100be0]
mov dword [rsp + 0x20], eax
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x14012c670]
call fcn.14000f360
jmp 0x140047a53
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [0x140100be0]
xor r8d, r8d
lea rdx, str.An_internal_function_call_failed.
jmp 0x140047a47
mov rdx, qword [0x14012c670]
lea rcx, [0x14012c670]
call fcn.140059530
test eax, eax
je 0x140047a53
lea rdx, [0x14012c6b0]
lea rcx, [0x14012c670]
call fcn.140059620
test eax, eax
je 0x140047a53
lea rdx, [0x14012c690]
lea rcx, [0x14012c670]
call fcn.140059620
test eax, eax
je 0x140047a53
lea rcx, [0x14012c670]
call fcn.140063800
test eax, eax
je 0x140047a53
cmp dword [0x14012c6b8], ebx
mov edi, ebx
jle 0x140047c86
mov rsi, rbx
nop dword [rax]
mov rax, qword [0x14012c6b0]
mov rdx, qword [rax + rsi]
call fcn.140063490
test eax, eax
je 0x140047a53
inc edi
add rsi, 8
cmp edi, dword [0x14012c6b8]
jl 0x140047c60
cmp dword [0x14012c698], ebx
mov edi, ebx
jle 0x140047cc6
mov rsi, rbx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x14012c690]
mov rdx, qword [rax + rsi]
call fcn.140063490
test eax, eax
je 0x140047a53
inc edi
add rsi, 8
cmp edi, dword [0x14012c698]
jl 0x140047ca0
mov rcx, qword [0x14012c6b0]
call fcn.1400c50b8
mov rcx, qword [0x14012c930]
test rcx, rcx
je 0x140047dc4
mov rax, qword [rcx + 0x18]
cmp dword [rax + 4], ebx
je 0x140047db7
mov r8, qword [rax + 8]
mov rdi, qword [rax + 0x18]
test r8, r8
je 0x140047db7
lea rdx, str.Line
mov rcx, r8
call fcn.140005520
mov rcx, rax
lea rax, [0x140100be0]
test rcx, rcx
je 0x140047d51
mov edx, dword [rcx + 8]
test edx, edx
je 0x140047d34
cmp edx, 6
je 0x140047d2f
mov rcx, qword [rcx]
jmp 0x140047d3b
mov rcx, rax
jmp 0x140047d3b
mov rcx, qword [rcx]
add rcx, 0x10
mov r9, rcx
mov dword [0x14012c94c], ecx
sar r9, 0x20
mov dword [0x14012c948], r9d
jmp 0x140047d5e
mov ecx, dword [0x14012c94c]
mov r9d, dword [0x14012c948]
test rdi, rdi
mov qword [0x14012cd28], rbx
cmovne rax, rdi
cmp byte [0x14012ce0f], bl
je 0x140047d9b
cmp byte [0x14012ce0c], bl
jne 0x140047d9b
mov dword [rsp + 0x20], ecx
lea rdx, str.Unknown_class.
lea rcx, [0x14012c670]
mov r8, rax
call fcn.14000f360
jmp 0x140047a53
mov qword [rsp + 0x28], rbx
lea rdx, str.Unknown_class.
mov qword [rsp + 0x20], rbx
mov r9, rax
xor r8d, r8d
jmp 0x140047a47
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [0x14012c930], rbx
mov rcx, qword [0x14012cdd8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [0x14012cdd8]
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140064960
xor r9d, r9d
mov byte [rsp + 0x28], bl
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dl, 7
lea rcx, [0x14012c670]
call fcn.140051c80
test eax, eax
je 0x140047a53
mov rdx, qword [0x14012c670]
lea rcx, [0x14012c670]
call fcn.140059720
test rax, rax
je 0x140047a53
cmp byte [0x14012ce14], bl
sete bl
mov eax, ebx
jmp 0x140047a58