Function at 0x463f50
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 0x463f95
mov esi, dword [ebx + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x463f8e
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x463f86
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x463f98
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.0046be70
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
je 0x464248
mov edx, esi
mov ecx, edi
call fcn.00463140
test eax, eax
jne 0x464248
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x463fe4
mov ecx, str.virtual_table
jmp 0x463fe8
test ecx, ecx
je 0x46400f
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push edi
call fcn.0041c910
mov edx, dword [ebp - 0xc]
add esp, 0x14
mov ecx, ebx
call fcn.00473f40
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 0x46403b
mov eax, dword [ebx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [ebp - 0x18], esi
cmp dword [eax], ecx
je 0x46403b
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x464030
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.0046aec0
add esp, 0xc
test eax, eax
jne 0x464248
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0046c890
mov dword [ebp - 0x10], eax
test eax, eax
je 0x464248
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 0x4640bb
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 0x4640e5
test ecx, ecx
jne 0x4640f7
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
cmp ebx, ecx
jne 0x46410d
push dword [ebp + 8]
push str.no_such_column:___T_
push edi
call fcn.0041c910
add esp, 0xc
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, dword [ebp - 0xc]
call fcn.00473f40
mov edx, dword [ebp - 0x10]
jmp 0x464259
movzx eax, byte [eax + 0x501178]
movzx ecx, byte [ecx + 0x501178]
sub ecx, eax
jne 0x4640fa
inc edx
jmp 0x4640a0
mov eax, dword [ebp - 0x1c]
inc ebx
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp ebx, ecx
jl 0x464098
jmp 0x4640b2
mov eax, dword [ebp - 4]
xor ebx, ebx
push 0
push 0x504da5
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.0046b970
add esp, 0x1c
cmp esi, 1
je 0x46416f
mov esi, dword [ebp - 4]
push 0
push 0x504da5
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.0046b970
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.0046b970
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.0046b970
add esp, 0x18
jmp 0x464182
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.0046b970
add esp, 0x10
mov eax, dword [edi + 0x78]
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.0046c890
mov dword [ebp - 0x20], eax
test eax, eax
je 0x464245
mov ecx, dword [esi]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x500618]
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.0046b970
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.0046b970
mov edx, dword [ebp - 0x18]
add esp, 0x44
mov ecx, edi
push 1
call fcn.00463220
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.0046b970
add esp, 0x1c
cmp dword [ebp - 0x18], 1
je 0x464245
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.0046b970
add esp, 0x14
jmp 0x4640d0
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00473f40
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x464260
mov ecx, ebx
call fcn.00418b80
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x464270
mov edx, eax
mov ecx, ebx
call fcn.00418b80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret