Function at 0x1400b08c0
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
test edx, edx
jne 0x1400b0904
mov rcx, qword [rcx + 0x488]
test rcx, rcx
je 0x1400b0904
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400b0904
mov rax, qword [rdi + 0x488]
jmp 0x1400b0b93
mov rcx, qword [0x140458048]
movabs r8, 0xe38e38e38e38e39
sub rcx, qword [0x140458040]
mov rax, r8
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400b0b91
mov rcx, qword [0x1404580b0]
mov rax, r8
sub rcx, qword [0x1404580a8]
imul rcx
sar rdx, 1
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
je 0x1400b0b91
mov rcx, qword [0x1404580f8]
mov rax, r8
sub rcx, qword [0x1404580f0]
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400b0b91
cmp dword [rdi + 0x4a0], 0
jne 0x1400b0b91
cmp dword [rdi + 0x490], 0
jne 0x1400b0b91
mov rcx, qword [rdi + 0x480]
test rcx, rcx
je 0x1400b0b91
cmp qword [rdi + 0x494], 0
jne 0x1400b0b91
call fcn.14007fea0
test eax, eax
jne 0x1400b0b91
mov rcx, qword [rdi + 0x480]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400b0b91
lea rdx, [0x1404580a8]
lea rcx, [rsp + 0x28]
call fcn.1400b2500
mov rdx, rax
mov rcx, rdi
call fcn.1400afe40
test rax, rax
jne 0x1400b0b93
mov rcx, qword [rdi + 0x480]
mov qword [rsp + 0x288], rbx
mov qword [rsp + 0x268], rsi
mov qword [rsp + 0x260], r14
call fcn.14004baa0
mov rcx, rdi
mov r14, rax
call fcn.1400b0430
mov rbx, rax
test rax, rax
je 0x1400b0aa3
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400b0aa3
mov rcx, qword [rdi + 0x480]
call fcn.14004baa0
mov rcx, rbx
mov rsi, rax
call fcn.14004baa0
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400b0aa3
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400b0aa3
mov rdx, rbx
mov rcx, rsi
call fcn.1402779b8
test eax, eax
jne 0x1400b0aa3
mov r14, rbx
jmp 0x1400b0b63
xor eax, eax
mov qword [rsp + 0x290], rbp
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call fcn.1400b06e0
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rax, rbp
sub rax, rsi
sar rax, 5
test rax, rax
je 0x1400b0b37
mov r9, qword [rdi + 0x480]
lea r8, [0x140336790]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14004e9f0
mov rbx, rsi
cmp rsi, rbp
je 0x1400b0b37
cmp qword [rbx + 0x18], 8
jb 0x1400b0b10
mov rcx, qword [rbx]
jmp 0x1400b0b13
mov rcx, rbx
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x1400b0b30
add rbx, 0x20
cmp rbx, rbp
jne 0x1400b0b04
jmp 0x1400b0b37
mov r14, qword [rdi + 0x480]
test rsi, rsi
je 0x1400b0b5b
mov rdx, rbp
mov rcx, rsi
call fcn.140056290
mov r8, qword [rsp + 0x38]
mov rdx, rsi
sub r8, rsi
sar r8, 5
call fcn.140056110
mov rbp, qword [rsp + 0x290]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rsi, qword [rsp + 0x268]
xor ecx, ecx
mov rbx, qword [rsp + 0x288]
test eax, eax
cmove r14, rcx
mov rax, r14
mov r14, qword [rsp + 0x260]
jmp 0x1400b0b93
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x270
pop rdi
ret