Function at 0x49c2c0
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 0x49c305
mov eax, dword [edi + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], edx
je 0x49c2f8
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x49c2f0
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov ecx, dword [ebp - 8]
jmp 0x49c30b
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.004a28c0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x49c5ee
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0049b430
test eax, eax
jne 0x49c5ee
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 0x49c355
mov eax, str.virtual_table
jmp 0x49c359
test eax, eax
je 0x49c37d
push dword [ecx]
push eax
push str.cannot_rename_columns_of__s___s_
push dword [ebp - 4]
call fcn.0045b840
add esp, 0x10
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.004aa9b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x48]
mov edx, 0xffff8000
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x49c3ab
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [ebp - 0x10], edx
cmp dword [eax], ecx
je 0x49c3ab
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x49c3a0
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.004a1b40
add esp, 0xc
test eax, eax
jne 0x49c5ee
mov eax, dword [ebp + 8]
test eax, eax
je 0x49c36c
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x49c420
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.004581b0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x49c425
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x49c425
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov ecx, ebx
call fcn.0045b950
test ebx, ebx
je 0x49c5ee
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 0x49c4a9
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 0x49c475
test ecx, ecx
je 0x49c498
mov eax, dword [ebp - 0x14]
inc edx
jmp 0x49c460
movzx eax, byte [eax + 0x5fad68]
movzx ecx, byte [ecx + 0x5fad68]
sub ecx, eax
jne 0x49c48d
mov eax, dword [ebp - 0x14]
inc edx
jmp 0x49c460
mov eax, dword [ebp - 0x20]
inc esi
add ebx, 0x14
cmp esi, edi
jl 0x49c456
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 0x49c4cf
push dword [ebp - 0x20]
push str.no_such_column:___s_
push dword [ebp - 4]
call fcn.0045b840
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
call fcn.004aa9b0
jmp 0x49c5fc
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 0x49c5e7
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x49c52c
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.004581b0
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x49c531
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x49c531
xor esi, esi
mov dword [ebp - 0x20], esi
mov ecx, esi
call fcn.0045b950
test esi, esi
je 0x49c5ee
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [eax]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x5fa2d0]
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 eax
push str.UPDATE___w_.sqlite_master_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.004a22f0
mov eax, dword [ebp - 0xc]
push esi
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0x14]
push dword [eax]
push dword [ebp - 0x18]
push str.UPDATE_temp.sqlite_master_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.004a22f0
mov edx, dword [ebp - 0x10]
add esp, 0x44
mov ecx, dword [ebp - 4]
call fcn.0049b4f0
mov eax, dword [ebp - 0x18]
push ebx
mov ebx, dword [ebp - 4]
push eax
push eax
push str.SELECT_1_FROM___w_.sqlite_master_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.004a22f0
add esp, 0x14
cmp dword [ebp - 0x10], 1
je 0x49c5eb
push dword [ebp - 0x18]
push str.SELECT_1_FROM_temp.sqlite_master_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.004a22f0
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
call fcn.004aa9b0
mov ebx, dword [ebp - 0x1c]
jmp 0x49c5fc
xor esi, esi
jmp 0x49c5ee
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.004aa9b0
test ebx, ebx
je 0x49c655
test edi, edi
je 0x49c64c
cmp dword [edi + 0x1f8], 0
je 0x49c614
mov edx, ebx
mov ecx, edi
call fcn.00457e30
jmp 0x49c655
cmp ebx, dword [edi + 0x14c]
jae 0x49c64c
cmp ebx, dword [edi + 0x144]
jb 0x49c634
mov eax, dword [edi + 0x140]
mov dword [ebx], eax
mov dword [edi + 0x140], ebx
jmp 0x49c655
cmp ebx, dword [edi + 0x148]
jb 0x49c64c
mov eax, dword [edi + 0x138]
mov dword [ebx], eax
mov dword [edi + 0x138], ebx
jmp 0x49c655
push ebx
call fcn.00457dc0
add esp, 4
test esi, esi
je 0x49c6c1
test edi, edi
je 0x49c6b8
cmp dword [edi + 0x1f8], 0
je 0x49c676
mov edx, esi
mov ecx, edi
call fcn.00457e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x14c]
jae 0x49c6b8
cmp esi, dword [edi + 0x144]
jb 0x49c69b
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 0x49c6b8
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.00457dc0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret