Function at 0x1006aae0
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 0x1006b34e
mov edx, dword [edi + 8]
test edx, edx
je 0x1006ab2f
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov esi, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x1006ab28
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1006ab20
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x1006ab32
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.1006f570
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
je 0x1006b34e
mov edx, esi
mov ecx, ebx
call fcn.10066740
test eax, eax
jne 0x1006b34e
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x1006ab7c
mov ecx, str.virtual_table
jmp 0x1006ab80
test ecx, ecx
je 0x1006aba8
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.100224e0
mov ecx, dword [esp + 0x34]
add esp, 0x14
mov edx, edi
call fcn.10077550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x1006b34a
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x1006abfc
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.1001ec50
mov esi, eax
add esp, 8
test esi, esi
je 0x1006abfe
push dword [esp + 0x3c]
push dword [esp + 0x48]
push esi
call fcn.1012ad80
mov eax, dword [esp + 0x48]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x1006abfe
xor esi, esi
mov ecx, esi
call fcn.10022570
test esi, esi
je 0x1006b34a
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.10093300
mov dword [esp + 0x34], eax
test eax, eax
jns 0x1006ac36
push edi
push str.no_such_column:___T_
push ebx
call fcn.100224e0
add esp, 0xc
mov eax, esi
jmp 0x1006b33f
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 0x1006ac75
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.100224e0
add esp, 0x10
mov eax, esi
jmp 0x1006b33f
cmp word [edx + 0x22], 1
jg 0x1006ac92
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.100224e0
add esp, 0xc
mov eax, esi
jmp 0x1006b33f
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x1006acc8
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 0x1006acc8
mov dword [esp + 0x1c], esi
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x1006acc0
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.1006e640
add esp, 0xc
test eax, eax
jne 0x1006b33b
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.1006f090
add esp, 0x1c
cmp edi, 1
je 0x1006ad52
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.1006f090
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.1006f090
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.1006f090
add esp, 0x18
jmp 0x1006ad62
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.1006f090
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.1006f090
push 2
mov edx, edi
mov ecx, ebx
call fcn.10066810
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.1006f090
add esp, 0x1c
cmp edi, 1
je 0x1006adc1
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.1006f090
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x1006b33b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x1006b33b
mov edx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov esi, dword [edx + 8]
test esi, esi
jne 0x1006ae10
cmp dword [edx + 0x78], ebx
jne 0x1006ae03
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x1006ae03
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.10043c70
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.10083690
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 0x1006ae68
push 0
push 0
push dword [esp + 0x14]
mov edx, 0x24
mov ecx, esi
call fcn.10043eb0
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x1006ae95
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 0x1006af0f
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006aed5
push 0
push eax
push edx
mov edx, 0x87
mov ecx, esi
call fcn.10043eb0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movsx edx, word [ecx + 0x22]
add edx, dword [edi + 0x2c]
jmp 0x1006afd3
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 0x1006afd3
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x1006af26
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x1006af26
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x1006af16
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 0x1006afc4
nop word [eax + eax]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006af76
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.10043eb0
add esp, 0xc
jmp 0x1006afac
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 0x1006af50
mov edi, dword [esp + 0x18]
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x2c]
jmp 0x1006afcc
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 0x1006b128
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x38], ecx
nop dword [eax]
cmp edx, dword [esp + 0x34]
je 0x1006b10c
mov eax, dword [edi + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x1006b10c
test ebx, ebx
je 0x1006b079
movzx eax, word [ebx + 0x34]
xor ecx, ecx
mov dword [esp + 0x44], eax
test eax, eax
je 0x1006b03f
mov eax, dword [ebx + 4]
nop dword [eax]
cmp dx, word [eax]
je 0x1006b074
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x44]
jl 0x1006b030
or eax, 0xffffffff
movsx ecx, ax
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x44], ecx
cmp ecx, eax
jl 0x1006b108
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.10070320
mov edx, dword [esp + 0x44]
xor ecx, ecx
cwde
cmp edx, eax
setg cl
sub edx, ecx
add edx, dword [esp + 0x14]
jmp 0x1006b081
movzx eax, cx
jmp 0x1006b042
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 0x1006b0ee
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006b0b2
push 0
push dword [esp + 0x48]
mov edx, 0x4b
mov ecx, esi
push 0
call fcn.10043eb0
jmp 0x1006b0fd
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 0x1006b104
push ecx
push edx
push dword [esp + 0x14]
mov edx, edi
mov ecx, esi
call fcn.10061ab0
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 0x1006b000
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x1006b188
inc dword [edi + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
cmp dword [esi + 0x70], ecx
jg 0x1006b154
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.10043eb0
add esp, 0xc
jmp 0x1006b183
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 0x1006b1b0
push dword [esp + 0x28]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.10043eb0
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp 0x1006b1db
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 0x1006b29b
movzx ebx, word [ebx + 0x32]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x44], ebx
cmp dword [esi + 0x70], edx
jg 0x1006b20f
push edi
push dword [esp + 0x2c]
mov edx, 0x8a
mov ecx, esi
push dword [esp + 0x14]
call fcn.10043eb0
add esp, 0xc
mov edx, eax
jmp 0x1006b242
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 0x1006b259
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 0x1006b274
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 0x1006b2ee
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.10043eb0
add esp, 0xc
jmp 0x1006b31d
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esp + 0xc]
cmp dword [esi + 0x70], ecx
jg 0x1006b2be
push dword [esp + 0x14]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.10043eb0
add esp, 0xc
jmp 0x1006b25d
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 0x1006b25d
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 0x1006b32f
mov eax, 0x10168a60
jmp 0x1006b338
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.1001e7b0
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.10077550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret