Function at 0x1800ac120
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 0x1800ac188
mov r9, qword [rdi + 0x20]
mov ecx, esi
cmp qword [r9 + 0x18], r10
lea rax, [r9 + 0x18]
je 0x1800ac17b
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r10
jne 0x1800ac170
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + r9]
jmp 0x1800ac18c
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.1800b5290
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
je 0x1800ac5b3
mov rdx, rax
mov rcx, r12
call fcn.1800ab120
test eax, eax
jne 0x1800ac5b3
cmp byte [r15 + 0x3f], 2
lea r9, str.view
cmovne r9, rsi
cmp byte [r15 + 0x3f], 1
jne 0x1800ac1eb
lea r9, str.virtual_table
jmp 0x1800ac1f0
test r9, r9
je 0x1800ac223
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.18005ee20
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.1800bea80
jmp 0x1800ac697
mov rcx, qword [r15 + 0x60]
mov r13d, 0xffff8000
test rcx, rcx
je 0x1800ac24e
mov rax, qword [rdi + 0x20]
mov r13d, esi
add rax, 0x18
cmp qword [rax], rcx
je 0x1800ac24e
inc r13d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1800ac242
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.1800b42d0
test eax, eax
jne 0x1800ac5b3
test rbp, rbp
je 0x1800ac20e
mov ebx, dword [rbp + 8]
mov rbp, qword [rbp]
test rbp, rbp
je 0x1800ac2b6
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.18005b220
mov r14, rax
test rax, rax
je 0x1800ac2b6
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], sil
mov rcx, r14
call fcn.18005ef80
test r14, r14
je 0x1800ac5b3
movsx rax, word [r15 + 0x36]
mov ebx, esi
mov dword [rsp + 0xc0], ebx
mov ecx, eax
cmp si, ax
jge 0x1800ac34a
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 0x1800ac318
test r8d, r8d
je 0x1800ac341
inc rdx
jmp 0x1800ac300
movzx ecx, byte [rax + r15 + 0x141dc0]
movzx eax, byte [r8 + r15 + 0x141dc0]
cmp eax, ecx
jne 0x1800ac333
inc rdx
jmp 0x1800ac300
inc ebx
inc r10
add r11, 0x18
cmp r10, rbp
jl 0x1800ac2f0
mov dword [rsp + 0xc0], ebx
mov ecx, ebp
cmp ebx, ecx
mov rcx, r12
jne 0x1800ac37a
mov r8, qword [rsp + 0xd0]
lea rdx, str.no_such_column:___T_
call fcn.18005ee20
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.1800bea80
jmp 0x1800ac5c8
mov rbx, qword [rsp + 0x58]
lea rbp, [0x18013df0b]
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.1800b4c80
mov r8, rbx
mov rcx, r12
cmp r13d, 1
je 0x1800ac3fc
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.1800b4c80
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.1800b4c80
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.1800b4c80
jmp 0x1800ac40b
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.1800b4c80
mov rax, qword [r12 + 0xb0]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov rax, qword [rsp + 0xd8]
mov byte [rcx + 0x21], 1
test rax, rax
je 0x1800ac5b3
mov rbp, qword [rax]
mov ebx, dword [rax + 8]
test rbp, rbp
je 0x1800ac463
lea rdx, [rbx + 1]
mov rcx, rdi
call fcn.18005b220
mov rsi, rax
test rax, rax
je 0x1800ac463
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rcx, rsi
call fcn.18005ef80
test rsi, rsi
je 0x1800ac5b3
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 + 0x140ca0]
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.1800b4c80
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.1800b4c80
cmp qword [r12 + 0x10], 0
je 0x1800ac54a
mov edx, r13d
mov rcx, r12
call fcn.1800b8d20
mov rcx, qword [r12 + 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, r13d
call fcn.1800862b0
cmp r13d, 1
je 0x1800ac54a
mov rcx, qword [r12 + 0x10]
mov r9d, 1
mov edx, r9d
xor r8d, r8d
call fcn.1800862b0
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.1800b4c80
cmp r13d, 1
je 0x1800ac5b3
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.1800b4c80
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.1800bea80
jmp 0x1800ac5c8
mov rdx, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.1800bea80
test r14, r14
je 0x1800ac62d
test rdi, rdi
je 0x1800ac625
cmp r14, qword [rdi + 0x1f0]
jae 0x1800ac60e
cmp r14, qword [rdi + 0x1e0]
jb 0x1800ac5f2
mov rax, qword [rdi + 0x1d8]
mov qword [r14], rax
mov qword [rdi + 0x1d8], r14
jmp 0x1800ac62d
cmp r14, qword [rdi + 0x1e8]
jb 0x1800ac60e
mov rax, qword [rdi + 0x1c8]
mov qword [r14], rax
mov qword [rdi + 0x1c8], r14
jmp 0x1800ac62d
cmp qword [rdi + 0x308], 0
je 0x1800ac625
mov rdx, r14
mov rcx, rdi
call fcn.18005ae00
jmp 0x1800ac62d
mov rcx, r14
call fcn.18005ad90
test rsi, rsi
je 0x1800ac697
test rdi, rdi
je 0x1800ac68f
cmp rsi, qword [rdi + 0x1f0]
jae 0x1800ac678
cmp rsi, qword [rdi + 0x1e0]
jb 0x1800ac65c
mov rax, qword [rdi + 0x1d8]
mov qword [rsi], rax
mov qword [rdi + 0x1d8], rsi
jmp 0x1800ac697
cmp rsi, qword [rdi + 0x1e8]
jb 0x1800ac678
mov rax, qword [rdi + 0x1c8]
mov qword [rsi], rax
mov qword [rdi + 0x1c8], rsi
jmp 0x1800ac697
cmp qword [rdi + 0x308], 0
je 0x1800ac68f
mov rdx, rsi
mov rcx, rdi
call fcn.18005ae00
jmp 0x1800ac697
mov rcx, rsi
call fcn.18005ad90
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