Function at 0x472ac0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, ecx
mov dword [ebp - 8], edx
mov edx, dword [edx + 8]
xor ebx, ebx
push esi
push edi
mov edi, dword [eax]
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], edi
test edx, edx
je 0x472b05
mov eax, dword [edi + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], edx
je 0x472af8
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x472af0
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov ecx, dword [ebp - 8]
jmp 0x472b0b
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
mov ecx, dword [ebp - 4]
xor edx, edx
call fcn.004787f0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x472e04
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00471d60
test eax, eax
jne 0x472e04
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, str.view
cmp dword [ecx + 0xc], edx
cmove eax, edx
cmp dword [ecx + 0x38], edx
je 0x472b55
mov eax, str.virtual_table
jmp 0x472b59
test eax, eax
je 0x472b7d
push dword [ecx]
push eax
push str.cannot_rename_columns_of__s___s_
push dword [ebp - 4]
call fcn.00435200
add esp, 0x10
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.0047f7b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x48]
mov edx, 0xfff0bdc0
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x472bab
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [ebp - 0x10], edx
cmp dword [eax], ecx
je 0x472bab
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x472ba0
mov dword [ebp - 0x10], edx
mov eax, dword [edi + 0x10]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
mov edx, 0x1a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
push dword [eax]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00477d30
add esp, 0xc
test eax, eax
jne 0x472e04
mov eax, dword [ebp + 8]
test eax, eax
je 0x472b6c
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x472bf3
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
jmp 0x472c25
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.00431de0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x472c25
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
call fcn.004cdb30
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [eax + ebx], 0
mov ecx, ebx
call fcn.00435260
test ebx, ebx
je 0x472e04
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
movsx edx, word [ecx + 0x2a]
mov dword [ebp - 0x24], edx
test edx, edx
jle 0x472ca9
mov eax, ebx
xor esi, esi
mov ebx, dword [ecx + 4]
mov edi, edx
mov dword [ebp - 0x20], eax
mov edx, dword [ebx]
sub eax, edx
mov dword [ebp - 0x14], eax
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [eax + edx]
cmp ecx, eax
jne 0x472c75
test ecx, ecx
je 0x472c98
mov eax, dword [ebp - 0x14]
inc edx
jmp 0x472c60
movzx eax, byte [eax + 0x509590]
movzx ecx, byte [ecx + 0x509590]
sub ecx, eax
jne 0x472c8d
mov eax, dword [ebp - 0x14]
inc edx
jmp 0x472c60
mov eax, dword [ebp - 0x20]
inc esi
add ebx, 0x14
cmp esi, edi
jl 0x472c56
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, edx
jne 0x472ccf
push dword [ebp - 0x20]
push str.no_such_column:___s_
push dword [ebp - 4]
call fcn.00435200
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
call fcn.0047f7b0
jmp 0x472e12
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x472dfd
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
jne 0x472cff
xor esi, esi
mov dword [ebp - 0x20], esi
jmp 0x472d33
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.00431de0
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x472d33
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push esi
call fcn.004cdb30
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov byte [eax + esi], 0
mov ecx, esi
call fcn.00435260
test esi, esi
je 0x472e04
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [eax]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x508b18]
mov eax, dword [ebp - 0xc]
and esi, 0x80
cmp dword [ebp - 0x10], 1
sete bl
mov eax, dword [eax]
push eax
push ebx
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
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 dword [ebp - 4]
call fcn.004784f0
mov eax, dword [ebp - 0xc]
add esp, 0x2c
push esi
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0x14]
push dword [eax]
push dword [ebp - 0x18]
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 dword [ebp - 4]
call fcn.004784f0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
call fcn.00471e20
mov eax, dword [ebp - 0x18]
push ebx
mov ebx, dword [ebp - 4]
push eax
push str.sqlite_master
push eax
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 ebx
call fcn.004784f0
add esp, 0x38
cmp dword [ebp - 0x10], 1
je 0x472e01
push dword [ebp - 0x18]
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 ebx
call fcn.004784f0
mov edx, dword [ebp - 8]
add esp, 0x10
mov ecx, edi
call fcn.0047f7b0
mov ebx, dword [ebp - 0x1c]
jmp 0x472e12
xor esi, esi
jmp 0x472e04
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.0047f7b0
test ebx, ebx
je 0x472e6b
test edi, edi
je 0x472e62
cmp dword [edi + 0x1f8], 0
je 0x472e2a
mov edx, ebx
mov ecx, edi
call fcn.00431a30
jmp 0x472e6b
cmp ebx, dword [edi + 0x14c]
jae 0x472e62
cmp ebx, dword [edi + 0x144]
jb 0x472e4a
mov eax, dword [edi + 0x140]
mov dword [ebx], eax
mov dword [edi + 0x140], ebx
jmp 0x472e6b
cmp ebx, dword [edi + 0x148]
jb 0x472e62
mov eax, dword [edi + 0x138]
mov dword [ebx], eax
mov dword [edi + 0x138], ebx
jmp 0x472e6b
push ebx
call fcn.00431980
add esp, 4
test esi, esi
je 0x472ed7
test edi, edi
je 0x472ece
cmp dword [edi + 0x1f8], 0
je 0x472e8c
mov edx, esi
mov ecx, edi
call fcn.00431a30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x14c]
jae 0x472ece
cmp esi, dword [edi + 0x144]
jb 0x472eb1
mov eax, dword [edi + 0x140]
mov dword [esi], eax
mov dword [edi + 0x140], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x148]
jb 0x472ece
mov eax, dword [edi + 0x138]
mov dword [esi], eax
mov dword [edi + 0x138], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00431980
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret