Function at 0x10061770
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebx, edx
mov dword [esp + 0xc], 0
mov ebp, ecx
mov dword [esp + 0x30], ebx
push esi
push edi
mov edx, dword [ebx + 8]
mov esi, dword [ebp]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0
test edx, edx
je 0x100617c3
mov esi, dword [esi + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x100617b8
nop
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x100617b0
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov esi, dword [esp + 0x20]
jmp 0x100617c6
mov eax, dword [ebx + 0xc]
push eax
push dword [ebx + 0x10]
xor edx, edx
mov ecx, ebp
call fcn.10068d20
mov ebx, eax
add esp, 8
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x10061af4
mov edx, ebx
mov ecx, ebp
call fcn.100609e0
test eax, eax
jne 0x10061af4
xor edx, edx
mov ecx, str.view
cmp byte [ebx + 0x2b], 2
cmovne ecx, edx
cmp byte [ebx + 0x2b], 1
jne 0x10061810
mov ecx, str.virtual_table
jmp 0x10061814
test ecx, ecx
je 0x1006182f
push dword [ebx]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push ebp
call fcn.10020b80
add esp, 0x14
jmp 0x10061af4
mov ecx, dword [ebx + 0x3c]
mov edx, 0xffff8000
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x1006185c
mov eax, dword [esi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [esp + 0x1c], edx
cmp dword [eax], ecx
je 0x1006185c
nop
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x10061850
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x10]
add edx, edx
push 0
push dword [ebx]
mov ecx, ebp
mov eax, dword [eax + edx*8]
mov edx, 0x1a
push eax
mov dword [esp + 0x34], eax
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x10061af4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10061aec
mov edi, dword [eax]
mov esi, dword [eax + 4]
xor eax, eax
test edi, edi
je 0x100618cd
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.1001d1c0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x100618d1
push esi
push edi
push eax
call fcn.10107690
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x100618d1
mov dword [esp + 0x14], eax
mov ecx, eax
call fcn.10020c10
cmp dword [esp + 0x14], 0
je 0x10061af4
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x30], ebx
movsx ecx, word [eax + 0x22]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jle 0x10061921
mov edi, dword [eax + 4]
mov ebp, dword [esp + 0x14]
mov edx, dword [edi]
mov esi, ebp
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x1006193c
test ecx, ecx
jne 0x1006194e
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x30], ebx
cmp ebx, ecx
jne 0x1006195f
push dword [esp + 0x40]
push str.no_such_column:___T_
push ebp
call fcn.10020b80
add esp, 0xc
jmp 0x10061af4
movzx eax, byte [eax + 0x1012c958]
movzx ecx, byte [ecx + 0x1012c958]
sub ecx, eax
jne 0x10061951
inc edx
jmp 0x10061906
mov ecx, dword [esp + 0x2c]
inc ebx
add edi, 0x10
cmp ebx, ecx
jl 0x10061900
jmp 0x10061919
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp dword [esp + 0x1c], 1
push 0
push 0x101315db
sete bl
mov byte [ebp + 0x10], 1
push ebx
push edi
push edi
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 ebp
call fcn.10068830
add esp, 0x1c
cmp dword [esp + 0x1c], 1
je 0x100619c3
push 0
push 0x101315db
push edi
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 ebp
call fcn.10068830
add esp, 0x14
push edi
push edi
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 ebp
call fcn.10068830
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 ebp
call fcn.10068830
add esp, 0x18
jmp 0x100619d3
push edi
push edi
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 ebp
call fcn.10068830
add esp, 0x10
mov eax, dword [ebp + 0x78]
mov ecx, ebp
mov esi, dword [esp + 0x44]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
test esi, esi
je 0x10061ae2
mov ebp, dword [esi]
xor eax, eax
mov edi, dword [esi + 4]
test ebp, ebp
je 0x10061a2a
mov ecx, edi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.1001d1c0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x10061a2e
push edi
push ebp
push eax
call fcn.10107690
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x10061a2e
mov dword [esp + 0x18], eax
mov ecx, eax
call fcn.10020c10
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10061af4
mov eax, dword [esi]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x1012bd68]
mov eax, dword [esp + 0x24]
and esi, 0x80
mov eax, dword [eax]
push eax
push ebx
push esi
push ecx
push ebp
push eax
mov eax, dword [esp + 0x40]
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.10068830
mov eax, dword [esp + 0x4c]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x58]
push ebp
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.10068830
mov edx, dword [esp + 0x60]
add esp, 0x44
mov ecx, edi
push 1
call fcn.10060ab0
add esp, 4
mov byte [edi + 0x10], 1
push 1
push str.after_rename
push ebx
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
call fcn.10068830
add esp, 0x1c
cmp dword [esp + 0x1c], 1
je 0x10061af4
push 1
push str.after_rename
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.10068830
add esp, 0x14
jmp 0x10061af4
mov dword [esp + 0x18], 0
jmp 0x10061af4
mov dword [esp + 0x14], 0
mov ebx, dword [esp + 0x20]
mov ecx, ebx
mov edx, dword [esp + 0x38]
call fcn.100704a0
push dword [esp + 0x14]
push ebx
call fcn.1001ce80
push dword [esp + 0x20]
push ebx
call fcn.1001ce80
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret