Function at 0x140014540
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rax, str.REPLACE_INTO__s_name_mode_mtime_data__n__SELECT_n_____s__n____mode__n____mtime__n____data_n__FROM_fsdir__Q__Q__AS_disk_n__WHERE_lsmode_mode__NOT_LIKE_____s_
lea rsi, str.REPLACE_INTO__s_name_mode_mtime_sz_data__n__SELECT_n_____s__n____mode__n____mtime__n____CASE_substr_lsmode_mode__1_1__n______WHEN___THEN_length_data__n______WHEN_d_THEN_0_n______ELSE__1_END__n____sqlar_compress_data__n__FROM_fsdir__Q__Q__AS_disk_n__WHERE_lsmode_mode__NOT_LIKE_____s_
movq xmm0, rsi
movq xmm1, rax
punpcklqdq xmm0, xmm1
cmp byte [rcx + 3], 0
mov r15, rcx
mov edi, edx
mov ebx, r8d
movups xmmword [rsp + 0x50], xmm0
je 0x140014730
lea rdx, str.PRAGMA_page_size512
lea rcx, [0x140151227]
call sym.oPrintfUtf8
cmp byte [r15 + 3], 0
je 0x14001474b
lea rdx, str.SAVEPOINT_ar_
lea rcx, [0x140151227]
call sym.oPrintfUtf8
cmp byte [r15 + 2], 0
mov byte [rsp + 0x60], 0
je 0x140014780
lea rax, [0x1401525d7]
xor esi, esi
cmp qword [r15 + 0x18], 0
mov qword [rsp + 0x30], rax
je 0x140014646
lea rdx, [rsp + 0x48]
mov ecx, 8
lea r12, [rsp + 0x60]
call sym.sqlite3_randomness
mov r9, qword [rsp + 0x48]
mov rdx, r12
lea r8, str.zip_016llx
mov ecx, 0x32
call sym.sqlite3_snprintf
mov r8, qword [r15 + 0x18]
mov rdx, r12
lea rcx, str.CREATE_VIRTUAL_TABLE_temp._s_USING_zipfile__Q_
call sym.sqlite3_mprintf
cmp byte [r15 + 3], 0
mov rdi, rax
je 0x1400148d0
mov rdx, rax
lea rcx, [0x140151227]
call sym.oPrintfUtf8
mov rcx, rdi
call sym.sqlite3_free
mov qword [rsp + 0x30], r12
test ebx, ebx
je 0x1400147d8
mov rdx, qword [rsp + 0x30]
lea rcx, str._AND_NOT_EXISTS_SELECT_1_FROM__s_AS_mem_WHERE_mem.namedisk.name_AND_mem.mtimedisk.mtime_AND_mem.modedisk.mode_
call sym.sqlite3_mprintf
mov rbp, rax
test rbp, rbp
je 0x1400147f0
mov eax, dword [r15 + 8]
test eax, eax
setg dl
test esi, esi
sete al
and dl, al
mov byte [rsp + 0x3f], dl
je 0x140014800
xor ebx, ebx
lea r14, [0x1401525f4]
lea r13, str.shell_putsnl_name_
jmp 0x1400146d5
mov rdx, rax
lea rcx, [0x140151227]
xor esi, esi
call sym.oPrintfUtf8
movzx edi, byte [rsp + 0x3f]
mov rcx, r12
call sym.sqlite3_free
lea eax, [rbx + 1]
cmp dword [r15 + 8], eax
setg al
add rbx, 1
test al, dil
je 0x140014800
mov rdx, qword [r15 + 0x28]
mov rax, qword [r15 + 0x20]
mov r8, r13
cmp byte [r15 + 1], 0
mov r9, qword [rdx + rbx*8]
movzx edx, byte [r15 + 2]
cmove r8, r14
mov rcx, qword [rsp + rdx*8 + 0x50]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call sym.sqlite3_mprintf
cmp byte [r15 + 3], 0
mov r12, rax
jne 0x1400146a0
mov rcx, qword [r15 + 0x38]
mov rdx, rax
call sym.arExecSql.part.0.isra.0
test eax, eax
mov esi, eax
sete dil
jmp 0x1400146b6
mov rcx, qword [rcx + 0x38]
lea rdx, str.PRAGMA_page_size512
call sym.arExecSql.part.0.isra.0
cmp byte [r15 + 3], 0
jne 0x1400145a4
mov rcx, qword [r15 + 0x38]
lea rdx, str.SAVEPOINT_ar_
call sym.arExecSql.part.0.isra.0
mov esi, eax
test eax, eax
je 0x1400145b7
mov eax, esi
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [r15 + 3]
test edi, edi
jne 0x1400147a4
test al, al
je 0x1400148e8
lea rdx, str.DROP_TABLE_IF_EXISTS_sqlar
lea rcx, [0x140151227]
call sym.oPrintfUtf8
cmp byte [r15 + 3], 0
je 0x140014830
lea rdx, str.CREATE_TABLE_IF_NOT_EXISTS_sqlar__n__name_TEXT_PRIMARY_KEY______name_of_the_file_n__mode_INT___________________access_permissions_n__mtime_INT__________________last_modification_time_n__sz_INT_____________________original_file_size_n__data_BLOB__________________compressed_content_n_
lea rcx, [0x140151227]
xor esi, esi
call sym.oPrintfUtf8
lea rax, str.sqlar
mov qword [rsp + 0x30], rax
test ebx, ebx
jne 0x14001464e
lea rcx, [0x140150568]
call sym.sqlite3_mprintf
mov rbp, rax
test rbp, rbp
jne 0x14001466b
mov esi, 7
jmp 0x140014804
test esi, esi
je 0x140014858
mov rcx, qword [r15 + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, str.ROLLBACK_TO_ar__RELEASE_ar_
call sym.sqlite3_exec
mov rcx, rbp
call sym.sqlite3_free
jmp 0x140014765
mov rcx, qword [r15 + 0x38]
lea rdx, str.CREATE_TABLE_IF_NOT_EXISTS_sqlar__n__name_TEXT_PRIMARY_KEY______name_of_the_file_n__mode_INT___________________access_permissions_n__mtime_INT__________________last_modification_time_n__sz_INT_____________________original_file_size_n__data_BLOB__________________compressed_content_n_
call sym.arExecSql.part.0.isra.0
mov esi, eax
lea rax, str.sqlar
mov qword [rsp + 0x30], rax
jmp 0x140014646
cmp byte [r15 + 3], 0
je 0x1400148b8
lea rdx, str.RELEASE_ar_
lea rcx, [0x140151227]
call sym.oPrintfUtf8
cmp byte [r15 + 2], 0
je 0x140014823
cmp qword [r15 + 0x18], 0
je 0x140014823
lea rdx, [rsp + 0x60]
lea rcx, str.DROP_TABLE__s
call sym.sqlite3_mprintf
cmp byte [r15 + 3], 0
mov rbx, rax
jne 0x140014909
mov rcx, qword [r15 + 0x38]
mov rdx, rax
call sym.arExecSql.part.0.isra.0
mov rcx, rbx
call sym.sqlite3_free
jmp 0x140014823
mov rcx, qword [r15 + 0x38]
lea rdx, str.RELEASE_ar_
call sym.arExecSql.part.0.isra.0
mov esi, eax
jmp 0x140014872
mov rcx, qword [r15 + 0x38]
mov rdx, rax
call sym.arExecSql.part.0.isra.0
mov esi, eax
jmp 0x140014639
mov rcx, qword [r15 + 0x38]
lea rdx, str.DROP_TABLE_IF_EXISTS_sqlar
xor ebp, ebp
call sym.arExecSql.part.0.isra.0
mov esi, eax
test eax, eax
jne 0x140014804
jmp 0x1400147a4
mov rdx, rax
lea rcx, [0x140151227]
call sym.oPrintfUtf8
jmp 0x1400148a7