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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov rax, qword [0x1800792c0]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x180004c23
cmp word [r8], 0
je 0x180004c23
test rcx, rcx
je 0x180004c23
mov edx, 0x104
call fcn.180035d68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180004c09
mov qword [rsp + 0xad8], rbx
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0xae8], r14
mov r8d, 0x208
call fcn.18004dfe0
mov rax, qword [str.Assets]
lea r14, str.Assets
mov rbx, r14
test rax, rax
je 0x180004a3f
nop dword [rax + rax]
mov r9, rax
mov qword [rsp + 0x20], rdi
lea r8, str._ls_ls
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.180002d80
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180004be7
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x180004a00
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.18004dfe0
mov r8d, 0x104
lea rdx, [rbp + 0x370]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
lea rcx, [rbp + 0x580]
xor edx, edx
mov word [rbp + 0x576], bx
mov r8d, 0x208
call fcn.18004dfe0
mov r8, rdi
lea rcx, [rbp + 0x580]
mov edx, 0x104
call fcn.180035d68
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.18004dfe0
xor edx, edx
lea rcx, [rbp + 0x790]
mov r8d, 0x208
call fcn.18004dfe0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea r8, [rbp + 0x160]
mov edx, 0x104
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180004c46
cmp word [rax], 0
je 0x180004c46
lea rax, [rbp + 0x580]
mov edx, 0x104
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8, str._ls_ls
lea rcx, [rsp + 0x50]
call fcn.180002d80
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180004be7
mov rax, qword [str.Assets]
mov rbx, r14
test rax, rax
je 0x180004b9b
nop dword [rax + rax]
lea rcx, [rbp + 0x580]
mov edx, 0x104
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x160]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str._ls_ls_ls
call fcn.180002d80
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180004be7
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x180004b50
lea r9, [rbp + 0x160]
mov edx, 0x104
lea r8, str._ls..
lea rcx, [rbp + 0x790]
call fcn.180002d80
lea r9, [rsp + 0x30]
mov edx, 0x104
lea r8, [rbp + 0x160]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180004c46
jmp 0x180004af2
lea r8, [rsp + 0x50]
mov edx, 0x104
mov rcx, rsi
call fcn.180035d68
mov rbx, qword [rsp + 0xad8]
mov r14, qword [rsp + 0xae8]
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.180029e30
add rsp, 0xab0
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.FindMediaFile
lea rcx, [rsp + 0x38]
call fcn.180002f60
lea rdx, [0x180077198]
lea rcx, [rsp + 0x38]
call fcn.18002c180
int3
mov r8, rdi
mov edx, 0x104
mov rcx, rsi
call fcn.180035d68
lea rdx, str.File_not_found
lea rcx, [rsp + 0x38]
call fcn.180002990
lea rdx, [0x1800770a8]
lea rcx, [rsp + 0x38]
call fcn.18002c180
int3