Function at 0x140017f90
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov r15, r8
mov rbx, rdx
mov r13, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x108], 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 [r13 + 0xa0], rax
je 0x14001802e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [r13 + 0xa0]
inc rax
cmp rax, 2
jae 0x14001830b
mov rax, rbp
inc rax
cmp rax, 2
jb 0x14001801f
mov qword [r13 + 0xa0], rbp
call fcn.1400d3890
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [r13 + 0xa0]
inc rbp
cmp rbp, 2
jb 0x14001832c
lea rdi, [r13 + 0x10]
mov rcx, rdi
mov edx, 1
call fcn.14003fad0
test al, al
je 0x14001832c
mov rax, qword [r13 + 0xa0]
lea r8, [rsp + 0x100]
mov qword [r8], rax
mov edx, 0x20002
mov r9d, 8
mov rcx, rdi
call fcn.14003fa90
mov r14d, eax
test al, al
je 0x1400182dc
movabs rdi, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x40], rdi
movaps xmm6, xmmword [0x1401efb80]
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
mov rcx, rbp
mov rdx, rbx
call fcn.1400fd880
lea rax, str.database
lea rdx, [rsp + 0xa0]
mov qword [rdx], rax
mov qword [rdx + 8], 8
mov rcx, rbp
mov r8, r15
call fcn.1400184b0
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov rdx, r13
call fcn.1400fd6f0
movzx eax, byte [rbx + 0x17]
test al, al
mov rcx, qword [rbx]
cmovns rcx, rbx
lea r8, [rsp + 0x90]
mov qword [r8], rcx
cmovs rax, qword [rbx + 8]
mov qword [r8 + 8], rax
lea rax, str.exception_pointers
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
mov rcx, rbp
call fcn.140018420
cmp byte [rbx + 0x17], 0
js 0x140018339
mov edx, dword [r13 + 0xa0]
mov rcx, rbx
call fcn.1400fd610
movzx eax, byte [rsp + 0x87]
test al, al
mov rcx, qword [rsp + 0x70]
cmovns rcx, rbx
lea r8, [rsp + 0x50]
mov qword [r8], rcx
cmovs rax, qword [rsp + 0x78]
mov qword [r8 + 8], rax
lea rax, [0x1401fffd3]
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xb0]
call fcn.140018420
cmp byte [rsp + 0x87], 0
js 0x140018348
mov qword [rsp + 0x80], rdi
movaps xmmword [rsp + 0x70], xmm6
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.140018640
lea rdx, str.___thread
mov r8d, 0xa
mov rcx, rbx
call fcn.1400f47c0
movzx edi, byte [rsp + 0x87]
test dil, dil
jns 0x1400181ea
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
lea r12, [r13 + 0x88]
mov rbp, qword [r13 + 0x88]
mov rax, qword [r13 + 0x98]
mov rcx, rax
sub rcx, rbp
sar rcx, 1
cmp rdi, rcx
jbe 0x140018357
test rbp, rbp
jne 0x1400183d6
test rdi, rdi
js 0x140018331
cmp rdi, rax
mov rcx, rax
cmova rcx, rdi
movabs rdx, 0x7ffffffffffffffe
lea rsi, [rdx + 1]
cmp rax, rdx
cmovb rsi, rcx
test rsi, rsi
js 0x140018331
lea rcx, [rsi + rsi]
call fcn.14011d790
mov rbp, rax
mov qword [r13 + 0x90], rax
mov qword [r13 + 0x88], rax
lea rax, [rax + rsi*2]
mov qword [r13 + 0x98], rax
add rdi, rdi
xor eax, eax
movzx ecx, word [rbx + rax]
mov word [rbp + rax], cx
add rax, 2
cmp rdi, rax
jne 0x140018275
add rbp, rax
mov qword [r13 + 0x90], rbp
mov word [rsp + 0x3e], 0
mov rax, qword [r12]
sub rbp, rax
cmp rbp, 0xffffffffffffffbf
ja 0x1400183fd
lea r8, [rsp + 0x3e]
mov edx, 0x20
mov rcx, r12
call fcn.140018510
cmp byte [rsp + 0x87], 0
jns 0x1400182cf
mov rcx, qword [rsp + 0x70]
call fcn.14011d780
lea rcx, [rsp + 0xb0]
call fcn.140017950
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14011fe20
mov eax, r14d
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d3890
mov rcx, qword [r13 + 0xa0]
call fcn.140101910
mov qword [r13 + 0xa0], 0
jmp 0x140018007
xor r14d, r14d
jmp 0x1400182dc
mov rcx, r12
call fcn.140152a60
mov rcx, qword [rsp + 0x70]
call fcn.14011d780
jmp 0x14001813b
mov rcx, qword [rsp + 0x70]
call fcn.14011d780
jmp 0x1400181a1
lea r15, [rbx + rdi*2]
mov rsi, qword [r13 + 0x90]
sub rsi, rbp
mov rax, rsi
sar rax, 1
and rsi, 0xfffffffffffffffe
add rsi, rbx
mov qword [rsp + 0x28], rax
cmp rdi, rax
mov qword [rsp + 0x30], r15
cmova r15, rsi
sub r15, rbx
je 0x140018396
mov rcx, rbp
mov rdx, rbx
mov r8, r15
call fcn.140121c40
cmp rdi, qword [rsp + 0x28]
jbe 0x140018410
mov rbp, qword [r13 + 0x90]
cmp rsi, qword [rsp + 0x30]
je 0x14001828a
add rdi, rdi
mov rax, qword [rsp + 0x28]
add rax, rax
sub rdi, rax
xor eax, eax
movzx ecx, word [rsi + rax]
mov word [rbp + rax], cx
add rax, 2
cmp rdi, rax
jne 0x1400183bf
jmp 0x140018287
mov qword [r13 + 0x90], rbp
mov rcx, rbp
call fcn.14011d780
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
xor eax, eax
jmp 0x14001821a
add rax, rbp
add rax, 0x40
mov qword [r13 + 0x90], rax
jmp 0x1400182bb
add rbp, r15
jmp 0x14001828a