Function at 0x1800315a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4f0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1801dc960]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov r14, r9
mov r13d, r8d
mov dword [rsp + 0x40], r8d
mov rbx, rdx
mov r15, rcx
mov r12, qword [rsp + 0x550]
mov byte [rsp + 0xc0], 0
xor edx, edx
mov r8d, 0x207
lea rcx, [rsp + 0xc1]
call fcn.1800f4fb0
mov byte [rsp + 0x2d0], 0
xor edx, edx
mov r8d, 0x207
lea rcx, [rsp + 0x2d1]
call fcn.1800f4fb0
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0xb0], 0xf
mov qword [rsp + 0xa8], rsi
mov byte [rsp + 0x98], sil
test rbx, rbx
jne 0x18003168c
cmp word [rbx], bx
jne 0x18003168c
cmp qword [rsp + 0xb0], 0x10
jb 0x180031669
mov rcx, qword [rsp + 0x98]
call fcn.1800f4b9c
mov qword [rsp + 0xb0], 0xf
mov qword [rsp + 0xa8], rsi
mov byte [rsp + 0x98], 0
xor al, al
jmp 0x180031a45
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r9, [rcx - 1]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x208
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x2d0]
mov edx, 0x208
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea rbx, [rsp + 0x2d0]
mov rax, qword [r15 + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rcx
mov rax, qword [r15 + 8]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800317c7
test rbx, rbx
je 0x18003178c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, 0x5c
mov rcx, r14
call fcn.1800fb920
mov qword [r12], rax
test rax, rax
je 0x180031788
cmp qword [r12 + 8], 0
je 0x180031788
add rax, 2
mov qword [r12], rax
jmp 0x18003178c
mov qword [r12], r14
cmp qword [rsp + 0xb0], 0x10
jb 0x1800317a4
mov rcx, qword [rsp + 0x98]
call fcn.1800f4b9c
mov qword [rsp + 0xb0], 0xf
mov qword [rsp + 0xa8], rsi
mov byte [rsp + 0x98], 0
mov al, 1
jmp 0x180031a45
mov r13, qword [r15 + 0x30]
mov qword [rsp + 0x78], rsi
mov rax, qword [r15 + 8]
mov qword [rsp + 0x78], rax
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1800317e8
cmp rdi, rax
je 0x1800317ed
call fcn.1800f8c38
mov rbx, qword [rsp + 0x68]
cmp rbx, r13
jne 0x180031832
cmp qword [rsp + 0xb0], 0x10
jb 0x18003180f
mov rcx, qword [rsp + 0x98]
call fcn.1800f4b9c
mov qword [rsp + 0xb0], 0xf
mov qword [rsp + 0xa8], rsi
mov byte [rsp + 0x98], 0
xor al, al
jmp 0x180031a45
xor r8d, r8d
lea rdx, [0x180152644]
lea rcx, [rsp + 0x90]
call fcn.180003700
test rdi, rdi
jne 0x180031858
call fcn.1800f8c38
mov rdx, rsi
jmp 0x18003185b
mov rdx, qword [rdi]
cmp rbx, qword [rdx + 0x28]
jne 0x180031866
call fcn.1800f8c38
lea rdx, [rbx + 0x10]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x90]
call fcn.1800035e0
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.18000fd00
mov rdx, qword [rsp + 0xa8]
test rdx, rdx
jne 0x1800318aa
mov rbx, rsi
mov r13d, dword [rsp + 0x40]
jmp 0x180031720
lea rdi, [rdx - 1]
cmp rdi, rdx
jbe 0x1800318c0
call fcn.1800f8c38
mov rdx, qword [rsp + 0xa8]
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0xb0]
cmp rcx, 0x10
cmovae rax, qword [rsp + 0x98]
cmp byte [rax + rdi], 0x5c
je 0x1800319bd
or rax, 0xffffffffffffffff
sub rax, rdx
cmp rax, 1
ja 0x180031909
call fcn.1800f3af0
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
lea rdi, [rdx + 1]
cmp rdi, 0xfffffffffffffffe
jbe 0x180031928
call fcn.1800f3af0
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
cmp rcx, rdi
jae 0x180031952
mov r8, rdx
mov rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.180002a90
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
jmp 0x180031979
test rdi, rdi
jne 0x180031979
mov qword [rsp + 0xa8], rsi
lea rax, [rsp + 0x98]
cmp rcx, 0x10
cmovae rax, qword [rsp + 0x98]
mov byte [rax], dil
jmp 0x1800319bd
test rdi, rdi
je 0x1800319bd
lea rax, [rsp + 0x98]
cmp rcx, 0x10
cmovae rax, qword [rsp + 0x98]
mov byte [rax + rdx], 0x5c
mov qword [rsp + 0xa8], rdi
lea rax, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0x10
cmovae rax, qword [rsp + 0x98]
mov byte [rax + rdi], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.18000e780
lea rbx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0x10
cmovae rbx, qword [rsp + 0x98]
mov r13d, dword [rsp + 0x40]
jmp 0x180031720
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1800f4f80
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret