Function at 0x6a0810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x18], ebx
mov edx, dword [ebx]
mov dword [esp + 0x40], edi
mov dword [esp + 0x20], edx
cmp byte [edx + 0x57], 0
jne 0x6a104a
mov edx, dword [edi + 8]
test edx, edx
je 0x6a085f
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov esi, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x6a0858
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x6a0850
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x6a0862
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.006a4e20
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
test esi, esi
je 0x6a104a
mov edx, esi
mov ecx, ebx
call fcn.0069c8f0
test eax, eax
jne 0x6a104a
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x6a08ac
mov ecx, str.virtual_table
jmp 0x6a08b0
test ecx, ecx
je 0x6a08d8
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.00658480
mov ecx, dword [esp + 0x34]
add esp, 0x14
mov edx, edi
call fcn.006ac830
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x6a1046
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x6a092c
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00654db0
mov esi, eax
add esp, 8
test esi, esi
je 0x6a092e
push dword [esp + 0x3c]
push dword [esp + 0x48]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x48]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x6a092e
xor esi, esi
mov ecx, esi
call fcn.00658510
test esi, esi
je 0x6a1046
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.006c7840
mov dword [esp + 0x34], eax
test eax, eax
jns 0x6a0966
push edi
push str.no_such_column:___T_
push ebx
call fcn.00658480
add esp, 0xc
mov eax, esi
jmp 0x6a103b
mov edx, dword [esp + 0xc]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 4]
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x6a09a5
test al, 1
mov ecx, str.UNIQUE
push esi
mov eax, str.PRIMARY_KEY
cmove eax, ecx
push eax
push str.cannot_drop__s_column:___s_
push ebx
call fcn.00658480
add esp, 0x10
mov eax, esi
jmp 0x6a103b
cmp word [edx + 0x22], 1
jg 0x6a09c2
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.00658480
add esp, 0xc
mov eax, esi
jmp 0x6a103b
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x6a09f8
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x6a09f8
mov dword [esp + 0x1c], esi
lea ebx, [ebx]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x6a09f0
mov eax, dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x1c]
add ecx, ecx
push dword [edx]
mov eax, dword [eax + 0x10]
mov edx, 0x1a
mov esi, dword [eax + ecx*8]
mov ecx, ebx
push esi
call fcn.006a3fd0
add esp, 0xc
test eax, eax
jne 0x6a1037
push 0
push 0x775914
cmp edi, 1
mov byte [ebx + 0x10], 1
sete al
push eax
push esi
push esi
push 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
push ebx
mov dword [esp + 0x60], eax
call fcn.006a4990
add esp, 0x1c
cmp edi, 1
je 0x6a0a82
push 0
push 0x775914
push esi
push 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
push ebx
call fcn.006a4990
add esp, 0x14
push esi
push esi
push 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__
push ebx
call fcn.006a4990
push 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__
push ebx
call fcn.006a4990
add esp, 0x18
jmp 0x6a0a92
push esi
push esi
push 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__
push ebx
call fcn.006a4990
add esp, 0x10
mov eax, dword [esp + 0xc]
push dword [eax]
push dword [esp + 0x38]
push edi
push esi
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_drop_column__d__sql___d__WHERE__typetable_AND_tbl_name_Q_COLLATE_nocase_
push ebx
call fcn.006a4990
push 2
mov edx, edi
mov ecx, ebx
call fcn.0069c9c0
add esp, 0x1c
mov byte [ebx + 0x10], 1
push 1
push str.after_drop_column
push dword [esp + 0x4c]
push esi
push esi
push 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
push ebx
call fcn.006a4990
add esp, 0x1c
cmp edi, 1
je 0x6a0af1
push 1
push str.after_drop_column
push esi
push 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
push ebx
call fcn.006a4990
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x6a1037
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x6a1037
mov edx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov esi, dword [edx + 8]
test esi, esi
jne 0x6a0b40
cmp dword [edx + 0x7c], ebx
jne 0x6a0b33
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x6a0b33
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.0067aae0
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [edx + 0x28]
push 0x71
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea ecx, [eax + 1]
mov dword [edx + 0x28], ecx
mov edx, eax
push edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.006b7cb0
mov ecx, dword [esi + 0x6c]
lea edx, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x70], ecx
jg 0x6a0b98
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x24
mov ecx, esi
call fcn.0067ad20
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x6a0bc5
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
lea eax, [esi + 0x68]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0xc]
inc eax
mov dword [edi + 0x2c], eax
mov dword [esp + 0x14], eax
test byte [ecx + 0x1c], 0x80
jne 0x6a0c3f
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x6a0c05
push 0
push eax
push edx
mov edx, 0x87
mov ecx, esi
call fcn.0067ad20
mov ecx, dword [esp + 0x18]
add esp, 0xc
movsx edx, word [ecx + 0x22]
add edx, dword [edi + 0x2c]
jmp 0x6a0d03
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [esp + 0xc]
movsx edx, word [ecx + 0x22]
add edx, dword [edi + 0x2c]
jmp 0x6a0d03
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x6a0c56
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x6a0c56
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x6a0c46
movzx eax, word [ebx + 0x34]
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [edi + 0x2c], edx
xor edi, edi
movzx eax, word [ebx + 0x32]
mov ecx, eax
mov dword [esp + 0x44], ecx
xor ecx, ecx
cmp cx, ax
mov ecx, dword [esp + 0xc]
jae 0x6a0cf4
lea ebx, [ebx]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x6a0ca6
mov eax, dword [esp + 0x14]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push dword [esp + 0x18]
call fcn.0067ad20
add esp, 0xc
jmp 0x6a0cdc
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
inc eax
add eax, edi
mov dword [ecx + 0xc], eax
movzx ecx, word [ebx + 0x32]
inc edi
cmp edi, ecx
jl 0x6a0c80
mov edi, dword [esp + 0x18]
mov eax, ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0x2c]
jmp 0x6a0cfc
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
movzx eax, ax
mov dword [esp + 0x24], eax
lea eax, [edx + 1]
xor edx, edx
mov dword [edi + 0x2c], eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x30], edx
cmp ax, word [ecx + 0x22]
jge 0x6a0e58
mov edi, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x38], ecx
lea esp, [esp]
cmp edx, dword [esp + 0x34]
je 0x6a0e3c
mov eax, dword [edi + 4]
test byte [eax + ecx + 0xe], 0x20
jne 0x6a0e3c
test ebx, ebx
je 0x6a0da9
movzx eax, word [ebx + 0x34]
xor ecx, ecx
mov dword [esp + 0x44], eax
test eax, eax
je 0x6a0d6f
mov eax, dword [ebx + 4]
lea ecx, [ecx]
cmp dx, word [eax]
je 0x6a0da4
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x44]
jl 0x6a0d60
or eax, 0xffffffff
movsx ecx, ax
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x44], ecx
cmp ecx, eax
jl 0x6a0e38
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.006a5c40
mov edx, dword [esp + 0x44]
xor ecx, ecx
cwde
cmp edx, eax
setg cl
sub edx, ecx
add edx, dword [esp + 0x14]
jmp 0x6a0db1
movzx eax, cx
jmp 0x6a0d72
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0x24]
movsx eax, word [edi + 0x20]
lea ecx, [edx + 1]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
cmp edx, eax
jne 0x6a0e1e
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x6a0de2
push 0
push dword [esp + 0x48]
mov edx, 0x4b
mov ecx, esi
push 0
call fcn.0067ad20
jmp 0x6a0e2d
mov edi, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0xc]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x6a0e34
push ecx
push edx
push dword [esp + 0x18]
mov edx, edi
mov ecx, esi
call fcn.00697d90
mov edx, dword [esp + 0x3c]
add esp, 0xc
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
movsx eax, word [edi + 0x22]
inc edx
add ecx, 0x10
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
cmp edx, eax
jl 0x6a0d30
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x6a0eb8
inc dword [edi + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
cmp dword [esi + 0x70], ecx
jg 0x6a0e84
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.0067ad20
add esp, 0xc
jmp 0x6a0eb3
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
cmp dword [esi + 0x70], ecx
jg 0x6a0ee0
push dword [esp + 0x28]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.0067ad20
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp 0x6a0f0b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
test ebx, ebx
je 0x6a0f64
movzx edx, word [ebx + 0x32]
mov ebx, dword [esp + 0x10]
cmp dword [esi + 0x70], ecx
jg 0x6a0f37
push edx
push edi
push dword [esp + 0x30]
mov edx, 0x8a
mov ecx, esi
push ebx
call fcn.0067ad60
add esp, 0x10
jmp 0x6a0faf
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xfd8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x6a0faf
mov ebx, dword [esp + 0x10]
cmp dword [esi + 0x70], ecx
jg 0x6a0f84
push dword [esp + 0x14]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.0067ad20
add esp, 0xc
jmp 0x6a0faf
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x6a0fc6
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x6c]
lea edx, [edi + 1]
cmp dword [esi + 0x70], ecx
jg 0x6a0fea
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.0067ad20
add esp, 0xc
jmp 0x6a1019
mov edi, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x6a102b
mov eax, 0x96e3e0
jmp 0x6a1034
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.00654910
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.006ac830
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret