Function at 0x140013900
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 0x14001394e
cmp qword [rsp + 0xb8], 0
je 0x140013c9d
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.1400135a0
test eax, eax
jne 0x140013c9d
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 0x1400139cc
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400139f7
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140013430
mov qword [rsp + 0x50], rax
jmp 0x1400139be
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
jmp 0x140013a14
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140013a3f
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140013430
mov qword [rsp + 0x50], rax
jmp 0x140013a06
cmp dword [rsp + 0x30], 0
jne 0x140013c93
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.140013330
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
jmp 0x140013a91
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 0x140013ac2
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 0x140013a87
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 0x140013af4
jmp 0x140013ba7
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, [0x140013880]
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 0x140013b6c
mov r8d, 0x2bc6
lea rdx, [0x1401a0e38]
lea rcx, str.rcSQLITE_OK
call fcn.140167c0c
xor eax, eax
mov rcx, qword [rsp + 0x88]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x34], 0
jne 0x140013b8a
mov dword [rsp + 0x38], 0
jmp 0x140013ba7
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x32
jge 0x140013ba7
cmp qword [rsp + 0x48], 0
jne 0x140013a7d
cmp dword [rsp + 0x38], 0
je 0x140013bbb
mov dword [rsp + 0x30], 0x305
jmp 0x140013c93
cmp qword [rsp + 0x48], 0
jne 0x140013bd0
mov dword [rsp + 0x30], 7
jmp 0x140013c93
cmp dword [rsp + 0x68], 0
je 0x140013be5
lea rax, str.CREATE_INDEX___w__ON___w___s_
mov qword [rsp + 0x60], rax
jmp 0x140013bf1
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 0x140013c21
mov dword [rsp + 0x30], 7
jmp 0x140013c7f
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 0x140013c5c
mov dword [rsp + 0x30], 0x305
jmp 0x140013c7f
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.140011dc0
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