Function at 0x140023ae0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [0x140150af4]
mov rsi, rcx
cmp edx, 1
jle 0x140023b06
mov rbp, qword [r8 + 8]
mov qword [rsp + 0x38], 0
mov rcx, rsi
xor edx, edx
call sym.open_db
mov rcx, qword [rsi]
test rcx, rcx
je 0x140023bc9
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, 0xffffffff
lea rdx, str.SELECT_data_FROM_sqlite_dbpage__1__WHERE_pgno1
call sym.sqlite3_prepare_v2
mov edi, eax
test eax, eax
jne 0x140023ba8
mov rcx, qword [rsp + 0x38]
mov r9d, 0xffffffff
mov r8, rbp
mov edx, 1
mov qword [rsp + 0x20], 0
call sym.sqlite3_bind_text
mov rcx, qword [rsp + 0x38]
call sym.sqlite3_step
cmp eax, 0x64
jne 0x140023b8c
mov rcx, qword [rsp + 0x38]
xor edx, edx
call sym.sqlite3_column_bytes
cmp eax, 0x64
jg 0x140023be8
lea rcx, str.unable_to_read_database_header_n
call sym.ePutsUtf8.isra.0
mov rcx, qword [rsp + 0x38]
call sym.sqlite3_finalize
jmp 0x140023bc9
mov rcx, qword [rsi]
call sym.sqlite3_errmsg
lea rcx, str.error:__s_n
mov rdx, rax
call sym.ePrintfUtf8
mov rcx, qword [rsp + 0x38]
call sym.sqlite3_finalize
mov edi, 1
mov eax, edi
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
xor edx, edx
call sym.sqlite3_column_blob
test rax, rax
je 0x140023e7c
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
lea rbx, str.file_change_counter:
lea r13, str.__20s__u
movdqu xmm2, xmmword [rax + 0x20]
movdqu xmm3, xmmword [rax + 0x30]
lea r14, [rbx + 0xc0]
movdqu xmm4, xmmword [rax + 0x40]
movdqu xmm5, xmmword [rax + 0x50]
movups xmmword [rsp + 0x40], xmm0
mov eax, dword [rax + 0x60]
mov rcx, qword [rsp + 0x38]
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rsp + 0x70], xmm3
movups xmmword [rsp + 0x80], xmm4
movups xmmword [rsp + 0x90], xmm5
mov dword [rsp + 0xa0], eax
call sym.sqlite3_finalize
movzx eax, word [rsp + 0x50]
lea rdx, str.database_page_size:
lea rcx, str.__20s__d_n
rol ax, 8
cmp ax, 1
movzx r8d, ax
mov eax, 0x10000
cmove r8d, eax
call sym.oPrintfUtf8
movzx r8d, byte [rsp + 0x52]
lea rdx, str.write_format:
lea rcx, str.__20s__d_n
call sym.oPrintfUtf8
movzx r8d, byte [rsp + 0x53]
lea rdx, str.read_format:
lea rcx, str.__20s__d_n
call sym.oPrintfUtf8
movzx r8d, byte [rsp + 0x54]
lea rdx, str.reserved_bytes:
lea rcx, str.__20s__d_n
call sym.oPrintfUtf8
jmp 0x140023cfd
lea rcx, [0x1401518ff]
add rbx, 0x10
call sym.oPutsUtf8.isra.0
cmp rbx, r14
je 0x140023d58
movsxd rax, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, r13
mov r15d, dword [rsp + rax + 0x40]
mov r12, rax
mov r8d, r15d
bswap r8d
call sym.oPrintfUtf8
cmp r12d, 0x38
jne 0x140023ce8
cmp r15d, 0x1000000
je 0x140023e30
cmp r15d, 0x2000000
je 0x140023e18
cmp r15d, 0x3000000
jne 0x140023ce8
lea rcx, str.__utf16be_
call sym.oPutsUtf8.isra.0
jmp 0x140023ce8
test rbp, rbp
je 0x140023e68
lea rdx, [0x14015254e]
mov rcx, rbp
call sym.strcmp
test eax, eax
je 0x140023e48
mov rdx, rbp
lea rcx, str.__w_.sqlite_schema
call sym.sqlite3_mprintf
mov r13, rax
lea rbx, str.number_of_tables:
lea r15, [rbx + 0x50]
nop dword [rax]
mov rcx, qword [rbx + 8]
mov rdx, r13
add rbx, 0x10
call sym.sqlite3_mprintf
mov rcx, qword [rsi]
mov rdx, rax
mov r12, rax
call sym.db_int
mov rcx, r12
mov r14d, eax
call sym.sqlite3_free
mov rdx, qword [rbx - 0x10]
mov r8d, r14d
lea rcx, str.__20s__d_n
call sym.oPrintfUtf8
cmp rbx, r15
jne 0x140023d98
mov rcx, r13
call sym.sqlite3_free
mov rcx, qword [rsi]
mov rdx, rbp
lea r9, [rsp + 0x34]
mov r8d, 0x23
call sym.sqlite3_file_control
mov r8d, dword [rsp + 0x34]
lea rdx, [0x140155b71]
lea rcx, str.__20s__u_n
call sym.oPrintfUtf8
jmp 0x140023bce
lea rcx, str.__utf16le_
call sym.oPutsUtf8.isra.0
jmp 0x140023ce8
lea rcx, str.__utf8_
call sym.oPutsUtf8.isra.0
jmp 0x140023ce8
lea rdx, [0x140155b4b]
lea rcx, [0x1401509b2]
call sym.sqlite3_mprintf
mov r13, rax
jmp 0x140023d8a
lea rcx, str.main.sqlite_schema
call sym.sqlite3_mprintf
mov r13, rax
jmp 0x140023d8a
call sym.shell_out_of_memory
nop
nop word cs:[rax + rax]
nop dword [rax]