Function at 0x140102cd0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x1402a6808]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, r8
mov qword [rsp + 0x38], r8
mov r15, rcx
xor r14d, r14d
mov rcx, rdx
call fcn.14012ec20
mov rbx, rax
test rax, rax
je 0x140102f68
lea rdi, [rbx + 0x30]
cmp qword [rdi + 0x18], 8
jb 0x140102d33
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [0x1402284b8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140102da7
test rbx, rbx
je 0x140102d55
cmp dword [rbx + 0x18], 1
mov rcx, rbx
je 0x140102d58
mov rcx, r14
lea rdx, str.name
call fcn.14012dff0
mov rdx, rax
lea rcx, [r15 + 0x88]
mov qword [rsp + 0x20], r14
mov r9d, 4
mov r8, rbp
call fcn.140125590
cmp qword [rbx + 0x20], 0
je 0x140102f5c
mov r8, rax
mov rdx, rbx
mov rcx, r15
call fcn.140102cd0
test al, al
jne 0x140102f5c
jmp 0x140102f6a
mov rdx, rdi
lea rcx, [0x140214ab0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140102f5c
test rbx, rbx
je 0x140102dcd
cmp dword [rbx + 0x18], 1
mov rcx, rbx
je 0x140102dd0
mov rcx, r14
lea rdx, str.name
call fcn.14012dff0
mov rdi, rax
mov r8, rax
lea rdx, [rsp + 0x58]
mov rcx, r15
call fcn.1401030b0
nop
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r13, rax
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb r12d, r12d
mov ecx, 0x20
call fcn.14017f5a8
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140102ec0
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov r14, qword [rsp + 0x68]
lea rbp, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbp, qword [rsp + 0x58]
cmp r14, 8
jae 0x140102e74
movups xmm0, xmmword [rbp]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov rbp, qword [rsp + 0x38]
xor r14d, r14d
jmp 0x140102ec3
mov rdi, r14
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
mov rcx, rsi
call fcn.140006990
mov qword [rsi], rax
lea r8, [r14*2 + 2]
mov rdx, rbp
mov rcx, rax
call fcn.14019dbf0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdi
mov rbp, qword [rsp + 0x38]
xor r14d, r14d
jmp 0x140102ec3
mov rsi, r14
mov qword [rsp + 0x40], rsi
lea rcx, [r15 + 0x190]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140102ee3
mov qword [rdx], rsi
add qword [rcx + 8], 8
jmp 0x140102eed
lea r8, [rsp + 0x40]
call fcn.14001c1a0
lea rcx, [r15 + 0x88]
mov qword [rsp + 0x20], rsi
lea r9d, [r12 + 6]
mov r8, rbp
mov rdx, r13
call fcn.140125590
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140102f48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140102f43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140102f92
call fcn.14017f5e4
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
mov rbx, qword [rbx + 0x58]
test rbx, rbx
jmp 0x140102d1f
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14017f700
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401a10ac
int3