Function at 0x5f54c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [edx + 8]
xor ebx, ebx
mov dword [ebp - 0x28], edx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x5f5502
mov edx, dword [eax + 0x10]
xor ecx, ecx
cmp dword [edx + 0xc], esi
lea eax, [edx + 0xc]
je 0x5f54f8
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], esi
jne 0x5f54f0
add ecx, ecx
mov eax, dword [edx + ecx*8]
mov edx, dword [ebp - 0x28]
jmp 0x5f5505
mov eax, dword [edx + 0xc]
push eax
push dword [edx + 0x10]
xor edx, edx
mov ecx, edi
call fcn.005faf20
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x5f5559
mov edx, esi
mov ecx, edi
call fcn.005f4740
test eax, eax
jne 0x5f5559
xor ecx, ecx
mov eax, str.view
cmp dword [esi + 0xc], ecx
cmove eax, ecx
cmp dword [esi + 0x38], ecx
je 0x5f5544
mov eax, str.virtual_table
jmp 0x5f5548
test eax, eax
je 0x5f5589
push dword [esi]
push eax
push str.cannot_rename_columns_of__s___s_
push edi
call fcn.005b9110
add esp, 0x10
xor esi, esi
mov edi, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 0x28]
call fcn.00601ab0
test ebx, ebx
je 0x5f5575
mov edx, ebx
mov ecx, edi
call fcn.005b5a40
test esi, esi
je 0x5f5582
mov edx, esi
mov ecx, edi
call fcn.005b5a40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x48]
mov edx, 0xfff0bdc0
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x5f55bb
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x5f55bb
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x5f55b0
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov ecx, edx
add ecx, ecx
mov edx, 0x1a
push 0
push dword [esi]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8]
mov ecx, edi
push eax
mov dword [ebp - 0x1c], eax
call fcn.005fa470
add esp, 0xc
test eax, eax
jne 0x5f5559
mov eax, dword [ebp + 8]
test eax, eax
je 0x5f5642
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
jne 0x5f5608
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 8], ebx
call fcn.005b9170
mov esi, dword [ebp - 0x18]
jmp 0x5f5647
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.005b5d30
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x5f5636
push esi
push edi
push ebx
call fcn.006e8ef0
add esp, 0xc
mov byte [esi + ebx], 0
mov ecx, ebx
call fcn.005b9170
mov esi, dword [ebp - 0x18]
jmp 0x5f5647
xor ebx, ebx
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x5f5559
movsx eax, word [esi + 0x2a]
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x5f56ac
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov edx, dword [eax]
mov esi, ebx
sub esi, edx
nop dword [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x5f5682
test ecx, ecx
je 0x5f56a6
inc edx
jmp 0x5f5670
movzx eax, byte [eax + 0x792808]
movzx ecx, byte [ecx + 0x792808]
sub ecx, eax
jne 0x5f5697
inc edx
jmp 0x5f5670
mov eax, dword [ebp - 4]
inc edi
add eax, 0x14
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 0x20]
jl 0x5f5665
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
cmp edi, eax
jne 0x5f56c6
push ebx
push str.no_such_column:___s_
push dword [ebp - 0x10]
call fcn.005b9110
add esp, 0xc
jmp 0x5f5559
mov edx, dword [ebp - 0x10]
mov ecx, edx
mov edi, dword [ebp + 0xc]
mov eax, dword [edx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
test edi, edi
je 0x5f572e
mov ebx, dword [edi]
xor eax, eax
mov esi, dword [edi + 4]
test ebx, ebx
jne 0x5f56ee
mov dword [ebp - 4], eax
jmp 0x5f571c
mov ecx, esi
add ecx, 1
adc eax, 0
push eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.005b5d30
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x5f571c
push esi
push ebx
push eax
call fcn.006e8ef0
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
mov ecx, eax
call fcn.005b9170
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
jmp 0x5f5733
xor esi, esi
mov dword [ebp - 4], esi
test esi, esi
je 0x5f555b
mov eax, dword [edi]
xor ebx, ebx
mov edi, dword [ebp - 0x24]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x791c78]
mov eax, dword [ebp - 0x18]
and esi, 0x80
cmp dword [ebp - 0x14], 1
sete bl
mov eax, dword [eax]
push eax
push ebx
push esi
push dword [ebp - 4]
push edi
push eax
mov eax, dword [ebp - 0x1c]
push eax
push str.sqlite_master
push eax
push str.UPDATE___w_._s_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__AND_sql_NOT_LIKE_create_virtual__
push edx
call fcn.005fac10
mov eax, dword [ebp - 0x18]
add esp, 0x2c
push esi
push dword [ebp - 4]
push edi
push dword [eax]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x1c]
push str.sqlite_master
push str.UPDATE_temp._s_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d__1__WHERE_type_IN__trigger__view_
push edi
call fcn.005fac10
mov edx, dword [ebp - 0x14]
mov ecx, edi
call fcn.005f4800
push ebx
mov ebx, dword [ebp - 0x1c]
push ebx
push str.sqlite_master
push ebx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push edi
call fcn.005fac10
add esp, 0x38
cmp dword [ebp - 0x14], 1
je 0x5f57db
push ebx
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push edi
call fcn.005fac10
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
jmp 0x5f555b