Function at 0x454ef0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ecx]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], eax
cmp byte [esi + 0x51], bl
jne 0x455351
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x454f5b
mov eax, dword [esi + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x24]
add eax, 0xc
cmp dword [eax], ecx
mov ecx, dword [esp + 0xc]
je 0x454f4d
mov ecx, dword [esp + 0x24]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x454f41
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
add edx, edx
mov eax, dword [eax + edx*8]
mov edx, dword [esp + 0x28]
jmp 0x454f5e
mov eax, dword [edx + 0xc]
push eax
push dword [edx + 0x10]
xor edx, edx
call fcn.0045b800
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x455351
mov ecx, dword [eax + 0x48]
mov edx, 0xfff0bdc0
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x454fac
mov eax, dword [esp + 0xc]
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x454fac
nop
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x454fa0
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x10]
mov ecx, edx
add ecx, ecx
mov ecx, dword [eax + ecx*8]
or dword [esi + 0x18], 2
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
test eax, eax
je 0x455023
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x454fe5
xor edi, edi
mov ecx, edi
call fcn.00419140
mov ecx, dword [esp + 0x10]
jmp 0x455025
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, esi
call fcn.00415d30
mov edi, eax
add esp, 8
test edi, edi
je 0x455016
push dword [esp + 0x24]
push dword [esp + 0x30]
push edi
call fcn.004bf9c0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [eax + edi], bl
mov ecx, edi
call fcn.00419140
mov ecx, dword [esp + 0x10]
jmp 0x455025
xor edi, edi
test edi, edi
je 0x455351
push ecx
mov edx, edi
mov ecx, esi
call fcn.0045b6c0
add esp, 4
test eax, eax
jne 0x45533f
push dword [esp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.0045b9b0
add esp, 4
test eax, eax
jne 0x45533f
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
call fcn.00454da0
test eax, eax
jne 0x455351
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.0045c420
test eax, eax
jne 0x455351
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp dword [ecx + 0xc], ebx
je 0x455098
push eax
push str.view__s_may_not_be_altered
jmp 0x455345
mov ecx, dword [esp + 0xc]
mov edx, 0x1a
push 0
push eax
push dword [esp + 0x18]
call fcn.0045adb0
add esp, 0xc
test eax, eax
jne 0x455351
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
call fcn.0045f010
test eax, eax
jne 0x455351
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x38], ebx
je 0x4550f8
mov ebx, dword [eax + 0x40]
test ebx, ebx
je 0x4550eb
nop dword [eax]
cmp dword [ebx], esi
je 0x4550eb
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x4550e0
mov eax, dword [ebx + 8]
xor ecx, ecx
mov eax, dword [eax]
cmp dword [eax + 0x4c], ecx
cmove ebx, ecx
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x45512f
cmp dword [edx + 0x74], eax
jne 0x455118
mov eax, dword [edx]
test byte [eax + 0x4c], 8
jne 0x455118
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.00436cd0
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x455351
mov ecx, dword [edx + 0x74]
test ecx, ecx
mov eax, dword [esp + 0x18]
cmovne edx, ecx
mov byte [edx + 0x15], 1
xor edx, edx
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
cmp byte [eax], dl
je 0x455179
cmp ecx, 0xffffffff
jae 0x455175
mov al, byte [ecx]
inc ecx
cmp al, 0xc0
jb 0x45516f
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x45516f
mov al, byte [ecx + 1]
inc ecx
and al, 0xc0
cmp al, 0x80
je 0x455165
inc edx
cmp byte [ecx], 0
jne 0x455151
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp dword [esp + 0x1c], 1
push ecx
sete al
push eax
push edi
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
push eax
push str.sqlite_master
push eax
push str.UPDATE___w_._s_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q___d__WHERE__type_index_OR_tbl_name_Q_COLLATE_nocase_AND___name_NOT_LIKE_sqliteX____ESCAPE_X
push dword [esp + 0x2c]
call fcn.0045b520
add esp, 0x24
push dword [esp + 0x24]
push dword [esp + 0x30]
push edi
push edi
push edi
push str.sqlite_master
push dword [esp + 0x28]
push str.UPDATE__Q._s_SET_tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqliteX_autoindex___ESCAPE_X______AND_typeindex_THEN_sqlite_autoindex____Q__substr_name__d18__ELSE_name_END_WHERE_tbl_name_Q_COLLATE_nocase_AND__typetable_OR_typeindex_OR_typetrigger__
push dword [esp + 0x2c]
call fcn.0045b520
add esp, 0x24
mov edx, str.sqlite_sequence
mov ecx, esi
push dword [esp + 0x10]
call fcn.0045b6c0
add esp, 4
test eax, eax
je 0x455203
mov eax, dword [esp + 0x18]
push dword [eax]
push edi
push dword [esp + 0x18]
push str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
push dword [esp + 0x1c]
call fcn.0045b520
add esp, 0x14
cmp dword [esp + 0x1c], 1
je 0x455229
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push edi
push eax
push ecx
push edi
push ecx
push eax
push str.UPDATE_sqlite_temp_master_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q__1___tbl_name__CASE_WHEN_tbl_name_Q_COLLATE_nocase_AND___________sqlite_rename_test__Q__sql__type__name__1__THEN__Q_ELSE_tbl_name_END_WHERE_type_IN__view__trigger_
push dword [esp + 0x28]
call fcn.0045b520
add esp, 0x20
test ebx, ebx
je 0x4552f3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push edi
inc dword [eax + 0x2c]
mov eax, dword [eax + 0x2c]
mov edx, eax
mov dword [esp + 0x30], eax
call fcn.00437010
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x455273
push 0
push 0
push dword [esp + 0x34]
mov edx, 0xa5
call fcn.00436f60
add esp, 0xc
mov edx, eax
jmp 0x4552ae
mov esi, dword [esp + 0x2c]
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xa5
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp byte [eax + 0x51], 0
jne 0x4552f3
test edx, edx
jns 0x4552c2
mov edx, dword [ecx + 0x6c]
dec edx
mov eax, dword [esp + 0x14]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4552e9
mov ecx, dword [esp + 0x14]
mov edx, eax
push 0xfffffffffffffff4
push ebx
call fcn.00437ab0
add esp, 8
jmp 0x4552f3
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0xf4
inc dword [ebx + 0xc]
mov ebx, dword [esp + 0xc]
mov ecx, ebx
mov edx, dword [esp + 0x1c]
call fcn.00454e50
push dword [esp + 0x34]
mov eax, dword [esp + 0x14]
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.0045b520
add esp, 0x18
cmp dword [esp + 0x1c], 1
je 0x455351
push dword [esp + 0x10]
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.0045b520
add esp, 0x10
jmp 0x455351
push edi
push str.there_is_already_another_table_or_index_with_this_name:__s
push dword [esp + 0x14]
call fcn.00419050
add esp, 0xc
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.00462740
test edi, edi
je 0x4553b5
cmp dword [esi + 0x1e8], 0
je 0x455380
mov edx, edi
mov ecx, esi
call fcn.004159a0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, dword [esi + 0x138]
jb 0x4553ac
cmp edi, dword [esi + 0x13c]
jae 0x4553ac
mov eax, dword [esi + 0x134]
mov dword [edi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x134], edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00415930
add esp, 4
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret