Function at 0x1401a2580
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rbp + 7], rax
xor r13d, r13d
mov r12, rdx
mov rbx, rcx
mov dword [rbp - 0x39], r13d
mov r14d, r13d
mov r15, 0xfffffffffffe7960
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], r13
cmp dword [rcx], r13d
jne 0x1401a25d4
xor eax, eax
jmp 0x1401a28b3
mov rcx, qword [rcx + 0x10]
lea rdx, [rbp - 0x39]
mov r8, r12
mov qword [rsp + 0xa0], rdi
call fcn.1401a2010
mov edi, dword [rbp - 0x39]
test edi, edi
jle 0x1401a28ab
test eax, eax
jne 0x1401a28ab
mov rcx, qword [rbx + 0x10]
lea rdx, str.ANALYZE__PRAGMA_writable_schema1
xor r9d, r9d
mov qword [rsp + 0xf0], rsi
xor r8d, r8d
mov qword [rsp + 0x20], r13
call fcn.1401b9870
mov dword [rbp - 0x39], eax
test eax, eax
jne 0x1401a2813
lea edx, [rdi + rdi*4]
lea edx, [rdx*8 + 0x30]
lea rcx, [rbp - 0x39]
call fcn.1401a2080
mov r14, rax
cmp dword [rbp - 0x39], r13d
jne 0x1401a2813
cmp dword [rbx], 0x64
jne 0x1401a2658
mov rcx, qword [rbx + 8]
jmp 0x1401a265c
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x38], r13
lea rax, [0x1401a2d40]
mov r9d, 1
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea rdx, [0x1402ea0c4]
mov qword [rsp + 0x20], r14
lea r8d, [r9 + 1]
call fcn.1401ad770
mov dword [rbp - 0x39], eax
test eax, eax
jne 0x1401a2813
mov rcx, qword [rbx + 8]
lea rax, [0x1401a2ec0]
mov qword [rsp + 0x38], r13
lea rdx, str.sample
mov qword [rsp + 0x30], r13
mov r9d, 1
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.1401ad770
mov dword [rbp - 0x39], eax
test eax, eax
jne 0x1401a2813
lea eax, [rdi + 1]
mov r8, r12
mov dword [r14], eax
lea r9, 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 rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x31]
call fcn.1401a2910
mov dword [rbp - 0x39], eax
test eax, eax
jne 0x1401a2813
mov rcx, qword [rbx + 0x10]
lea r9, str.SELECT_name__coll_FROM_pragma_index_xinfo____WHERE_key
mov r8, r12
lea rdx, [rbp - 0x29]
call fcn.1401a2910
mov dword [rbp - 0x39], eax
test eax, eax
jne 0x1401a2813
mov rcx, qword [rbx + 0x10]
lea r9, str.INSERT_INTO_sqlite_stat1_VALUES_________
mov r8, r12
lea rdx, [rbp - 0x21]
call fcn.1401a2910
mov dword [rbp - 0x39], eax
mov edi, eax
test eax, eax
jne 0x1401a2813
movaps xmmword [rsp + 0x90], xmm6
movsd xmm6, qword [0x1402ee830]
nop dword [rax]
mov rcx, qword [rbp - 0x31]
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401a28d1
mov rcx, qword [rbp - 0x31]
xor edx, edx
call fcn.1401ad4a0
mov rcx, qword [rbp - 0x31]
mov edx, 1
mov rsi, rax
call fcn.1401ad4e0
mov rcx, qword [rbp - 0x31]
mov edx, 2
mov rdi, rax
call fcn.1401ad4e0
mov ecx, dword [rbx]
mov r13, rax
cmp ecx, 0x64
jge 0x1401a27db
cmp r15, rsi
je 0x1401a27db
movd xmm0, ecx
xorps xmm1, xmm1
cvtdq2pd xmm0, xmm0
mov dword [rbp - 0x19], ecx
mov rdx, rdi
mov rcx, rbx
movups xmmword [rbp - 9], xmm1
divsd xmm0, xmm6
movsd qword [rbp - 0x11], xmm0
call fcn.1401a0e90
mov dword [rbp - 0x39], eax
test eax, eax
jne 0x1401a2808
mov r8, qword [rbp - 0x21]
mov r9, rdi
mov rdx, qword [rbp - 0x29]
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
call fcn.1401a2150
mov dword [rbp - 0x39], eax
mov edi, eax
mov r15, rsi
test eax, eax
je 0x1401a2760
xor r13d, r13d
movaps xmm6, xmmword [rsp + 0x90]
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1401a14f0
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.1401a14f0
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x39]
call fcn.1401a14f0
cmp dword [r14], 0
mov esi, r13d
jle 0x1401a285a
lea rdi, [r14 + 0x28]
mov rcx, qword [rdi]
call fcn.1401ba620
inc esi
lea rdi, [rdi + 0x28]
cmp esi, dword [r14]
jl 0x1401a2847
mov rcx, r14
call fcn.1401ba620
mov edi, dword [rbp - 0x39]
mov rsi, qword [rsp + 0xf0]
test edi, edi
jne 0x1401a288e
mov rcx, qword [rbx + 0x10]
lea rdx, str.ANALYZE_sqlite_schema
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
call fcn.1401b9870
mov edi, eax
mov rcx, qword [rbx + 8]
lea rdx, str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
call fcn.1401b9870
mov eax, edi
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret
test edi, edi
jne 0x1401a2808
xor r13d, r13d
cmp dword [rbx], 0x64
jge 0x1401a280b
mov rcx, qword [rbx + 0x18]
lea rdx, str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
call fcn.1401b9870
mov dword [rbp - 0x39], eax
jmp 0x1401a280b