Function at 0x1400123b0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0xb0], 0
jne 0x1400123fe
cmp qword [rsp + 0xb8], 0
je 0x14001274d
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140012050
test eax, eax
jne 0x14001274d
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
jmp 0x14001247c
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400124a7
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140011ee0
mov qword [rsp + 0x50], rax
jmp 0x14001246e
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
jmp 0x1400124c4
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400124ef
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140011ee0
mov qword [rsp + 0x50], rax
jmp 0x1400124b6
cmp dword [rsp + 0x30], 0
jne 0x140012743
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140011de0
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
jmp 0x140012541
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140012572
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
add eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x3c]
lea eax, [rax + rcx*8]
mov dword [rsp + 0x3c], eax
jmp 0x140012537
mov rcx, qword [rsp + 0x48]
call sym.sqlite3.exe_sqlite3_free
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x70]
lea rcx, str._s_idx__08x
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400125a4
jmp 0x140012657
lea rax, str.SELECT_count___FROM_sqlite_schema_WHERE_name_Q_AND_type_in__index_table_view_
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8, [0x140012330]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14001261c
mov r8d, 0x287b
lea rdx, [0x14019ca18]
lea rcx, str.rcSQLITE_OK
call fcn.14016410c
xor eax, eax
mov rcx, qword [rsp + 0x88]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x34], 0
jne 0x14001263a
mov dword [rsp + 0x38], 0
jmp 0x140012657
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x32
jge 0x140012657
cmp qword [rsp + 0x48], 0
jne 0x14001252d
cmp dword [rsp + 0x38], 0
je 0x14001266b
mov dword [rsp + 0x30], 0x305
jmp 0x140012743
cmp qword [rsp + 0x48], 0
jne 0x140012680
mov dword [rsp + 0x30], 7
jmp 0x140012743
cmp dword [rsp + 0x68], 0
je 0x140012695
lea rax, str.CREATE_INDEX___w__ON___w___s_
mov qword [rsp + 0x60], rax
jmp 0x1400126a1
lea rax, str.CREATE_INDEX__s_ON__s__s_
mov qword [rsp + 0x60], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400126d1
mov dword [rsp + 0x30], 7
jmp 0x14001272f
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14001270c
mov dword [rsp + 0x30], 0x305
jmp 0x14001272f
mov rax, qword [rsp + 0xa0]
add rax, 0x58
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140010870
mov rcx, qword [rsp + 0x48]
call sym.sqlite3.exe_sqlite3_free
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_free
mov rcx, qword [rsp + 0x50]
call sym.sqlite3.exe_sqlite3_free
mov eax, dword [rsp + 0x30]
add rsp, 0x98
ret