Function at 0x14001e320
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14029b028]
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 r14, rax
cmp qword [rsi + 0xa0], rax
je 0x14001e3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x14001e7d0
mov rax, r14
inc rax
cmp rax, 2
jb 0x14001e3af
mov qword [rsi + 0xa0], r14
call fcn.1400e8860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0xa0]
inc r14
cmp r14, 2
jb 0x14001e7f1
lea rcx, [rsi + 0x10]
mov edx, 1
call fcn.140046a40
test al, al
je 0x14001e7f1
mov rax, qword [rsi + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x14001e7f1
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 8
xor ebp, ebp
lea r9, [rsp + 0xa8]
mov r8d, 0x20002
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14001e7a2
movaps xmm6, xmmword [0x1402724c0]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x40], xmm6
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
mov rcx, r14
mov rdx, rdi
call fcn.14001ea60
movzx eax, byte [rbx + 0x17]
test al, al
mov rcx, qword [rbx]
cmovns rcx, rbx
lea rdi, [rsp + 0xd0]
mov qword [rdi], rcx
cmovs rax, qword [rbx + 8]
mov qword [rdi + 8], rax
lea rax, str.database
lea rbx, [rsp + 0x38]
mov qword [rbx], rax
mov qword [rbx + 8], 8
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.140029dc0
mov rcx, rbx
mov rdx, rsi
call fcn.14014b130
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14001e4c3
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
lea rdx, [rsp + 0xc0]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
mov rcx, rdi
call fcn.1401253a0
movzx eax, byte [rsp + 0xe7]
test al, al
mov rcx, qword [rsp + 0xd0]
cmovns rcx, rdi
lea r8, [rsp + 0xe8]
mov qword [r8], rcx
cmovs rax, qword [rsp + 0xd8]
mov qword [r8 + 8], rax
lea rax, str.exception_pointers
lea rdx, [rsp + 0xb0]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
mov rcx, r14
call fcn.140029dc0
cmp byte [rsp + 0xe7], 0
jns 0x14001e541
mov rcx, qword [rsp + 0xd0]
call fcn.14018482c
cmp byte [rsp + 0x4f], 0
js 0x14001e7fd
mov edx, dword [rsi + 0xa0]
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400dc8a0
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14001e571
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
lea rdx, [rsp + 0xc0]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
mov rcx, rdi
call fcn.1401253a0
movzx eax, byte [rsp + 0xe7]
test al, al
mov rcx, qword [rsp + 0xd0]
cmovns rcx, rdi
lea r8, [rsp + 0xe8]
mov qword [r8], rcx
cmovs rax, qword [rsp + 0xd8]
mov qword [r8 + 8], rax
lea rax, [0x140283503]
lea rdx, [rsp + 0xb0]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0x50]
call fcn.140029dc0
cmp byte [rsp + 0xe7], 0
jns 0x14001e5f1
mov rcx, qword [rsp + 0xd0]
call fcn.14018482c
cmp byte [rsp + 0x4f], 0
js 0x14001e80c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xe0], rax
movaps xmmword [rsp + 0xd0], xmm6
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14001ed40
lea rdx, str.___thread
mov r8d, 0xa
mov rcx, rdi
call fcn.14001f400
movzx r12d, byte [rsp + 0xe7]
test r12b, r12b
jns 0x14001e656
mov rdi, qword [rsp + 0xd0]
mov r12, qword [rsp + 0xd8]
lea rbx, [rsi + 0x88]
mov r14, qword [rsi + 0x88]
mov rax, qword [rsi + 0x98]
mov rcx, rax
sub rcx, r14
sar rcx, 1
cmp r12, rcx
jbe 0x14001e81b
test r14, r14
jne 0x14001e8ae
test r12, r12
js 0x14001e7f5
cmp rax, r12
mov rcx, r12
cmova rcx, rax
movabs rdx, 0x7ffffffffffffffe
lea r15, [rdx + 1]
cmp rax, rdx
cmovb r15, rcx
test r15, r15
js 0x14001e7f5
lea rcx, [r15 + r15]
call fcn.140184834
mov r14, rax
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x90], rax
lea rax, [rax + r15*2]
mov qword [rsi + 0x98], rax
add r12, r12
xor eax, eax
mov rcx, r14
add rcx, rax
je 0x14001e882
movzx edx, word [rdi + rax]
mov word [rcx], dx
add rax, 2
cmp r12, rax
jne 0x14001e6e1
add r14, rax
mov qword [rsi + 0x90], r14
mov word [rsp + 0x38], 0
mov rax, qword [rbx]
sub r14, rax
cmp r14, 0xffffffffffffffbf
ja 0x14001e8d2
lea r8, [rsp + 0x38]
mov edx, 0x20
mov rcx, rbx
call fcn.14001e8f0
cmp byte [rsp + 0xe7], 0
jns 0x14001e747
mov rcx, qword [rsp + 0xd0]
call fcn.14018482c
lea rsi, [rsp + 0x80]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.140028f80
mov rsi, qword [rsi - 0x18]
test rsi, rsi
je 0x14001e79f
mov rax, qword [rsp + 0x70]
mov rcx, rsi
cmp rax, rsi
jne 0x14001e77e
jmp 0x14001e795
mov rcx, qword [rax - 0x18]
call fcn.14018482c
jmp 0x14001e788
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
js 0x14001e773
mov rax, rdi
cmp rdi, rsi
jne 0x14001e77e
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rsi
call fcn.14018482c
mov bpl, 1
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1401874c0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400e8860
mov rcx, qword [rsi + 0xa0]
call fcn.140165880
mov qword [rsi + 0xa0], 0
jmp 0x14001e397
xor ebp, ebp
jmp 0x14001e7a2
mov rcx, rbx
call fcn.1401c1b10
mov rcx, qword [rsp + 0x38]
call fcn.14018482c
jmp 0x14001e54c
mov rcx, qword [rsp + 0x38]
call fcn.14018482c
jmp 0x14001e5fc
lea r15, [rdi + r12*2]
mov rbp, qword [rsi + 0x90]
sub rbp, r14
lea r13, [rdi + rbp]
sar rbp, 1
cmp r12, rbp
cmova r15, r13
sub r15, rdi
mov rcx, r14
mov rdx, rdi
mov r8, r15
call fcn.140188f50
cmp r12, rbp
jbe 0x14001e8e5
mov r14, qword [rsi + 0x90]
add r12, r12
add rbp, rbp
sub r12, rbp
xor eax, eax
mov rcx, r14
add rcx, rax
je 0x14001e882
movzx edx, word [r13 + rax]
mov word [rcx], dx
add rax, 2
cmp r12, rax
jne 0x14001e863
jmp 0x14001e6fd
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401c1b10
mov qword [rsi + 0x90], r14
mov rcx, r14
call fcn.14018482c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
xor eax, eax
jmp 0x14001e686
add rax, r14
add rax, 0x40
mov qword [rsi + 0x90], rax
jmp 0x14001e730
add r14, r15
jmp 0x14001e700