Function at 0x472f20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x10], 0
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov dword [ebp - 0x28], edi
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov ebx, dword [edi]
mov dword [ebp - 8], ebx
test edx, edx
je 0x472f65
mov esi, dword [ebx + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x472f5e
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x472f56
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x472f68
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.0047aa70
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
je 0x473218
mov edx, esi
mov ecx, edi
call fcn.00472110
test eax, eax
jne 0x473218
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x472fb4
mov ecx, str.virtual_table
jmp 0x472fb8
test ecx, ecx
je 0x472fdf
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push edi
call fcn.0042b560
mov edx, dword [ebp - 0xc]
add esp, 0x14
mov ecx, ebx
call fcn.004829b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3c]
mov esi, 0xffff8000
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x47300b
mov eax, dword [ebx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [ebp - 0x18], esi
cmp dword [eax], ecx
je 0x47300b
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x473000
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 0x10]
mov ecx, esi
add ecx, ecx
mov edx, 0x1a
push 0
mov eax, dword [eax + ecx*8]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ecx]
mov ecx, edi
push eax
call fcn.00479b90
add esp, 0xc
test eax, eax
jne 0x473218
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0047b460
mov dword [ebp - 0x10], eax
test eax, eax
je 0x473218
mov eax, dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jle 0x47308b
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov edx, dword [eax]
mov esi, edi
sub esi, edx
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4730b5
test ecx, ecx
jne 0x4730c7
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
cmp ebx, ecx
jne 0x4730dd
push dword [ebp + 8]
push str.no_such_column:___T_
push edi
call fcn.0042b560
add esp, 0xc
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, dword [ebp - 0xc]
call fcn.004829b0
mov edx, dword [ebp - 0x10]
jmp 0x473229
movzx eax, byte [eax + 0x4f2180]
movzx ecx, byte [ecx + 0x4f2180]
sub ecx, eax
jne 0x4730ca
inc edx
jmp 0x473070
mov eax, dword [ebp - 0x1c]
inc ebx
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp ebx, ecx
jl 0x473068
jmp 0x473082
mov eax, dword [ebp - 4]
xor ebx, ebx
push 0
push 0x4e76a1
cmp esi, 1
mov byte [edi + 0x10], 1
sete bl
push ebx
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 edi
call fcn.0047a570
add esp, 0x1c
cmp esi, 1
je 0x47313f
mov esi, dword [ebp - 4]
push 0
push 0x4e76a1
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 edi
call fcn.0047a570
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 edi
call fcn.0047a570
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 edi
call fcn.0047a570
add esp, 0x18
jmp 0x473152
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 edi
call fcn.0047a570
add esp, 0x10
mov eax, dword [edi + 0x7c]
mov ecx, edi
mov esi, dword [ebp + 0xc]
test eax, eax
mov edx, esi
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [ebp - 8]
call fcn.0047b460
mov dword [ebp - 0x20], eax
test eax, eax
je 0x473215
mov ecx, dword [esi]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x4f1620]
mov ecx, dword [ebp - 0x14]
and esi, 0x80
mov ecx, dword [ecx]
push ecx
push ebx
push esi
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
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 edi
call fcn.0047a570
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push esi
push ecx
push dword [ebp - 0x1c]
push dword [eax]
mov eax, dword [ebp - 4]
push eax
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 edi
call fcn.0047a570
mov edx, dword [ebp - 0x18]
add esp, 0x44
mov ecx, edi
push 1
call fcn.004721f0
add esp, 4
mov byte [edi + 0x10], 1
push 1
push str.after_rename
push ebx
mov ebx, dword [ebp - 4]
push ebx
push ebx
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 edi
call fcn.0047a570
add esp, 0x1c
cmp dword [ebp - 0x18], 1
je 0x473215
push 1
push str.after_rename
push ebx
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 edi
call fcn.0047a570
add esp, 0x14
jmp 0x4730a0
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.004829b0
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x473230
mov ecx, ebx
call fcn.004279d0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x473240
mov edx, eax
mov ecx, ebx
call fcn.004279d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret