Function at 0x140047890
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.1400de970
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 0x140047a33
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140047a2d
cmp byte [0x14012ce0f], 0
jne 0x14004792e
lea r9, [0x140109758]
mov qword [rsp + 0x20], rdi
lea r8, [0x140109788]
mov edx, 0x8018
lea rcx, [rsp + 0x30]
call fcn.1400a1160
xor ebx, ebx
lea rcx, [rsp + 0x30]
xorps xmm3, xmm3
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 0x10]
call fcn.1400a7cd0
jmp 0x140047a13
mov rcx, qword [0x14012cd28]
lea rax, [0x14012cdd0]
mov qword [0x14012b010], rax
movzx eax, byte [0x14012ce0c]
test rcx, rcx
je 0x1400479aa
test al, al
je 0x1400479ae
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], 0
jne 0x140047980
cmp dword [0x14012cd88], 0
jne 0x140047980
cmp byte [0x140126ada], 0
jne 0x140047980
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
jmp 0x1400479f6
xor ebx, ebx
lea r8, [0x140100be0]
mov r9, rcx
mov qword [rsp + 0x28], rbx
lea rdx, [0x140109758]
mov dword [rsp + 0x20], ebx
lea rcx, [0x14012c670]
call fcn.14000ef80
jmp 0x140047a13
test al, al
jne 0x1400479ea
test rcx, rcx
je 0x1400479bd
movzx r9d, word [rcx + 2]
mov eax, dword [rcx + 4]
jmp 0x1400479ca
mov r9d, dword [0x14012c948]
mov eax, dword [0x14012c94c]
lea r8, [0x140100be0]
mov dword [rsp + 0x20], eax
lea rdx, [0x140109758]
lea rcx, [0x14012c670]
call fcn.14000f320
jmp 0x140047a13
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [0x140100be0]
xor r8d, r8d
lea rdx, [0x140109758]
lea rcx, [0x14012c670]
call fcn.140010330
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.140048140
mov rdi, qword [rsp + 0x10070]
mov esi, eax
cmp eax, 3
jne 0x140047a9a
mov r8d, ebp
lea rcx, [0x14012c670]
mov rdx, rdi
call fcn.1400489b0
mov esi, eax
mov rbp, qword [rsp + 0x10078]
test rdi, rdi
je 0x140047ab4
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test esi, esi
je 0x140047a13
xor ecx, ecx
mov byte [0x14012ab87], bl
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x140047baa
mov rcx, qword [0x14012cd28]
movzx eax, byte [0x14012ce0c]
test rcx, rcx
je 0x140047b3f
test al, al
je 0x140047b3f
mov rax, qword [0x1401241d8]
cmp dword [rax + 0x60], ebx
jne 0x140047b14
cmp dword [0x14012cd88], ebx
jne 0x140047b14
cmp byte [0x140126ada], bl
jne 0x140047b14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
jmp 0x140047b94
mov r9, rcx
mov qword [rsp + 0x28], rbx
lea rcx, [0x14012c670]
mov dword [rsp + 0x20], ebx
lea r8, [0x140100be0]
lea rdx, [0x140102d40]
call fcn.14000ef80
jmp 0x140047a13
cmp byte [0x14012ce0f], bl
je 0x140047b8a
test al, al
jne 0x140047b8a
test rcx, rcx
je 0x140047b5a
movzx r9d, word [rcx + 2]
mov eax, dword [rcx + 4]
jmp 0x140047b67
mov r9d, dword [0x14012c948]
mov eax, dword [0x14012c94c]
lea r8, [0x140100be0]
mov dword [rsp + 0x20], eax
lea rdx, [0x140102d40]
lea rcx, [0x14012c670]
call fcn.14000f320
jmp 0x140047a13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [0x140100be0]
xor r8d, r8d
lea rdx, [0x140102d40]
jmp 0x140047a07
mov rdx, qword [0x14012c670]
lea rcx, [0x14012c670]
call fcn.1400594f0
test eax, eax
je 0x140047a13
lea rdx, [0x14012c6b0]
lea rcx, [0x14012c670]
call fcn.1400595e0
test eax, eax
je 0x140047a13
lea rdx, [0x14012c690]
lea rcx, [0x14012c670]
call fcn.1400595e0
test eax, eax
je 0x140047a13
lea rcx, [0x14012c670]
call fcn.1400637c0
test eax, eax
je 0x140047a13
cmp dword [0x14012c6b8], ebx
mov edi, ebx
jle 0x140047c46
mov rsi, rbx
nop dword [rax]
mov rax, qword [0x14012c6b0]
mov rdx, qword [rax + rsi]
call fcn.140063450
test eax, eax
je 0x140047a13
inc edi
add rsi, 8
cmp edi, dword [0x14012c6b8]
jl 0x140047c20
cmp dword [0x14012c698], ebx
mov edi, ebx
jle 0x140047c86
mov rsi, rbx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x14012c690]
mov rdx, qword [rax + rsi]
call fcn.140063450
test eax, eax
je 0x140047a13
inc edi
add rsi, 8
cmp edi, dword [0x14012c698]
jl 0x140047c60
mov rcx, qword [0x14012c6b0]
call fcn.1400c5338
mov rcx, qword [0x14012c930]
test rcx, rcx
je 0x140047d84
mov rax, qword [rcx + 0x18]
cmp dword [rax + 4], ebx
je 0x140047d77
mov r8, qword [rax + 8]
mov rdi, qword [rax + 0x18]
test r8, r8
je 0x140047d77
lea rdx, [0x140104cc0]
mov rcx, r8
call fcn.140005520
mov rcx, rax
lea rax, [0x140100be0]
test rcx, rcx
je 0x140047d11
mov edx, dword [rcx + 8]
test edx, edx
je 0x140047cf4
cmp edx, 6
je 0x140047cef
mov rcx, qword [rcx]
jmp 0x140047cfb
mov rcx, rax
jmp 0x140047cfb
mov rcx, qword [rcx]
add rcx, 0x10
mov r9, rcx
mov dword [0x14012c94c], ecx
sar r9, 0x20
mov dword [0x14012c948], r9d
jmp 0x140047d1e
mov ecx, dword [0x14012c94c]
mov r9d, dword [0x14012c948]
test rdi, rdi
mov qword [0x14012cd28], rbx
cmovne rax, rdi
cmp byte [0x14012ce0f], bl
je 0x140047d5b
cmp byte [0x14012ce0c], bl
jne 0x140047d5b
mov dword [rsp + 0x20], ecx
lea rdx, [0x14010ae80]
lea rcx, [0x14012c670]
mov r8, rax
call fcn.14000f320
jmp 0x140047a13
mov qword [rsp + 0x28], rbx
lea rdx, [0x14010ae80]
mov qword [rsp + 0x20], rbx
mov r9, rax
xor r8d, r8d
jmp 0x140047a07
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.140064920
xor r9d, r9d
mov byte [rsp + 0x28], bl
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dl, 7
lea rcx, [0x14012c670]
call fcn.140051c40
test eax, eax
je 0x140047a13
mov rdx, qword [0x14012c670]
lea rcx, [0x14012c670]
call fcn.1400596e0
test rax, rax
je 0x140047a13
cmp byte [0x14012ce14], bl
sete bl
mov eax, ebx
jmp 0x140047a18