Function at 0x1402259d0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r13, qword [rcx]
cmp byte [r13 + 0x67], 0
mov r12, rcx
mov r14, rdx
mov r15, r8
je 0x140225a10
mov rdx, r14
mov rcx, r13
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140168de0
lea r8, [rdx + 8]
xor edx, edx
call fcn.140205570
mov rsi, rax
test rax, rax
je 0x1402259f3
mov rdx, qword [rax + 0x60]
mov rax, qword [r12]
test rdx, rdx
je 0x140225c6a
mov rcx, qword [rax + 0x20]
cmp rdx, qword [rcx + 0x18]
je 0x140225c60
mov eax, 0x20
xor ebx, ebx
nop dword [rax]
mov r9, rax
add rax, 0x20
add ebx, 1
cmp rdx, qword [rcx + rax - 8]
jne 0x140225a50
mov rax, qword [r13 + 0x20]
mov rdx, r15
mov rcx, r13
mov rdi, qword [rax + r9]
call fcn.140175aa0
mov r15, rax
test rax, rax
je 0x1402259f3
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1401a1500
test rax, rax
je 0x140225ad0
mov r8, r15
lea rdx, str.there_is_already_another_table_or_index_with_this_name:__s
mov rcx, r12
call fcn.140173d40
mov rdx, r14
mov rcx, r13
call fcn.140168de0
mov rdx, r15
mov rcx, r13
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401640a0
mov r8, rdi
mov rdx, r15
mov rcx, r13
call fcn.14016bb00
mov rbp, rax
test rax, rax
jne 0x140225a93
cmp byte [rsi + 0x3f], 1
je 0x140225c44
mov rdx, rsi
mov rcx, r12
call fcn.14018cbb0
test eax, eax
jne 0x140225aa5
mov r9, r15
lea r8, str.table
mov rdx, r15
mov rcx, r12
call fcn.1401a19a0
test eax, eax
jne 0x140225aa5
cmp byte [rsi + 0x3f], 2
mov r9, qword [rsi]
je 0x140225e1d
mov qword [rsp + 0x20], 0
mov r8, rdi
mov edx, 0x1a
mov rcx, r12
call fcn.140188fe0
mov r10d, eax
test eax, eax
jne 0x140225aa5
cmp byte [rsi + 0x3f], 1
je 0x140225b56
cmp word [rsi + 0x36], 0
jg 0x140225bb5
mov rdx, rsi
mov rcx, r12
mov dword [rsp + 0x48], r10d
call fcn.1401b1890
mov r10d, dword [rsp + 0x48]
test eax, eax
jne 0x140225aa5
cmp byte [rsi + 0x3f], 1
jne 0x140225bb5
mov rax, qword [rsi + 0x50]
test rax, rax
jne 0x140225b9d
jmp 0x140225e7d
mov rax, qword [rax + 0x28]
test rax, rax
je 0x140254075
cmp r13, qword [rax]
jne 0x140225b90
mov rdx, qword [rax + 0x10]
mov rdx, qword [rdx]
cmp qword [rdx + 0x98], 0
cmovne rbp, rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140225e34
mov rax, qword [r12 + 0xb0]
test rax, rax
cmove rax, r12
mov byte [rax + 0x21], 1
mov r11, qword [rsi]
movzx edx, byte [r11]
cmp r11, 0xffffffffffffffff
je 0x140225c7b
test dl, dl
je 0x140225c7b
mov rax, r11
jmp 0x140225c0a
mov rax, rcx
add r10d, 1
test dl, dl
je 0x140225c7b
cmp rax, 0xffffffffffffffff
je 0x140225c7b
lea rcx, [rax + 1]
movzx eax, byte [rax + 1]
cmp dl, 0xbf
mov edx, eax
jbe 0x140225bf9
and edx, 0xffffffc0
cmp dl, 0x80
jne 0x140225e64
mov rax, rcx
nop dword [rax + rax]
movzx edx, byte [rax + 1]
add rax, 1
mov ecx, edx
and ecx, 0xffffffc0
cmp cl, 0x80
je 0x140225c30
jmp 0x140225bfc
mov r8, r15
mov rdx, rsi
mov rcx, r13
call fcn.1401658d0
test eax, eax
je 0x140225af0
jmp 0x140225a93
xor r9d, r9d
xor ebx, ebx
jmp 0x140225a61
mov r9, 0xfffffffffff00000
mov ebx, 0xffff8000
jmp 0x140225a61
xor eax, eax
cmp ebx, 1
mov qword [rsp + 0x38], r11
mov r9, rdi
sete al
mov qword [rsp + 0x20], r11
mov r8, rdi
mov rcx, r12
mov dword [rsp + 0x30], eax
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 qword [rsp + 0x28], r15
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], r10d
mov qword [rsp + 0x50], r11
call fcn.1402214e0
mov r11, qword [rsp + 0x50]
mov r9, r15
mov r8, rdi
mov r10d, dword [rsp + 0x5c]
mov qword [rsp + 0x28], r15
mov rcx, r12
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 qword [rsp + 0x38], r11
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x20], r15
call fcn.1402214e0
mov r8, rdi
lea rdx, str.sqlite_sequence
mov rcx, r13
call fcn.1401a1500
mov r11, qword [rsp + 0x50]
test rax, rax
je 0x140225d2a
mov rax, qword [rsi]
mov r9, r15
mov r8, rdi
lea rdx, str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1402214e0
mov r11, qword [rsp + 0x50]
cmp ebx, 1
je 0x140225d58
mov qword [rsp + 0x38], r15
mov r9, r11
mov r8, rdi
mov rcx, r12
mov qword [rsp + 0x30], rdi
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 + 0x28], r11
mov qword [rsp + 0x20], r15
call fcn.1402214e0
test rbp, rbp
je 0x140225da3
mov eax, dword [r12 + 0x38]
mov rcx, qword [rsp + 0x48]
mov r8, r15
lea esi, [rax + 1]
mov dword [r12 + 0x38], esi
mov edx, esi
call fcn.140183160
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x30], 0xfffffff5
mov rcx, qword [rsp + 0x48]
mov edx, 0xb1
mov dword [rsp + 0x20], 0
call fcn.140182c30
cmp qword [r12 + 0x10], 0
je 0x140225dbb
mov r8d, 1
mov edx, ebx
mov rcx, r12
call fcn.140183cb0
mov eax, dword [rsp + 0x58]
mov byte [r12 + 0x1c], 1
mov r9, rdi
mov r8, rdi
lea rsi, 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 rcx, r12
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call fcn.1402214e0
cmp ebx, 1
je 0x140225aa5
mov r9, rsi
mov r8, rdi
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
mov rcx, r12
mov dword [rsp + 0x20], 0
call fcn.1402214e0
jmp 0x140225aa5
mov r8, r9
lea rdx, str.view__s_may_not_be_altered
mov rcx, r12
call fcn.140173d40
jmp 0x140225aa5
cmp qword [r12 + 0xb0], 0
je 0x140225e6b
mov rcx, r12
mov dword [rsp + 0x58], r10d
call fcn.140182380
mov r10d, dword [rsp + 0x58]
test rax, rax
mov qword [rsp + 0x48], rax
jne 0x140225bc8
jmp 0x140225aa5
mov edx, eax
jmp 0x140225bf9
mov rax, qword [r12]
test byte [rax + 0x60], 8
jne 0x140225e3f
mov byte [r12 + 0x23], 1
jmp 0x140225e3f
jmp 0x140254075
mov rax, qword [0x10]
ud2