Function at 0x1400f5ac0
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 rbp, qword [rcx]
mov rsi, rcx
mov rcx, qword [rdx + 8]
mov rdi, rdx
mov r12, r8
mov r13, r9
test rcx, rcx
je 0x1400f5ed0
mov rdx, qword [rbp + 0x20]
cmp rcx, qword [rdx + 0x18]
je 0x1400f5b0d
lea rax, [rdx + 0x20]
nop word [rax + rax]
mov rdx, rax
add rax, 0x20
cmp rcx, qword [rax - 8]
jne 0x1400f5b00
mov r9, qword [rdx]
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rcx, rsi
call fcn.1400dc600
mov r14, rax
test rax, rax
je 0x1400f5b38
mov rdx, rax
mov rcx, rsi
call fcn.14004ef90
mov r15d, eax
test eax, eax
je 0x1400f5b58
mov rdx, rdi
mov rcx, rbp
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140017bf0
movzx eax, byte [r14 + 0x3f]
mov r8, qword [r14]
cmp al, 2
je 0x1400f5ea5
lea r9, str.virtual_table
cmp al, 1
je 0x1400f5eac
mov r9, qword [r14 + 0x60]
mov rax, qword [rbp + 0x20]
test r9, r9
je 0x1400f6043
cmp r9, qword [rax + 0x18]
je 0x1400f5f16
lea rcx, [rax + 0x20]
mov edx, 1
nop dword [rax + rax]
mov rax, rcx
mov r10, rdx
lea rcx, [rcx + 0x20]
add rdx, 1
cmp r9, qword [rax + 0x18]
jne 0x1400f5ba0
mov dword [rsp + 0x68], r10d
shl r10, 5
mov qword [rsp + 0x60], r10
mov rdx, qword [rsi]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x1f8]
mov qword [rsp + 0x58], rbx
test rax, rax
je 0x1400f5c30
cmp byte [rdx + 0xc5], 0
jne 0x1400f5c30
cmp byte [rsi + 0x12c], 0
jne 0x1400f5c30
mov rcx, qword [rdx + 0x200]
mov rdx, qword [rsi + 0x170]
mov r9, r8
mov r8, rbx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rdx
mov edx, 0x1a
call rax
cmp eax, 1
je 0x1400f5fec
test eax, 0xfffffffd
jne 0x1400f5f77
test eax, eax
jne 0x1400f5b38
mov rdx, r12
mov rcx, rbp
call fcn.140026880
mov rbx, rax
test rax, rax
je 0x1400f5b38
movsx r11d, word [r14 + 0x36]
test r11d, r11d
jle 0x1400f5c94
mov r10, qword [r14 + 8]
lea r8, [0x1401bfcc0]
nop dword [rax]
mov r9, qword [r10]
xor ecx, ecx
jmp 0x1400f5c83
movzx edx, byte [r8 + rdx]
cmp byte [r8 + rax], dl
jne 0x1400f5ee0
add rcx, 1
movzx eax, byte [r9 + rcx]
movzx edx, byte [rbx + rcx]
cmp eax, edx
jne 0x1400f5c70
test eax, eax
jne 0x1400f5c7f
cmp r15d, r11d
je 0x1400f5ef1
xor ecx, ecx
cmp dword [rsp + 0x68], 1
mov byte [rsi + 0x1c], 1
lea r12, [0x1401b1370]
sete cl
mov r9, qword [rsp + 0x58]
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 dword [rsp + 0x20], ecx
mov qword [rsp + 0x28], r12
mov r8, r9
mov dword [rsp + 0x6c], ecx
mov rcx, rsi
call fcn.1400f03c0
cmp dword [rsp + 0x68], 1
jne 0x1400f5f2c
mov r8, qword [rsp + 0x58]
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
mov rcx, rsi
mov r9, r8
call fcn.1400f03c0
mov rax, qword [rsi + 0xa8]
mov rdx, r13
mov rcx, rbp
test rax, rax
cmove rax, rsi
mov byte [rax + 0x21], 1
call fcn.140026880
mov r12, rax
test rax, rax
je 0x1400f5fd9
mov rax, qword [r13]
lea rdx, [0x1401bfbc0]
mov ecx, dword [rsp + 0x6c]
mov r9, qword [rsp + 0x58]
movzx eax, byte [rax]
mov r8, r9
movzx r13d, byte [rdx + rax]
mov rax, qword [r14]
mov dword [rsp + 0x40], ecx
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d___d__WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X__AND__type___index_OR_tbl_name___Q_
mov dword [rsp + 0x28], r15d
mov rcx, rsi
and r13d, 0x80
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r12
call fcn.1400f03c0
mov r9, qword [r14]
mov rcx, rsi
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x30], r13d
mov r15, qword [rsp + 0x58]
lea rdx, str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d__1__WHERE_type_IN__trigger__view_
mov qword [rsp + 0x28], r12
mov r8, r15
call fcn.1400f03c0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400f5f92
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x60]
mov r9d, 1
mov r14d, dword [rsp + 0x68]
mov rax, qword [rax + 0x20]
mov r8d, r14d
mov rax, qword [rax + rdx + 0x18]
mov edx, 0x64
mov eax, dword [rax]
add eax, 1
mov dword [rsp + 0x20], eax
call fcn.1400447a0
mov rcx, qword [rsi + 0x10]
xor r8d, r8d
mov edx, r14d
mov r9d, 1
call fcn.140044e70
cmp r14d, 1
je 0x1400f6007
mov rcx, qword [rsi + 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, 1
call fcn.140044e70
mov byte [rsi + 0x1c], 1
mov r9, r15
mov r8, r15
lea rax, str.after_rename
mov dword [rsp + 0x30], 1
mov rcx, rsi
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], rax
mov dword [rsp + 0x20], 0
call fcn.1400f03c0
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x58]
mov rcx, rsi
lea r9, str.after_rename
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, rdi
mov rcx, rbp
call fcn.140017bf0
mov rdx, rbx
mov rcx, rbp
call fcn.140016330
mov rdx, r12
mov rcx, rbp
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140016330
lea r9, str.view
mov qword [rsp + 0x20], r8
lea rdx, str.cannot__s__s___s_
mov rcx, rsi
lea r8, str.rename_columns_of
call fcn.140025960
jmp 0x1400f5b38
mov r9, qword [rdx + 0x10]
jmp 0x1400f5b10
add r15d, 1
add r10, 0x10
cmp r15d, r11d
jne 0x1400f5c60
mov r8, r12
lea rdx, str.no_such_column:___T_
mov rcx, rsi
call fcn.140025960
mov rdx, rdi
mov rcx, rbp
call fcn.140017bf0
mov rdx, rbx
jmp 0x1400f5e8d
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
jmp 0x1400f5bc2
mov r9, r12
mov r12, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0
mov rcx, rsi
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 r8, r12
call fcn.1400f03c0
mov rcx, rsi
mov r9, r12
mov r8, r12
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
call fcn.1400f03c0
lea rdx, str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_quotefix_temp__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
mov rcx, rsi
call fcn.1400f03c0
jmp 0x1400f5d00
lea rdx, str.authorizer_malfunction
mov rcx, rsi
call fcn.140025960
mov dword [rsi + 0x18], 1
jmp 0x1400f5b38
lea rax, str.after_rename
mov byte [rsi + 0x1c], 1
mov r8, qword [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x6c]
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 dword [rsp + 0x30], 1
mov r9, r8
mov dword [rsp + 0x20], eax
call fcn.1400f03c0
cmp dword [rsp + 0x68], 1
je 0x1400f5e74
jmp 0x1400f5e51
mov rdx, rdi
mov rcx, rbp
call fcn.140017bf0
mov rdx, rbx
jmp 0x1400f5e8d
lea rdx, str.not_authorized
mov rcx, rsi
call fcn.140025960
mov dword [rsi + 0x18], 0x17
jmp 0x1400f5b38
lea rax, str.after_rename
mov byte [rsi + 0x1c], 1
mov r8, qword [rsp + 0x58]
mov rcx, rsi
mov dword [rsp + 0x30], 1
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], rax
mov r9, r8
mov dword [rsp + 0x20], 1
call fcn.1400f03c0
jmp 0x1400f5e74
mov qword [rsp + 0x60], 0xfffffffffff00000
sub rax, 0x100000
mov dword [rsp + 0x68], 0xffff8000
jmp 0x1400f5bc2