Function at 0x465e90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, ecx
mov ebx, edx
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
mov edi, dword [eax]
xor eax, eax
mov edx, dword [ebx + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], eax
test edx, edx
je 0x465ed5
mov ebx, dword [edi + 0x10]
xor ecx, ecx
cmp dword [ebx + 0xc], edx
lea eax, [ebx + 0xc]
je 0x465ecb
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x465ec3
add ecx, ecx
mov eax, dword [ebx + ecx*8]
mov ebx, dword [ebp - 0xc]
jmp 0x465ed8
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 4]
xor edx, edx
push eax
push dword [ebx + 0x10]
call fcn.0046c300
mov ebx, eax
add esp, 8
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x4661b3
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.00465060
test eax, eax
jne 0x4661b3
xor ecx, ecx
mov eax, str.view
cmp dword [ebx + 0xc], ecx
cmove eax, ecx
cmp dword [ebx + 0x38], ecx
je 0x465f21
mov eax, str.virtual_table
jmp 0x465f25
test eax, eax
je 0x465f49
push dword [ebx]
push eax
push str.cannot_rename_columns_of__s___s_
push dword [ebp - 4]
call fcn.004205b0
add esp, 0x10
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.00473d20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x48]
mov edx, 0xfff0bdc0
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x465f72
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [ebp - 0x14], edx
cmp dword [eax], ecx
je 0x465f72
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x465f67
mov dword [ebp - 0x14], edx
mov eax, dword [edi + 0x10]
add edx, edx
mov ecx, dword [ebp - 4]
push 0
push dword [ebx]
mov eax, dword [eax + edx*8]
mov edx, 0x1a
push eax
mov dword [ebp - 0x18], eax
call fcn.0046b840
add esp, 0xc
test eax, eax
jne 0x4661b3
mov eax, dword [ebp + 8]
test eax, eax
je 0x465f38
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x465fb2
mov dword [ebp - 8], eax
jmp 0x465fe2
xor eax, eax
mov ecx, ebx
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.0041ca80
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x465fe2
push ebx
push dword [ebp - 0x24]
push eax
call fcn.004f0e30
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [ebx + eax], 0
mov ecx, eax
call fcn.004206c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4661b3
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
movsx ebx, word [edx + 0x2a]
mov dword [ebp - 0x24], ebx
test ebx, ebx
jle 0x46603a
mov esi, dword [edx + 4]
mov edi, ebx
mov dword [ebp - 0x1c], eax
mov edx, dword [esi]
mov ebx, eax
sub ebx, edx
nop dword [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [ebx + edx]
cmp ecx, eax
jne 0x466063
test ecx, ecx
jne 0x466075
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
xor esi, esi
mov ebx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x46608b
push dword [ebp - 0x1c]
push str.no_such_column:___s_
push dword [ebp - 4]
call fcn.004205b0
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, edi
call fcn.00473d20
mov ecx, dword [ebp - 8]
jmp 0x4661c4
movzx eax, byte [eax + 0x561f98]
movzx ecx, byte [ecx + 0x561f98]
sub ecx, eax
jne 0x466078
inc edx
jmp 0x466020
mov ecx, dword [ebp - 0x10]
add esi, 0x10
mov eax, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, edi
jl 0x466012
jmp 0x466032
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
mov byte [ecx + 0x15], 1
test eax, eax
je 0x4661b1
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4660b8
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x4660e7
xor eax, eax
mov ecx, ebx
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.0041ca80
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4660e7
push ebx
push dword [ebp - 0x28]
push esi
call fcn.004f0e30
add esp, 0xc
mov byte [ebx + esi], 0
mov ecx, esi
call fcn.004206c0
test esi, esi
je 0x4661b3
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [eax]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x561538]
mov eax, dword [ebp - 0x20]
and esi, 0x80
cmp dword [ebp - 0x14], 1
sete bl
mov eax, dword [eax]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push str.sqlite_master
push eax
push str.UPDATE___w_._s_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__AND_sql_NOT_LIKE_create_virtual__
push dword [ebp - 4]
call fcn.0046c030
mov eax, dword [ebp - 0x20]
add esp, 0x2c
push esi
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x18]
push str.sqlite_master
push str.UPDATE_temp._s_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d__1__WHERE_type_IN__trigger__view_
push dword [ebp - 4]
call fcn.0046c030
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
call fcn.00465150
mov eax, dword [ebp - 0x18]
push ebx
mov ebx, dword [ebp - 4]
push eax
push str.sqlite_master
push eax
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.0046c030
add esp, 0x38
cmp dword [ebp - 0x14], 1
je 0x4661b3
push dword [ebp - 0x18]
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.0046c030
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov ecx, edi
call fcn.00473d20
mov ecx, dword [ebp - 8]
jmp 0x4661c4
xor esi, esi
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.00473d20
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x466205
test edi, edi
je 0x4661fc
cmp dword [edi + 0x1e8], 0
je 0x4661dc
mov edx, ecx
mov ecx, edi
call fcn.0041c6a0
jmp 0x466205
cmp ecx, dword [edi + 0x138]
jb 0x4661fc
cmp ecx, dword [edi + 0x13c]
jae 0x4661fc
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x466205
push ecx
call fcn.0041c630
add esp, 4
test esi, esi
je 0x466254
test edi, edi
je 0x46624b
cmp dword [edi + 0x1e8], 0
je 0x466226
mov edx, esi
mov ecx, edi
call fcn.0041c6a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x138]
jb 0x46624b
cmp esi, dword [edi + 0x13c]
jae 0x46624b
mov eax, dword [edi + 0x134]
mov dword [esi], eax
mov dword [edi + 0x134], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041c630
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret