Function at 0x1004b290
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov eax, edx
mov dword [ebp - 4], 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 - 0x18], ebx
test edx, edx
je 0x1004b2d5
mov esi, dword [ebx + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x1004b2ce
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1004b2c6
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x1004b2d8
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.100527a0
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
je 0x1004b561
mov edx, esi
mov ecx, edi
call fcn.1004a580
test eax, eax
jne 0x1004b561
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x1004b324
mov ecx, str.virtual_table
jmp 0x1004b328
test ecx, ecx
je 0x1004b34f
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push edi
call fcn.10008be0
mov edx, dword [ebp - 0xc]
add esp, 0x14
mov ecx, ebx
call fcn.10059f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3c]
mov esi, 0xffff8000
mov dword [ebp - 0x14], esi
test ecx, ecx
je 0x1004b37b
mov eax, dword [ebx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [ebp - 0x14], esi
cmp dword [eax], ecx
je 0x1004b37b
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x1004b370
mov dword [ebp - 0x14], 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 - 0x10]
mov dword [ebp - 8], eax
push dword [ecx]
mov ecx, edi
push eax
call fcn.10051b80
add esp, 0xc
test eax, eax
jne 0x1004b561
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.100539c0
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1004b561
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
movsx edx, word [eax + 0x22]
mov dword [ebp - 0x24], edx
test edx, edx
jle 0x1004b404
mov eax, dword [eax + 4]
mov edi, ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov edx, dword [eax]
mov esi, edi
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x1004b42c
test ecx, ecx
jne 0x1004b43e
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
cmp ebx, edx
jne 0x1004b454
push ecx
push str.no_such_column:___s_
push edi
call fcn.10008be0
mov ebx, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.10059f40
mov edx, dword [ebp - 4]
jmp 0x1004b572
movzx eax, byte [eax + 0x10114750]
movzx ecx, byte [ecx + 0x10114750]
sub ecx, eax
jne 0x1004b441
inc edx
jmp 0x1004b3e6
mov eax, dword [ebp - 0x1c]
inc ebx
mov edx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp ebx, edx
jl 0x1004b3e0
jmp 0x1004b3f8
mov eax, dword [ebp - 8]
xor ebx, ebx
push 0
push 0x101077f8
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.10052380
add esp, 0x1c
cmp esi, 1
je 0x1004b4b6
mov esi, dword [ebp - 8]
push 0
push 0x101077f8
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.10052380
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.10052380
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.10052380
add esp, 0x18
jmp 0x1004b4c9
mov eax, dword [ebp - 8]
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.10052380
add esp, 0x10
mov eax, dword [edi + 0x74]
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 - 0x18]
call fcn.100539c0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1004b55e
mov ecx, dword [esi]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x10113ba0]
mov ecx, dword [ebp - 0x10]
and esi, 0x80
mov ecx, dword [ecx]
push ecx
push ebx
push esi
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
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.10052380
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [ebp - 8]
push ecx
push dword [ebp - 0x1c]
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.10052380
mov edx, dword [ebp - 0x14]
add esp, 0x44
mov ecx, edi
push 1
call fcn.1004a6b0
add esp, 4
mov edx, esi
mov ecx, edi
push 1
push str.after_rename
push ebx
call fcn.1004a630
jmp 0x1004b414
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.10059f40
mov edx, dword [ebp - 4]
test edx, edx
je 0x1004b579
mov ecx, ebx
call fcn.10004cc0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1004b589
mov edx, eax
mov ecx, ebx
call fcn.10004cc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret