Function at 0x44d790
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov eax, edx
mov dword [ebp - 8], 0
push edi
mov edi, ecx
mov dword [ebp - 0x10], 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 - 0xc], ebx
test edx, edx
je 0x44d7d5
mov esi, dword [ebx + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x44d7ce
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x44d7c6
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x44d7d8
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.00455a30
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
je 0x44da8f
mov edx, esi
mov ecx, edi
call fcn.0044c960
test eax, eax
jne 0x44da8f
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x44d824
mov ecx, str.virtual_table
jmp 0x44d828
test ecx, ecx
je 0x44d84f
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push edi
call fcn.00407e90
mov edx, dword [ebp - 0x10]
add esp, 0x14
mov ecx, ebx
call fcn.0045dc30
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 0x44d87b
mov eax, dword [ebx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [ebp - 0x18], esi
cmp dword [eax], ecx
je 0x44d87b
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x44d870
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.00454a20
add esp, 0xc
test eax, eax
jne 0x44da8f
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00456420
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0x44da8f
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 0x44d904
mov eax, dword [eax + 4]
mov edi, edx
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 0x44d92c
test ecx, ecx
jne 0x44d93e
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
cmp ebx, ecx
jne 0x44d954
push edx
push str.no_such_column:___s_
push edi
call fcn.00407e90
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [ebp - 0x10]
call fcn.0045dc30
mov edx, dword [ebp - 8]
jmp 0x44daa0
movzx eax, byte [eax + 0x4e3418]
movzx ecx, byte [ecx + 0x4e3418]
sub ecx, eax
jne 0x44d941
inc edx
jmp 0x44d8e6
mov eax, dword [ebp - 0x1c]
inc ebx
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp ebx, ecx
jl 0x44d8e0
jmp 0x44d8f8
mov eax, dword [ebp - 4]
xor ebx, ebx
push 0
push 0x4db4e0
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.004554f0
add esp, 0x1c
cmp esi, 1
je 0x44d9b6
mov esi, dword [ebp - 4]
push 0
push 0x4db4e0
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.004554f0
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.004554f0
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.004554f0
add esp, 0x18
jmp 0x44d9c9
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.004554f0
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 - 0xc]
call fcn.00456420
mov dword [ebp - 0x20], eax
test eax, eax
je 0x44da8c
mov ecx, dword [esi]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x4e2908]
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.004554f0
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.004554f0
mov edx, dword [ebp - 0x18]
add esp, 0x44
mov ecx, edi
push 1
call fcn.0044ca40
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.004554f0
add esp, 0x1c
cmp dword [ebp - 0x18], 1
je 0x44da8c
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.004554f0
add esp, 0x14
jmp 0x44d917
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0045dc30
mov edx, dword [ebp - 8]
test edx, edx
je 0x44daa7
mov ecx, ebx
call fcn.00404680
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44dab7
mov edx, eax
mov ecx, ebx
call fcn.00404680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret