Function at 0x140047d40
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.1400def50
sub rsp, rax
mov eax, dword [0x14012de18]
test rdx, rdx
mov rdi, rdx
mov word [0x14012de1c], 0
cmove rdi, qword [0x14012dde0]
test eax, eax
jne 0x140047ee5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140047edf
cmp byte [0x14012de1f], 0
jne 0x140047de0
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.1400a2630
xor ebx, ebx
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, reloc.WSOCK32.dll_recv
call fcn.1400a9200
jmp 0x140047ec5
mov rcx, qword [0x14012dd38]
lea rax, [0x14012dde0]
mov qword [0x14012c020], rax
movzx eax, byte [0x14012de1c]
test rcx, rcx
je 0x140047e5c
test al, al
je 0x140047e60
mov rax, qword [0x1401251d8]
cmp dword [rax + 0x60], 0
jne 0x140047e32
cmp dword [0x14012dd98], 0
jne 0x140047e32
cmp byte [0x140127ada], 0
jne 0x140047e32
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
jmp 0x140047ea8
xor ebx, ebx
lea r8, [0x140101bd0]
mov r9, rcx
mov qword [rsp + 0x28], rbx
lea rdx, str.Script_file_not_found.
mov dword [rsp + 0x20], ebx
lea rcx, [0x14012d680]
call fcn.14000ef80
jmp 0x140047ec5
test al, al
jne 0x140047e9c
test rcx, rcx
je 0x140047e6f
movzx r9d, word [rcx + 2]
mov eax, dword [rcx + 4]
jmp 0x140047e7c
mov r9d, dword [0x14012d958]
mov eax, dword [0x14012d95c]
lea r8, [0x140101bd0]
mov dword [rsp + 0x20], eax
lea rdx, str.Script_file_not_found.
lea rcx, [0x14012d680]
call fcn.14000f320
jmp 0x140047ec5
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [0x140101bd0]
xor r8d, r8d
lea rdx, str.Script_file_not_found.
lea rcx, [0x14012d680]
call fcn.140010340
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 [0x14012de18]
cmp eax, 2
mov qword [rsp + 0x10078], rbp
mov ebp, dword [0x14012c028]
lea rcx, [0x140105cfc]
cmove rdi, rcx
lea rdx, [rsp + 0x10070]
xor ebx, ebx
lea rcx, [0x14012d680]
mov r8, rdi
mov qword [rsp + 0x10070], rbx
xor r9d, r9d
mov byte [rsp + 0x20], bl
call fcn.1400485e0
mov rdi, qword [rsp + 0x10070]
mov esi, eax
cmp eax, 3
jne 0x140047f4c
mov r8d, ebp
lea rcx, [0x14012d680]
mov rdx, rdi
call fcn.140048e50
mov esi, eax
mov rbp, qword [rsp + 0x10078]
test rdi, rdi
je 0x140047f66
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test esi, esi
je 0x140047ec5
xor ecx, ecx
mov byte [0x14012bb97], bl
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x14004805c
mov rcx, qword [0x14012dd38]
movzx eax, byte [0x14012de1c]
test rcx, rcx
je 0x140047ff1
test al, al
je 0x140047ff1
mov rax, qword [0x1401251d8]
cmp dword [rax + 0x60], ebx
jne 0x140047fc6
cmp dword [0x14012dd98], ebx
jne 0x140047fc6
cmp byte [0x140127ada], bl
jne 0x140047fc6
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
jmp 0x140048046
mov r9, rcx
mov qword [rsp + 0x28], rbx
lea rcx, [0x14012d680]
mov dword [rsp + 0x20], ebx
lea r8, [0x140101bd0]
lea rdx, str.An_internal_function_call_failed.
call fcn.14000ef80
jmp 0x140047ec5
cmp byte [0x14012de1f], bl
je 0x14004803c
test al, al
jne 0x14004803c
test rcx, rcx
je 0x14004800c
movzx r9d, word [rcx + 2]
mov eax, dword [rcx + 4]
jmp 0x140048019
mov r9d, dword [0x14012d958]
mov eax, dword [0x14012d95c]
lea r8, [0x140101bd0]
mov dword [rsp + 0x20], eax
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x14012d680]
call fcn.14000f320
jmp 0x140047ec5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [0x140101bd0]
xor r8d, r8d
lea rdx, str.An_internal_function_call_failed.
jmp 0x140047eb9
mov rdx, qword [0x14012d680]
lea rcx, [0x14012d680]
call fcn.140059c90
test eax, eax
je 0x140047ec5
lea rdx, [0x14012d6c0]
lea rcx, [0x14012d680]
call fcn.140059d80
test eax, eax
je 0x140047ec5
lea rdx, [0x14012d6a0]
lea rcx, [0x14012d680]
call fcn.140059d80
test eax, eax
je 0x140047ec5
lea rcx, [0x14012d680]
call fcn.140063f80
test eax, eax
je 0x140047ec5
cmp dword [0x14012d6c8], ebx
mov edi, ebx
jle 0x1400480f6
mov rsi, rbx
nop
mov rax, qword [0x14012d6c0]
mov rdx, qword [rax + rsi]
call fcn.140063c10
test eax, eax
je 0x140047ec5
inc edi
add rsi, 8
cmp edi, dword [0x14012d6c8]
jl 0x1400480d0
cmp dword [0x14012d6a8], ebx
mov edi, ebx
jle 0x140048136
mov rsi, rbx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x14012d6a0]
mov rdx, qword [rax + rsi]
call fcn.140063c10
test eax, eax
je 0x140047ec5
inc edi
add rsi, 8
cmp edi, dword [0x14012d6a8]
jl 0x140048110
mov rcx, qword [0x14012d6c0]
call fcn.1400c5910
mov rcx, qword [0x14012d940]
test rcx, rcx
je 0x140048234
mov rax, qword [rcx + 0x18]
cmp dword [rax + 4], ebx
je 0x140048227
mov r8, qword [rax + 8]
mov rdi, qword [rax + 0x18]
test r8, r8
je 0x140048227
lea rdx, str.Line
mov rcx, r8
call fcn.140005570
mov rcx, rax
lea rax, [0x140101bd0]
test rcx, rcx
je 0x1400481c1
mov edx, dword [rcx + 8]
test edx, edx
je 0x1400481a4
cmp edx, 6
je 0x14004819f
mov rcx, qword [rcx]
jmp 0x1400481ab
mov rcx, rax
jmp 0x1400481ab
mov rcx, qword [rcx]
add rcx, 0x10
mov r9, rcx
mov dword [0x14012d95c], ecx
sar r9, 0x20
mov dword [0x14012d958], r9d
jmp 0x1400481ce
mov ecx, dword [0x14012d95c]
mov r9d, dword [0x14012d958]
test rdi, rdi
mov qword [0x14012dd38], rbx
cmovne rax, rdi
cmp byte [0x14012de1f], bl
je 0x14004820b
cmp byte [0x14012de1c], bl
jne 0x14004820b
mov dword [rsp + 0x20], ecx
lea rdx, str.Unknown_class.
lea rcx, [0x14012d680]
mov r8, rax
call fcn.14000f320
jmp 0x140047ec5
mov qword [rsp + 0x28], rbx
lea rdx, str.Unknown_class.
mov qword [rsp + 0x20], rbx
mov r9, rax
xor r8d, r8d
jmp 0x140047eb9
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [0x14012d940], rbx
mov rcx, qword [0x14012dde8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [0x14012dde8]
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140065150
xor r9d, r9d
mov byte [rsp + 0x28], bl
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dl, 7
lea rcx, [0x14012d680]
call fcn.1400522e0
test eax, eax
je 0x140047ec5
mov rdx, qword [0x14012d680]
lea rcx, [0x14012d680]
call fcn.140059e80
test rax, rax
je 0x140047ec5
cmp byte [0x14012de24], bl
sete bl
mov eax, ebx
jmp 0x140047eca