Function at 0x1402d27e0
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 r12, qword [rcx]
mov rsi, rcx
mov rcx, qword [rdx + 8]
mov rdi, rdx
mov r14, r8
mov r15, r9
test rcx, rcx
je 0x1402d2bc0
mov rdx, qword [r12 + 0x20]
cmp rcx, qword [rdx + 0x18]
je 0x1402d282d
lea rax, [rdx + 0x20]
nop dword [rax + rax]
mov rdx, rax
add rax, 0x20
cmp rcx, qword [rax - 8]
jne 0x1402d2820
mov r9, qword [rdx]
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rcx, rsi
call fcn.140312270
test rax, rax
mov rbp, rax
je 0x1402d2858
mov rdx, rax
mov rcx, rsi
call fcn.140299640
test eax, eax
mov r10d, eax
je 0x1402d2878
mov rdx, rdi
mov rcx, r12
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140328bd0
movzx eax, byte [rbp + 0x3f]
mov r9, qword [rbp]
cmp al, 2
je 0x1402d2c33
cmp al, 1
je 0x1402d2bc9
mov r8, qword [rbp + 0x60]
mov rax, qword [r12 + 0x20]
test r8, r8
je 0x1402d2d3e
cmp r8, qword [rax + 0x18]
je 0x1402d2c3c
lea rcx, [rax + 0x20]
mov edx, 1
nop dword [rax]
mov rax, rcx
mov r11, rdx
add rdx, 1
cmp r8, qword [rax + 0x18]
lea rcx, [rcx + 0x20]
jne 0x1402d28b8
mov r10d, r11d
shl r11, 5
mov qword [rsp + 0x60], r11
mov rax, qword [rax]
mov edx, 0x1a
mov rcx, rsi
mov dword [rsp + 0x50], r10d
mov qword [rsp + 0x20], 0
mov r8, rax
mov qword [rsp + 0x58], rax
call fcn.1402d54f0
mov r10d, dword [rsp + 0x50]
test eax, eax
mov r13d, eax
jne 0x1402d2858
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x50], r10d
call fcn.1403132b0
test rax, rax
mov rbx, rax
je 0x1402d2858
movsx eax, word [rbp + 0x36]
mov r10d, dword [rsp + 0x50]
test eax, eax
jle 0x1402d2981
mov r11, qword [rbp + 8]
lea r8, [0x14047c700]
mov edx, r10d
nop dword [rax]
mov r10, qword [r11]
xor r9d, r9d
mov qword [rsp + 0x50], r11
jmp 0x1402d296b
movzx r11d, byte [r8 + r11]
cmp byte [r8 + rcx], r11b
jne 0x1402d2bf8
add r9, 1
movzx ecx, byte [r10 + r9]
movzx r11d, byte [rbx + r9]
cmp ecx, r11d
jne 0x1402d2958
test ecx, ecx
jne 0x1402d2967
mov r10d, edx
cmp r13d, eax
je 0x1402d2c0e
mov r9, qword [rsp + 0x58]
cmp r10d, 1
mov byte [rsi + 0x1c], 1
mov rcx, rsi
lea r14, [0x1404697a8]
sete al
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], r14
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
movzx eax, al
mov dword [rsp + 0x20], eax
mov r8, r9
mov dword [rsp + 0x6c], r10d
mov dword [rsp + 0x50], eax
call fcn.140313360
mov r10d, dword [rsp + 0x6c]
cmp r10d, 1
jne 0x1402d2c4a
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.140313360
mov r10d, dword [rsp + 0x6c]
mov rax, qword [rsi + 0xa8]
mov rdx, r15
mov rcx, r12
mov dword [rsp + 0x6c], r10d
test rax, rax
cmove rax, rsi
mov byte [rax + 0x21], 1
call fcn.1403132b0
mov r10d, dword [rsp + 0x6c]
test rax, rax
mov r14, rax
je 0x1402d2cef
mov rax, qword [r15]
lea rdx, [0x14047c4a0]
mov rcx, rsi
mov dword [rsp + 0x6c], r10d
mov r9, qword [rsp + 0x58]
movzx eax, byte [rax]
mov r8, r9
movzx r15d, byte [rdx + rax]
mov rax, qword [rbp]
mov qword [rsp + 0x30], r14
mov edx, dword [rsp + 0x50]
mov dword [rsp + 0x28], r13d
and r15d, 0x80
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edx
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 + 0x38], r15d
mov qword [rsp + 0x20], rax
call fcn.140313360
mov r9, qword [rbp]
mov rcx, rsi
mov dword [rsp + 0x30], r15d
mov r15, qword [rsp + 0x58]
mov qword [rsp + 0x28], r14
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 dword [rsp + 0x20], r13d
mov r8, r15
call fcn.140313360
mov rcx, qword [rsi + 0x10]
mov r10d, dword [rsp + 0x6c]
test rcx, rcx
je 0x1402d2c9f
mov rax, qword [rsi]
mov r8d, r10d
mov dword [rsp + 0x50], r10d
mov r9d, 1
mov rdx, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + rdx + 0x18]
mov edx, 0x64
mov eax, dword [rax]
add eax, 1
mov dword [rsp + 0x20], eax
call fcn.140330de0
mov rcx, qword [rsi + 0x10]
xor r8d, r8d
mov r9d, 1
mov edx, dword [rsp + 0x50]
call fcn.1403317e0
mov r10d, dword [rsp + 0x50]
cmp r10d, 1
je 0x1402d2d02
mov rcx, qword [rsi + 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, 1
call fcn.1403317e0
mov byte [rsi + 0x1c], 1
mov r9, r15
mov r8, r15
lea rax, str.after_rename
mov dword [rsp + 0x30], 1
mov rcx, rsi
mov qword [rsp + 0x28], rax
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], 0
call fcn.140313360
mov r8, qword [rsp + 0x58]
mov dword [rsp + 0x20], 1
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.140313360
mov rdx, rdi
mov rcx, r12
call fcn.140328bd0
mov rdx, rbx
mov rcx, r12
call fcn.1402e3440
mov rdx, r14
mov rcx, r12
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1402e3440
mov r9, qword [rdx + 0x10]
jmp 0x1402d2830
lea rax, str.virtual_table
mov qword [rsp + 0x20], r9
lea r8, str.rename_columns_of
mov r9, rax
mov rcx, rsi
lea rdx, str.cannot__s__s___s_
call fcn.1402e8400
jmp 0x1402d2858
mov r11, qword [rsp + 0x50]
add r13d, 1
add r11, 0x18
cmp r13d, eax
jne 0x1402d2948
lea rdx, str.no_such_column:___T_
mov r8, r14
mov rcx, rsi
call fcn.1402e8400
mov rdx, rdi
mov rcx, r12
call fcn.140328bd0
mov rdx, rbx
jmp 0x1402d2ba3
lea rax, str.view
jmp 0x1402d2bd0
mov qword [rsp + 0x60], 0
jmp 0x1402d28d8
mov r9, r14
mov r14, qword [rsp + 0x58]
mov rcx, rsi
mov dword [rsp + 0x20], 0
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 dword [rsp + 0x6c], r10d
mov r8, r14
call fcn.140313360
mov r9, r14
mov r8, r14
mov rcx, rsi
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.140313360
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.140313360
mov r10d, dword [rsp + 0x6c]
jmp 0x1402d29fb
lea rax, str.after_rename
mov byte [rsi + 0x1c], 1
mov rcx, rsi
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
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 dword [rsp + 0x60], r10d
mov r9, r8
mov dword [rsp + 0x20], eax
call fcn.140313360
mov r10d, dword [rsp + 0x60]
cmp r10d, 1
je 0x1402d2b8a
jmp 0x1402d2b67
mov rdx, rdi
mov rcx, r12
call fcn.140328bd0
mov rdx, rbx
jmp 0x1402d2ba3
mov r8, qword [rsp + 0x58]
mov byte [rsi + 0x1c], 1
mov rcx, rsi
lea rax, str.after_rename
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
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], 1
mov r9, r8
call fcn.140313360
jmp 0x1402d2b8a
sub rax, 0x100000
mov r10d, 0xffff8000
mov qword [rsp + 0x60], 0xfffffffffff00000
jmp 0x1402d28d8