Function at 0x1800d7110
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rdi
push r14
sub rsp, 0x88
mov rbp, qword [rcx]
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x60], rbp
mov r14, rcx
cmp byte [rbp + 0x67], 0
jne 0x1800d7b13
mov r9, qword [rdx + 8]
mov qword [rax + 0x18], rsi
xor esi, esi
mov qword [rax - 0x28], r12
test r9, r9
je 0x1800d717d
mov rdx, qword [rbp + 0x20]
mov ecx, esi
cmp qword [rdx + 0x18], r9
lea rax, [rdx + 0x18]
je 0x1800d7170
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r9
jne 0x1800d7165
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + rdx]
jmp 0x1800d7181
mov r9, qword [rdx + 0x10]
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rcx, r14
call fcn.1800dc6d0
mov r12, rax
test rax, rax
je 0x1800d7b03
mov rdx, rax
mov rcx, r14
call fcn.1800d1d00
test eax, eax
jne 0x1800d7b03
cmp byte [r12 + 0x3f], 2
lea r9, str.view
cmovne r9, rsi
cmp byte [r12 + 0x3f], 1
jne 0x1800d71d0
lea r9, str.virtual_table
jmp 0x1800d71d5
test r9, r9
je 0x1800d71f9
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.1800817d0
jmp 0x1800d7b03
mov rdx, rbx
mov rcx, rbp
call fcn.1800dd230
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800d7b03
mov rdx, rax
mov qword [rsp + 0x78], r13
mov rcx, r12
call fcn.180106820
movsxd r13, eax
mov dword [rsp + 0x44], r13d
test eax, eax
jns 0x1800d7245
mov r8, rbx
lea rdx, str.no_such_column:___T_
mov rcx, r14
call fcn.1800817d0
jmp 0x1800d7af1
mov rax, qword [r12 + 8]
lea rcx, [r13*2]
add rcx, r13
mov qword [rsp + 0x70], r15
lea r15, [rcx*8]
movzx ecx, word [rax + rcx*8 + 0x12]
test cl, 9
je 0x1800d729a
mov r9, qword [rsp + 0x50]
lea rax, str.PRIMARY_KEY
test cl, 1
lea r8, str.UNIQUE
lea rdx, str.cannot_drop__s_column:___s_
mov rcx, r14
cmovne r8, rax
call fcn.1800817d0
jmp 0x1800d7aec
cmp word [r12 + 0x36], 1
jg 0x1800d72bc
mov r8, qword [rsp + 0x50]
lea rdx, str.cannot_drop_column___s_:_no_other_columns_exist
mov rcx, r14
call fcn.1800817d0
jmp 0x1800d7aec
mov rcx, qword [r12 + 0x60]
mov edi, 0xffff8000
test rcx, rcx
je 0x1800d72eb
mov rax, qword [rbp + 0x20]
mov edi, esi
add rax, 0x18
cmp qword [rax], rcx
je 0x1800d72eb
nop word [rax + rax]
inc edi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1800d72e0
mov rax, qword [rbp + 0x20]
mov edx, 0x1a
mov r9, qword [r12]
mov rcx, r14
movsxd rsi, edi
shl rsi, 5
mov rbx, qword [rsi + rax]
mov rax, qword [rsp + 0x50]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.1800db760
test eax, eax
jne 0x1800d7ae4
xor eax, eax
mov byte [r14 + 0x1c], 1
mov ebp, eax
mov dword [rsp + 0x30], eax
lea rax, [0x1801ff6b9]
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 bpl
mov r9, rbx
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov rcx, r14
call fcn.1800dc110
mov r8, rbx
cmp edi, 1
je 0x1800d73a3
xor ecx, ecx
lea r9, [0x1801ff6b9]
mov dword [rsp + 0x20], ecx
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.1800dc110
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.1800dc110
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.1800dc110
jmp 0x1800d73b5
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 rcx, r14
call fcn.1800dc110
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 r8, rbx
mov dword [rsp + 0x20], r13d
mov rcx, r14
call fcn.1800dc110
mov r10, qword [r14 + 0x10]
mov r13d, 2
test r10, r10
je 0x1800d7481
mov rax, qword [r14]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + rsi + 0x18]
movsxd rcx, dword [r10 + 0x90]
mov edx, dword [rax]
inc edx
cmp dword [r10 + 0x94], ecx
jg 0x1800d7424
mov dword [rsp + 0x20], edx
lea r9d, [r13 - 1]
lea edx, [r13 + 0x62]
mov r8d, edi
mov rcx, r10
call fcn.1800aba20
jmp 0x1800d7458
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov dword [rax + rcx*8], 0x64
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], 1
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [r14 + 0x10]
mov r9d, r13d
xor r8d, r8d
mov edx, edi
call fcn.1800ac140
cmp edi, 1
je 0x1800d7481
mov rcx, qword [r14 + 0x10]
xor r8d, r8d
mov r9d, r13d
lea edx, [r8 + 1]
call fcn.1800ac140
mov dword [rsp + 0x30], 1
lea rsi, str.after_drop_column
mov qword [rsp + 0x28], rsi
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], ebp
mov r8, rbx
mov byte [r14 + 0x1c], 1
mov rcx, r14
call fcn.1800dc110
cmp edi, 1
je 0x1800d74d5
mov r9, rsi
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.1800dc110
cmp dword [r14 + 0x30], 0
jne 0x1800d7adf
mov rax, qword [r12 + 8]
test byte [r15 + rax + 0x12], 0x20
jne 0x1800d7adf
mov rbx, qword [r14 + 0x10]
xor ebp, ebp
mov esi, ebp
mov r15d, ebp
test rbx, rbx
jne 0x1800d7523
cmp qword [r14 + 0xb0], rbp
jne 0x1800d7518
mov rax, qword [r14]
test byte [rax + 0x60], 8
jne 0x1800d7518
mov byte [r14 + 0x23], 1
mov rcx, r14
call fcn.1800ab730
mov rbx, rax
mov r13d, dword [r14 + 0x34]
mov r9, r12
mov r8d, edi
mov dword [rsp + 0x20], WSACleanup
mov edx, r13d
lea ecx, [r13 + 1]
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.1800f3580
movsxd r8, dword [rbx + 0x90]
lea rdx, [rbx + 0x88]
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x58], rdx
cmp dword [rbx + 0x94], r8d
jg 0x1800d758f
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov r8d, r13d
mov rcx, rbx
lea edx, [r9 + 0x24]
call fcn.1800aba20
mov dword [rsp + 0x48], eax
lea rdx, [rbx + 0x88]
xor r11d, r11d
jmp 0x1800d75be
lea rcx, [r8 + r8*2]
mov qword [rsp + 0x58], rdx
lea eax, [r8 + 1]
xor r11d, r11d
mov dword [rbx + 0x90], eax
mov rax, qword [rdx]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], r13d
mov qword [rax + rcx*8 + 8], r11
mov qword [rax + rcx*8 + 0x10], r11
mov ebp, dword [r14 + 0x38]
inc ebp
mov dword [r14 + 0x38], ebp
test byte [r12 + 0x30], 0x80
mov dword [rsp + 0x40], ebp
jne 0x1800d7646
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d760d
mov r9d, ebp
mov dword [rsp + 0x20], r11d
mov r8d, r13d
mov edx, 0x87
mov rcx, rbx
call fcn.1800aba20
movsx eax, word [r12 + 0x36]
xor r11d, r11d
add eax, dword [r14 + 0x38]
jmp 0x1800d7708
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdx]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
movsx eax, word [r12 + 0x36]
add eax, dword [r14 + 0x38]
jmp 0x1800d7708
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x1800d7662
mov eax, dword [rsi + 0x64]
and al, 3
cmp al, 2
je 0x1800d7662
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1800d7650
movzx eax, word [rsi + 0x60]
mov edi, r11d
add eax, ebp
mov dword [r14 + 0x38], eax
movzx ecx, word [rsi + 0x5e]
cmp r11w, cx
jae 0x1800d7704
lea r15d, [rbp + 1]
mov rbp, qword [rsp + 0x58]
nop word [rax + rax]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d76bf
lea eax, [r15 + rdi]
mov r9d, edi
mov r8d, r13d
mov dword [rsp + 0x20], eax
mov edx, 0x5e
mov rcx, rbx
call fcn.1800aba20
xor r11d, r11d
jmp 0x1800d76ef
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, [r15 + rdi]
mov qword [rdx + 0x10], r11
mov dword [rdx + 0xc], eax
movzx eax, word [rsi + 0x5e]
inc edi
cmp edi, eax
jl 0x1800d7690
mov ebp, dword [rsp + 0x40]
movzx ecx, ax
mov eax, dword [r14 + 0x38]
movzx r15d, cx
inc eax
mov edi, r11d
mov dword [r14 + 0x38], eax
mov dword [rsp + 0xc8], eax
cmp r11w, word [r12 + 0x36]
jge 0x1800d78ae
mov r14, qword [rsp + 0x58]
mov r10d, 0xffffffff
mov r9d, dword [rsp + 0x44]
cmp edi, r9d
je 0x1800d7896
mov r11, qword [r12 + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rcx, [rcx*8]
add r11, rcx
mov qword [rsp + 0x58], rcx
test byte [r11 + 0x12], 0x20
jne 0x1800d7888
test rsi, rsi
je 0x1800d77c6
movzx edx, word [rsi + 0x60]
xor ecx, ecx
test edx, edx
je 0x1800d7790
mov r8, qword [rsi + 8]
nop word [rax + rax]
movsxd rax, ecx
cmp di, word [r8 + rax*2]
je 0x1800d7794
inc ecx
cmp ecx, edx
jl 0x1800d7780
movzx ecx, r10w
movzx eax, word [rsi + 0x5e]
movsx r10d, cx
cmp r10d, eax
jl 0x1800d788d
movzx edx, r9w
mov rcx, rsi
call fcn.1800dd7c0
movsx ecx, ax
xor edx, edx
cmp r10d, ecx
mov eax, edx
setg al
sub r10d, eax
add r10d, ebp
jmp 0x1800d77cc
lea r10d, [r15 + rbp]
xor edx, edx
movsx eax, word [r12 + 0x34]
inc r10d
cmp edi, eax
jne 0x1800d7842
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d780e
xor r8d, r8d
mov dword [rsp + 0x20], edx
mov r9d, r10d
mov rcx, rbx
lea edx, [r8 + 0x4b]
call fcn.1800aba20
mov r9d, dword [rsp + 0x44]
xor r11d, r11d
inc r15d
jmp 0x1800d7890
mov r9d, dword [rsp + 0x44]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
xor r11d, r11d
inc r15d
mov qword [rax + rcx*8], 0x4b
mov dword [rax + rcx*8 + 8], r10d
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
jmp 0x1800d7890
movzx ebp, byte [r11 + 0xc]
cmp bpl, 0x45
jne 0x1800d7852
mov byte [r11 + 0xc], 0x43
mov r9d, edi
mov dword [rsp + 0x20], r10d
mov r8d, r13d
mov rdx, r12
mov rcx, rbx
call fcn.1800cc8e0
mov rax, qword [r12 + 8]
xor r11d, r11d
mov rcx, qword [rsp + 0x58]
inc r15d
mov r9d, dword [rsp + 0x44]
mov byte [rcx + rax + 0xc], bpl
mov ebp, dword [rsp + 0x40]
jmp 0x1800d7890
xor r11d, r11d
jmp 0x1800d7896
xor r11d, r11d
mov r10d, 0xffffffff
movsx eax, word [r12 + 0x36]
inc edi
cmp edi, eax
jl 0x1800d7734
mov r14, qword [rsp + 0xb0]
test r15d, r15d
jne 0x1800d7917
inc dword [r14 + 0x38]
lea r8d, [rbp + 1]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d78e6
mov r9d, r8d
mov dword [rsp + 0x20], r11d
xor r8d, r8d
lea edx, [r15 + 0x4b]
mov rcx, rbx
call fcn.1800aba20
xor r11d, r11d
jmp 0x1800d7911
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], r8d
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov r15d, 1
movsxd rcx, dword [rbx + 0x90]
lea edi, [rbp + 1]
cmp dword [rbx + 0x94], ecx
jg 0x1800d7954
mov eax, dword [rsp + 0xc8]
mov r9d, r15d
mov r8d, edi
mov dword [rsp + 0x20], eax
mov edx, 0x61
mov rcx, rbx
call fcn.1800aba20
mov r8d, dword [rsp + 0xc8]
xor r11d, r11d
jmp 0x1800d798a
mov r8d, dword [rsp + 0xc8]
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], r15d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r11
movsxd rcx, dword [rbx + 0x90]
test rsi, rsi
je 0x1800d79e7
movzx edx, word [rsi + 0x5e]
cmp dword [rbx + 0x94], ecx
jg 0x1800d79c2
mov dword [rsp + 0x28], edx
mov r9d, r8d
mov r8d, r13d
mov dword [rsp + 0x20], edi
mov edx, 0x8a
mov rcx, rbx
call fcn.1800aba80
xor r11d, r11d
jmp 0x1800d7a39
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0xfd8a
mov dword [rax + rcx*8 + 0xc], edi
mov dword [rax + rcx*8 + 0x10], edx
jmp 0x1800d7a2f
cmp dword [rbx + 0x94], ecx
jg 0x1800d7a0b
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, r13d
mov edx, 0x80
mov rcx, rbx
call fcn.1800aba20
xor r11d, r11d
jmp 0x1800d7a39
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r11
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 4], r13d
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x1800d7a56
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], 2
movsxd rdi, dword [rsp + 0x48]
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cmp dword [rbx + 0x94], ecx
jg 0x1800d7a87
mov r9d, edx
mov dword [rsp + 0x20], r11d
mov edx, 0x27
mov r8d, r13d
mov rcx, rbx
call fcn.1800aba20
jmp 0x1800d7ab5
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
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], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rbx]
mov ecx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x1800d7acd
lea rax, [0x180254470]
jmp 0x1800d7adc
mov rax, qword [rbx + 0x88]
lea rdx, [rdi + rdi*2]
lea rax, [rax + rdx*8]
mov dword [rax + 8], ecx
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xb8]
mov r15, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
mov rcx, rbp
call fcn.18007d740
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x80]
mov rdx, rdi
mov rcx, rbp
add rsp, 0x88
pop r14
pop rdi
pop rbp
pop rbx
jmp fcn.1800e5350