Function at 0x14001e980
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x7c]
and eax, 8
test eax, eax
je 0x14001e9d9
mov dword [rsp + 0x90], 1
jmp 0x14001e9e4
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x80], eax
mov rdx, qword [rsp + 0xb8]
lea rcx, str.PRAGMA_table_info_Q
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140001800
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_prepare_v2
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x88]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x54], 0
je 0x14001ea66
xor eax, eax
jmp 0x14001eda4
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x14001eb60
mov eax, dword [rsp + 0x6c]
sub eax, 2
cmp dword [rsp + 0x50], eax
jl 0x14001eaba
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x6c]
lea eax, [rax + rcx*2 + 0xa]
mov dword [rsp + 0x6c], eax
movsxd rax, dword [rsp + 0x6c]
shl rax, 3
mov edx, eax
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_realloc
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140001800
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov edx, 1
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_column_text
mov rdx, rax
lea rcx, [0x1401a2ca4]
call sym.sqlite3.exe_sqlite3_mprintf
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax*8]
call fcn.140001800
mov edx, 5
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_column_int
test eax, eax
je 0x14001eb5b
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
jne 0x14001eb53
mov edx, 2
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_column_text
lea rdx, [0x1401a2e08]
mov rcx, rax
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x14001eb53
mov dword [rsp + 0x7c], 1
jmp 0x14001eb5b
mov dword [rsp + 0x7c], 0
jmp 0x14001ea66
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_finalize
cmp qword [rsp + 0x60], 0
jne 0x14001eb79
xor eax, eax
jmp 0x14001eda4
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov qword [rcx + rax], 0
mov eax, dword [rsp + 0x50]
inc eax
cdqe
mov rcx, qword [rsp + 0x60]
mov qword [rcx + rax*8], 0
cmp dword [rsp + 0x80], 0
je 0x14001ec80
cmp dword [rsp + 0x7c], 0
je 0x14001ec80
mov rdx, qword [rsp + 0xb8]
lea rcx, str.SELECT_1_FROM_pragma_index_list__Q__WHERE_originpk
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140001800
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_prepare_v2
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x88]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x54], 0
je 0x14001ec3b
mov rcx, qword [rsp + 0x60]
call fcn.14001e920
xor eax, eax
jmp 0x14001eda4
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_step
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_finalize
cmp dword [rsp + 0x54], 0x64
jne 0x14001ec67
mov dword [rsp + 0x94], 1
jmp 0x14001ec72
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x14001ed9f
mov dword [rsp + 0x58], 0
jmp 0x14001eca2
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 3
jge 0x14001ed9f
mov dword [rsp + 0x68], 1
jmp 0x14001ecc1
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x68], eax
jg 0x14001ed06
movsxd rax, dword [rsp + 0x68]
movsxd rcx, dword [rsp + 0x58]
lea rdx, [0x1401a2dd8]
mov qword [rsp + 0x98], rdx
mov r8, qword [rsp + 0x60]
mov rdx, qword [r8 + rax*8]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + rcx*8]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x14001ed04
jmp 0x14001ed06
jmp 0x14001ecb7
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x68], eax
jle 0x14001ed9a
movsxd rax, dword [rsp + 0x58]
lea rcx, [0x1401a2dd8]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rcx + rax*8]
mov r8, qword [rsp + 0xb8]
xor edx, edx
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_table_column_metadata
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14001ed98
movsxd rax, dword [rsp + 0x58]
lea rcx, [0x1401a2dd8]
mov edx, 8
imul rdx, rdx, 0
mov r8, qword [rsp + 0x60]
mov rax, qword [rcx + rax*8]
mov qword [r8 + rdx], rax
jmp 0x14001ed9f
jmp 0x14001ec98
mov rax, qword [rsp + 0x60]
add rsp, 0xa8
ret