Function at 0x1800d7260
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 r15
sub rsp, 0x88
mov rbp, qword [rcx]
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x60], rbp
mov r15, rcx
cmp byte [rbp + 0x67], 0
jne 0x1800d7c8d
mov r9, qword [rdx + 8]
mov qword [rax + 0x18], rsi
xor esi, esi
mov qword [rax - 0x28], r12
test r9, r9
je 0x1800d72cd
mov rdx, qword [rbp + 0x20]
mov ecx, esi
cmp qword [rdx + 0x18], r9
lea rax, [rdx + 0x18]
je 0x1800d72c0
inc ecx
lea rax, [rax + 0x20]
cmp qword [rax], r9
jne 0x1800d72b5
movsxd rax, ecx
shl rax, 5
mov r9, qword [rax + rdx]
jmp 0x1800d72d1
mov r9, qword [rdx + 0x10]
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rcx, r15
call fcn.1800dc870
mov qword [rsp + 0x40], rax
mov r12, rax
test rax, rax
je 0x1800d7c7d
mov rdx, rax
mov rcx, r15
call fcn.1800d1d80
test eax, eax
jne 0x1800d7c7d
cmp byte [r12 + 0x3f], 2
lea r9, str.view
cmovne r9, rsi
cmp byte [r12 + 0x3f], 1
jne 0x1800d7325
lea r9, str.virtual_table
jmp 0x1800d732a
test r9, r9
je 0x1800d734e
mov rax, qword [r12]
lea r8, str.drop_column_from
lea rdx, str.cannot__s__s___s_
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.180081660
jmp 0x1800d7c7d
mov rdx, rbx
mov rcx, rbp
call fcn.1800dd500
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800d7c7d
mov rdx, rax
mov qword [rsp + 0x78], r13
mov rcx, r12
call fcn.180106c00
movsxd r13, eax
mov dword [rsp + 0x48], r13d
test eax, eax
jns 0x1800d739a
mov r8, rbx
lea rdx, str.no_such_column:___T_
mov rcx, r15
call fcn.180081660
jmp 0x1800d7c6b
mov rax, qword [r12 + 8]
lea rcx, [r13*2]
add rcx, r13
mov qword [rsp + 0x70], r14
lea r14, [rcx*8]
movzx ecx, word [rax + rcx*8 + 0x12]
test cl, 9
je 0x1800d73ef
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, r15
cmovne r8, rax
call fcn.180081660
jmp 0x1800d7c66
cmp word [r12 + 0x36], 1
jg 0x1800d7411
mov r8, qword [rsp + 0x50]
lea rdx, str.cannot_drop_column___s_:_no_other_columns_exist
mov rcx, r15
call fcn.180081660
jmp 0x1800d7c66
mov rcx, qword [r12 + 0x60]
mov edi, 0xffff8000
test rcx, rcx
je 0x1800d743b
mov rax, qword [rbp + 0x20]
mov edi, esi
add rax, 0x18
cmp qword [rax], rcx
je 0x1800d743b
nop
inc edi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1800d7430
mov rax, qword [rbp + 0x20]
mov edx, 0x1a
mov r9, qword [r12]
mov rcx, r15
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.1800db900
test eax, eax
jne 0x1800d7c5e
xor eax, eax
mov byte [r15 + 0x1c], 1
mov ebp, eax
mov dword [rsp + 0x30], eax
lea rax, [0x1801fc629]
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, r15
call fcn.1800dc2b0
mov r8, rbx
cmp edi, 1
je 0x1800d74f3
xor ecx, ecx
lea r9, [0x1801fc629]
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, r15
call fcn.1800dc2b0
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.1800dc2b0
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.1800dc2b0
jmp 0x1800d7505
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, r15
call fcn.1800dc2b0
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, r15
call fcn.1800dc2b0
mov r10, qword [r15 + 0x10]
mov r13d, 2
test r10, r10
je 0x1800d75d5
mov rax, qword [r15]
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 0x1800d7577
mov dword [rsp + 0x20], edx
mov r9d, 1
mov edx, 0x64
mov r8d, edi
mov rcx, r10
call fcn.1800ab9f0
jmp 0x1800d75ab
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 [r15 + 0x10]
mov r9d, r13d
xor r8d, r8d
mov edx, edi
call fcn.1800ac110
cmp edi, 1
je 0x1800d75d5
mov rcx, qword [r15 + 0x10]
mov r9d, r13d
xor r8d, r8d
mov edx, 1
call fcn.1800ac110
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 [r15 + 0x1c], 1
mov rcx, r15
call fcn.1800dc2b0
cmp edi, 1
je 0x1800d7629
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, r15
call fcn.1800dc2b0
cmp dword [r15 + 0x30], 0
jne 0x1800d7c59
mov rax, qword [r12 + 8]
test byte [r14 + rax + 0x12], 0x20
jne 0x1800d7c59
mov rbx, qword [r15 + 0x10]
xor esi, esi
mov ebp, esi
mov r14d, esi
test rbx, rbx
jne 0x1800d7677
cmp qword [r15 + 0xb0], rsi
jne 0x1800d766c
mov rax, qword [r15]
test byte [rax + 0x60], 8
jne 0x1800d766c
mov byte [r15 + 0x23], 1
mov rcx, r15
call fcn.1800ab700
mov rbx, rax
mov r13d, dword [r15 + 0x34]
mov r9, r12
mov r8d, edi
mov dword [rsp + 0x20], WSACleanup
mov edx, r13d
lea ecx, [r13 + 1]
mov dword [r15 + 0x34], ecx
mov rcx, r15
call fcn.1800f38f0
movsxd r8, dword [rbx + 0x90]
lea rdx, [rbx + 0x88]
mov dword [rsp + 0x4c], r8d
mov qword [rsp + 0x58], rdx
cmp dword [rbx + 0x94], r8d
jg 0x1800d76e4
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r13d
mov edx, 0x24
mov rcx, rbx
call fcn.1800ab9f0
mov dword [rsp + 0x4c], eax
lea rdx, [rbx + 0x88]
xor r9d, r9d
jmp 0x1800d7713
lea rcx, [r8 + r8*2]
mov qword [rsp + 0x58], rdx
lea eax, [r8 + 1]
xor r9d, r9d
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], r9
mov qword [rax + rcx*8 + 0x10], r9
mov r11d, dword [r15 + 0x38]
inc r11d
mov dword [r15 + 0x38], r11d
test byte [r12 + 0x30], 0x80
mov dword [rsp + 0xc8], r11d
jne 0x1800d77a9
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d776f
mov dword [rsp + 0x20], r9d
mov r8d, r13d
mov r9d, r11d
mov edx, 0x87
mov rcx, rbx
call fcn.1800ab9f0
movsx eax, word [r12 + 0x36]
xor r9d, r9d
add eax, dword [r15 + 0x38]
mov r11d, dword [rsp + 0xc8]
jmp 0x1800d786f
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], r11d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsx eax, word [r12 + 0x36]
add eax, dword [r15 + 0x38]
jmp 0x1800d786f
mov rbp, qword [r12 + 0x10]
test rbp, rbp
je 0x1800d77c5
mov eax, dword [rbp + 0x64]
and al, 3
cmp al, 2
je 0x1800d77c5
mov rbp, qword [rbp + 0x28]
test rbp, rbp
jne 0x1800d77b3
movzx eax, word [rbp + 0x60]
mov edi, r9d
add eax, r11d
mov dword [r15 + 0x38], eax
movzx ecx, word [rbp + 0x5e]
cmp r9w, cx
jae 0x1800d786b
mov r12, qword [rsp + 0x58]
lea esi, [r11 + 1]
nop word [rax + rax]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d781e
lea eax, [rsi + rdi]
mov r9d, edi
mov r8d, r13d
mov dword [rsp + 0x20], eax
mov edx, 0x5e
mov rcx, rbx
call fcn.1800ab9f0
xor r9d, r9d
jmp 0x1800d784d
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
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, [rsi + rdi]
mov qword [rdx + 0x10], r9
mov dword [rdx + 0xc], eax
movzx eax, word [rbp + 0x5e]
inc edi
cmp edi, eax
jl 0x1800d77f0
mov r12, qword [rsp + 0x40]
movzx ecx, ax
mov eax, dword [r15 + 0x38]
mov r11d, dword [rsp + 0xc8]
movzx r14d, cx
inc eax
mov esi, r9d
mov dword [r15 + 0x38], eax
mov dword [rsp + 0x40], eax
cmp r9w, word [r12 + 0x36]
jge 0x1800d7a1a
mov edi, dword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
cmp esi, edi
je 0x1800d7a02
mov r10, qword [r12 + 8]
movsxd rax, esi
lea rcx, [rax + rax*2]
lea rcx, [rcx*8]
add r10, rcx
mov qword [rsp + 0x58], rcx
test byte [r10 + 0x12], 0x20
jne 0x1800d7a02
test rbp, rbp
je 0x1800d793a
movzx edx, word [rbp + 0x60]
mov ecx, r9d
test edx, edx
je 0x1800d78e4
mov r8, qword [rbp + 8]
movsxd rax, ecx
cmp si, word [r8 + rax*2]
je 0x1800d7932
inc ecx
cmp ecx, edx
jl 0x1800d78d4
xor ecx, ecx
mov eax, 0xffffffff
mov r9d, eax
test edx, edx
je 0x1800d790b
mov r8, qword [rbp + 8]
movsxd rax, ecx
cmp di, word [r8 + rax*2]
je 0x1800d790e
inc ecx
cmp ecx, edx
jl 0x1800d78f6
mov eax, 0xffffffff
movzx ecx, ax
movzx eax, word [rbp + 0x5e]
cmp r9d, eax
jl 0x1800d79ff
movsx eax, cx
xor r8d, r8d
cmp r9d, eax
mov ecx, r8d
setg cl
sub r9d, ecx
add r9d, r11d
jmp 0x1800d7941
movsx r9d, cx
xor ecx, ecx
jmp 0x1800d78f2
lea r9d, [r11 + r14]
xor r8d, r8d
movsx eax, word [r12 + 0x34]
lea edx, [r9 + 1]
cmp esi, eax
jne 0x1800d79b7
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d7989
mov dword [rsp + 0x20], r8d
mov r9d, edx
xor r8d, r8d
mov edx, 0x4b
mov rcx, rbx
call fcn.1800ab9f0
mov r11d, dword [rsp + 0xc8]
xor r9d, r9d
inc r14d
jmp 0x1800d7a02
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r15]
inc r14d
mov qword [rax + rcx*8], 0x4b
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x1800d7a02
movzx edi, byte [r10 + 0xc]
cmp dil, 0x45
jne 0x1800d79c7
mov byte [r10 + 0xc], 0x43
mov dword [rsp + 0x20], edx
mov r9d, esi
mov rdx, r12
mov r8d, r13d
mov rcx, rbx
call fcn.1800cc900
mov rax, qword [r12 + 8]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
inc r14d
mov r11d, dword [rsp + 0xc8]
mov byte [rcx + rax + 0xc], dil
mov edi, dword [rsp + 0x48]
jmp 0x1800d7a02
xor r9d, r9d
movsx eax, word [r12 + 0x36]
inc esi
cmp esi, eax
jl 0x1800d7891
mov r15, qword [rsp + 0xb0]
test r14d, r14d
jne 0x1800d7a8c
inc dword [r15 + 0x38]
lea r8d, [r11 + 1]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1800d7a5b
mov dword [rsp + 0x20], r9d
mov edx, 0x4b
mov r9d, r8d
mov rcx, rbx
xor r8d, r8d
call fcn.1800ab9f0
mov r11d, dword [rsp + 0xc8]
xor r9d, r9d
jmp 0x1800d7a86
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], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov r14d, 1
movsxd rcx, dword [rbx + 0x90]
lea edi, [r11 + 1]
cmp dword [rbx + 0x94], ecx
jg 0x1800d7acc
mov eax, dword [rsp + 0x40]
mov r9d, r14d
mov r8d, edi
mov dword [rsp + 0x20], eax
mov edx, 0x61
mov rcx, rbx
call fcn.1800ab9f0
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov r11d, dword [rsp + 0xc8]
jmp 0x1800d7aff
mov r8d, dword [rsp + 0x40]
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], r14d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rbx + 0x90]
test rbp, rbp
je 0x1800d7b5f
movzx edx, word [rbp + 0x5e]
cmp dword [rbx + 0x94], ecx
jg 0x1800d7b3a
mov dword [rsp + 0x28], edx
mov r9d, r8d
mov r8d, r13d
mov dword [rsp + 0x20], edi
mov edx, 0x8a
mov rcx, rbx
call fcn.1800aba50
xor r9d, r9d
jmp 0x1800d7bb3
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 0x1800d7ba9
cmp dword [rbx + 0x94], ecx
jg 0x1800d7b84
mov r9d, r8d
mov dword [rsp + 0x20], r11d
mov r8d, r13d
mov edx, 0x80
mov rcx, rbx
call fcn.1800ab9f0
xor r9d, r9d
jmp 0x1800d7bb3
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], r11d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 4], r13d
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x1800d7bd0
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], 2
movsxd rdi, dword [rsp + 0x4c]
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cmp dword [rbx + 0x94], ecx
jg 0x1800d7c01
mov dword [rsp + 0x20], r9d
mov r8d, r13d
mov r9d, edx
mov rcx, rbx
mov edx, 0x27
call fcn.1800ab9f0
jmp 0x1800d7c2f
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], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
mov ecx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x1800d7c47
lea rax, [0x180251970]
jmp 0x1800d7c56
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 r14, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
mov rcx, rbp
call fcn.18007d5d0
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 r15
pop rdi
pop rbp
pop rbx
jmp fcn.1800e56c0