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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10060
call fcn.1400e37c0
sub rsp, rax
mov eax, dword [0x140135298]
test rdx, rdx
mov rbx, rdx
mov word [0x14013529c], 0
cmove rbx, qword [0x140135260]
test eax, eax
jne 0x14004915b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140049155
cmp byte [0x14013529f], 0
jne 0x140049083
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.1400a5c90
xor ebp, ebp
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 0x10]
call fcn.1400acb90
jmp 0x140049137
movzx ecx, byte [0x14013529c]
lea rax, [0x140135260]
mov qword [0x1401333b0], rax
mov rax, qword [0x1401351b8]
test rax, rax
je 0x1400490d3
test cl, cl
je 0x1400490d7
xor ebp, ebp
lea r8, [0x140106cb0]
mov qword [rsp + 0x28], rbp
lea rdx, str.Script_file_not_found.
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rcx, [0x140134a20]
call fcn.14000fb70
jmp 0x140049137
test cl, cl
jne 0x140049113
test rax, rax
je 0x1400490e6
movzx r9d, word [rax + 2]
mov ecx, dword [rax + 4]
jmp 0x1400490f3
mov r9d, dword [0x140134dd8]
mov ecx, dword [0x140134ddc]
mov dword [rsp + 0x20], ecx
lea r8, [0x140106cb0]
lea rcx, [0x140134a20]
lea rdx, str.Script_file_not_found.
call fcn.14000fa20
jmp 0x140049137
xor ebp, ebp
lea r9, [0x140106cb0]
mov qword [rsp + 0x20], rbp
lea rdx, str.Script_file_not_found.
xor r8d, r8d
lea rcx, [0x140134a20]
call fcn.140010b10
mov eax, 0xffffffff
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, dword [0x140135298]
cmp eax, 2
lea rcx, [0x14010a640]
lea rdx, [rsp + 0x10070]
cmove rbx, rcx
xor ebp, ebp
mov r8, rbx
mov qword [rsp + 0x10070], rbp
xor r9d, r9d
mov byte [rsp + 0x20], bpl
lea rcx, [0x140134a20]
call fcn.1400498c0
mov rbx, qword [rsp + 0x10070]
mov edi, eax
cmp eax, 3
jne 0x1400491b2
mov rdx, rbx
lea rcx, [0x140134a20]
call fcn.14004a110
mov edi, eax
test rbx, rbx
je 0x1400491c4
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
test edi, edi
je 0x140049137
xor ecx, ecx
mov byte [0x140132f1d], bpl
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x14004928d
mov rax, qword [0x1401351b8]
movzx ecx, byte [0x14013529c]
test rax, rax
je 0x140049226
test cl, cl
je 0x140049226
mov qword [rsp + 0x28], rbp
lea r8, [0x140106cb0]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x140134a20]
call fcn.14000fb70
jmp 0x140049137
cmp byte [0x14013529f], bpl
je 0x140049272
test cl, cl
jne 0x140049272
test rax, rax
je 0x140049242
movzx r9d, word [rax + 2]
mov ecx, dword [rax + 4]
jmp 0x14004924f
mov r9d, dword [0x140134dd8]
mov ecx, dword [0x140134ddc]
mov dword [rsp + 0x20], ecx
lea r8, [0x140106cb0]
lea rcx, [0x140134a20]
lea rdx, str.An_internal_function_call_failed.
call fcn.14000fa20
jmp 0x140049137
mov qword [rsp + 0x20], rbp
lea r9, [0x140106cb0]
xor r8d, r8d
lea rdx, str.An_internal_function_call_failed.
jmp 0x14004912b
xor r9d, r9d
mov byte [rsp + 0x20], bpl
xor r8d, r8d
lea rcx, [0x140134a20]
mov dl, 6
call fcn.1400525e0
test eax, eax
je 0x140049137
mov rax, qword [0x140134b50]
xorps xmm0, xmm0
mov rcx, qword [0x140134b48]
mov qword [rcx + 0x30], rax
mov rcx, qword [0x140134b48]
mov rax, qword [0x140134a20]
mov qword [0x140134b50], rcx
mov qword [rcx + 0x18], rax
lea rcx, [0x140134a20]
movdqa xmmword [0x140134a20], xmm0
mov qword [0x140134a30], rbp
call fcn.140091ea0
test eax, eax
je 0x140049137
mov rax, qword [0x140134b50]
mov qword [0x140134b48], rax
test rax, rax
je 0x14004934f
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rax + 0x18]
lea rcx, [0x140134a20]
call fcn.140059940
test eax, eax
je 0x140049137
mov rax, qword [0x140134b48]
mov rax, qword [rax + 0x30]
mov qword [0x140134b48], rax
test rax, rax
jne 0x140049320
cmp dword [0x140134a40], ebp
mov edi, ebp
jle 0x14004941b
mov rsi, rbp
mov rax, qword [0x140134a38]
mov rbx, qword [rax + rsi]
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x14004938d
test byte [rax + 0xd6], 1
je 0x14004938d
cmp byte [rbx + 0xd6], 0x42
jne 0x14004938d
mov byte [rbx + 0xd6], 1
mov rax, qword [0x14012c398]
lea rcx, [0x140134a20]
mov qword [rax + 0x28], rbx
mov rdx, qword [rbx + 0x50]
call fcn.140059940
test eax, eax
je 0x140049137
cmp qword [0x140134b78], rbp
je 0x140049409
mov r8d, dword [rbx + 0x3c]
mov edx, dword [rbx + 0x38]
cmp r8d, edx
jge 0x140049409
dec edx
cmp edx, r8d
jl 0x140049409
mov r9, qword [rbx + 0x58]
movsxd rax, edx
lea rcx, [rax + rax*2]
lea rax, [rcx*8 + 0xa]
add rax, r9
cmp word [rax], 5
je 0x1400493f5
dec edx
sub rax, 0x18
cmp edx, r8d
jge 0x1400493e2
jmp 0x140049409
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [r9 + rcx*8 + 0x10]
mov rcx, qword [rax + 0x20]
mov qword [rbx + 0x50], rcx
inc edi
add rsi, 8
cmp edi, dword [0x140134a40]
jl 0x140049360
mov rax, qword [0x14012c398]
lea rcx, [0x140134a20]
mov qword [rax + 0x28], rbp
call fcn.140063ee0
test eax, eax
je 0x140049137
cmp dword [0x140134a40], ebp
mov ebx, ebp
jle 0x140049476
mov rdi, rbp
nop word [rax + rax]
mov rax, qword [0x140134a38]
mov rdx, qword [rax + rdi]
call fcn.140063b60
test eax, eax
je 0x140049137
inc ebx
add rdi, 8
cmp ebx, dword [0x140134a40]
jl 0x140049450
mov rcx, qword [0x140135268]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [0x140135268]
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140065310
mov rax, qword [0x140134b50]
mov qword [0x140134b48], rax
test rax, rax
je 0x1400494df
nop dword [rax]
mov rdx, qword [rax + 0x18]
lea rcx, [0x140134a20]
call fcn.140059a30
test eax, eax
je 0x140049137
mov rcx, qword [0x140134b48]
mov rax, qword [rcx + 0x30]
mov qword [0x140134b48], rax
test rax, rax
jne 0x1400494b0
cmp byte [0x1401352a4], bpl
lea rax, [0x140134ad0]
mov qword [0x140134b48], rax
sete bpl
mov eax, ebp
jmp 0x14004913c