Function at 0x14006aed0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0xf8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x451
mov edx, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
cmp qword [rsi + 0xa0], rax
je 0x14006af6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x14006b1a8
mov rax, rbp
inc rax
cmp rax, 2
jb 0x14006af5b
mov qword [rsi + 0xa0], rbp
call fcn.1400b0f40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsi + 0xa0]
inc rbp
cmp rbp, 2
jb 0x14006b1c9
lea rbx, [rsi + 0x10]
mov rcx, rbx
mov edx, 1
call fcn.140076070
test al, al
je 0x14006b1c9
mov rax, qword [rsi + 0xa0]
lea r8, [rsp + 0xf0]
mov qword [r8], rax
mov edx, 0x20002
mov r9d, 8
mov rcx, rbx
call fcn.140076140
mov r14d, eax
test al, al
je 0x14006b17d
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x40], rbx
movaps xmm6, xmmword [0x1401a01c0]
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
mov rcx, rbp
mov rdx, rdi
call fcn.14004d1c0
lea rax, str.database
lea rdx, [rsp + 0x90]
mov qword [rdx], rax
mov qword [rdx + 8], 8
mov rcx, rbp
mov r8, r15
call fcn.14004e480
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov rdx, rsi
call fcn.1400b44b0
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi]
cmovns rcx, rdi
lea r8, [rsp + 0x80]
mov qword [r8], rcx
cmovs rax, qword [rdi + 8]
mov qword [r8 + 8], rax
lea rax, str.exception_pointers
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
mov rcx, rbp
call fcn.14004e8e0
cmp byte [rdi + 0x17], 0
js 0x14006b1ce
mov edx, dword [rsi + 0xa0]
mov rcx, rdi
call fcn.1400b43c0
movzx eax, byte [rsp + 0x77]
test al, al
mov rcx, qword [rsp + 0x60]
cmovns rcx, rdi
lea r8, [rsp + 0x40]
mov qword [r8], rcx
cmovs rax, qword [rsp + 0x68]
mov qword [r8 + 8], rax
lea rax, [0x1401a41f5]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xa0]
call fcn.14004e8e0
cmp byte [rsp + 0x77], 0
js 0x14006b1dd
mov qword [rsp + 0x70], rbx
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.14004f070
lea rdx, str.___thread
mov rcx, rdi
call fcn.14004c400
lea rbx, [rsi + 0x88]
movzx eax, byte [rsp + 0x77]
test al, al
jns 0x14006b119
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
lea r8, [rdi + rax*2]
mov rcx, rbx
mov rdx, rdi
call fcn.14006b200
mov word [rsp + 0x2e], 0
mov rax, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x90]
sub rcx, rax
sar rcx, 1
cmp rcx, 0xffffffffffffffdf
ja 0x14006b1ec
lea r8, [rsp + 0x2e]
mov edx, 0x20
mov rcx, rbx
call fcn.140059050
cmp byte [rsp + 0x77], 0
jns 0x14006b170
mov rcx, qword [rsp + 0x60]
call fcn.1400d4ef4
lea rcx, [rsp + 0xa0]
call fcn.14004d350
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400d5720
mov eax, r14d
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400b0f40
mov rcx, qword [rsi + 0xa0]
call fcn.1400b9290
mov qword [rsi + 0xa0], 0
jmp 0x14006af43
xor r14d, r14d
jmp 0x14006b17d
mov rcx, qword [rsp + 0x60]
call fcn.1400d4ef4
jmp 0x14006b077
mov rcx, qword [rsp + 0x60]
call fcn.1400d4ef4
jmp 0x14006b0d6
lea rax, [rax + rcx*2]
add rax, 0x40
mov qword [rsi + 0x90], rax
jmp 0x14006b15f