Function at 0x1400c5312
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 rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14033f038]
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 rdi, rax
cmp qword [rsi + 0xa0], rax
je 0x1400c53ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x1400c5602
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400c539d
mov qword [rsi + 0xa0], rdi
call fcn.1400412c0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0xa0]
inc rdi
cmp rdi, 2
jb 0x1400c55fe
lea rdi, [rsi + 0x10]
mov rcx, rdi
mov edx, 1
call fcn.1400eadd0
test al, al
je 0x1400c55fe
mov rax, qword [rsi + 0xa0]
lea r8, [rsp + 0xf0]
mov qword [r8], rax
mov edx, 0x20002
mov r9d, 8
mov rcx, rdi
call fcn.1400eab50
mov edi, eax
test al, al
je 0x1400c55d4
movaps xmm6, xmmword [0x140301d60]
lea r15, [rsp + 0xa0]
movaps xmmword [r15 + 0x40], xmm6
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
mov rcx, r15
mov rdx, r14
call fcn.1400c5a40
lea rax, str.database
lea rdx, [rsp + 0x90]
mov qword [rdx], rax
mov qword [rdx + 8], 8
mov rcx, r15
mov r8, rbx
call fcn.1400c5720
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov rdx, rsi
call fcn.14006ae80
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
lea r8, [rsp + 0x80]
mov qword [r8], rax
cmovs rcx, qword [rbx + 8]
mov qword [r8 + 8], rcx
lea rax, str.exception_pointers
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
mov rcx, r15
call fcn.1400c5680
cmp byte [rbx + 0x17], 0
js 0x1400c5639
mov edx, dword [rsi + 0xa0]
mov rcx, rbx
call fcn.14006af90
movzx eax, byte [rsp + 0x77]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x60]
cmovns rax, rbx
lea r8, [rsp + 0x40]
mov qword [r8], rax
cmovs rcx, qword [rsp + 0x68]
mov qword [r8 + 8], rcx
lea rax, [0x140315c03]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xa0]
call fcn.1400c5680
cmp byte [rsp + 0x77], 0
js 0x1400c5648
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.1400e9f30
lea rdx, str.___thread
mov r8d, 0xa
mov rcx, rbx
call fcn.14006cfe0
lea r14, [rsi + 0x88]
movzx eax, byte [rsp + 0x77]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs rbx, qword [rsp + 0x60]
cmovs rcx, qword [rsp + 0x68]
lea r8, [rbx + rcx*2]
mov rcx, r14
mov rdx, rbx
call fcn.1400c58d6
mov word [rsp + 0x2e], 0
mov rax, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x90]
sub rcx, rax
cmp rcx, 0xffffffffffffffbf
ja 0x1400c5657
lea r8, [rsp + 0x2e]
mov edx, 0x20
mov rcx, r14
call fcn.1400c5780
cmp byte [rsp + 0x77], 0
jns 0x1400c55c7
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
lea rcx, [rsp + 0xa0]
call fcn.1400c4d70
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140171860
mov eax, edi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor edi, edi
jmp 0x1400c55d4
call fcn.1400412c0
mov r15, qword [rsi + 0xa0]
mov rcx, qword [0x14035abe0]
test rcx, rcx
je 0x1400c566a
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r15
call qword [case.0x140211850.0]
mov qword [rsi + 0xa0], 0
jmp 0x1400c5385
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
jmp 0x1400c54b7
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
jmp 0x1400c551b
add rax, rcx
add rax, 0x40
mov qword [rsi + 0x90], rax
jmp 0x1400c55b6
call fcn.1400bf420
mov rcx, qword [0x14035abe0]
jmp 0x1400c561a