Function at 0x1006abb0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

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 0x1006b41e
mov edx, dword [edi + 8]
test edx, edx
je 0x1006abff
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov esi, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x1006abf8
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1006abf0
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x1006ac02
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.1006f660
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
je 0x1006b41e
mov edx, esi
mov ecx, ebx
call fcn.10066820
test eax, eax
jne 0x1006b41e
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x1006ac4c
mov ecx, str.virtual_table
jmp 0x1006ac50
test ecx, ecx
je 0x1006ac78
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.10022520
mov ecx, dword [esp + 0x34]
add esp, 0x14
mov edx, edi
call fcn.10077640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x1006b41a
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x1006accc
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.1001ec70
mov esi, eax
add esp, 8
test esi, esi
je 0x1006acce
push dword [esp + 0x3c]
push dword [esp + 0x48]
push esi
call fcn.1012b000
mov eax, dword [esp + 0x48]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x1006acce
xor esi, esi
mov ecx, esi
call fcn.100225b0
test esi, esi
je 0x1006b41a
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.100933d0
mov dword [esp + 0x34], eax
test eax, eax
jns 0x1006ad06
push edi
push str.no_such_column:___T_
push ebx
call fcn.10022520
add esp, 0xc
mov eax, esi
jmp 0x1006b40f
mov edx, dword [esp + 0x10]
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 0x1006ad45
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.10022520
add esp, 0x10
mov eax, esi
jmp 0x1006b40f
cmp word [edx + 0x22], 1
jg 0x1006ad62
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.10022520
add esp, 0xc
mov eax, esi
jmp 0x1006b40f
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x1006ad98
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 0x1006ad98
mov dword [esp + 0x1c], esi
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x1006ad90
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.1006e730
add esp, 0xc
test eax, eax
jne 0x1006b40b
push 0
push 0x1015571b
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.1006f180
add esp, 0x1c
cmp edi, 1
je 0x1006ae22
push 0
push 0x1015571b
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.1006f180
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.1006f180
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.1006f180
add esp, 0x18
jmp 0x1006ae32
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.1006f180
add esp, 0x10
mov eax, dword [esp + 0x10]
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.1006f180
push 2
mov edx, edi
mov ecx, ebx
call fcn.100668f0
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.1006f180
add esp, 0x1c
cmp edi, 1
je 0x1006ae91
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.1006f180
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x1006b40b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x1006b40b
mov edx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov esi, dword [edx + 8]
test esi, esi
jne 0x1006aee0
cmp dword [edx + 0x78], ebx
jne 0x1006aed3
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x1006aed3
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.10043ca0
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [edx + 0x28]
push 0x71
push dword [esp + 0x14]
mov dword [esp + 0x14], 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.10083760
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 0x1006af38
push 0
push 0
push dword [esp + 0x14]
mov edx, 0x24
mov ecx, esi
call fcn.10043ee0
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x1006af65
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0xc]
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 + 0x10]
inc eax
mov dword [edi + 0x2c], eax
mov dword [esp + 0x14], eax
test byte [ecx + 0x1c], 0x80
jne 0x1006afdf
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006afa5
push 0
push eax
push edx
mov edx, 0x87
mov ecx, esi
call fcn.10043ee0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movsx edx, word [ecx + 0x22]
add edx, dword [edi + 0x2c]
jmp 0x1006b0a3
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 + 0x10]
movsx edx, word [ecx + 0x22]
add edx, dword [edi + 0x2c]
jmp 0x1006b0a3
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x1006aff6
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x1006aff6
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x1006afe6
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 + 0x10]
jae 0x1006b094
nop word [eax + eax]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006b046
mov eax, dword [esp + 0x14]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push dword [esp + 0x14]
call fcn.10043ee0
add esp, 0xc
jmp 0x1006b07c
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 + 0xc]
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 0x1006b020
mov edi, dword [esp + 0x18]
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x2c]
jmp 0x1006b09c
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 0x1006b1f8
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x38], ecx
nop dword [eax]
cmp edx, dword [esp + 0x34]
je 0x1006b1dc
mov eax, dword [edi + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x1006b1dc
test ebx, ebx
je 0x1006b149
movzx eax, word [ebx + 0x34]
xor ecx, ecx
mov dword [esp + 0x44], eax
test eax, eax
je 0x1006b10f
mov eax, dword [ebx + 4]
nop dword [eax]
cmp dx, word [eax]
je 0x1006b144
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x44]
jl 0x1006b100
or eax, 0xffffffff
movsx ecx, ax
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x44], ecx
cmp ecx, eax
jl 0x1006b1d8
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.10070410
mov edx, dword [esp + 0x44]
xor ecx, ecx
cwde
cmp edx, eax
setg cl
sub edx, ecx
add edx, dword [esp + 0x14]
jmp 0x1006b151
movzx eax, cx
jmp 0x1006b112
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 0x1006b1be
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006b182
push 0
push dword [esp + 0x48]
mov edx, 0x4b
mov ecx, esi
push 0
call fcn.10043ee0
jmp 0x1006b1cd
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 + 0x10]
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 0x1006b1d4
push ecx
push edx
push dword [esp + 0x14]
mov edx, edi
mov ecx, esi
call fcn.10061b60
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 0x1006b0d0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x1006b258
inc dword [edi + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
cmp dword [esi + 0x70], ecx
jg 0x1006b224
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.10043ee0
add esp, 0xc
jmp 0x1006b253
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 0x1006b280
push dword [esp + 0x28]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.10043ee0
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp 0x1006b2ab
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
test ebx, ebx
je 0x1006b36b
movzx ebx, word [ebx + 0x32]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x44], ebx
cmp dword [esi + 0x70], edx
jg 0x1006b2df
push edi
push dword [esp + 0x2c]
mov edx, 0x8a
mov ecx, esi
push dword [esp + 0x14]
call fcn.10043ee0
add esp, 0xc
mov edx, eax
jmp 0x1006b312
mov ebx, dword [esp + 0xc]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*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 + 0x44]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x1006b329
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x1006b344
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 0x1006b3be
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.10043ee0
add esp, 0xc
jmp 0x1006b3ed
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esp + 0xc]
cmp dword [esi + 0x70], ecx
jg 0x1006b38e
push dword [esp + 0x14]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.10043ee0
add esp, 0xc
jmp 0x1006b32d
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
jmp 0x1006b32d
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 0x1006b3ff
mov eax, 0x10168a60
jmp 0x1006b408
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.1001e7d0
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.10077640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret