Function at 0x1400cfc20
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r12, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cffaf
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rbx, rax
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400cffd2
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rbp + 0x50], rax
mov r14, 0xffffffffffffffff
xor r13d, r13d
test rbx, rbx
je 0x1400cfcbc
cmp rbx, 0x10000
jae 0x1400cfca5
movzx edx, bx
lea rcx, [rbp + 0x50]
call fcn.14000b690
jmp 0x1400cfccf
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1400cfcb0
jmp 0x1400cfcbf
mov eax, r13d
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140010860
nop
lea rdx, str..lnk
mov rcx, qword [rbp + 0x50]
call fcn.140299718
mov r15d, 1
test eax, eax
jne 0x1400cff77
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400cffdd
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x20], rdi
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400cffe8
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
lea rsi, [rax + 0x18]
mov qword [rbp + 0x58], rsi
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400cfff3
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x48], rbx
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400cfd6e
mov edx, 0x104
lea rcx, [rbp + 0x48]
call fcn.14000bdf0
mov rbx, qword [rbp + 0x48]
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400cfd92
mov edx, 0x104
lea rcx, [rbp + 0x58]
call fcn.14000bdf0
mov rsi, qword [rbp + 0x58]
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400cfdb6
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.14000bdf0
mov rdi, qword [rbp - 0x20]
mov dword [rsp + 0x20], r13d
mov r9, rbx
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400d1360
mov r12d, eax
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.14028c900
test eax, eax
js 0x1400cffc7
cmp eax, dword [rdi - 0xc]
jg 0x1400cffc7
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r13w
movsxd rdx, dword [rsi - 0xc]
mov rcx, rsi
call fcn.14028c900
test eax, eax
js 0x1400d0009
cmp eax, dword [rsi - 0xc]
jg 0x1400d0009
mov dword [rsi - 0x10], eax
cdqe
mov word [rsi + rax*2], r13w
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14028c900
test eax, eax
js 0x1400cfffe
cmp eax, dword [rbx - 0xc]
jg 0x1400cfffe
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test r12d, r12d
je 0x1400cff1d
cmp dword [rdi - 0x10], 0
je 0x1400cff1d
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14000d920
nop
lea rdx, [0x140305be8]
mov rcx, qword [rbp - 0x18]
call fcn.140299718
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
test eax, eax
mov eax, r14d
jne 0x1400cff06
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cfea1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cfec0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cfedf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cff8e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400cff8e
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cff19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x48]
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cff38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cff57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cff8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400cff8b
lea rdx, [0x140305be8]
mov rcx, qword [rbp + 0x50]
call fcn.140299718
test eax, eax
je 0x1400cff8e
mov r15d, r13d
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400cffac
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r15d
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80070057
call fcn.14000adf0
int3
mov ecx, 0x80070057
call fcn.14000adf0
int3