Function at 0x140061df0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push r12
push r15
sub rsp, 0x88
mov r12, qword [rcx]
mov rbp, r8
mov rbx, rdx
mov qword [rsp + 0x68], r12
mov r15, rcx
cmp byte [r12 + 0x67], 0
jne 0x140062048
mov r9, qword [rdx + 8]
mov qword [rax - 0x28], rdi
xor edi, edi
mov qword [rax - 0x30], r13
test r9, r9
je 0x140061e68
mov rdx, qword [r12 + 0x20]
mov ecx, edi
cmp qword [rdx + 0x18], r9
lea rax, [rdx + 0x18]
je 0x140061e5b
nop dword [rax]
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r9
jne 0x140061e50
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + rdx]
jmp 0x140061e6c
mov r9, qword [rdx + 0x10]
mov r8, qword [rbx + 0x18]
xor edx, edx
mov rcx, r15
call fcn.140067280
mov qword [rsp + 0x50], rax
mov r13, rax
test rax, rax
je 0x14006203b
mov rdx, rax
mov rcx, r15
call fcn.14005ca20
test eax, eax
jne 0x14006203b
cmp byte [r13 + 0x3f], 2
lea r9, str.view
cmovne r9, rdi
cmp byte [r13 + 0x3f], 1
jne 0x140061ebe
lea r9, str.virtual_table
jmp 0x140061ec3
test r9, r9
je 0x140061ee7
mov rax, qword [r13]
lea r8, str.drop_column_from
lea rdx, str.cannot__s__s___s_
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.14000af50
jmp 0x14006203b
mov rdx, rbp
mov rcx, r12
call fcn.140067f70
mov qword [rsp + 0x58], rax
mov rdx, rax
test rax, rax
je 0x14006203b
mov rcx, rax
mov qword [rsp + 0xc0], rsi
movzx eax, byte [rax]
lea r8, [0x140122e40]
xor bl, bl
mov qword [rsp + 0x70], r14
test al, al
je 0x140061f42
nop dword [rax]
nop word [rax + rax]
movzx eax, al
lea rcx, [rcx + 1]
add bl, byte [rax + r8]
movzx eax, byte [rcx]
test al, al
jne 0x140061f30
movsx esi, word [r13 + 0x36]
mov r10d, edi
mov r14, qword [r13 + 8]
mov r11, r14
test esi, esi
jle 0x140062007
nop dword [rax]
cmp byte [r11 + 0xe], bl
jne 0x140061ff7
mov r8, qword [r11]
mov r9, rdx
sub r9, r8
movzx ecx, byte [r8]
movzx eax, byte [r8 + r9]
cmp ecx, eax
jne 0x140061fd0
test ecx, ecx
jne 0x140061fed
test r10d, r10d
js 0x140062007
movsxd rax, r10d
lea rcx, [rax + rax*2]
movzx eax, word [r14 + rcx*8 + 0x12]
lea rbp, [rcx*8]
test al, 9
je 0x140062060
mov r9, qword [rsp + 0x58]
lea r8, str.UNIQUE
test al, 1
lea rdx, str.cannot_drop__s_column:___s_
lea rax, str.PRIMARY_KEY
mov rcx, r15
cmovne r8, rax
call fcn.14000af50
jmp 0x140062019
lea rdx, [0x140122e40]
movzx edx, byte [rax + rdx]
mov rax, rcx
lea rcx, [0x140122e40]
movzx ecx, byte [rax + rcx]
cmp ecx, edx
jne 0x140061ff2
inc r8
jmp 0x140061f73
mov rdx, qword [rsp + 0x58]
add r11, 0x18
inc r10d
cmp r10d, esi
jl 0x140061f60
mov r8, rbp
lea rdx, str.no_such_column:___T_
mov rcx, r15
call fcn.14000af50
mov rdx, qword [rsp + 0x58]
mov rcx, r12
call fcn.140006ed0
mov rbx, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x80]
mov r13, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, r12
add rsp, 0x88
pop r15
pop r12
pop rbp
pop rbx
jmp fcn.140070320
cmp esi, 1
jg 0x140062073
mov r8, qword [rsp + 0x58]
lea rdx, str.cannot_drop_column___s_:_no_other_columns_exist
jmp 0x140062011
mov rcx, qword [r13 + 0x60]
mov edi, 0xffff8000
mov dword [rsp + 0xc8], r10d
mov r14d, r10d
test rcx, rcx
je 0x1400620bb
mov rax, qword [r12 + 0x20]
xor edi, edi
add rax, 0x18
mov dword [rsp + 0xc8], r10d
cmp qword [rax], rcx
je 0x1400620bb
mov dword [rsp + 0xc8], r10d
nop dword [rax]
inc edi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1400620b0
mov rax, qword [r12 + 0x20]
mov edx, 0x1a
mov r9, qword [r13]
movsxd rcx, edi
shl rcx, 5
mov rbx, qword [rcx + rax]
mov rcx, r15
mov rax, qword [rsp + 0x58]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.140066300
test eax, eax
jne 0x140062019
mov dword [rsp + 0x30], eax
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
xor esi, esi
mov byte [r15 + 0x1c], 1
lea rax, [0x140119335]
cmp edi, 1
mov qword [rsp + 0x28], rax
mov r9, rbx
sete sil
mov r8, rbx
mov rcx, r15
mov dword [rsp + 0x20], esi
call fcn.140066cc0
mov r8, rbx
mov rcx, r15
cmp edi, 1
je 0x140062174
lea r9, [0x140119335]
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
call fcn.140066cc0
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, r15
call fcn.140066cc0
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, r15
call fcn.140066cc0
jmp 0x140062183
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.140066cc0
mov rax, qword [r13]
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 r8, rbx
mov dword [rsp + 0x20], r14d
mov rcx, r15
call fcn.140066cc0
mov r8d, 2
mov edx, edi
mov rcx, r15
call fcn.14005cb10
mov dword [rsp + 0x30], 1
lea r14, str.after_drop_column
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
mov r9, rbx
mov dword [rsp + 0x20], esi
mov r8, rbx
mov byte [r15 + 0x1c], 1
mov rcx, r15
call fcn.140066cc0
cmp edi, 1
je 0x14006220a
mov r9, r14
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, r15
call fcn.140066cc0
cmp dword [r15 + 0x30], 0
jne 0x140062019
mov rax, qword [r13 + 8]
test byte [rax + rbp + 0x12], 0x20
jne 0x140062019
mov rbx, qword [r15 + 0x10]
xor esi, esi
xor r14d, r14d
test rbx, rbx
jne 0x140062254
cmp qword [r15 + 0xb0], rsi
jne 0x140062249
mov rax, qword [r15]
test byte [rax + 0x60], 8
jne 0x140062249
mov byte [r15 + 0x23], 1
mov rcx, r15
call fcn.140035860
mov rbx, rax
mov r13d, dword [r15 + 0x34]
mov r8d, edi
mov r9, qword [rsp + 0x50]
mov edx, r13d
mov dword [rsp + 0x20], 0x71
lea ecx, [r13 + 1]
mov dword [r15 + 0x34], ecx
mov rcx, r15
call fcn.14007e970
movsxd r8, dword [rbx + 0x90]
lea rbp, [rbx + 0x88]
mov dword [rsp + 0x44], r8d
mov qword [rsp + 0x60], rbp
cmp dword [rbx + 0x94], r8d
jg 0x1400622bb
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r13d
mov rcx, rbx
lea edx, [r9 + 0x24]
call fcn.140035b50
mov dword [rsp + 0x44], eax
xor r8d, r8d
jmp 0x1400622eb
lea rcx, [r8 + r8*2]
mov qword [rsp + 0x60], rbp
lea eax, [r8 + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
mov rax, qword [rbp]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], r13d
mov qword [rax + rcx*8 + 8], r8
mov qword [rax + rcx*8 + 0x10], r8
mov edx, dword [r15 + 0x38]
mov r9, qword [rsp + 0x50]
inc edx
mov dword [r15 + 0x38], edx
mov dword [rsp + 0x40], edx
test byte [r9 + 0x30], 0x80
jne 0x14006237b
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x140062342
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8d, r13d
mov edx, 0x87
mov rcx, rbx
call fcn.140035b50
mov r9, qword [rsp + 0x50]
xor r8d, r8d
movsx eax, word [r9 + 0x36]
add eax, dword [r15 + 0x38]
jmp 0x14006242a
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsx eax, word [r9 + 0x36]
add eax, dword [r15 + 0x38]
jmp 0x14006242a
mov rsi, qword [r9 + 0x10]
test rsi, rsi
je 0x140062396
mov eax, dword [rsi + 0x64]
and al, 3
cmp al, 2
je 0x140062396
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140062384
movzx eax, word [rsi + 0x60]
mov edi, r8d
add eax, edx
mov dword [r15 + 0x38], eax
movzx ecx, word [rsi + 0x5e]
cmp r8w, cx
jae 0x140062426
lea r14d, [rdx + 1]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400623e0
lea eax, [r14 + rdi]
mov r9d, edi
mov r8d, r13d
mov dword [rsp + 0x20], eax
mov edx, 0x5e
mov rcx, rbx
call fcn.140035b50
xor r8d, r8d
jmp 0x140062410
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov dword [rax + rcx*8], 0x5e
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edi
lea rdx, [rax + rcx*8]
lea eax, [r14 + rdi]
mov qword [rdx + 0x10], r8
mov dword [rdx + 0xc], eax
movzx eax, word [rsi + 0x5e]
inc edi
cmp edi, eax
jl 0x1400623b1
mov r9, qword [rsp + 0x50]
movzx ecx, ax
mov eax, dword [r15 + 0x38]
movzx r14d, cx
lea r12d, [rax + 1]
mov edi, r8d
mov dword [r15 + 0x38], r12d
mov dword [rsp + 0x48], r12d
cmp r8w, word [r9 + 0x36]
jge 0x1400625ae
mov r15d, dword [rsp + 0x40]
mov r10d, 0xffffffff
cmp edi, dword [rsp + 0xc8]
je 0x14006258c
mov r11, qword [r9 + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
test byte [r11 + rcx*8 + 0x12], 0x20
lea r12, [rcx*8]
jne 0x14006258c
test rsi, rsi
je 0x1400624de
movzx edx, word [rsi + 0x60]
mov ecx, r8d
test edx, edx
je 0x1400624a0
mov r8, qword [rsi + 8]
movsxd rax, ecx
cmp di, word [r8 + rax*2]
je 0x1400624a4
inc ecx
cmp ecx, edx
jl 0x140062490
movzx ecx, r10w
movzx eax, word [rsi + 0x5e]
movsx r10d, cx
cmp r10d, eax
jl 0x140062586
movzx edx, word [rsp + 0xc8]
mov rcx, rsi
call fcn.140068440
mov r9, qword [rsp + 0x50]
xor r8d, r8d
movsx ecx, ax
mov eax, r8d
cmp r10d, ecx
setg al
sub r10d, eax
jmp 0x1400624e1
mov r10d, r14d
movsx eax, word [r9 + 0x34]
lea edx, [r15 + 1]
add edx, r10d
cmp edi, eax
jne 0x140062547
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14006251e
mov dword [rsp + 0x20], r8d
mov r9d, edx
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x4b]
call fcn.140035b50
mov r9, qword [rsp + 0x50]
jmp 0x140062583
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
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 0x140062583
movzx ebp, byte [r11 + r12 + 0xc]
cmp bpl, 0x45
jne 0x140062559
mov byte [r11 + r12 + 0xc], 0x43
mov dword [rsp + 0x20], edx
mov r9d, edi
mov rdx, qword [rsp + 0x50]
mov r8d, r13d
mov rcx, rbx
call fcn.140057520
mov r9, qword [rsp + 0x50]
mov rax, qword [r9 + 8]
mov byte [rax + r12 + 0xc], bpl
mov rbp, qword [rsp + 0x60]
inc r14d
mov r10d, 0xffffffff
movsx eax, word [r9 + 0x36]
inc edi
mov r8d, 0
cmp edi, eax
jl 0x140062450
mov r15, qword [rsp + 0xb0]
mov r12d, dword [rsp + 0x48]
mov edi, dword [rsp + 0x40]
inc edi
test r14d, r14d
jne 0x140062615
inc dword [r15 + 0x38]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400625e8
mov dword [rsp + 0x20], r8d
lea edx, [r14 + 0x4b]
xor r8d, r8d
mov r9d, edi
mov rcx, rbx
call fcn.140035b50
xor r8d, r8d
jmp 0x14006260f
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
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 r14d, 1
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x140062641
mov r9d, r14d
mov dword [rsp + 0x20], r12d
mov r8d, edi
mov edx, 0x61
mov rcx, rbx
call fcn.140035b50
xor r8d, r8d
jmp 0x14006266c
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov dword [rax + rcx*8], 0x61
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0x90]
test rsi, rsi
je 0x1400626c6
movzx edx, word [rsi + 0x5e]
cmp dword [rbx + 0x94], ecx
jg 0x1400626a4
mov dword [rsp + 0x28], edx
mov r9d, r12d
mov edx, 0x8a
mov dword [rsp + 0x20], edi
mov r8d, r13d
mov rcx, rbx
call fcn.140035bb0
xor r8d, r8d
jmp 0x14006271d
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov dword [rax + rcx*8], 0xfd8a
mov dword [rax + rcx*8 + 0xc], edi
mov dword [rax + rcx*8 + 0x10], edx
jmp 0x140062713
cmp dword [rbx + 0x94], ecx
jg 0x1400626ee
mov eax, dword [rsp + 0x40]
mov r9d, r12d
mov r8d, r13d
mov dword [rsp + 0x20], eax
mov edx, 0x80
mov rcx, rbx
call fcn.140035b50
xor r8d, r8d
jmp 0x14006271d
mov edx, dword [rsp + 0x40]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 4], r13d
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x140062737
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
mov word [rax + rcx*8 - 0x16], 2
movsxd rdi, dword [rsp + 0x44]
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cmp dword [rbx + 0x94], ecx
jg 0x140062768
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8d, r13d
mov edx, 0x27
mov rcx, rbx
call fcn.140035b50
jmp 0x140062793
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov dword [rax + rcx*8], 0x27
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x1400627b6
mov r12, qword [rsp + 0x68]
lea rax, [0x140140be0]
mov dword [rax + 8], edx
jmp 0x140062019
mov rax, qword [rbp]
lea rcx, [rdi + rdi*2]
mov r12, qword [rsp + 0x68]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x140062019