Function at 0x140024320
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 rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14022c040]
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 0x1400243be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x140024819
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400243af
mov qword [rsi + 0xa0], r14
call fcn.1400a7ad0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0xa0]
inc r14
cmp r14, 2
jb 0x140024924
lea rcx, [rsi + 0x10]
mov edx, 1
call fcn.14004b300
test al, al
je 0x140024924
mov rax, qword [rsi + 0xa0]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x140024924
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 0x1400247e1
movaps xmm6, xmmword [0x1401fa990]
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.140024b50
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x14002446c
mov rax, qword [rdi + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rax
test rax, rax
js 0x1400248de
sete al
test rdi, rdi
setne cl
or cl, al
je 0x1400248de
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.140022130
mov rcx, rdi
mov rdx, rsi
call fcn.140112200
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x1400244de
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
test rax, rax
js 0x1400248de
sete al
test rdi, rdi
setne cl
or cl, al
je 0x1400248de
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.140024960
cmp byte [rsp + 0x87], 0
js 0x140024933
mov edx, dword [rsi + 0xa0]
lea rdi, [rsp + 0x70]
mov rcx, rdi
call fcn.1400a78a0
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x140024569
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rax
test rax, rax
js 0x1400248de
sete al
test rdi, rdi
setne cl
or cl, al
je 0x1400248de
lea rax, [0x1402142af]
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x50]
call fcn.140024960
cmp byte [rsp + 0x87], 0
js 0x140024942
movabs r15, 0x7fffffffffffffff
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], rax
movaps xmmword [rdi], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.140024ed0
movsx r9, byte [rdi + 0x17]
test r9, r9
jns 0x140024690
mov rdx, qword [rsp + 0x80]
and rdx, r15
dec rdx
mov r9, qword [rsp + 0x78]
mov rax, rdx
sub rax, r9
cmp rax, 0xa
jb 0x14002469f
mov rdi, qword [rsp + 0x70]
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 0x1400248de
movups xmm0, xmmword [str.___thread]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], 0x3d0064
lea rax, [r9 + 0xa]
cmp byte [rsp + 0x87], 0
jns 0x1400246d8
mov qword [rsp + 0x78], rax
mov word [rdi + r9*2 + 0x14], 0
movsx r13, byte [rsp + 0x87]
test r13, r13
js 0x1400246e3
lea r14, [rsp + 0x70]
jmp 0x1400246ed
lea rax, [r9 - 1]
cmp rax, 0xa
jae 0x140024626
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 + 0x70]
call fcn.140009fe0
jmp 0x14002467b
and al, 0x7f
mov byte [rsp + 0x87], al
jmp 0x140024673
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
lea rdi, [rsi + 0x88]
mov rbx, qword [rsi + 0x88]
mov rax, qword [rsi + 0x98]
mov rcx, rax
sub rcx, rbx
sar rcx, 1
cmp rcx, r13
jae 0x14002483a
test rbx, rbx
jne 0x1400248ec
test r13, r13
js 0x14002492b
lea rcx, [r15 - 1]
cmp rax, r13
mov r12, r13
cmova r12, rax
cmp rax, rcx
cmovae r12, r15
test r12, r12
js 0x14002492b
lea rcx, [r12 + r12]
call fcn.140133b54
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.14016a030
lea rbx, [rbx + r13*2]
mov qword [rsi + 0x90], rbx
mov word [rsp + 0xf8], 0
mov rax, qword [rsi + 0x88]
mov rcx, rbx
sub rcx, rax
cmp rcx, 0xffffffffffffffbf
ja 0x1400248cc
lea r8, [rsp + 0xf8]
mov edx, 0x20
mov rcx, rdi
call fcn.140024a20
cmp byte [rsp + 0x87], 0
jns 0x1400247d1
mov rcx, qword [rsp + 0x70]
call fcn.140133b2c
lea rcx, [rsp + 0xa0]
call fcn.1400234c0
mov bpl, 1
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x1400247fb
call fcn.1401363f0
int3
mov eax, ebp
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.1400a7ad0
mov rcx, qword [rsi + 0xa0]
call fcn.140110390
mov qword [rsi + 0xa0], 0
jmp 0x140024397
mov r15, qword [rsi + 0x90]
mov r8, r15
sub r8, rbx
mov rax, r8
sar rax, 1
cmp rax, r13
jb 0x140024888
lea r12, [r13*2]
test r13, r13
je 0x140024874
mov rcx, rbx
mov rdx, r14
mov r8, r12
call fcn.14016a030
mov r15, qword [rsi + 0x90]
add rbx, r12
cmp r15, rbx
je 0x140024780
add r15, 0xfffffffffffffffe
jne 0x140024877
jmp 0x1400248de
lea r12, [r14 + r13*2]
lea r13, [r8 + r14]
test r8, r8
je 0x1400248a7
mov rcx, rbx
mov rdx, r14
call fcn.14016a030
mov r15, qword [rsi + 0x90]
sub r12, r13
je 0x1400248ba
mov rcx, r15
mov rdx, r13
mov r8, r12
call fcn.14016a030
add r15, r12
mov qword [rsi + 0x90], r15
mov rbx, r15
jmp 0x140024787
add rax, rcx
add rax, 0x40
cmp rbx, rax
je 0x1400248e0
add rbx, 0xfffffffffffffffe
jne 0x1400248d3
ud2
mov qword [rsi + 0x90], rax
jmp 0x1400247bd
mov rax, qword [rsi + 0x90]
cmp rax, rbx
je 0x140024900
add rax, 0xfffffffffffffffe
jne 0x1400248f3
jmp 0x1400248de
mov qword [rsi + 0x90], rbx
mov rcx, rbx
call fcn.140133b2c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
xor eax, eax
jmp 0x14002471d
xor ebp, ebp
jmp 0x1400247e1
mov rcx, rdi
call fcn.14016f450
mov rcx, qword [rsp + 0x70]
call fcn.140133b2c
jmp 0x140024542
mov rcx, qword [rsp + 0x70]
call fcn.140133b2c
jmp 0x1400245c4