Function at 0x140047650
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.1400ddcd0
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 0x1400477e2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400477dc
cmp byte [0x14012ce0f], 0
jne 0x1400476ee
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.1400a04e0
xor ebx, ebx
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 0x10]
call fcn.1400a7030
jmp 0x1400477c2
mov r9, qword [0x14012cd28]
lea rax, [0x14012cdd0]
mov qword [0x14012b010], rax
movzx eax, byte [0x14012ce0c]
test r9, r9
je 0x140047767
test al, al
je 0x14004776b
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], 0
jne 0x140047740
cmp dword [0x14012cd88], 0
jne 0x140047740
cmp byte [0x140126ada], 0
jne 0x140047740
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r9
jmp 0x1400477a5
xor ebx, ebx
lea r8, [0x140100be0]
mov qword [rsp + 0x28], rbx
lea rdx, str.Script_file_not_found.
lea rcx, [0x14012c670]
mov dword [rsp + 0x20], ebx
call fcn.14000ef70
jmp 0x1400477c2
test al, al
jne 0x140047799
mov eax, dword [0x14012c94c]
lea r8, [0x140100be0]
movzx r9d, word [0x14012c948]
lea rdx, str.Script_file_not_found.
lea rcx, [0x14012c670]
mov dword [rsp + 0x20], eax
call fcn.14000f310
jmp 0x1400477c2
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.140010320
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, [0x140104ccc]
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.140047ee0
mov rdi, qword [rsp + 0x10070]
mov esi, eax
cmp eax, 3
jne 0x140047849
mov r8d, ebp
lea rcx, [0x14012c670]
mov rdx, rdi
call fcn.140048710
mov esi, eax
mov rbp, qword [rsp + 0x10078]
test rdi, rdi
je 0x140047863
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test esi, esi
je 0x1400477c2
xor ecx, ecx
mov byte [0x14012ab87], bl
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x140047945
mov r9, qword [0x14012cd28]
movzx eax, byte [0x14012ce0c]
test r9, r9
je 0x1400478e8
test al, al
je 0x1400478e8
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], ebx
jne 0x1400478c0
cmp dword [0x14012cd88], ebx
jne 0x1400478c0
cmp byte [0x140126ada], bl
jne 0x1400478c0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r9
jmp 0x14004792f
mov qword [rsp + 0x28], rbx
lea r8, [0x140100be0]
lea rdx, str.An_internal_function_call_failed.
mov dword [rsp + 0x20], ebx
lea rcx, [0x14012c670]
call fcn.14000ef70
jmp 0x1400477c2
cmp byte [0x14012ce0f], bl
je 0x140047925
test al, al
jne 0x140047925
mov eax, dword [0x14012c94c]
lea r8, [0x140100be0]
movzx r9d, word [0x14012c948]
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x14012c670]
mov dword [rsp + 0x20], eax
call fcn.14000f310
jmp 0x1400477c2
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 0x1400477b6
mov rdx, qword [0x14012c670]
lea rcx, [0x14012c670]
call fcn.140058a50
test eax, eax
je 0x1400477c2
lea rdx, [0x14012c6b0]
lea rcx, [0x14012c670]
call fcn.140058b40
test eax, eax
je 0x1400477c2
lea rdx, [0x14012c690]
lea rcx, [0x14012c670]
call fcn.140058b40
test eax, eax
je 0x1400477c2
lea rcx, [0x14012c670]
call fcn.140062e10
test eax, eax
je 0x1400477c2
cmp dword [0x14012c6b8], ebx
mov edi, ebx
jle 0x1400479e6
mov rsi, rbx
nop word [rax + rax]
mov rax, qword [0x14012c6b0]
mov rdx, qword [rax + rsi]
call fcn.140062aa0
test eax, eax
je 0x1400477c2
inc edi
add rsi, 8
cmp edi, dword [0x14012c6b8]
jl 0x1400479c0
cmp dword [0x14012c698], ebx
mov edi, ebx
jle 0x140047a26
mov rsi, rbx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x14012c690]
mov rdx, qword [rax + rsi]
call fcn.140062aa0
test eax, eax
je 0x1400477c2
inc edi
add rsi, 8
cmp edi, dword [0x14012c698]
jl 0x140047a00
mov rcx, qword [0x14012c6b0]
call fcn.1400c4698
mov rcx, qword [0x14012c930]
test rcx, rcx
je 0x140047b21
mov rax, qword [rcx + 0x18]
cmp dword [rax + 4], ebx
je 0x140047b14
mov r8, qword [rax + 8]
mov rdi, qword [rax + 0x18]
test r8, r8
je 0x140047b14
lea rdx, str.Line
mov rcx, r8
call fcn.140005520
lea rcx, [0x140100be0]
test rax, rax
je 0x140047aad
mov edx, dword [rax + 8]
test edx, edx
je 0x140047a91
cmp edx, 6
je 0x140047a8c
mov rdx, qword [rax]
jmp 0x140047a98
mov rdx, rcx
jmp 0x140047a98
mov rdx, qword [rax]
add rdx, 0x10
mov rax, rdx
mov dword [0x14012c94c], edx
sar rax, 0x20
mov dword [0x14012c948], eax
jmp 0x140047ab3
mov edx, dword [0x14012c94c]
test rdi, rdi
mov qword [0x14012cd28], rbx
cmovne rcx, rdi
cmp byte [0x14012ce0f], bl
je 0x140047af8
cmp byte [0x14012ce0c], bl
jne 0x140047af8
movzx r9d, word [0x14012c948]
mov r8, rcx
mov dword [rsp + 0x20], edx
lea rcx, [0x14012c670]
lea rdx, str.Unknown_class.
call fcn.14000f310
jmp 0x1400477c2
mov qword [rsp + 0x28], rbx
lea rdx, str.Unknown_class.
mov qword [rsp + 0x20], rbx
mov r9, rcx
xor r8d, r8d
jmp 0x1400477b6
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.140063f70
xor r9d, r9d
mov byte [rsp + 0x28], bl
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dl, 7
lea rcx, [0x14012c670]
call fcn.1400514f0
test eax, eax
je 0x1400477c2
mov rdx, qword [0x14012c670]
lea rcx, [0x14012c670]
call fcn.140058c40
test rax, rax
je 0x1400477c2
cmp byte [0x14012ce14], bl
sete bl
mov eax, ebx
jmp 0x1400477c7