Function at 0x140015920
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x1401b7098]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x98], 0xfffffffffffe7960
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
lea rax, str.SELECT_s.rowid__s.name__l.name_FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l_WHERE_s.type__table
mov qword [rsp + 0xa8], rax
lea rax, str.SELECT_name__coll_FROM_pragma_index_xinfo____WHERE_key
mov qword [rsp + 0xb0], rax
lea rax, str.INSERT_INTO_sqlite_stat1_VALUES_________
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x100]
cmp dword [rax], 0
jne 0x1400159c4
xor eax, eax
jmp 0x140015e43
mov r8, qword [rsp + 0x108]
lea rdx, [rsp + 0x44]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.1400151c0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x44], 0
jle 0x1400159f4
cmp dword [rsp + 0x40], 0
je 0x1400159fd
mov eax, dword [rsp + 0x40]
jmp 0x140015e43
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ANALYZE__PRAGMA_writable_schema1
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140015a53
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x28
add rax, 0x30
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140011be0
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x40], 0
jne 0x140015af1
mov rax, qword [rsp + 0x100]
cmp dword [rax], 0x64
jne 0x140015a81
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 8]
mov qword [rsp + 0x80], rax
jmp 0x140015a95
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [0x140014ec0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 2
lea rdx, [0x1401a042c]
mov rcx, qword [rsp + 0xa0]
call sym.sqlite3.exe_sqlite3_create_function
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140015b48
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [0x140014d70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.sample
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 8]
call sym.sqlite3.exe_sqlite3_create_function
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140015b86
mov eax, dword [rsp + 0x44]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0x108]
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.1400121c0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140015bb7
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x108]
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.1400121c0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140015be8
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0x108]
lea rdx, [rsp + 0x78]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.1400121c0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140015d2d
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x140015d2d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_column_int64
mov qword [rsp + 0x90], rax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x68], rax
mov edx, 2
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x68], 0
je 0x140015c58
cmp qword [rsp + 0x88], 0
jne 0x140015c5a
jmp 0x140015be8
mov rax, qword [rsp + 0x100]
cmp dword [rax], 0x64
jge 0x140015cde
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x98], rax
je 0x140015cde
mov rax, qword [rsp + 0x100]
cvtsi2sd xmm0, dword [rax]
divsd xmm0, qword [0x14017f7c8]
movsd qword [rsp + 0xc8], xmm0
mov rax, qword [rsp + 0x100]
mov eax, dword [rax]
mov dword [rsp + 0xc0], eax
xorps xmm0, xmm0
movsd qword [rsp + 0xd0], xmm0
xorps xmm0, xmm0
movsd qword [rsp + 0xd8], xmm0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x100]
call fcn.140015870
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140015cde
jmp 0x140015d2d
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x100]
call fcn.140015270
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
jmp 0x140015be8
cmp dword [rsp + 0x40], 0
jne 0x140015d6c
mov rax, qword [rsp + 0x100]
cmp dword [rax], 0x64
jge 0x140015d6c
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401a1580]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.140012bd0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140012bd0
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140012bd0
cmp qword [rsp + 0x50], 0
je 0x140015de6
mov dword [rsp + 0x48], 0
jmp 0x140015db5
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
cmp dword [rsp + 0x48], eax
jge 0x140015ddc
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0x28]
call sym.sqlite3.exe_sqlite3_free
jmp 0x140015dab
mov rcx, qword [rsp + 0x50]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x40], 0
jne 0x140015e18
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ANALYZE_sqlite_schema
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 8]
call sym.sqlite3.exe_sqlite3_exec
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140157ff0
add rsp, 0xf8
ret