Function at 0x180075050
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x88
mov r10, qword [rdx + 8]
xor esi, esi
mov rdi, qword [rcx]
mov rbp, r8
mov r12, rcx
mov r14d, esi
test r10, r10
je 0x1800750b8
mov r9, qword [rdi + 0x20]
mov ecx, esi
cmp qword [r9 + 0x18], r10
lea rax, [r9 + 0x18]
je 0x1800750ab
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r10
jne 0x1800750a0
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + r9]
jmp 0x1800750bc
mov r9, qword [rdx + 0x10]
mov r8, qword [rdx + 0x18]
mov rcx, r12
xor edx, edx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], r13
call fcn.18007df60
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
je 0x1800754e3
mov rdx, rax
mov rcx, r12
call fcn.180074090
test eax, eax
jne 0x1800754e3
cmp byte [r15 + 0x3f], 2
lea r9, str.view
cmovne r9, rsi
cmp byte [r15 + 0x3f], 1
jne 0x18007511b
lea r9, str.virtual_table
jmp 0x180075120
test r9, r9
je 0x180075153
mov rax, qword [r15]
lea r8, str.rename_columns_of
lea rdx, str.cannot__s__s___s_
mov qword [rsp + 0x20], rax
mov rcx, r12
call fcn.18002c6f0
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.180087640
jmp 0x1800755c7
mov rcx, qword [r15 + 0x60]
mov r13d, 0xffff8000
test rcx, rcx
je 0x18007517e
mov rax, qword [rdi + 0x20]
mov r13d, esi
add rax, 0x18
cmp qword [rax], rcx
je 0x18007517e
inc r13d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x180075172
mov rax, qword [rdi + 0x20]
mov edx, 0x1a
mov r9, qword [r15]
movsxd rcx, r13d
shl rcx, 5
mov qword [rsp + 0x20], rsi
mov r8, qword [rcx + rax]
mov rcx, r12
mov qword [rsp + 0x58], r8
call fcn.18007cfa0
test eax, eax
jne 0x1800754e3
test rbp, rbp
je 0x18007513e
mov ebx, dword [rbp + 8]
mov rbp, qword [rbp]
test rbp, rbp
je 0x1800751e6
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.180028ce0
mov r14, rax
test rax, rax
je 0x1800751e6
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call fcn.180133760
mov byte [r14 + rbx], sil
mov rcx, r14
call fcn.18002c850
test r14, r14
je 0x1800754e3
movsx rax, word [r15 + 0x36]
mov ebx, esi
mov dword [rsp + 0xc0], ebx
mov ecx, eax
cmp si, ax
jge 0x18007527a
mov r11, qword [r15 + 8]
mov rbp, rax
lea r15, [0x180000000]
mov r10, rsi
nop dword [rax]
mov rdx, qword [r11]
mov r9, r14
sub r9, rdx
nop dword [rax]
movzx r8d, byte [rdx]
movzx eax, byte [r9 + rdx]
cmp r8d, eax
jne 0x180075248
test r8d, r8d
je 0x180075271
inc rdx
jmp 0x180075230
movzx ecx, byte [rax + r15 + 0x15c030]
movzx eax, byte [r8 + r15 + 0x15c030]
cmp eax, ecx
jne 0x180075263
inc rdx
jmp 0x180075230
inc ebx
inc r10
add r11, 0x18
cmp r10, rbp
jl 0x180075220
mov dword [rsp + 0xc0], ebx
mov ecx, ebp
cmp ebx, ecx
mov rcx, r12
jne 0x1800752aa
mov r8, qword [rsp + 0xd0]
lea rdx, str.no_such_column:___T_
call fcn.18002c6f0
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.180087640
jmp 0x1800754f8
mov rbx, qword [rsp + 0x58]
lea rbp, [0x18016154b]
mov r15d, esi
mov dword [rsp + 0x30], esi
cmp r13d, 1
mov qword [rsp + 0x28], rbp
mov r9, rbx
mov byte [r12 + 0x1c], 1
sete r15b
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 r8, rbx
mov dword [rsp + 0x20], r15d
call fcn.18007d950
mov r8, rbx
mov rcx, r12
cmp r13d, 1
je 0x18007532c
mov r9, rbp
mov dword [rsp + 0x20], esi
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.18007d950
mov r9, rbx
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 r8, rbx
mov rcx, r12
call fcn.18007d950
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, r12
call fcn.18007d950
jmp 0x18007533b
mov r9, rbx
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.18007d950
mov rax, qword [r12 + 0xa8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov rax, qword [rsp + 0xd8]
mov byte [rcx + 0x21], 1
test rax, rax
je 0x1800754e3
mov rbp, qword [rax]
mov ebx, dword [rax + 8]
test rbp, rbp
je 0x180075393
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.180028ce0
mov rsi, rax
test rax, rax
je 0x180075393
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call fcn.180133760
mov byte [rsi + rbx], 0
mov rcx, rsi
call fcn.18002c850
test rsi, rsi
je 0x1800754e3
mov r9, qword [rsp + 0xd8]
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 r8, qword [rsp + 0x58]
mov ebp, dword [rsp + 0xc0]
mov rax, qword [r9]
mov r9, r8
movzx ecx, byte [rax]
lea rax, [0x180000000]
movzx ebx, byte [rcx + rax + 0x15adf0]
mov rcx, r12
mov rax, qword [rsp + 0x60]
and ebx, 0x80
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.18007d950
mov rax, qword [rsp + 0x60]
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 + 0x30], ebx
mov rcx, r12
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rsi
mov r8, rbx
mov r9, qword [rax]
mov dword [rsp + 0x20], ebp
call fcn.18007d950
cmp qword [r12 + 0x10], 0
je 0x18007547a
mov edx, r13d
mov rcx, r12
call fcn.1800819e0
mov rcx, qword [r12 + 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, r13d
call fcn.1800504c0
cmp r13d, 1
je 0x18007547a
mov rcx, qword [r12 + 0x10]
mov r9d, 1
mov edx, r9d
xor r8d, r8d
call fcn.1800504c0
mov dword [rsp + 0x30], 1
lea rbp, str.after_rename
mov qword [rsp + 0x28], rbp
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 r9, rbx
mov dword [rsp + 0x20], r15d
mov r8, rbx
mov byte [r12 + 0x1c], 1
mov rcx, r12
call fcn.18007d950
cmp r13d, 1
je 0x1800754e3
mov r9, rbp
mov dword [rsp + 0x20], 1
mov r8, rbx
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
call fcn.18007d950
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.180087640
jmp 0x1800754f8
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.180087640
test r14, r14
je 0x18007555d
test rdi, rdi
je 0x180075555
cmp r14, qword [rdi + 0x1f0]
jae 0x18007553e
cmp r14, qword [rdi + 0x1e0]
jb 0x180075522
mov rax, qword [rdi + 0x1d8]
mov qword [r14], rax
mov qword [rdi + 0x1d8], r14
jmp 0x18007555d
cmp r14, qword [rdi + 0x1e8]
jb 0x18007553e
mov rax, qword [rdi + 0x1c8]
mov qword [r14], rax
mov qword [rdi + 0x1c8], r14
jmp 0x18007555d
cmp qword [rdi + 0x308], 0
je 0x180075555
mov rdx, r14
mov rcx, rdi
call fcn.1800288c0
jmp 0x18007555d
mov rcx, r14
call fcn.180028850
test rsi, rsi
je 0x1800755c7
test rdi, rdi
je 0x1800755bf
cmp rsi, qword [rdi + 0x1f0]
jae 0x1800755a8
cmp rsi, qword [rdi + 0x1e0]
jb 0x18007558c
mov rax, qword [rdi + 0x1d8]
mov qword [rsi], rax
mov qword [rdi + 0x1d8], rsi
jmp 0x1800755c7
cmp rsi, qword [rdi + 0x1e8]
jb 0x1800755a8
mov rax, qword [rdi + 0x1c8]
mov qword [rsi], rax
mov qword [rdi + 0x1c8], rsi
jmp 0x1800755c7
cmp qword [rdi + 0x308], 0
je 0x1800755bf
mov rdx, rsi
mov rcx, rdi
call fcn.1800288c0
jmp 0x1800755c7
mov rcx, rsi
call fcn.180028850
mov r13, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x88
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret