Function at 0x46d010
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
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 - 0x34], edi
test edx, edx
je 0x46d055
mov eax, dword [edi + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], edx
je 0x46d048
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x46d040
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov ecx, dword [ebp - 8]
jmp 0x46d05b
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.00472a40
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46d36b
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0046c250
test eax, eax
jne 0x46d36b
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, str.view
cmp dword [ecx + 0xc], edx
cmove eax, edx
cmp dword [ecx + 0x38], edx
je 0x46d0a5
mov eax, str.virtual_table
jmp 0x46d0a9
test eax, eax
je 0x46d0cd
push dword [ecx]
push eax
push str.cannot_rename_columns_of__s___s_
push dword [ebp - 4]
call fcn.0042fce0
add esp, 0x10
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.004798a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x48]
mov edx, 0xfff0bdc0
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x46d0fb
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [ebp - 0x14], edx
cmp dword [eax], ecx
je 0x46d0fb
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x46d0f0
mov dword [ebp - 0x14], edx
mov eax, dword [edi + 0x10]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
mov edx, 0x1a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push dword [eax]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00471ff0
add esp, 0xc
test eax, eax
jne 0x46d36b
mov eax, dword [ebp + 8]
test eax, eax
je 0x46d0bc
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x46d143
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
jmp 0x46d175
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.0042ca80
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x46d175
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
call fcn.004df730
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [eax + ebx], 0
mov ecx, ebx
call fcn.0042fdd0
test ebx, ebx
je 0x46d36b
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], ebx
movsx eax, word [edx + 0x2a]
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x46d212
movzx eax, byte [ebx]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
mov ebx, dword [edx + 4]
movzx eax, byte [eax + 0x515a20]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebx]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x515a20]
sub eax, dword [ebp - 0x2c]
jne 0x46d1f7
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x30], eax
nop dword [eax + eax]
test dl, dl
je 0x46d204
movzx eax, byte [eax + esi + 1]
inc esi
movzx ecx, byte [eax + 0x515a20]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x515a20]
sub eax, ecx
mov eax, dword [ebp - 0x30]
je 0x46d1d0
mov ecx, dword [ebp - 0xc]
inc ecx
add ebx, 0x10
mov dword [ebp - 0xc], ecx
cmp ecx, edi
jl 0x46d1b0
jmp 0x46d207
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x34]
xor esi, esi
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp ecx, eax
jne 0x46d238
push dword [ebp - 0x20]
push str.no_such_column:___s_
push dword [ebp - 4]
call fcn.0042fce0
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
call fcn.004798a0
jmp 0x46d379
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
mov byte [ecx + 0x15], 1
test eax, eax
je 0x46d364
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x46d268
xor esi, esi
mov dword [ebp - 0x20], esi
jmp 0x46d29a
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.0042ca80
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x46d29a
push dword [ebp - 0x24]
push dword [ebp - 0x34]
push esi
call fcn.004df730
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov byte [eax + esi], 0
mov ecx, esi
call fcn.0042fdd0
test esi, esi
je 0x46d36b
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [eax]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x514fb8]
mov eax, dword [ebp - 0x10]
and esi, 0x80
cmp dword [ebp - 0x14], 1
sete bl
mov eax, dword [eax]
push eax
push ebx
push esi
push dword [ebp - 0x20]
push dword [ebp - 0xc]
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_sqlite____AND__type___index_OR_tbl_name___Q__AND_sql_NOT_LIKE_create_virtual__
push dword [ebp - 4]
call fcn.00472750
mov eax, dword [ebp - 0x10]
add esp, 0x2c
push esi
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0xc]
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.00472750
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
call fcn.0046c300
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_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.00472750
add esp, 0x38
cmp dword [ebp - 0x14], 1
je 0x46d368
push dword [ebp - 0x18]
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.00472750
mov edx, dword [ebp - 8]
add esp, 0x10
mov ecx, edi
call fcn.004798a0
mov ebx, dword [ebp - 0x1c]
jmp 0x46d379
xor esi, esi
jmp 0x46d36b
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.004798a0
test ebx, ebx
je 0x46d3ba
test edi, edi
je 0x46d3b1
cmp dword [edi + 0x1e8], 0
je 0x46d391
mov edx, ebx
mov ecx, edi
call fcn.0042c6f0
jmp 0x46d3ba
cmp ebx, dword [edi + 0x138]
jb 0x46d3b1
cmp ebx, dword [edi + 0x13c]
jae 0x46d3b1
mov eax, dword [edi + 0x134]
mov dword [ebx], eax
mov dword [edi + 0x134], ebx
jmp 0x46d3ba
push ebx
call fcn.0042c680
add esp, 4
test esi, esi
je 0x46d409
test edi, edi
je 0x46d400
cmp dword [edi + 0x1e8], 0
je 0x46d3db
mov edx, esi
mov ecx, edi
call fcn.0042c6f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x138]
jb 0x46d400
cmp esi, dword [edi + 0x13c]
jae 0x46d400
mov eax, dword [edi + 0x134]
mov dword [esi], eax
mov dword [edi + 0x134], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0042c680
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret