Function at 0x458df0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], 0
mov ebx, ecx
mov dword [ebp - 0x28], esi
push edi
mov dword [ebp - 0x18], ebx
mov edx, dword [esi + 8]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
test edx, edx
je 0x458e42
mov esi, dword [eax + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x458e38
nop word [eax + eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x458e30
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov esi, dword [ebp - 0x28]
jmp 0x458e45
mov eax, dword [esi + 0xc]
push eax
push dword [esi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.00460440
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x45916f
mov edx, esi
mov ecx, ebx
call fcn.00458020
test eax, eax
jne 0x45916f
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x458e8e
mov ecx, str.virtual_table
jmp 0x458e92
test ecx, ecx
je 0x458ead
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push ebx
call fcn.00417860
add esp, 0x14
jmp 0x45916f
mov ecx, dword [esi + 0x3c]
mov edx, 0xffff8000
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x458edb
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [ebp - 0x14], edx
cmp dword [eax], ecx
je 0x458edb
nop
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x458ed0
mov dword [ebp - 0x14], edx
mov eax, dword [edi + 0x10]
add edx, edx
push 0
push dword [esi]
mov ecx, ebx
mov eax, dword [eax + edx*8]
mov edx, 0x1a
push eax
mov dword [ebp - 0xc], eax
call fcn.0045f5c0
add esp, 0xc
test eax, eax
jne 0x45916f
mov eax, dword [ebp + 8]
test eax, eax
je 0x459168
mov edi, dword [eax]
mov esi, dword [eax + 4]
xor eax, eax
test edi, edi
je 0x458f47
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413890
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x458f4a
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x458f4a
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.004178f0
cmp dword [ebp - 4], 0
je 0x45916f
mov eax, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 0x1c], edi
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jle 0x458f98
mov eax, dword [eax + 4]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov edx, dword [eax]
mov esi, ebx
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x458fb2
test ecx, ecx
jne 0x458fc4
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
cmp edi, ecx
jne 0x458fda
push dword [ebp + 8]
push str.no_such_column:___T_
push ebx
call fcn.00417860
add esp, 0xc
jmp 0x45916f
movzx eax, byte [eax + 0x4fa530]
movzx ecx, byte [ecx + 0x4fa530]
sub ecx, eax
jne 0x458fc7
inc edx
jmp 0x458f80
mov eax, dword [ebp - 0x1c]
inc edi
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp edi, ecx
jl 0x458f77
jmp 0x458f92
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp dword [ebp - 0x14], 1
mov esi, dword [ebp - 0x18]
push 0
push 0x4ff790
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 esi
mov byte [esi + 0x10], 1
call fcn.0045ff40
add esp, 0x1c
cmp dword [ebp - 0x14], 1
je 0x459041
mov edi, dword [ebp - 0xc]
push 0
push 0x4ff790
push edi
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.0045ff40
add esp, 0x14
push edi
push edi
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.0045ff40
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.0045ff40
add esp, 0x18
jmp 0x459054
mov eax, dword [ebp - 0xc]
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.0045ff40
add esp, 0x10
mov eax, dword [esi + 0x78]
mov ecx, esi
mov esi, dword [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
test esi, esi
je 0x45915f
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4590ac
xor eax, eax
mov ecx, edi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413890
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x4590b1
push edi
push dword [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x4590b1
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, eax
call fcn.004178f0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x45916f
mov eax, dword [esi]
mov edi, dword [ebp - 0x18]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x4f99a8]
mov eax, dword [ebp - 0x20]
and esi, 0x80
mov eax, dword [eax]
push eax
push ebx
push esi
push ecx
push dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
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.0045ff40
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp - 8]
push dword [ebp - 0x1c]
push dword [eax]
mov eax, dword [ebp - 0xc]
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.0045ff40
mov edx, dword [ebp - 0x14]
add esp, 0x44
mov ecx, edi
push 1
call fcn.00458100
add esp, 4
mov byte [edi + 0x10], 1
push 1
push str.after_rename
push ebx
mov ebx, dword [ebp - 0xc]
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.0045ff40
add esp, 0x1c
cmp dword [ebp - 0x14], 1
je 0x45916f
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.0045ff40
add esp, 0x14
jmp 0x45916f
mov dword [ebp - 8], 0
jmp 0x45916f
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
mov edx, dword [ebp - 0x28]
call fcn.00467c40
push dword [ebp - 4]
push ebx
call fcn.00413560
push dword [ebp - 8]
push ebx
call fcn.00413560
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret