Function at 0x45f5a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x14], 0
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov esi, dword [eax + 8]
mov ebx, dword [edi]
mov dword [ebp - 8], ebx
test esi, esi
je 0x45f5e2
mov edx, dword [ebx + 0x10]
xor ecx, ecx
cmp dword [edx + 0xc], esi
lea eax, [edx + 0xc]
je 0x45f5db
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], esi
jne 0x45f5d3
add ecx, ecx
mov eax, dword [edx + ecx*8]
jmp 0x45f5e5
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.00465420
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x45f643
mov edx, esi
mov ecx, edi
call fcn.0045ebe0
test eax, eax
jne 0x45f643
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x45f629
mov ecx, str.virtual_table
jmp 0x45f62d
test ecx, ecx
je 0x45f673
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push edi
call fcn.00421640
add esp, 0x14
xor esi, esi
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.0046b5b0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45f65f
mov edx, eax
mov ecx, ebx
call fcn.0041def0
test esi, esi
je 0x45f66c
mov edx, esi
mov ecx, ebx
call fcn.0041def0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3c]
mov ecx, ebx
call fcn.0047ea30
mov ecx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
add ecx, ecx
push 0
push dword [esi]
mov edx, 0x1a
mov eax, dword [eax + ecx*8]
mov ecx, edi
push eax
mov dword [ebp - 0xc], eax
call fcn.004648a0
add esp, 0xc
test eax, eax
jne 0x45f643
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00465fe0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45f643
movsx ecx, word [esi + 0x22]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x45f6ee
mov esi, dword [esi + 4]
mov edi, ecx
nop dword [eax + eax]
mov ecx, dword [esi]
mov edx, eax
call fcn.00421800
test eax, eax
je 0x45f6e8
mov eax, dword [ebp - 0x14]
inc ebx
add esi, 0x10
cmp ebx, edi
jl 0x45f6d0
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
jne 0x45f70b
push dword [ebp + 8]
push str.no_such_column:___T_
push edi
call fcn.00421640
mov ebx, dword [ebp - 8]
add esp, 0xc
jmp 0x45f643
mov esi, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], 1
push 0
push 0x563af1
sete al
mov byte [edi + 0x10], 1
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 edi
mov dword [ebp - 0x1c], eax
call fcn.00465000
add esp, 0x1c
cmp dword [ebp - 4], 1
je 0x45f752
push 0
push 0x563af1
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.00465000
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.00465000
add esp, 0x10
cmp dword [ebp - 4], 1
je 0x45f776
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.00465000
add esp, 8
mov eax, dword [edi + 0x74]
mov ecx, edi
mov edx, dword [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [ebp - 8]
call fcn.00465fe0
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x45f81c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x566088]
mov ecx, dword [ebp - 0x18]
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 edi
call fcn.00465000
mov eax, dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
push ebx
push dword [eax]
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 edi
call fcn.00465000
mov edx, dword [ebp - 4]
add esp, 0x44
mov ecx, edi
push 1
call fcn.0045ed10
add esp, 4
mov edx, esi
mov ecx, edi
push 1
push str.after_rename
push dword [ebp - 0x1c]
call fcn.0045ec90
mov ebx, dword [ebp - 8]
add esp, 0xc
mov esi, dword [ebp - 0x10]
jmp 0x45f645
mov ebx, dword [ebp - 8]
jmp 0x45f645