Function at 0x1401766b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
call fcn.1401e9268
mov rdx, rax
xor r13d, r13d
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x1401766f4
mov ecx, 0x80004005
call fcn.140003c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rdx, [0x140260b08]
or r12, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x14017673b
movzx edi, dx
mov ecx, edi
call fcn.1401eb134
test rax, rax
je 0x140176758
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400074b0
jmp 0x140176758
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x70]
call fcn.140007720
nop
lea rcx, [rsp + 0x78]
call fcn.140044000
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x70]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1401767c3
cmp dword [rdi + 0x10], 0
jl 0x1401767b4
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1401767b4
call fcn.140007340
mov rsi, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x1401767a9
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x70], rax
jmp 0x1401767c3
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140007720
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401767e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, r12
lea rbp, str.SonicFocusSFConfig.dat
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbx, rbp
mov rdi, qword [rsp + 0x70]
sub rbx, rdi
sar rbx, 1
mov r14d, dword [rdi - 0x10]
lea esi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, esi
or eax, edx
jge 0x140176836
mov edx, esi
lea rcx, [rsp + 0x70]
call fcn.140003c90
mov rdi, qword [rsp + 0x70]
cmp rbx, r14
ja 0x14017683f
lea rbp, [rdi + rbx*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rdi + r14*2]
mov r9, rdx
mov r8, rbp
call fcn.140216220
test esi, esi
js 0x140176994
cmp esi, dword [rdi - 0xc]
jg 0x140176994
mov dword [rdi - 0x10], esi
movsxd rax, esi
mov word [rdi + rax*2], 0
lea rbp, [rdi - 0x18]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbp + 0x10], 0
jl 0x140176898
cmp rax, qword [rbp]
jne 0x140176898
mov rbx, rbp
lock add dword [rbp + 0x10], 1
jmp 0x1401768d7
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x1401768b4
call fcn.1400f0ca0
int3
mov eax, dword [rbp + 8]
mov dword [rbx + 8], eax
mov eax, dword [rbp + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rbp + 0x18]
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.140216220
add rbx, 0x18
mov qword [rsp + 0x80], rbx
xor eax, eax
lea rdi, [0x140260b08]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1401768fe
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x140176925
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140176973
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140176973
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140176951
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140176973
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140176973
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14017696d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, 1
lock xadd dword [rbp + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x14017698f
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
jmp 0x14017699f
mov ecx, 0x80070057
call fcn.140003c70
nop
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret