Function at 0x1008c1a0
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 0x1008c1e2
mov edx, dword [edi + 0x10]
xor ecx, ecx
cmp dword [edx + 0xc], esi
lea eax, [edx + 0xc]
je 0x1008c1d8
nop
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], esi
jne 0x1008c1d0
add ecx, ecx
mov eax, dword [edx + ecx*8]
mov ecx, dword [ebp - 0x20]
jmp 0x1008c1e7
mov ecx, edx
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
mov ecx, dword [ebp - 4]
xor edx, edx
call fcn.10091ae0
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1008c23f
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.1008b460
test eax, eax
jne 0x1008c23f
xor ecx, ecx
mov eax, str.view
cmp dword [esi + 0xc], ecx
cmove eax, ecx
cmp dword [esi + 0x38], ecx
je 0x1008c228
mov eax, str.virtual_table
jmp 0x1008c22c
test eax, eax
je 0x1008c276
push dword [esi]
push eax
push str.cannot_rename_columns_of__s___s_
push dword [ebp - 4]
call fcn.1004fb10
add esp, 0x10
xor esi, esi
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.100987e0
test ebx, ebx
je 0x1008c50d
test edi, edi
je 0x1008c504
cmp dword [edi + 0x1e8], 0
je 0x1008c4e4
mov edx, ebx
mov ecx, edi
call fcn.1004c3d0
jmp 0x1008c50d
mov ecx, dword [esi + 0x48]
mov edx, 0xfff0bdc0
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x1008c29f
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [ebp - 0x10], edx
cmp dword [eax], ecx
je 0x1008c29f
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x1008c294
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.100910a0
add esp, 0xc
test eax, eax
jne 0x1008c23f
mov eax, dword [ebp + 8]
test eax, eax
je 0x1008c328
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1008c2ed
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call fcn.1004fc00
mov esi, dword [ebp - 0x1c]
jmp 0x1008c32d
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.1004c780
mov ebx, eax
add esp, 8
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1008c31c
push esi
push dword [ebp - 0x24]
push ebx
call fcn.1014ffa0
add esp, 0xc
mov byte [esi + ebx], 0
mov ecx, ebx
call fcn.1004fc00
mov esi, dword [ebp - 0x1c]
jmp 0x1008c32d
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1008c23f
movsx ecx, word [esi + 0x2a]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jle 0x1008c36e
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 0x1008c388
test ecx, ecx
jne 0x1008c39a
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jne 0x1008c3b3
push ebx
push str.no_such_column:___s_
push dword [ebp - 4]
call fcn.1004fb10
add esp, 0xc
jmp 0x1008c23f
movzx eax, byte [eax + 0x101a8a48]
movzx ecx, byte [ecx + 0x101a8a48]
sub ecx, eax
jne 0x1008c39d
inc edx
jmp 0x1008c356
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 0x1008c350
jmp 0x1008c368
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 0x1008c425
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x1008c3e6
xor esi, esi
mov ecx, esi
mov dword [ebp - 8], esi
call fcn.1004fc00
mov eax, dword [ebp + 0xc]
jmp 0x1008c42a
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.1004c780
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x1008c416
push esi
push dword [ebp - 0x28]
push eax
call fcn.1014ffa0
mov edx, dword [ebp - 8]
add esp, 0xc
mov byte [esi + edx], 0
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.1004fc00
mov eax, dword [ebp + 0xc]
jmp 0x1008c42a
xor esi, esi
mov dword [ebp - 8], esi
test esi, esi
je 0x1008c241
mov eax, dword [eax]
xor ebx, ebx
mov edx, dword [ebp - 8]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x101a7ff0]
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.10091800
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.10091800
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
call fcn.1008b510
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.10091800
add esp, 0x38
cmp dword [ebp - 0x10], 1
je 0x1008c4dc
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.10091800
add esp, 0x10
mov ebx, dword [ebp - 0x18]
jmp 0x1008c241
cmp ebx, dword [edi + 0x138]
jb 0x1008c504
cmp ebx, dword [edi + 0x13c]
jae 0x1008c504
mov eax, dword [edi + 0x134]
mov dword [ebx], eax
mov dword [edi + 0x134], ebx
jmp 0x1008c50d
push ebx
call fcn.1004c320
add esp, 4
test esi, esi
je 0x1008c55c
test edi, edi
je 0x1008c553
cmp dword [edi + 0x1e8], 0
je 0x1008c52e
mov edx, esi
mov ecx, edi
call fcn.1004c3d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x138]
jb 0x1008c553
cmp esi, dword [edi + 0x13c]
jae 0x1008c553
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.1004c320
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret