Function at 0x5bd7500
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, edx
mov dword [ebp - 0x18], 0
mov ebx, ecx
mov dword [ebp - 0x20], eax
push esi
push edi
mov esi, dword [eax + 8]
mov edx, dword [ebx]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], edx
test esi, esi
je 0x5bd7544
mov eax, dword [edx + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], esi
je 0x5bd753a
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], esi
jne 0x5bd7532
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
jmp 0x5bd7547
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, ebx
push dword [eax + 0x10]
call fcn.05bced10
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
je 0x5bd75a5
mov edx, esi
mov ecx, ebx
call fcn.05bd81c0
test eax, eax
jne 0x5bd75a5
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x5bd758b
mov ecx, str.virtual_table
jmp 0x5bd758f
test ecx, ecx
je 0x5bd75d8
push dword [esi]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push ebx
call fcn.05c1c6a0
add esp, 0x14
xor esi, esi
mov ebx, dword [ebp - 4]
mov ecx, ebx
mov edx, dword [ebp - 0x20]
call fcn.05bc7e70
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5bd75c4
mov edx, eax
mov ecx, ebx
call fcn.05c20b20
test esi, esi
je 0x5bd75d1
mov edx, esi
mov ecx, ebx
call fcn.05c20b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3c]
mov edi, 0xffff8000
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x5bd760b
mov eax, dword [edx + 0x10]
xor edi, edi
add eax, 0xc
mov dword [ebp - 8], edi
cmp dword [eax], ecx
je 0x5bd760b
nop dword [eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x5bd7600
mov dword [ebp - 8], edi
mov eax, dword [edx + 0x10]
mov ecx, edi
add ecx, ecx
mov edx, 0x1a
push 0
push dword [esi]
mov eax, dword [eax + ecx*8]
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.05bcf990
add esp, 0xc
test eax, eax
jne 0x5bd75a5
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.05bcde10
mov edx, eax
xor esi, esi
mov dword [ebp - 0x18], edx
test edx, edx
je 0x5bd75a7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jle 0x5bd7686
mov ebx, dword [eax + 4]
mov edi, ecx
mov ecx, dword [ebx]
call fcn.05c1c500
test eax, eax
je 0x5bd767a
mov edx, dword [ebp - 0x18]
inc esi
add ebx, 0x10
cmp esi, edi
jl 0x5bd7664
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], esi
cmp esi, ecx
jne 0x5bd76a0
push dword [ebp + 8]
push str.no_such_column:___T_
push ebx
call fcn.05c1c6a0
add esp, 0xc
jmp 0x5bd75a5
mov esi, dword [ebp - 0x14]
xor eax, eax
push 0
push 0x5c37db0
cmp edi, 1
mov byte [ebx + 0x10], 1
sete al
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 ebx
mov dword [ebp - 0x1c], eax
call fcn.05bcf0c0
add esp, 0x1c
cmp edi, 1
je 0x5bd76e5
push 0
push 0x5c37db0
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 ebx
call fcn.05bcf0c0
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 ebx
call fcn.05bcf0c0
add esp, 0x10
cmp edi, 1
je 0x5bd7708
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 ebx
call fcn.05bcf0c0
add esp, 8
mov eax, dword [ebx + 0x78]
mov ecx, ebx
mov edx, dword [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [ebp - 4]
call fcn.05bcde10
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x5bd75a7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [ecx]
movzx esi, byte [ecx + 0x5c462f0]
mov ecx, dword [ebp - 0x10]
and esi, 0x80
mov ecx, dword [ecx]
push ecx
push dword [ebp - 0x1c]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
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 ebx
call fcn.05bcf0c0
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push dword [ebp - 0xc]
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 ebx
call fcn.05bcf0c0
add esp, 0x44
mov edx, edi
mov ecx, ebx
push 1
call fcn.05bd8090
add esp, 4
mov edx, esi
mov ecx, ebx
push 1
push str.after_rename
push dword [ebp - 0x1c]
call fcn.05bd8170
mov esi, dword [ebp - 8]
add esp, 0xc
jmp 0x5bd75a7