Function at 0x1401a88f0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0xe0
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
cmp edx, 2
jl 0x1401a891c
mov r15, qword [r8 + 8]
jmp 0x1401a8923
lea r15, str.main
xor esi, esi
xor edx, edx
mov qword [rsp + 0x30], rsi
call fcn.1401a4010
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401a8cb5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi - 1]
lea rdx, str.SELECT_data_FROM_sqlite_dbpage__1__WHERE_pgno1
call fcn.1401bb160
test eax, eax
je 0x1401a8986
mov rcx, qword [rbx]
call fcn.1401baf90
lea ecx, [rsi + 2]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.error:__s_n
mov rcx, rax
call fcn.1401ab380
jmp 0x1401a8cab
mov rcx, qword [rsp + 0x30]
mov r9d, 0xffffffff
mov r8, r15
mov qword [rsp + 0x20], rsi
lea edx, [r9 + 2]
call fcn.1401ace40
mov rcx, qword [rsp + 0x30]
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401a8c91
mov rcx, qword [rsp + 0x30]
xor edx, edx
call fcn.1401ad5b0
cmp eax, 0x64
jle 0x1401a8c91
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x108], rbp
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd0], r14
call fcn.1401ad3e0
mov rcx, qword [rsp + 0x30]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x80], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x40]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0xb0], eax
movaps xmmword [rsp + 0x90], xmm0
call fcn.1401ad670
lea rcx, [rsp + 0x60]
call fcn.1401a0a80
cmp eax, 1
lea r8, str.database_page_size:
mov ecx, 0x10000
lea rdx, str.__20s__d_n
cmove eax, ecx
mov rcx, qword [rbx + 0x30]
mov r9d, eax
call fcn.1401ab380
movups xmm0, xmmword [rsp + 0x40]
mov rcx, qword [rbx + 0x30]
lea r8, str.write_format:
lea rdx, str.__20s__d_n
psrldq xmm0, 2
movd eax, xmm0
movzx r9d, al
call fcn.1401ab380
movups xmm0, xmmword [rsp + 0x40]
mov rcx, qword [rbx + 0x30]
lea r8, str.read_format:
lea rdx, str.__20s__d_n
psrldq xmm0, 3
movd eax, xmm0
movzx r9d, al
call fcn.1401ab380
movups xmm0, xmmword [rsp + 0x40]
mov rcx, qword [rbx + 0x30]
lea r8, str.reserved_bytes:
lea rdx, str.__20s__d_n
psrldq xmm0, 4
movd eax, xmm0
movzx r9d, al
call fcn.1401ab380
lea r14, str.file_change_counter:
lea r12, str.number_of_tables:
nop word [rax + rax]
movsxd rdi, dword [r14 + 8]
lea rcx, [rsp + 0x50]
add rcx, rdi
call fcn.1401a0a90
mov rcx, qword [rbx + 0x30]
lea rdx, str.__20s__u
mov r8, qword [r14]
mov r9d, eax
mov ebp, eax
call fcn.1401ab380
cmp edi, 0x38
jne 0x1401a8b6f
cmp ebp, 1
jne 0x1401a8b4c
lea rdx, str.__utf8_
jmp 0x1401a8b66
cmp ebp, 2
jne 0x1401a8b5a
lea rdx, str.__utf16le_
jmp 0x1401a8b66
cmp ebp, 3
jne 0x1401a8b6f
lea rdx, str.__utf16be_
mov rcx, qword [rbx + 0x30]
call fcn.1401a08b0
mov rcx, qword [rbx + 0x30]
lea rdx, [0x1402b1100]
call fcn.1401a08b0
add r14, 0x10
cmp r14, r12
jl 0x1401a8b10
test r15, r15
jne 0x1401a8b9b
lea rcx, str.main.sqlite_schema
call fcn.1401ba3f0
jmp 0x1401a8bd5
lea rcx, str.temp
movzx eax, byte [r15 + rsi]
inc rsi
cmp al, byte [rcx + rsi - 1]
jne 0x1401a8bc6
cmp rsi, 5
jne 0x1401a8ba2
lea rdx, str.sqlite_temp_schema
lea rcx, [0x1402e94ac]
jmp 0x1401a8bd0
mov rdx, r15
lea rcx, str.__w_.sqlite_schema
call fcn.1401ba3f0
mov rbp, rax
lea r14, str.number_of_tables:
lea r12, str.defensive
nop word [rax + rax]
mov rcx, qword [r14 + 8]
mov rdx, rbp
call fcn.1401ba3f0
mov rdx, rax
mov rcx, rbx
mov rsi, rax
call fcn.1401975a0
mov rcx, rsi
mov edi, eax
call fcn.1401ba620
mov r8, qword [r14]
lea rdx, str.__20s__d_n
mov rcx, qword [rbx + 0x30]
mov r9d, edi
call fcn.1401ab380
add r14, 0x10
cmp r14, r12
jl 0x1401a8bf0
mov rcx, rbp
call fcn.1401ba620
mov rcx, qword [rbx]
lea r9, [rsp + 0x38]
mov r8d, 0x23
mov rdx, r15
call fcn.1401b0250
mov r9d, dword [rsp + 0x38]
lea r8, [0x1402eb990]
mov rcx, qword [rbx + 0x30]
lea rdx, str.__20s__u_n
call fcn.1401ab380
mov r14, qword [rsp + 0xd0]
xor eax, eax
mov r12, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0x118]
mov rbp, qword [rsp + 0x108]
jmp 0x1401a8cba
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.unable_to_read_database_header_n
call fcn.1401a08b0
mov rcx, qword [rsp + 0x30]
call fcn.1401ad670
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0xe0
pop r15
pop rsi
pop rbx
ret