Function at 0x180078b30
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push r14
push r15
sub rsp, 0x78
mov r15, qword [rcx]
mov rbx, r8
mov rbp, rdx
mov qword [rsp + 0x58], r15
mov r14, rcx
cmp byte [r15 + 0x67], 0
jne 0x180079541
mov r9, qword [rdx + 8]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test r9, r9
je 0x180078ba8
mov rdx, qword [r15 + 0x20]
mov ecx, r13d
cmp qword [rdx + 0x18], r9
lea rax, [rdx + 0x18]
je 0x180078b9b
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r9
jne 0x180078b90
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + rdx]
jmp 0x180078bac
mov r9, qword [rdx + 0x10]
mov r8, qword [rbp + 0x18]
xor edx, edx
mov rcx, r14
call fcn.18007df60
mov qword [rsp + 0x48], rax
mov r12, rax
test rax, rax
je 0x180079537
mov rdx, rax
mov rcx, r14
call fcn.180074090
test eax, eax
jne 0x180079537
cmp byte [r12 + 0x3f], 2
lea r9, str.view
cmovne r9, r13
cmp byte [r12 + 0x3f], 1
jne 0x180078c00
lea r9, str.virtual_table
jmp 0x180078c05
test r9, r9
je 0x180078c29
mov rax, qword [r12]
lea r8, str.drop_column_from
lea rdx, str.cannot__s__s___s_
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.18002c6f0
jmp 0x180079537
test rbx, rbx
je 0x180079537
mov qword [rsp + 0xb0], rsi
mov rsi, qword [rbx]
mov qword [rsp + 0x70], rdi
mov edi, dword [rbx + 8]
test rsi, rsi
je 0x180078c71
lea rdx, [rdi + 1]
mov rcx, r15
call fcn.180028ce0
mov r13, rax
test rax, rax
je 0x180078c71
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.180133760
mov byte [rdi + r13], 0
mov rcx, r13
call fcn.18002c850
test r13, r13
je 0x18007952a
mov rdx, r13
mov rcx, r12
call fcn.1800a6e40
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x180078cac
mov r8, rbx
lea rdx, str.no_such_column:___T_
mov rcx, r14
call fcn.18002c6f0
jmp 0x1800794c8
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 8]
lea rbp, [rcx*8]
movzx ecx, word [rax + rcx*8 + 0x12]
test cl, 9
je 0x180078cf5
test cl, 1
lea rax, str.PRIMARY_KEY
lea r8, str.UNIQUE
mov r9, r13
cmovne r8, rax
lea rdx, str.cannot_drop__s_column:___s_
mov rcx, r14
call fcn.18002c6f0
jmp 0x1800794c0
cmp word [r12 + 0x36], 1
jg 0x180078d15
mov r8, r13
lea rdx, str.cannot_drop_column___s_:_no_other_columns_exist
mov rcx, r14
call fcn.18002c6f0
jmp 0x1800794c0
mov rcx, qword [r12 + 0x60]
mov edi, 0xffff8000
test rcx, rcx
je 0x180078d4b
mov rax, qword [r15 + 0x20]
xor r8d, r8d
add rax, 0x18
mov edi, r8d
cmp qword [rax], rcx
je 0x180078d4b
nop word [rax + rax]
inc edi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x180078d40
mov rax, qword [r15 + 0x20]
mov edx, 0x1a
mov r9, qword [r12]
movsxd rcx, edi
shl rcx, 5
mov qword [rsp + 0x20], r13
mov rbx, qword [rcx + rax]
mov rcx, r14
mov r8, rbx
call fcn.18007cfa0
test eax, eax
jne 0x1800794c0
xor eax, eax
mov byte [r14 + 0x1c], 1
mov esi, eax
mov dword [rsp + 0x30], eax
lea rax, [0x18016154b]
cmp edi, 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
sete sil
mov r9, rbx
mov r8, rbx
mov dword [rsp + 0x20], esi
mov rcx, r14
call fcn.18007d950
mov rcx, r14
cmp edi, 1
je 0x180078e00
xor r8d, r8d
lea r9, [0x18016154b]
mov dword [rsp + 0x20], r8d
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, rbx
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, r14
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, r14
call fcn.18007d950
jmp 0x180078e12
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
call fcn.18007d950
mov rax, qword [r12]
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__sqlite_drop_column__d__sql___d__WHERE__typetable_AND_tbl_name_Q_COLLATE_nocase_
mov qword [rsp + 0x28], rax
mov r9d, edi
mov eax, dword [rsp + 0x50]
mov r8, rbx
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.18007d950
cmp qword [r14 + 0x10], 0
je 0x180078e78
mov edx, edi
mov rcx, r14
call fcn.1800819e0
mov rcx, qword [r14 + 0x10]
mov r9d, 2
xor r8d, r8d
mov edx, edi
call fcn.1800504c0
cmp edi, 1
je 0x180078e78
mov rcx, qword [r14 + 0x10]
mov r9d, 2
xor r8d, r8d
lea edx, [r9 - 1]
call fcn.1800504c0
lea rax, str.after_drop_column
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 r9, rbx
mov dword [rsp + 0x20], esi
mov r8, rbx
mov byte [r14 + 0x1c], 1
mov rcx, r14
call fcn.18007d950
cmp edi, 1
je 0x180078ed0
lea r9, str.after_drop_column
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, r14
call fcn.18007d950
cmp dword [r14 + 0x30], 0
jne 0x1800794c0
mov rax, qword [r12 + 8]
test byte [rax + rbp + 0x12], 0x20
jne 0x1800794c0
mov rbx, qword [r14 + 0x10]
xor eax, eax
mov esi, eax
mov ebp, eax
test rbx, rbx
jne 0x180078f1c
cmp qword [r14 + 0xa8], rax
jne 0x180078f11
mov rax, qword [r14]
test byte [rax + 0x60], 8
jne 0x180078f11
mov byte [r14 + 0x23], 1
mov rcx, r14
call fcn.18004f920
mov rbx, rax
mov eax, dword [r14 + 0x34]
mov r8d, edi
mov r9, r12
mov dword [rsp + 0xb8], eax
mov edx, eax
mov dword [rsp + 0x20], 0x71
mov edi, eax
lea ecx, [rax + 1]
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.180094ec0
movsxd rdx, dword [rbx + 0x90]
xor r8d, r8d
mov dword [rsp + 0x54], edx
cmp dword [rbx + 0x94], edx
jg 0x180078f7e
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, edi
mov rcx, rbx
lea edx, [r9 + 0x24]
call fcn.18004fc80
mov dword [rsp + 0x54], eax
xor r8d, r8d
jmp 0x180078fa7
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], edi
mov qword [rax + rcx*8 + 8], r8
mov qword [rax + rcx*8 + 0x10], r8
inc dword [r14 + 0x38]
test byte [r12 + 0x30], 0x80
mov r11d, dword [r14 + 0x38]
mov dword [rsp + 0x40], r11d
jne 0x180079037
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x180078ffa
mov dword [rsp + 0x20], r8d
mov r9d, r11d
mov r8d, edi
mov edx, 0x87
mov rcx, rbx
call fcn.18004fc80
movsx eax, word [r12 + 0x36]
xor r8d, r8d
add eax, dword [r14 + 0x38]
mov r11d, dword [rsp + 0x40]
jmp 0x180079105
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r11d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsx eax, word [r12 + 0x36]
add eax, dword [r14 + 0x38]
jmp 0x180079105
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x180079053
mov eax, dword [rsi + 0x64]
and al, 3
cmp al, 2
je 0x180079053
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x180079041
movzx eax, word [rsi + 0x60]
mov edi, r8d
add eax, r11d
mov dword [r14 + 0x38], eax
movzx ecx, word [rsi + 0x5e]
cmp r8w, cx
jae 0x180079102
mov r12d, dword [rsp + 0xb8]
lea r15d, [r11 + 1]
nop dword [rax + rax]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800790af
lea eax, [r15 + rdi]
mov r9d, edi
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov edx, 0x5e
mov rcx, rbx
call fcn.18004fc80
xor r8d, r8d
jmp 0x1800790e2
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5e
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edi
lea rdx, [rax + rcx*8]
lea eax, [r15 + rdi]
mov qword [rdx + 0x10], r8
mov dword [rdx + 0xc], eax
movzx eax, word [rsi + 0x5e]
inc edi
cmp edi, eax
jl 0x180079080
mov r12, qword [rsp + 0x48]
movzx ecx, ax
mov eax, dword [r14 + 0x38]
mov r15, qword [rsp + 0x58]
mov r11d, dword [rsp + 0x40]
movzx ebp, cx
inc eax
mov edi, r8d
mov dword [r14 + 0x38], eax
mov dword [rsp + 0x48], eax
cmp r8w, word [r12 + 0x36]
jge 0x180079257
mov r15d, dword [rsp + 0xb8]
mov r9d, 0xffffffff
mov r14d, dword [rsp + 0x50]
cmp edi, r14d
je 0x180079234
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 8]
test byte [rax + rcx*8 + 0x12], 0x20
jne 0x180079234
test rsi, rsi
je 0x1800791aa
movzx edx, word [rsi + 0x60]
mov ecx, r8d
test edx, edx
je 0x180079175
mov r8, qword [rsi + 8]
movsxd rax, ecx
cmp di, word [r8 + rax*2]
je 0x180079179
inc ecx
cmp ecx, edx
jl 0x180079165
movzx ecx, r9w
movzx eax, word [rsi + 0x5e]
movsx r10d, cx
cmp r10d, eax
jl 0x180079234
movzx edx, r14w
mov rcx, rsi
call fcn.18007f6b0
movsx ecx, ax
xor r8d, r8d
cmp r10d, ecx
mov eax, r8d
setg al
sub r10d, eax
jmp 0x1800791ad
mov r10d, ebp
movsx eax, word [r12 + 0x34]
lea edx, [r11 + 1]
add edx, r10d
cmp edi, eax
jne 0x180079212
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800791e6
mov dword [rsp + 0x20], r8d
mov r9d, edx
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x4b]
call fcn.18004fc80
jmp 0x180079227
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0x4b
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
jmp 0x18007922c
mov dword [rsp + 0x20], edx
mov r9d, edi
mov rdx, r12
mov r8d, r15d
mov rcx, rbx
call fcn.18006ef20
mov r11d, dword [rsp + 0x40]
inc ebp
mov r9d, 0xffffffff
movsx eax, word [r12 + 0x36]
inc edi
mov r8d, 0
cmp edi, eax
jl 0x180079131
mov r14, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x58]
lea edi, [r11 + 1]
test ebp, ebp
jne 0x1800792bc
inc dword [r14 + 0x38]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18007928d
mov dword [rsp + 0x20], r8d
lea edx, [rbp + 0x4b]
xor r8d, r8d
mov r9d, edi
mov rcx, rbx
call fcn.18004fc80
xor r8d, r8d
jmp 0x1800792b7
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0x4b
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov ebp, 1
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800792ed
mov eax, dword [rsp + 0x48]
mov r9d, ebp
mov r8d, edi
mov dword [rsp + 0x20], eax
mov edx, 0x61
mov rcx, rbx
call fcn.18004fc80
mov r9d, dword [rsp + 0x48]
jmp 0x18007931f
mov r9d, dword [rsp + 0x48]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x61
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r8
mov r8d, dword [rsp + 0xb8]
test rsi, rsi
je 0x1800793b6
movsxd rdx, dword [rbx + 0x90]
movzx esi, word [rsi + 0x5e]
cmp dword [rbx + 0x94], edx
jg 0x180079358
mov edx, 0x8a
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.18004fc80
mov edx, eax
jmp 0x180079389
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], r8d
xor r8d, r8d
mov qword [rax + rcx*8 + 0x10], r8
mov dword [rax + rcx*8], 0x8a
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edi
mov rax, qword [rbx]
xor r9d, r9d
mov r8d, dword [rsp + 0xb8]
cmp byte [rax + 0x67], r9b
jne 0x180079418
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], esi
jmp 0x180079418
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rsp + 0x40]
cmp dword [rbx + 0x94], ecx
jg 0x1800793e7
mov dword [rsp + 0x20], edx
mov rcx, rbx
mov edx, 0x80
call fcn.18004fc80
mov r8d, dword [rsp + 0xb8]
xor r9d, r9d
jmp 0x180079418
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], r9d
xor r9d, r9d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 0xc], edx
movsxd rcx, dword [rbx + 0x90]
test ecx, ecx
jle 0x18007943e
mov rax, qword [rbx + 0x88]
lea rcx, [rcx + rcx*2]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
mov ecx, dword [rbx + 0x90]
movsxd rdi, dword [rsp + 0x54]
lea edx, [rdi + 1]
cmp dword [rbx + 0x94], ecx
jg 0x180079465
mov dword [rsp + 0x20], r9d
mov rcx, rbx
mov r9d, edx
mov edx, 0x27
call fcn.18004fc80
jmp 0x180079496
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x27
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x1800794ae
lea rax, [0x1801880d8]
jmp 0x1800794bd
mov rax, qword [rbx + 0x88]
lea rcx, [rdi + rdi*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rbp, qword [rsp + 0xa8]
cmp r13, qword [r15 + 0x1f0]
jae 0x18007950b
cmp r13, qword [r15 + 0x1e0]
jb 0x1800794ee
mov rax, qword [r15 + 0x1d8]
mov qword [r13], rax
mov qword [r15 + 0x1d8], r13
jmp 0x18007952a
cmp r13, qword [r15 + 0x1e8]
jb 0x18007950b
mov rax, qword [r15 + 0x1c8]
mov qword [r13], rax
mov qword [r15 + 0x1c8], r13
jmp 0x18007952a
cmp qword [r15 + 0x308], 0
je 0x180079522
mov rdx, r13
mov rcx, r15
call fcn.1800288c0
jmp 0x18007952a
mov rcx, r13
call fcn.180028850
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb0]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, r15
add rsp, 0x78
pop r15
pop r14
pop rbp
pop rbx
jmp fcn.180087640