Function at 0x140048c90
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.1400e19f0
sub rsp, rax
mov eax, dword [0x140132148]
test rdx, rdx
mov rbx, rdx
mov word [0x14013214c], 0
cmove rbx, qword [0x140132110]
test eax, eax
jne 0x140048dff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140048df9
cmp byte [0x14013214f], 0
jne 0x140048d35
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.1400a4cd0
xor esi, esi
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, reloc.WSOCK32.dll_recv
call fcn.1400abcb0
jmp 0x140048ddb
mov rcx, qword [0x140132068]
lea rax, [0x140132110]
mov qword [0x140130360], rax
movzx eax, byte [0x14013214c]
test rcx, rcx
je 0x140048d85
test al, al
je 0x140048d89
xor esi, esi
lea r8, [0x140104c70]
mov qword [rsp + 0x28], rsi
lea rdx, str.Script_file_not_found.
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea rcx, [0x1401319c0]
call fcn.14000fec0
jmp 0x140048ddb
test al, al
jne 0x140048db7
mov eax, dword [0x140131c8c]
lea r8, [0x140104c70]
movzx r9d, word [0x140131c88]
lea rdx, str.Script_file_not_found.
lea rcx, [0x1401319c0]
mov dword [rsp + 0x20], eax
call fcn.14000fd70
jmp 0x140048ddb
xor esi, esi
lea r9, [0x140104c70]
mov qword [rsp + 0x20], rsi
lea rdx, str.Script_file_not_found.
xor r8d, r8d
lea rcx, [0x1401319c0]
call fcn.140010e80
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 [0x140132148]
mov ebp, dword [0x140130368]
lea rcx, [0x140108f4c]
cmp eax, 2
lea rdx, [rsp + 0x10070]
cmove rbx, rcx
xor esi, esi
mov r8, rbx
mov qword [rsp + 0x10070], rsi
xor r9d, r9d
mov byte [rsp + 0x20], sil
lea rcx, [0x1401319c0]
call fcn.140049510
mov rbx, qword [rsp + 0x10070]
mov edi, eax
cmp eax, 3
jne 0x140048e5f
mov r8d, ebp
lea rcx, [0x1401319c0]
mov rdx, rbx
call fcn.140049c70
mov edi, eax
test rbx, rbx
je 0x140048e71
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
test edi, edi
je 0x140048ddb
xor ecx, ecx
mov byte [0x14012fed5], sil
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x140048f2c
mov rcx, qword [0x140132068]
movzx eax, byte [0x14013214c]
test rcx, rcx
je 0x140048ed3
test al, al
je 0x140048ed3
mov qword [rsp + 0x28], rsi
lea r8, [0x140104c70]
mov qword [rsp + 0x20], rcx
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x1401319c0]
xor r9d, r9d
call fcn.14000fec0
jmp 0x140048ddb
cmp byte [0x14013214f], sil
je 0x140048f11
test al, al
jne 0x140048f11
mov eax, dword [0x140131c8c]
lea r8, [0x140104c70]
movzx r9d, word [0x140131c88]
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x1401319c0]
mov dword [rsp + 0x20], eax
call fcn.14000fd70
jmp 0x140048ddb
mov qword [rsp + 0x20], rsi
lea r9, [0x140104c70]
xor r8d, r8d
lea rdx, str.An_internal_function_call_failed.
jmp 0x140048dcf
mov rdx, qword [0x1401319c0]
lea rcx, [0x1401319c0]
call fcn.140059030
test eax, eax
je 0x140048ddb
cmp dword [0x1401319e8], esi
mov edi, esi
jle 0x14004901b
mov rbp, rsi
nop dword [rax + rax]
mov rax, qword [0x1401319e0]
mov rbx, qword [rax + rbp]
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x140048f8d
test byte [rax + 0xce], 1
je 0x140048f8d
cmp byte [rbx + 0xce], 0x42
jne 0x140048f8d
mov byte [rbx + 0xce], 1
mov rax, qword [0x140129398]
lea rcx, [0x1401319c0]
mov qword [rax + 0x28], rbx
mov rdx, qword [rbx + 0x50]
call fcn.140059030
test eax, eax
je 0x140048ddb
cmp qword [0x140131a20], rsi
je 0x140049009
mov r8d, dword [rbx + 0x3c]
mov edx, dword [rbx + 0x38]
cmp r8d, edx
jge 0x140049009
dec edx
cmp edx, r8d
jl 0x140049009
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 0x140048ff5
dec edx
sub rax, 0x18
cmp edx, r8d
jge 0x140048fe2
jmp 0x140049009
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 rbp, 8
cmp edi, dword [0x1401319e8]
jl 0x140048f60
mov rax, qword [0x140129398]
lea rcx, [0x1401319c0]
mov qword [rax + 0x28], rsi
call fcn.140063690
test eax, eax
je 0x140048ddb
cmp dword [0x1401319e8], esi
mov ebx, esi
jle 0x140049076
mov rdi, rsi
nop word [rax + rax]
mov rax, qword [0x1401319e0]
mov rdx, qword [rax + rdi]
call fcn.140063310
test eax, eax
je 0x140048ddb
inc ebx
add rdi, 8
cmp ebx, dword [0x1401319e8]
jl 0x140049050
mov rcx, qword [0x140131c70]
test rcx, rcx
je 0x140049176
mov rax, qword [rcx + 0x18]
cmp dword [rax + 4], esi
je 0x140049169
mov r8, qword [rax + 8]
mov rbx, qword [rax + 0x18]
test r8, r8
je 0x140049169
lea rdx, str.Line
mov rcx, r8
call fcn.1400055d0
test rax, rax
je 0x1400490fe
mov edx, dword [rax + 8]
test edx, edx
je 0x1400490d5
sub edx, 1
je 0x1400490d0
cmp edx, 1
jne 0x1400490fe
cvttsd2si rcx, qword [rax]
jmp 0x1400490e4
mov rcx, qword [rax]
jmp 0x1400490e4
mov rcx, qword [rax]
add rcx, 0x10
call fcn.1400a5590
movsxd rcx, eax
test rcx, rcx
je 0x1400490fe
mov rax, rcx
mov dword [0x140131c8c], ecx
sar rax, 0x20
mov dword [0x140131c88], eax
jmp 0x140049104
mov ecx, dword [0x140131c8c]
test rbx, rbx
mov qword [0x140132068], rsi
lea rax, [0x140104c70]
cmovne rax, rbx
cmp byte [0x14013214f], sil
je 0x140049152
cmp byte [0x14013214c], sil
jne 0x140049152
movzx r9d, word [0x140131c88]
lea rdx, str.Unknown_class.
mov dword [rsp + 0x20], ecx
mov r8, rax
lea rcx, [0x1401319c0]
call fcn.14000fd70
jmp 0x140048ddb
mov qword [rsp + 0x20], rsi
lea rdx, str.Unknown_class.
mov r9, rax
xor r8d, r8d
jmp 0x140048dcf
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [0x140131c70], rsi
mov rcx, qword [0x140132118]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [0x140132118]
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140064920
xor r9d, r9d
mov byte [rsp + 0x20], sil
xor r8d, r8d
lea rcx, [0x1401319c0]
mov dl, 6
call fcn.140051f30
test eax, eax
je 0x140048ddb
mov rdx, qword [0x1401319c0]
lea rcx, [0x1401319c0]
call fcn.140059120
test rax, rax
je 0x140048ddb
cmp byte [0x140132154], sil
sete sil
mov eax, esi
jmp 0x140048de0