Function at 0x14008e950
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140216028]
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 rdi, rax
cmp qword [rsi + 0xa0], rax
je 0x14008e9ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x14008ec38
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14008e9db
mov qword [rsi + 0xa0], rdi
call fcn.1400eb610
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0xa0]
inc rdi
cmp rdi, 2
jb 0x14008ec59
lea rdi, [rsi + 0x10]
mov rcx, rdi
mov edx, 1
call fcn.1400a68b0
test al, al
je 0x14008ec59
mov rax, qword [rsi + 0xa0]
lea r8, [rsp + 0xf0]
mov qword [r8], rax
mov edx, 0x20002
mov r9d, 8
mov rcx, rdi
call fcn.1400a6980
mov edi, eax
test al, al
je 0x14008ec0e
movaps xmm6, xmmword [0x1401e7a90]
lea r15, [rsp + 0xa0]
movaps xmmword [r15 + 0x40], xmm6
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
mov rcx, r15
mov rdx, r14
call fcn.140074640
lea rax, str.database
lea rdx, [rsp + 0x90]
mov qword [rdx], rax
mov qword [rdx + 8], 8
mov rcx, r15
mov r8, rbx
call fcn.140075790
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov rdx, rsi
call fcn.1400e5ca0
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
lea r8, [rsp + 0x80]
mov qword [r8], rax
cmovs rcx, qword [rbx + 8]
mov qword [r8 + 8], rcx
lea rax, str.exception_pointers
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], 0x12
mov rcx, r15
call fcn.140075d00
cmp byte [rbx + 0x17], 0
js 0x14008ec7c
mov edx, dword [rsi + 0xa0]
mov rcx, rbx
call fcn.1400e5ba0
movzx eax, byte [rsp + 0x77]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x60]
cmovns rax, rbx
lea r8, [rsp + 0x40]
mov qword [r8], rax
cmovs rcx, qword [rsp + 0x68]
mov qword [r8 + 8], rcx
lea rax, [0x1401ecf7d]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xa0]
call fcn.140075d00
cmp byte [rsp + 0x77], 0
js 0x14008ec6d
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.140076540
lea rdx, str.___thread
mov r8d, 0xa
mov rcx, rbx
call fcn.140061c40
lea r14, [rsi + 0x88]
movzx eax, byte [rsp + 0x77]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs rbx, qword [rsp + 0x60]
cmovs rcx, qword [rsp + 0x68]
lea r8, [rbx + rcx*2]
mov rcx, r14
mov rdx, rbx
call fcn.14008ec90
mov word [rsp + 0x2e], 0
mov rax, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x90]
sub rcx, rax
cmp rcx, 0xffffffffffffffbf
ja 0x14008ec5d
lea r8, [rsp + 0x2e]
mov edx, 0x20
mov rcx, r14
call fcn.1400659d0
cmp byte [rsp + 0x77], 0
jns 0x14008ec01
mov rcx, qword [rsp + 0x60]
call fcn.14010f794
lea rcx, [rsp + 0xa0]
call fcn.140074740
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140110d20
mov eax, edi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400eb610
mov rcx, qword [rsi + 0xa0]
call fcn.1400de840
mov qword [rsi + 0xa0], 0
jmp 0x14008e9c3
xor edi, edi
jmp 0x14008ec0e
add rax, rcx
add rax, 0x40
mov qword [rsi + 0x90], rax
jmp 0x14008ebf0
mov rcx, qword [rsp + 0x60]
call fcn.14010f794
jmp 0x14008eb59
mov rcx, qword [rsp + 0x60]
call fcn.14010f794
jmp 0x14008eaf5