Function at 0x100cb9d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, edx
mov dword [ebp - 0xc], 0
push esi
mov esi, ecx
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebx + 8]
mov dword [ebp - 0x18], esi
mov edx, dword [esi]
mov dword [ebp - 8], edx
test edi, edi
je 0x100cba14
mov eax, dword [edx + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], edi
je 0x100cba0a
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edi
jne 0x100cba02
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
jmp 0x100cba17
mov eax, dword [ebx + 0xc]
push eax
push dword [ebx + 0x10]
xor edx, edx
mov ecx, esi
call fcn.100c3700
mov ebx, eax
add esp, 8
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100cba72
mov edx, ebx
mov ecx, esi
call fcn.100cc690
test eax, eax
jne 0x100cba72
xor edx, edx
mov ecx, str.view
cmp byte [ebx + 0x2b], 2
cmovne ecx, edx
cmp byte [ebx + 0x2b], 1
jne 0x100cba58
mov ecx, str.virtual_table
jmp 0x100cba5c
test ecx, ecx
je 0x100cbaa5
push dword [ebx]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push esi
call fcn.1010dfc0
add esp, 0x14
xor esi, esi
mov edi, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 0x20]
call fcn.100bc9e0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100cba91
mov edx, eax
mov ecx, edi
call fcn.10111980
test esi, esi
je 0x100cba9e
mov edx, esi
mov ecx, edi
call fcn.10111980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x3c]
mov edi, 0xffff8000
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edi
test ecx, ecx
je 0x100cbad1
mov eax, dword [edx + 0x10]
xor edi, edi
add eax, 0xc
mov dword [ebp - 0x10], edi
cmp dword [eax], ecx
je 0x100cbad1
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x100cbac6
mov dword [ebp - 0x10], edi
mov eax, dword [edx + 0x10]
mov ecx, edi
add ecx, ecx
mov edx, 0x1a
push 0
push dword [ebx]
mov eax, dword [eax + ecx*8]
mov ecx, esi
push eax
mov dword [ebp - 4], eax
call fcn.100c4370
add esp, 0xc
test eax, eax
jne 0x100cba72
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.100c2900
mov ecx, eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x100cba72
mov eax, dword [ebp - 0x14]
xor ebx, ebx
movsx edx, word [eax + 0x22]
mov dword [ebp - 0x1c], edx
test edx, edx
jle 0x100cbb48
mov esi, dword [eax + 4]
mov edi, ecx
mov ecx, dword [esi]
mov edx, edi
call fcn.1010de20
mov edx, dword [ebp - 0x1c]
test eax, eax
je 0x100cbb3f
inc ebx
add esi, 0x10
cmp ebx, edx
jl 0x100cbb27
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp ebx, edx
jne 0x100cbb60
push ecx
push str.no_such_column:___s_
push esi
call fcn.1010dfc0
add esp, 0xc
jmp 0x100cba72
xor eax, eax
mov byte [esi + 0x10], 1
push 0
push 0x10127dbc
cmp edi, 1
sete al
push eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
push eax
push eax
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 esi
call fcn.100c3ab0
add esp, 0x1c
cmp edi, 1
je 0x100cbba7
push 0
push 0x10127dbc
push dword [ebp - 4]
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 esi
call fcn.100c3ab0
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
push eax
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 esi
call fcn.100c3ab0
add esp, 0x10
cmp edi, 1
je 0x100cbbcd
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 esi
call fcn.100c3ab0
add esp, 8
mov eax, dword [esi + 0x74]
mov ecx, esi
mov edx, dword [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [ebp - 8]
call fcn.100c2900
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x100cba74
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x10135d70]
mov ecx, dword [ebp - 0x14]
and esi, 0x80
mov ecx, dword [ecx]
push ecx
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x10]
push ebx
push ecx
push eax
push eax
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d___d__WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X__AND__type___index_OR_tbl_name___Q_
push dword [ebp - 0x18]
call fcn.100c3ab0
mov eax, dword [ebp - 0x14]
push esi
push dword [ebp - 0x10]
mov esi, dword [ebp - 4]
push ebx
push dword [eax]
mov ebx, dword [ebp - 0x18]
push esi
push str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d__1__WHERE_type_IN__trigger__view_
push ebx
call fcn.100c3ab0
add esp, 0x44
mov edx, edi
mov ecx, ebx
push 1
call fcn.100cc560
add esp, 4
mov edx, esi
mov ecx, ebx
push 1
push str.after_rename
push dword [ebp - 0x1c]
call fcn.100cc640
mov esi, dword [ebp - 0x10]
add esp, 0xc
jmp 0x100cba74