Function at 0x1400f48c0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, qword [rcx]
cmp byte [rsi + 0x67], 0
mov rdi, rcx
mov rbp, rdx
mov r12, r8
je 0x1400f4900
mov rdx, rbp
mov rcx, rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140017bf0
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x1400f4c28
mov rdx, qword [rsi + 0x20]
cmp qword [rdx + 0x18], rcx
je 0x1400f492d
lea rax, [rdx + 0x20]
nop dword [rax + rax]
mov rdx, rax
add rax, 0x20
cmp rcx, qword [rax - 8]
jne 0x1400f4920
mov r9, qword [rdx]
mov r8, qword [rbp + 0x18]
xor edx, edx
mov rcx, rdi
call fcn.1400dc600
mov r13, rax
test rax, rax
je 0x1400f48e2
mov rdx, qword [rax + 0x60]
mov rax, qword [rdi]
test rdx, rdx
je 0x1400f4ce4
mov rcx, qword [rax + 0x20]
cmp rdx, qword [rcx + 0x18]
je 0x1400f4c38
mov eax, 0x20
xor ebx, ebx
nop dword [rax + rax]
mov r8, rax
add rax, 0x20
add ebx, 1
cmp rdx, qword [rcx + rax - 8]
jne 0x1400f4970
mov rax, qword [rsi + 0x20]
mov rdx, r12
mov rcx, rsi
mov rax, qword [rax + r8]
mov qword [rsp + 0x48], rax
call fcn.140026880
mov r14, rax
test rax, rax
je 0x1400f48e2
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, rsi
call fcn.140016b40
mov r10, rax
test rax, rax
je 0x1400f49f8
mov r8, r14
lea rdx, str.there_is_already_another_table_or_index_with_this_name:__s
mov rcx, rdi
call fcn.140025960
mov rdx, rbp
mov rcx, rsi
call fcn.140017bf0
mov rdx, r14
mov rcx, rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140016330
mov r8d, dword [rsi + 0x28]
test r8d, r8d
jle 0x1400f4a9a
xor r15d, r15d
cmp qword [rsp + 0x48], 0
mov rcx, qword [rsi + 0x20]
je 0x1400f4c52
mov qword [rsp + 0x58], rax
mov r12, qword [rsp + 0x48]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x60], r13
mov r13, rcx
mov qword [rsp + 0x50], rdi
mov edi, r15d
mov r15d, r8d
nop dword [rax]
mov edx, edi
mov r8, r12
mov rcx, rsi
xor edx, 1
cmp edi, 2
cmovge edx, edi
movsxd rbx, edx
shl rbx, 5
add rbx, r13
call fcn.1400040d0
test eax, eax
je 0x1400f4a7f
mov rcx, qword [rbx + 0x18]
mov rdx, r14
add rcx, 0x20
call fcn.140009c60
cmp qword [rax + 0x10], 0
jne 0x1400f4c48
add edi, 1
cmp edi, r15d
jne 0x1400f4a40
mov r10, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov r8, r14
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x50], r10
call fcn.140014ed0
test eax, eax
jne 0x1400f49bd
mov rdx, r13
mov rcx, rdi
call fcn.14004ef90
test eax, eax
jne 0x1400f4cd4
mov r9, r14
lea r8, str.table
mov rdx, r14
mov rcx, rdi
call fcn.14005de40
mov r10, qword [rsp + 0x50]
test eax, eax
jne 0x1400f4cd4
cmp byte [r13 + 0x3f], 2
mov r8, qword [r13]
je 0x1400f4eca
mov r9, r8
mov r8, qword [rsp + 0x48]
mov edx, 0x1a
mov rcx, rdi
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x50], r10
call fcn.14004be40
mov r10, qword [rsp + 0x50]
test eax, eax
mov r15d, eax
jne 0x1400f4cd4
cmp byte [r13 + 0x3f], 1
je 0x1400f4b3b
cmp word [r13 + 0x36], 0
jg 0x1400f4b95
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x50], r10
call fcn.1400c25c0
mov r10, qword [rsp + 0x50]
test eax, eax
jne 0x1400f4cd4
cmp byte [r13 + 0x3f], 1
jne 0x1400f4b95
mov rax, qword [r13 + 0x50]
test rax, rax
jne 0x1400f4b7d
jmp 0x1400f4edd
mov rax, qword [rax + 0x28]
test rax, rax
je 0x1401abef0
cmp rsi, qword [rax]
jne 0x1400f4b70
mov rdx, qword [rax + 0x10]
mov rdx, qword [rdx]
cmp qword [rdx + 0x98], 0
cmovne r10, rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400f4cb4
mov rax, qword [rdi + 0xa8]
test rax, rax
cmove rax, rdi
mov byte [rax + 0x21], 1
mov r11, qword [r13]
movzx edx, byte [r11]
cmp r11, 0xffffffffffffffff
je 0x1400f4cf5
test dl, dl
je 0x1400f4cf5
mov rax, r11
jmp 0x1400f4bf1
mov rax, rcx
add r15d, 1
test dl, dl
je 0x1400f4cf5
cmp rax, 0xffffffffffffffff
je 0x1400f4cf5
lea rcx, [rax + 1]
movzx eax, byte [rax + 1]
cmp dl, 0xbf
mov edx, eax
jbe 0x1400f4bd8
and edx, 0xffffffc0
cmp dl, 0x80
jne 0x1400f4ed6
mov rax, rcx
nop
movzx edx, byte [rax + 1]
add rax, 1
mov ecx, edx
and ecx, 0xffffffc0
cmp cl, 0x80
je 0x1400f4c10
jmp 0x1400f4bdb
mov r9, qword [rdx + 0x10]
jmp 0x1400f4930
xor r8d, r8d
xor ebx, ebx
jmp 0x1400f4981
mov rdi, qword [rsp + 0x50]
jmp 0x1400f49bd
xor r12d, r12d
mov dword [rsp + 0x58], ebx
mov r15, rcx
mov ebx, r12d
mov qword [rsp + 0x50], rax
mov r12d, r8d
jmp 0x1400f4c78
add ebx, 1
cmp r12d, ebx
je 0x1400f4ca6
mov eax, ebx
mov rdx, r14
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
cdqe
shl rax, 5
mov rcx, qword [r15 + rax + 0x18]
add rcx, 0x20
call fcn.140009c60
cmp qword [rax + 0x10], 0
je 0x1400f4c70
jmp 0x1400f49bd
mov r10, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x58]
jmp 0x1400f4a9a
mov rcx, rdi
mov qword [rsp + 0x58], r10
call fcn.140045290
mov r10, qword [rsp + 0x58]
test rax, rax
mov qword [rsp + 0x50], rax
jne 0x1400f4ba7
mov rdx, rbp
mov rcx, rsi
call fcn.140017bf0
jmp 0x1400f49da
mov r8, 0xfffffffffff00000
mov ebx, 0xffff8000
jmp 0x1400f4981
xor eax, eax
cmp ebx, 1
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0x38], r11
sete al
mov qword [rsp + 0x20], r11
mov rcx, rdi
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q___d__WHERE__type_index_OR_tbl_name_Q_COLLATE_nocase_AND___name_NOT_LIKE_sqliteX____ESCAPE_X
mov dword [rsp + 0x30], eax
mov r9, r12
mov r8, r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x68], r10
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], r11
call fcn.1400f03c0
mov r11, qword [rsp + 0x60]
mov r9, r14
mov r8, r12
mov dword [rsp + 0x30], r15d
lea rdx, str.UPDATE__Q.sqlite_master_SET_tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqliteX_autoindex___ESCAPE_X______AND_typeindex_THEN_sqlite_autoindex____Q__substr_name__d18__ELSE_name_END_WHERE_tbl_name_Q_COLLATE_nocase_AND__typetable_OR_typeindex_OR_typetrigger__
mov rcx, rdi
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.1400f03c0
mov r8, r12
lea rdx, str.sqlite_sequence
mov rcx, rsi
call fcn.140016b40
mov r11, qword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
test rax, rax
je 0x1400f4db9
mov rax, qword [r13]
mov r9, r14
mov r8, r12
mov rcx, rdi
lea rdx, str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r10
call fcn.1400f03c0
mov r11, qword [rsp + 0x68]
mov r10, qword [rsp + 0x60]
cmp ebx, 1
je 0x1400f4df6
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], r14
mov r9, r11
mov rcx, rdi
mov qword [rsp + 0x28], r11
lea rdx, str.UPDATE_sqlite_temp_schema_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q__1___tbl_name__CASE_WHEN_tbl_name_Q_COLLATE_nocase_AND___sqlite_rename_test__Q__sql__type__name__1__after_rename__0__THEN__Q_ELSE_tbl_name_END_WHERE_type_IN__view__trigger_
mov qword [rsp + 0x30], rax
mov r8, rax
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x60], r10
call fcn.1400f03c0
mov r10, qword [rsp + 0x60]
test r10, r10
mov qword [rsp + 0x60], r10
je 0x1400f4e46
mov eax, dword [rdi + 0x38]
mov r15, qword [rsp + 0x50]
mov r8, r14
lea r13d, [rax + 1]
mov rcx, r15
mov dword [rdi + 0x38], r13d
mov edx, r13d
call fcn.140044a30
xor r9d, r9d
mov r8d, r13d
mov edx, 0xb0
mov rcx, r15
call fcn.140044810
mov r8, qword [rsp + 0x60]
mov r9d, 0xfffffff5
mov rcx, r15
mov edx, eax
call fcn.140029540
cmp qword [rdi + 0x10], 0
je 0x1400f4e5d
mov r8d, 1
mov edx, ebx
mov rcx, rdi
call fcn.140046160
mov eax, dword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
mov byte [rdi + 0x1c], 1
mov rcx, rdi
lea r12, str.after_rename
mov dword [rsp + 0x30], 0
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov qword [rsp + 0x28], r12
mov r8, r9
mov dword [rsp + 0x20], eax
call fcn.1400f03c0
cmp ebx, 1
je 0x1400f4cd4
xor eax, eax
mov r8, qword [rsp + 0x48]
mov rcx, rdi
mov r9, r12
mov dword [rsp + 0x20], eax
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
call fcn.1400f03c0
mov rdx, rbp
mov rcx, rsi
call fcn.140017bf0
jmp 0x1400f49da
lea rdx, str.view__s_may_not_be_altered
jmp 0x1400f49c7
mov edx, eax
jmp 0x1400f4bd8
jmp 0x1401abef0
mov rax, qword [0x10]
ud2