Function at 0x10075790
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [esp + 0x14], edx
push esi
push edi
mov dword [esp + 0x30], ebx
mov esi, dword [ebx]
mov dword [esp + 0x28], esi
cmp byte [esi + 0x57], 0
jne 0x10075fbc
mov ecx, edx
mov edx, dword [ecx + 8]
test edx, edx
je 0x100757e3
mov esi, dword [esi + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x100757d8
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x100757d0
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov ecx, dword [esp + 0x1c]
jmp 0x100757e6
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.10079df0
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x10075fb8
mov edx, edi
mov ecx, ebx
call fcn.10071720
test eax, eax
jne 0x10075fb8
xor edx, edx
mov ecx, str.view
cmp byte [edi + 0x2b], 2
cmovne ecx, edx
cmp byte [edi + 0x2b], 1
jne 0x10075830
mov ecx, str.virtual_table
jmp 0x10075834
test ecx, ecx
je 0x1007585e
push dword [edi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.1002a530
mov edx, dword [esp + 0x30]
add esp, 0x14
mov ecx, dword [esp + 0x28]
call fcn.10081e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edx, esi
mov ecx, dword [esp + 0x28]
call fcn.1007a800
mov dword [esp + 0x34], eax
test eax, eax
je 0x10075fb8
mov edx, eax
mov ecx, edi
call fcn.1009e200
mov dword [esp + 0x38], eax
test eax, eax
jns 0x1007589d
push esi
push str.no_such_column:___T_
push ebx
call fcn.1002a530
add esp, 0xc
jmp 0x10075fab
mov ecx, eax
mov eax, dword [edi + 4]
shl ecx, 4
mov dword [esp + 0x40], ecx
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x100758d9
push dword [esp + 0x34]
test al, 1
mov ecx, str.UNIQUE
mov eax, str.PRIMARY_KEY
cmove eax, ecx
push eax
push str.cannot_drop__s_column:___s_
push ebx
call fcn.1002a530
add esp, 0x10
jmp 0x10075fab
cmp word [edi + 0x22], 1
jg 0x100758f7
push dword [esp + 0x34]
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.1002a530
add esp, 0xc
jmp 0x10075fab
mov ecx, dword [edi + 0x3c]
mov edi, 0xffff8000
test ecx, ecx
je 0x1007591b
mov eax, dword [esp + 0x28]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x1007591b
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x10075913
mov eax, dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x34]
add ecx, ecx
mov edx, 0x1a
mov eax, dword [eax + 0x10]
mov esi, dword [eax + ecx*8]
mov ecx, ebx
mov eax, dword [esp + 0x18]
push dword [eax]
push esi
call fcn.10078f70
add esp, 0xc
test eax, eax
jne 0x10075fab
push 0
push 0x10166843
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.10079910
add esp, 0x1c
cmp edi, 1
je 0x100759a9
push 0
push 0x10166843
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.10079910
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.10079910
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.10079910
add esp, 0x18
jmp 0x100759b9
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.10079910
add esp, 0x10
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esp + 0x3c]
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.10079910
push 2
mov edx, edi
mov ecx, ebx
call fcn.100717f0
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.10079910
add esp, 0x1c
cmp edi, 1
je 0x10075a18
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.10079910
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x10075fab
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x10075fab
mov esi, dword [ebx + 8]
xor edx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
test esi, esi
jne 0x10075a6a
cmp dword [ebx + 0x80], edx
jne 0x10075a61
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x10075a61
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.1004e770
mov esi, eax
mov eax, dword [ebx + 0x28]
mov edx, eax
push 0x71
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea ecx, [eax + 1]
mov dword [ebx + 0x28], ecx
mov ecx, ebx
push edi
call fcn.1008e610
mov ecx, dword [esi + 0x6c]
lea edi, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], edi
cmp dword [esi + 0x70], ecx
jg 0x10075abe
push 0
push 0
push dword [esp + 0x14]
mov edx, 0x24
mov ecx, esi
call fcn.1004e9b0
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x10075af4
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov dword [esp + 0x2c], edi
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x2c]
mov edi, dword [esp + 0x14]
inc eax
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x10], eax
test byte [edi + 0x1c], 0x80
jne 0x10075b76
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10075b34
push 0
push eax
push edx
mov edx, 0x87
mov ecx, esi
call fcn.1004e9b0
movsx ecx, word [edi + 0x22]
add esp, 0xc
add ecx, dword [ebx + 0x2c]
xor edx, edx
xor edi, edi
jmp 0x10075c38
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 + 0x10]
mov dword [eax + ecx*4 + 8], edx
xor edx, edx
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
movsx ecx, word [edi + 0x22]
add ecx, dword [ebx + 0x2c]
xor edi, edi
jmp 0x10075c38
mov edx, dword [edi + 8]
mov dword [esp + 0x18], edx
test edx, edx
je 0x10075b95
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x10075b91
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x10075b81
mov dword [esp + 0x18], edx
movzx eax, word [edx + 0x34]
xor edi, edi
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [ebx + 0x2c], ecx
movzx eax, word [edx + 0x32]
mov ebx, eax
mov dword [esp + 0x40], ebx
xor ebx, ebx
cmp bx, ax
mov ebx, dword [esp + 0x30]
jae 0x10075c2d
mov ebx, dword [esp + 0xc]
nop dword [eax]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10075be7
mov eax, dword [esp + 0x10]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push ebx
call fcn.1004e9b0
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x10075c19
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 + 4], ebx
mov dword [eax + ecx*4 + 8], edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
inc eax
mov dword [ecx + 0x10], 0
add eax, edi
mov dword [ecx + 0xc], eax
movzx ecx, word [edx + 0x32]
inc edi
cmp edi, ecx
jl 0x10075bc0
mov ebx, dword [esp + 0x30]
mov eax, ecx
mov ecx, dword [ebx + 0x2c]
jmp 0x10075c31
mov eax, dword [esp + 0x40]
movzx edi, ax
mov dword [esp + 0x20], edi
lea eax, [ecx + 1]
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x24], eax
xor eax, eax
cmp ax, word [ecx + 0x22]
jge 0x10075db6
mov dword [esp + 0x40], eax
xor ebx, ebx
cmp ebx, dword [esp + 0x38]
je 0x10075d9c
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + 4]
test byte [eax + edx + 0xe], 0x20
mov edx, dword [esp + 0x18]
jne 0x10075d9c
test edx, edx
je 0x10075cf4
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x10075ca6
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
cmp bx, word [eax]
je 0x10075d28
inc ecx
add eax, 2
cmp ecx, edx
jl 0x10075c95
or edi, 0xffffffff
xor eax, eax
test edx, edx
je 0x10075ccd
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
movzx ebx, bx
mov ecx, dword [ecx + 4]
nop dword [eax]
cmp bx, word [ecx]
je 0x10075d35
inc eax
add ecx, 2
cmp eax, edx
jl 0x10075cc0
or ecx, 0xffffffff
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
movzx eax, word [eax + 0x32]
cmp edi, eax
jl 0x10075d94
movsx eax, cx
xor ecx, ecx
cmp edi, eax
setg cl
sub edi, ecx
mov ecx, dword [esp + 0x14]
add edi, dword [esp + 0x10]
movsx eax, word [ecx + 0x20]
inc edi
cmp ebx, eax
jne 0x10075d77
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10075d3a
push 0
push edi
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.1004e9b0
mov edi, dword [esp + 0x2c]
add esp, 0xc
inc edi
mov dword [esp + 0x20], edi
jmp 0x10075d98
movzx eax, cx
movsx edi, ax
xor eax, eax
jmp 0x10075caf
movzx ecx, ax
jmp 0x10075cd0
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 + 0x20]
inc edi
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
mov dword [esp + 0x20], edi
jmp 0x10075d98
push edi
push ebx
push dword [esp + 0x14]
mov edx, ecx
mov ecx, esi
call fcn.1006c7c0
mov edi, dword [esp + 0x2c]
add esp, 0xc
inc edi
mov dword [esp + 0x20], edi
jmp 0x10075d98
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + 0x22]
inc ebx
add dword [esp + 0x40], 0x10
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jl 0x10075c60
mov ebx, dword [esp + 0x30]
test edi, edi
jne 0x10075e1d
inc dword [ebx + 0x2c]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x10075de7
push 0
push edi
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.1004e9b0
add esp, 0xc
mov edx, 1
jmp 0x10075e25
lea eax, [ecx + 1]
mov edx, 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
jmp 0x10075e25
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x10075e4b
push dword [esp + 0x24]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.1004e9b0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x10075e7a
mov ebx, dword [esp + 0x10]
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 + 0x24]
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 eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
test eax, eax
je 0x10075ed7
movzx edx, word [eax + 0x32]
mov ebx, dword [esp + 0xc]
cmp dword [esi + 0x70], ecx
jg 0x10075eaa
push edx
push edi
push dword [esp + 0x2c]
mov edx, 0x8a
mov ecx, esi
push ebx
call fcn.1004e9f0
add esp, 0x10
jmp 0x10075f23
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 + 0x24]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0xc]
mov dword [eax + ecx*4], 0xfd8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x10075f23
cmp dword [esi + 0x70], ecx
jg 0x10075ef4
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.1004e9b0
add esp, 0xc
jmp 0x10075f23
mov ebx, dword [esp + 0xc]
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 + 0x10]
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 0x10075f3a
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x44]
mov ecx, dword [esi + 0x6c]
lea edx, [edi + 1]
cmp dword [esi + 0x70], ecx
jg 0x10075f5e
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.1004e9b0
add esp, 0xc
jmp 0x10075f8d
mov edi, dword [esp + 0x44]
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 0x10075f9f
mov eax, 0x1017abd8
jmp 0x10075fa8
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
call fcn.10026a90
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
call fcn.10081e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret