Function at 0x1400d0530
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 7], rax
mov dword [rsp + 0x40], r9d
mov r12, r8
mov rsi, rdx
mov r13, rcx
mov qword [rbp - 0x49], rdx
mov qword [rbp - 0x41], r8
xor ebx, ebx
mov dword [rsp + 0x24], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm0
mov rcx, qword [r8]
test rcx, rcx
je 0x1400d07f6
call fcn.140082450
test al, al
je 0x1400d07f6
mov ecx, 0x150
call fcn.1401aed4c
mov qword [rbp - 0x69], rax
mov rcx, rax
call fcn.1400c4470
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400decf0
movdqa xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x39], xmm0
movq r14, xmm0
test r14, r14
jne 0x1400d062d
mov qword [rsi], r14
mov rax, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov dword [rsp + 0x24], 1
mov rdi, qword [r12 + 8]
test rdi, rdi
je 0x1400d0628
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400d0628
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400d0628
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400d083c
lea rdx, [r14 + 0x100]
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x1400d064c
lock inc dword [rcx + 8]
mov rcx, qword [r12 + 8]
mov r14, qword [rsp + 0x30]
mov rax, qword [r12]
mov qword [rbp - 0x61], rax
mov qword [rdx], rax
mov qword [rbp - 0x69], rcx
mov rdi, qword [rdx + 8]
mov qword [rbp - 0x59], rdi
mov qword [rdx + 8], rcx
mov ebx, 0xffffffff
test rdi, rdi
je 0x1400d06a1
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400d069c
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400d069c
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [rsp + 0x30]
mov edx, dword [r13 + 0x314]
cmp edx, 0x64
jne 0x1400d06b2
lea eax, [rdx - 0x62]
jmp 0x1400d06c1
mov ecx, 2
lea r8d, [rcx + 0x62]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [r14 + 0x90], eax
mov rdi, qword [r12]
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
xor r8d, r8d
lea edx, [rax + 0x20]
lea rcx, [rbp - 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSetSettings]
test byte [rbp - 0x19], 8
jne 0x1400d0722
cmp dword [rdi + 0x80], 8
je 0x1400d0722
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400d070b
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400d0722
mov eax, dword [rdi + 0x7c]
shr eax, 1
and al, 1
je 0x1400d0722
mov al, 1
jmp 0x1400d0724
xor eax, eax
mov byte [r14 + 0x94], al
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x79], xmm0
movdqa xmm1, xmmword [rsp + 0x30]
psrldq xmm1, 8
movq r15, xmm1
test r15, r15
je 0x1400d0757
lock inc dword [r15 + 8]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x79], xmm0
mov r9d, dword [rsp + 0x40]
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x29]
mov rcx, r13
call fcn.1400d0860
nop
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x1400d07b3
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400d07a9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400d07a9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov qword [rsi], r14
mov qword [rsi + 8], r15
mov dword [rsp + 0x24], 1
mov rdi, qword [r12 + 8]
test rdi, rdi
je 0x1400d07f4
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400d07f4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400d07f4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400d083c
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov dword [rsp + 0x24], 1
mov rdi, qword [r12 + 8]
test rdi, rdi
je 0x1400d083c
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400d083c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400d083c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rsi
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1401aed20
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret