Function at 0x140023bc0
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 rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1402db040]
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 0x140023c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x140024116
mov rax, r14
inc rax
cmp rax, 2
jb 0x140023c4f
mov qword [rsi + 0xa0], r14
call fcn.140113f90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0xa0]
inc r14
cmp r14, 2
jb 0x140024221
lea rcx, [rsi + 0x10]
mov edx, 1
call fcn.140030f20
test al, al
je 0x140024221
mov rax, qword [rsi + 0xa0]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x140024221
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 8
xor ebp, ebp
lea r9, [rsp + 0xb8]
mov r8d, 0x20002
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x1400240de
movaps xmm6, xmmword [0x140299a90]
lea r14, [rsp + 0x60]
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, rbx
call fcn.140024380
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x140023d11
mov rax, qword [rdi + 8]
mov rdi, qword [rdi]
lea rbx, [rsp + 0xd0]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
lea rax, str.database
lea rdi, [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], 8
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.140029730
mov rcx, rdi
mov rdx, rsi
call fcn.140186f30
movsx rdx, byte [rdi + 0x17]
test rdx, rdx
jns 0x140023d64
mov rdx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
mov rcx, rdi
mov r8, rbx
call fcn.140158cd0
movsx rax, byte [rsp + 0xe7]
test rax, rax
jns 0x140023da4
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
lea r8, [rsp + 0xe8]
mov qword [r8], rbx
mov qword [r8 + 8], rax
lea rax, str.exception_pointers
lea rdx, [rsp + 0xc0]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
mov rcx, r14
call fcn.140029730
cmp byte [rsp + 0xe7], 0
jns 0x140023dec
mov rcx, qword [rsp + 0xd0]
call fcn.1401a9dc4
cmp byte [rsp + 0x5f], 0
js 0x140024230
mov edx, dword [rsi + 0xa0]
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.140117ed0
movsx rdx, byte [rdi + 0x17]
test rdx, rdx
jns 0x140023e1e
mov rdx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
xorps xmm0, xmm0
lea rbx, [rsp + 0xd0]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rcx, rdi
mov r8, rbx
call fcn.140158cd0
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x140023e59
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
lea r8, [rsp + 0xe8]
mov qword [r8], rbx
mov qword [r8 + 8], rax
lea rax, [0x1402b509f]
lea rdx, [rsp + 0xc0]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0x60]
call fcn.140029730
cmp byte [rsp + 0xe7], 0
jns 0x140023ea3
mov rcx, qword [rsp + 0xd0]
call fcn.1401a9dc4
cmp byte [rsp + 0x5f], 0
js 0x14002423f
movabs r15, 0x7fffffffffffffff
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0xd0]
mov qword [rdi + 0x10], rax
movaps xmmword [rdi], xmm6
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.1400246b0
movsx r9, byte [rdi + 0x17]
test r9, r9
jns 0x140023f8a
mov rdx, qword [rsp + 0xe0]
and rdx, r15
dec rdx
mov r9, qword [rsp + 0xd8]
mov rax, rdx
sub rax, r9
cmp rax, 0xa
jb 0x140023f99
mov rdi, qword [rsp + 0xd0]
lea rax, [rdi + r9*2]
lea rcx, [rdi + r9*2]
add rcx, 0x14
lea rdx, str.___thread
cmp rax, rdx
seta r8b
cmp rcx, rdx
setbe cl
or cl, r8b
je 0x1400241db
movups xmm0, xmmword [str.___thread]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], 0x3d0064
lea rax, [r9 + 0xa]
cmp byte [rsp + 0xe7], 0
jns 0x140023fd5
mov qword [rsp + 0xd8], rax
mov word [rdi + r9*2 + 0x14], 0
movsx r13, byte [rsp + 0xe7]
test r13, r13
js 0x140023fe0
lea r14, [rsp + 0xd0]
jmp 0x140023ff0
lea rax, [r9 - 1]
cmp rax, 0xa
jae 0x140023f1a
mov edx, 0xa
mov r8, r9
sub r8, rdx
add r8, 0xa
lea rax, str.___thread
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x30], 0xa
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0xd0]
call fcn.14014d400
jmp 0x140023f72
and al, 0x7f
mov byte [rsp + 0xe7], al
jmp 0x140023f6a
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
lea rdi, [rsi + 0x88]
mov rbx, qword [rsi + 0x88]
mov rax, qword [rsi + 0x98]
mov rcx, rax
sub rcx, rbx
sar rcx, 1
cmp r13, rcx
jbe 0x140024137
test rbx, rbx
jne 0x1400241e9
test r13, r13
js 0x140024228
lea rcx, [r15 - 1]
cmp rax, r13
mov r12, r13
cmova r12, rax
cmp rax, rcx
cmovae r12, r15
test r12, r12
js 0x140024228
lea rcx, [r12 + r12]
call fcn.1401a9d88
mov rbx, rax
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x90], rax
lea rax, [rax + r12*2]
mov qword [rsi + 0x98], rax
lea r8, [r13*2]
mov rcx, rbx
mov rdx, r14
call fcn.1401e56b0
lea rbx, [rbx + r13*2]
mov qword [rsi + 0x90], rbx
mov word [rsp + 0x48], 0
mov rax, qword [rsi + 0x88]
mov rcx, rbx
sub rcx, rax
cmp rcx, 0xffffffffffffffbf
ja 0x1400241c9
lea r8, [rsp + 0x48]
mov edx, 0x20
mov rcx, rdi
call fcn.140024250
cmp byte [rsp + 0xe7], 0
jns 0x1400240d1
mov rcx, qword [rsp + 0xd0]
call fcn.1401a9dc4
lea rcx, [rsp + 0x60]
call fcn.1400238c0
mov bpl, 1
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x1400240f8
call fcn.1401ac870
int3
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.140113f90
mov rcx, qword [rsi + 0xa0]
call fcn.140192790
mov qword [rsi + 0xa0], 0
jmp 0x140023c37
mov r15, qword [rsi + 0x90]
mov r8, r15
sub r8, rbx
mov rax, r8
sar rax, 1
cmp r13, rax
ja 0x140024185
lea r12, [r13*2]
test r13, r13
je 0x140024171
mov rcx, rbx
mov rdx, r14
mov r8, r12
call fcn.1401e56b0
mov r15, qword [rsi + 0x90]
add rbx, r12
cmp r15, rbx
je 0x140024083
add r15, 0xfffffffffffffffe
jne 0x140024174
jmp 0x1400241db
lea r12, [r14 + r13*2]
lea r13, [r8 + r14]
test r8, r8
je 0x1400241a4
mov rcx, rbx
mov rdx, r14
call fcn.1401e56b0
mov r15, qword [rsi + 0x90]
sub r12, r13
je 0x1400241b7
mov rcx, r15
mov rdx, r13
mov r8, r12
call fcn.1401e56b0
add r15, r12
mov qword [rsi + 0x90], r15
mov rbx, r15
jmp 0x14002408a
add rax, rcx
add rax, 0x40
cmp rbx, rax
je 0x1400241dd
add rbx, 0xfffffffffffffffe
jne 0x1400241d0
ud2
mov qword [rsi + 0x90], rax
jmp 0x1400240ba
mov rax, qword [rsi + 0x90]
cmp rax, rbx
je 0x1400241fd
add rax, 0xfffffffffffffffe
jne 0x1400241f0
jmp 0x1400241db
mov qword [rsi + 0x90], rbx
mov rcx, rbx
call fcn.1401a9dc4
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
xor eax, eax
jmp 0x140024020
xor ebp, ebp
jmp 0x1400240de
mov rcx, rdi
call fcn.1401e9f80
mov rcx, qword [rsp + 0x48]
call fcn.1401a9dc4
jmp 0x140023df7
mov rcx, qword [rsp + 0x48]
call fcn.1401a9dc4
jmp 0x140023eae