Function at 0x14001d3f0
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 0x14001d449
mov dword [rsp + 0x90], 1
jmp 0x14001d454
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.1400014e0
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 0x14001d4d6
xor eax, eax
jmp 0x14001d814
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x14001d5d0
mov eax, dword [rsp + 0x6c]
sub eax, 2
cmp dword [rsp + 0x50], eax
jl 0x14001d52a
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.1400014e0
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, [0x14019e874]
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.1400014e0
mov edx, 5
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_column_int
test eax, eax
je 0x14001d5cb
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
jne 0x14001d5c3
mov edx, 2
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_column_text
lea rdx, [0x14019e9d8]
mov rcx, rax
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x14001d5c3
mov dword [rsp + 0x7c], 1
jmp 0x14001d5cb
mov dword [rsp + 0x7c], 0
jmp 0x14001d4d6
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.exe_sqlite3_finalize
cmp qword [rsp + 0x60], 0
jne 0x14001d5e9
xor eax, eax
jmp 0x14001d814
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 0x14001d6f0
cmp dword [rsp + 0x7c], 0
je 0x14001d6f0
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.1400014e0
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 0x14001d6ab
mov rcx, qword [rsp + 0x60]
call fcn.14001d390
xor eax, eax
jmp 0x14001d814
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 0x14001d6d7
mov dword [rsp + 0x94], 1
jmp 0x14001d6e2
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x14001d80f
mov dword [rsp + 0x58], 0
jmp 0x14001d712
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 3
jge 0x14001d80f
mov dword [rsp + 0x68], 1
jmp 0x14001d731
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x68], eax
jg 0x14001d776
movsxd rax, dword [rsp + 0x68]
movsxd rcx, dword [rsp + 0x58]
lea rdx, [0x14019e9a8]
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 0x14001d774
jmp 0x14001d776
jmp 0x14001d727
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x68], eax
jle 0x14001d80a
movsxd rax, dword [rsp + 0x58]
lea rcx, [0x14019e9a8]
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 0x14001d808
movsxd rax, dword [rsp + 0x58]
lea rcx, [0x14019e9a8]
mov edx, 8
imul rdx, rdx, 0
mov r8, qword [rsp + 0x60]
mov rax, qword [rcx + rax*8]
mov qword [r8 + rdx], rax
jmp 0x14001d80f
jmp 0x14001d708
mov rax, qword [rsp + 0x60]
add rsp, 0xa8
ret