Function at 0x140053f72
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 [0x140327038]
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 0x14005400c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x14005428c
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140053ffd
mov qword [rsi + 0xa0], rdi
call fcn.1400a6030
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0xa0]
inc rdi
cmp rdi, 2
jb 0x14005425a
lea rdi, [rsi + 0x10]
mov rcx, rdi
mov edx, 1
call fcn.14006cc30
test al, al
je 0x14005425a
mov rax, qword [rsi + 0xa0]
lea r8, [rsp + 0xf0]
mov qword [r8], rax
mov edx, 0x20002
mov r9d, 8
mov rcx, rdi
call fcn.1400542b0
mov edi, eax
test al, al
je 0x140054230
movaps xmm6, xmmword [0x1402e6d80]
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.1400545c0
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.1400e31a0
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov rdx, rsi
call fcn.140114dd0
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.140129820
cmp byte [rbx + 0x17], 0
js 0x14005427d
mov edx, dword [rsi + 0xa0]
mov rcx, rbx
call fcn.1401298c0
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, [0x1402fdd73]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 7
lea rcx, [rsp + 0xa0]
call fcn.140129820
cmp byte [rsp + 0x77], 0
js 0x14005425e
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.14012eb70
lea rdx, str.___thread
mov r8d, 0xa
mov rcx, rbx
call fcn.140116148
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.140054448
mov word [rsp + 0x2e], 0
mov rax, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x90]
sub rcx, rax
cmp rcx, 0xffffffffffffffbf
ja 0x14005426d
lea r8, [rsp + 0x2e]
mov edx, 0x20
mov rcx, r14
call fcn.1400542f0
cmp byte [rsp + 0x77], 0
jns 0x140054223
mov rcx, qword [rsp + 0x60]
call fcn.14013a6ac
lea rcx, [rsp + 0xa0]
call fcn.140129620
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14013d520
mov eax, edi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor edi, edi
jmp 0x140054230
mov rcx, qword [rsp + 0x60]
call fcn.14013a6ac
jmp 0x14005417b
add rax, rcx
add rax, 0x40
mov qword [rsi + 0x90], rax
jmp 0x140054212
mov rcx, qword [rsp + 0x60]
call fcn.14013a6ac
jmp 0x140054117
call fcn.1400a6030
mov rcx, qword [rsi + 0xa0]
call fcn.1400ccd80
mov qword [rsi + 0xa0], 0
jmp 0x140053fe5