Function at 0x1008dae0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
mov esi, dword [esi + 8]
mov edi, dword [eax]
mov dword [ebp - 0x28], edi
test esi, esi
je 0x1008db22
mov edx, dword [edi + 0x10]
xor ecx, ecx
cmp dword [edx + 0xc], esi
lea eax, [edx + 0xc]
je 0x1008db18
nop
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], esi
jne 0x1008db10
add ecx, ecx
mov eax, dword [edx + ecx*8]
mov ecx, dword [ebp - 0x20]
jmp 0x1008db27
mov ecx, edx
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
mov ecx, dword [ebp - 4]
xor edx, edx
call fcn.10093460
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1008db7f
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.1008cda0
test eax, eax
jne 0x1008db7f
xor ecx, ecx
mov eax, str.view
cmp dword [esi + 0xc], ecx
cmove eax, ecx
cmp dword [esi + 0x38], ecx
je 0x1008db68
mov eax, str.virtual_table
jmp 0x1008db6c
test eax, eax
je 0x1008dbb6
push dword [esi]
push eax
push str.cannot_rename_columns_of__s___s_
push dword [ebp - 4]
call fcn.100516a0
add esp, 0x10
xor esi, esi
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.1009a180
test ebx, ebx
je 0x1008de4d
test edi, edi
je 0x1008de44
cmp dword [edi + 0x1e8], 0
je 0x1008de24
mov edx, ebx
mov ecx, edi
call fcn.1004de80
jmp 0x1008de4d
mov ecx, dword [esi + 0x48]
mov edx, 0xfff0bdc0
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x1008dbdf
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [ebp - 0x10], edx
cmp dword [eax], ecx
je 0x1008dbdf
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x1008dbd4
mov dword [ebp - 0x10], edx
mov eax, dword [edi + 0x10]
mov ecx, edx
add ecx, ecx
mov edx, 0x1a
push 0
push dword [esi]
mov eax, dword [eax + ecx*8]
mov ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0x14], eax
call fcn.10092a20
add esp, 0xc
test eax, eax
jne 0x1008db7f
mov eax, dword [ebp + 8]
test eax, eax
je 0x1008dc68
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1008dc2d
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call fcn.10051790
mov esi, dword [ebp - 0x1c]
jmp 0x1008dc6d
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.1004e240
mov ebx, eax
add esp, 8
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1008dc5c
push esi
push dword [ebp - 0x24]
push ebx
call fcn.10187960
add esp, 0xc
mov byte [esi + ebx], 0
mov ecx, ebx
call fcn.10051790
mov esi, dword [ebp - 0x1c]
jmp 0x1008dc6d
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1008db7f
movsx ecx, word [esi + 0x2a]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jle 0x1008dcae
mov ecx, dword [esi + 4]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
nop
mov edx, dword [ecx]
mov esi, ebx
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x1008dcc8
test ecx, ecx
jne 0x1008dcda
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jne 0x1008dcf3
push ebx
push str.no_such_column:___s_
push dword [ebp - 4]
call fcn.100516a0
add esp, 0xc
jmp 0x1008db7f
movzx eax, byte [eax + 0x101ea4c0]
movzx ecx, byte [ecx + 0x101ea4c0]
sub ecx, eax
jne 0x1008dcdd
inc edx
jmp 0x1008dc96
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
inc eax
add ecx, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp eax, edi
jl 0x1008dc90
jmp 0x1008dca8
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 0x1008dd65
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x1008dd26
xor esi, esi
mov ecx, esi
mov dword [ebp - 8], esi
call fcn.10051790
mov eax, dword [ebp + 0xc]
jmp 0x1008dd6a
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.1004e240
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x1008dd56
push esi
push dword [ebp - 0x28]
push eax
call fcn.10187960
mov edx, dword [ebp - 8]
add esp, 0xc
mov byte [esi + edx], 0
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.10051790
mov eax, dword [ebp + 0xc]
jmp 0x1008dd6a
xor esi, esi
mov dword [ebp - 8], esi
test esi, esi
je 0x1008db81
mov eax, dword [eax]
xor ebx, ebx
mov edx, dword [ebp - 8]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x101e9a48]
mov eax, dword [ebp - 0x1c]
and esi, 0x80
cmp dword [ebp - 0x10], 1
sete bl
mov eax, dword [eax]
push eax
push ebx
push esi
push edx
push dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
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.10093180
mov eax, dword [ebp - 0x1c]
add esp, 0x2c
push esi
mov esi, dword [ebp - 8]
push esi
push dword [ebp - 0xc]
push dword [eax]
push dword [ebp - 0x14]
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.10093180
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
call fcn.1008ce50
mov eax, dword [ebp - 0x14]
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.10093180
add esp, 0x38
cmp dword [ebp - 0x10], 1
je 0x1008de1c
push dword [ebp - 0x14]
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.10093180
add esp, 0x10
mov ebx, dword [ebp - 0x18]
jmp 0x1008db81
cmp ebx, dword [edi + 0x138]
jb 0x1008de44
cmp ebx, dword [edi + 0x13c]
jae 0x1008de44
mov eax, dword [edi + 0x134]
mov dword [ebx], eax
mov dword [edi + 0x134], ebx
jmp 0x1008de4d
push ebx
call fcn.1004ddd0
add esp, 4
test esi, esi
je 0x1008de9c
test edi, edi
je 0x1008de93
cmp dword [edi + 0x1e8], 0
je 0x1008de6e
mov edx, esi
mov ecx, edi
call fcn.1004de80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x138]
jb 0x1008de93
cmp esi, dword [edi + 0x13c]
jae 0x1008de93
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.1004ddd0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret