Function at 0x14002daf0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rbx, rdx
mov r13, rcx
xor r15b, r15b
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0x59]
call fcn.14004a620
nop
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x7f], rax
lea rdx, [0x1400de328]
test rdx, 0xffffffffffff0000
jne 0x14002db8b
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.1400017e0
test rax, rax
je 0x14002db99
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp + 0x7f]
call fcn.140001f70
jmp 0x14002db99
xor r8d, r8d
lea rcx, [rbp + 0x7f]
call fcn.140001e80
jmp 0x14002db9d
mov rbx, qword [rbp + 0x6f]
mov edx, esi
cmp byte [r13 + 0x5c], dl
setne dl
inc edx
lea r8, [rbp + 0x7f]
lea rcx, [rbp - 0x59]
call fcn.1400480e0
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
or r12d, 0xffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002dbd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, [rsp + 0x28]
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.14004bf40
mov dword [rbp + 0x77], esi
lea rcx, [rbp - 0x71]
call fcn.1400386c0
mov r11, qword [rsp + 0x30]
sub r11, qword [rsp + 0x28]
movabs rax, 0x2e8ba2e8ba2e8ba3
imul r11
mov rbx, rdx
sar rbx, 6
mov rax, rbx
shr rax, 0x3f
add rbx, rax
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rdi, rsi
movsxd r14, ebx
test ebx, ebx
jle 0x14002dce7
mov rbx, rsi
nop dword [rax]
mov rax, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov rdx, qword [rbx + rax + 0x48]
mov rcx, qword [r13 + 0x30]
call fcn.14006cda0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14002dcd0
mov rax, qword [rsp + 0x28]
lea r8, [rbp + 0x77]
mov rdx, qword [rbx + rax + 0x48]
mov rcx, qword [r13 + 0x30]
call fcn.1400672e0
cmp dword [rbp + 0x77], 2
jne 0x14002dce4
lea rcx, [rbp - 0x71]
call fcn.1400412b0
test al, al
je 0x14002dce4
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rbx + rsi + 0x48]
cmp dword [rcx - 0x10], 0
jl 0x14002dcd0
lea rdx, str.vusrv.sm.sony.co.jp
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
je 0x14002dcd0
sub rax, qword [rbx + rsi + 0x48]
sar rax, 1
cmp eax, 0xffffffff
jne 0x14002dce4
inc rdi
add rbx, 0x160
cmp rdi, r14
jge 0x14002dce7
jmp 0x14002dc50
mov r15b, 1
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002dd08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp - 0x59]
call fcn.14004bd80
nop
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x14002dd47
mov rdi, qword [rsp + 0x30]
cmp rbx, rdi
je 0x14002dd3f
mov rcx, rbx
call fcn.14002be60
add rbx, 0x160
cmp rbx, rdi
jne 0x14002dd26
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov rdx, qword [rbp + 0x6f]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14002dd7b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, r15b
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret