Function at 0x46d630
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 0x46d672
mov edx, dword [ebx + 0x10]
xor ecx, ecx
cmp dword [edx + 0xc], esi
lea eax, [edx + 0xc]
je 0x46d66b
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], esi
jne 0x46d663
add ecx, ecx
mov eax, dword [edx + ecx*8]
jmp 0x46d675
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.004734a0
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x46d6d3
mov edx, esi
mov ecx, edi
call fcn.0046cc70
test eax, eax
jne 0x46d6d3
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x46d6b9
mov ecx, str.virtual_table
jmp 0x46d6bd
test ecx, ecx
je 0x46d703
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push edi
call fcn.0042f9e0
add esp, 0x14
xor esi, esi
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.00479630
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46d6ef
mov edx, eax
mov ecx, ebx
call fcn.0042c2b0
test esi, esi
je 0x46d6fc
mov edx, esi
mov ecx, ebx
call fcn.0042c2b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3c]
mov ecx, ebx
call fcn.0048ca90
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.00472920
add esp, 0xc
test eax, eax
jne 0x46d6d3
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00474060
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46d6d3
movsx ecx, word [esi + 0x22]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x46d77e
mov esi, dword [esi + 4]
mov edi, ecx
nop dword [eax + eax]
mov ecx, dword [esi]
mov edx, eax
call fcn.0042fba0
test eax, eax
je 0x46d778
mov eax, dword [ebp - 0x14]
inc ebx
add esi, 0x10
cmp ebx, edi
jl 0x46d760
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
jne 0x46d79b
push dword [ebp + 8]
push str.no_such_column:___T_
push edi
call fcn.0042f9e0
mov ebx, dword [ebp - 8]
add esp, 0xc
jmp 0x46d6d3
mov esi, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], 1
push 0
push 0x55faaf
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.00473080
add esp, 0x1c
cmp dword [ebp - 4], 1
je 0x46d7e2
push 0
push 0x55faaf
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.00473080
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.00473080
add esp, 0x10
cmp dword [ebp - 4], 1
je 0x46d806
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.00473080
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.00474060
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x46d8ac
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x560df8]
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.00473080
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.00473080
mov edx, dword [ebp - 4]
add esp, 0x44
mov ecx, edi
push 1
call fcn.0046cda0
add esp, 4
mov edx, esi
mov ecx, edi
push 1
push str.after_rename
push dword [ebp - 0x1c]
call fcn.0046cd20
mov ebx, dword [ebp - 8]
add esp, 0xc
mov esi, dword [ebp - 0x10]
jmp 0x46d6d5
mov ebx, dword [ebp - 8]
jmp 0x46d6d5