Function at 0x140013730
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov rdi, r8
mov rbx, rdx
mov rsi, 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 r14, rax
cmp qword [rsi + 0xa0], rax
je 0x1400137cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x140013b4e
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400137bd
mov qword [rsi + 0xa0], r14
call fcn.1400b9400
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0xa0]
inc r14
cmp r14, 2
jb 0x140013b6f
lea rcx, [rsi + 0x10]
mov edx, 1
call fcn.140033660
test al, al
je 0x140013b6f
mov rax, qword [rsi + 0xa0]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x140013b6f
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 8
xor ebp, ebp
lea r9, [rsp + 0xf0]
mov r8d, 0x20002
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140013b22
movaps xmm6, xmmword [0x1401ee3a0]
lea rcx, [rsp + 0xa0]
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
mov rdx, rbx
call fcn.1400f0270
movzx eax, byte [rdi + 0x17]
test al, al
js 0x140013876
and eax, 0x7f
jmp 0x14001387d
mov rax, qword [rdi + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rax
test rax, rax
js 0x140013c9e
test rdi, rdi
jne 0x14001389e
test rax, rax
jne 0x140013cca
lea rax, str.database
lea rdx, [rsp + 0xf8]
mov qword [rdx], rax
mov qword [rdx + 8], 8
lea rcx, [rsp + 0xa0]
lea rdi, [rsp + 0x70]
mov r8, rdi
call fcn.14001a060
mov rcx, rdi
mov rdx, rsi
call fcn.1400f0150
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400138e5
and eax, 0x7f
jmp 0x1400138ef
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
test rax, rax
js 0x140013c9e
test rdi, rdi
jne 0x140013916
test rax, rax
jne 0x140013cca
lea rax, str.exception_pointers
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x90]
call fcn.140013d00
cmp byte [rsp + 0x87], 0
js 0x140013b73
mov edx, dword [rsi + 0xa0]
lea rdi, [rsp + 0x70]
mov rcx, rdi
call fcn.1400b0cf0
movzx eax, byte [rdi + 0x17]
test al, al
js 0x140013970
and eax, 0x7f
jmp 0x14001397a
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rax
test rax, rax
js 0x140013c9e
test rdi, rdi
jne 0x14001399b
test rax, rax
jne 0x140013cca
lea rax, [0x1402020e3]
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x50]
call fcn.140013d00
cmp byte [rsp + 0x87], 0
js 0x140013b82
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x70]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, r14
call fcn.140013f60
lea rdx, str.___thread
mov r8d, 0xa
mov rcx, r14
call fcn.140014560
lea rdi, [rsi + 0x88]
movzx eax, byte [r14 + 0x17]
mov r15d, eax
and r15d, 0x7f
test al, al
mov rbx, qword [r14]
cmovs r15, qword [r14 + 8]
cmovns rbx, r14
mov r14, qword [rsi + 0x88]
mov rax, qword [rsi + 0x98]
mov rcx, rax
sub rcx, r14
sar rcx, 1
cmp rcx, r15
jae 0x140013c13
test r14, r14
jne 0x140013bdb
test r15, r15
js 0x140013c96
cmp rax, r15
mov rcx, r15
cmova rcx, rax
movabs rdx, 0x7ffffffffffffffe
lea r12, [rdx + 1]
cmp rax, rdx
cmovb r12, rcx
test r12, r12
js 0x140013c96
lea rcx, [r12 + r12]
call fcn.14012cd5c
mov r14, rax
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x90], rax
lea rax, [rax + r12*2]
mov qword [rsi + 0x98], rax
lea r8, [r15 + r15]
mov rcx, r14
mov rdx, rbx
call fcn.140131180
lea r15, [r14 + r15*2]
mov qword [rsi + 0x90], r15
mov word [rsp + 0xf8], 0
mov rax, qword [rsi + 0x88]
mov rcx, r15
sub rcx, rax
cmp rcx, 0xffffffffffffffbf
ja 0x140013b9d
lea r8, [rsp + 0xf8]
mov edx, 0x20
mov rcx, rdi
call fcn.140013db0
cmp byte [rsp + 0x87], 0
jns 0x140013b12
mov rcx, qword [rsp + 0x70]
call fcn.14012cd4c
lea rcx, [rsp + 0xa0]
call fcn.1400131b0
mov bpl, 1
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14012f6f0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400b9400
mov rcx, qword [rsi + 0xa0]
call fcn.1401142f0
mov qword [rsi + 0xa0], 0
jmp 0x1400137a5
xor ebp, ebp
jmp 0x140013b22
mov rcx, qword [rsp + 0x70]
call fcn.14012cd4c
jmp 0x140013950
mov rcx, qword [rsp + 0x70]
call fcn.14012cd4c
jmp 0x1400139d2
mov qword [rsi + 0x90], rax
jmp 0x140013afe
add rax, rcx
add rax, 0x40
cmp r15, rax
je 0x140013b91
add r15, 0xfffffffffffffffe
jne 0x140013ba4
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140167fb0
mov rax, qword [rsi + 0x90]
cmp rax, r14
je 0x140013bef
add rax, 0xfffffffffffffffe
jne 0x140013be2
jmp 0x140013baf
mov qword [rsi + 0x90], r14
mov rcx, r14
call fcn.14012cd4c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
xor eax, eax
jmp 0x140013a58
mov rax, qword [rsi + 0x90]
mov r8, rax
sub r8, r14
mov rcx, r8
sar rcx, 1
cmp rcx, r15
jb 0x140013c5e
test r15, r15
je 0x140013c46
lea r8, [r15 + r15]
mov rcx, r14
mov rdx, rbx
call fcn.140131180
mov rax, qword [rsi + 0x90]
lea r15, [r14 + r15*2]
cmp rax, r15
je 0x140013ac1
add rax, 0xfffffffffffffffe
jne 0x140013c4a
jmp 0x140013baf
lea r15, [rbx + r15*2]
lea r12, [rbx + rcx*2]
cmp rax, r14
je 0x140013c7d
mov rcx, r14
mov rdx, rbx
call fcn.140131180
mov r14, qword [rsi + 0x90]
sub r15, r12
mov rcx, r14
mov rdx, r12
mov r8, r15
call fcn.140131180
add r15, r14
jmp 0x140013ac1
mov rcx, rdi
call fcn.140167fb0
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.140167fb0
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.140167fb0
int3