Function at 0x45f0b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57f0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], edx
cmp dword [edi + 0x24], 0
mov esi, dword [edi]
mov dword [ebp - 0xc], esi
jne 0x45f3c5
mov edx, dword [edi + 0xec]
mov ebx, 0xffff8000
mov dword [ebp - 0x18], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x45f100
mov eax, dword [esi + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x45f100
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x45f0f8
mov eax, dword [esi + 0x10]
mov ecx, ebx
add ecx, ecx
mov eax, dword [eax + ecx*8]
movsx ecx, word [edx + 0x22]
mov dword [ebp - 0x10], eax
mov eax, dword [edx]
add eax, 0x10
shl ecx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
add eax, ecx
mov dword [ebp - 0x1c], eax
movzx eax, word [eax - 4]
test ax, ax
jne 0x45f131
xor esi, esi
jmp 0x45f151
cmp byte [edx + 0x2b], 0
je 0x45f13b
xor esi, esi
jmp 0x45f151
mov esi, dword [edx + 0x34]
test esi, esi
je 0x45f151
cmp dword [esi], eax
jge 0x45f14a
xor esi, esi
jmp 0x45f151
lea eax, [eax + eax*4]
mov esi, dword [esi + eax*4 - 0xc]
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
call fcn.00465130
add esp, 4
mov edx, 0x1a
mov ecx, edi
push 0
push dword [eax]
push dword [ebp - 0x10]
call fcn.004648a0
add esp, 0xc
test eax, eax
jne 0x45f3c5
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax - 2]
test al, 1
je 0x45f1aa
push str.Cannot_add_a_PRIMARY_KEY_column
push edi
call fcn.00421640
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518690
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x45f1d2
push str.Cannot_add_a_UNIQUE_column
push edi
call fcn.00421640
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518690
mov esp, ebp
pop ebp
ret
test al, 0x60
jne 0x45f289
test esi, esi
je 0x45f1e9
mov eax, dword [esi + 0xc]
xor edx, edx
cmp byte [eax], 0x79
cmove esi, edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x45f21c
cmp dword [ecx + 0x30], 0
je 0x45f21c
test esi, esi
je 0x45f21c
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push edi
call fcn.00465000
add esp, 0x14
mov eax, dword [ebp - 0x1c]
test byte [eax - 0xc], 0xf
je 0x45f236
test esi, esi
jne 0x45f23a
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x45f298
test esi, esi
je 0x45f2a6
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x41
push 1
mov edx, esi
mov dword [ebp - 8], 0
call fcn.0043f4f0
add esp, 0x10
test eax, eax
jne 0x45f3c5
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x45f282
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.Cannot_add_a_column_with_non_constant_default
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push edi
call fcn.00465000
mov ecx, dword [ebp - 8]
add esp, 0x14
call fcn.0043fac0
jmp 0x45f2a6
test al, 0x40
je 0x45f2a6
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.cannot_add_a_STORED_column
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push edi
call fcn.00465000
add esp, 0x14
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push 0
push dword [eax + 4]
mov edx, dword [eax]
call fcn.0041e4a0
mov esi, eax
add esp, 8
test esi, esi
je 0x45f311
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 4]
dec ecx
add ecx, esi
cmp ecx, esi
jbe 0x45f2ea
nop
mov al, byte [ecx]
cmp al, 0x3b
je 0x45f2e2
movzx eax, al
test byte [eax + 0x566088], 1
je 0x45f2ea
mov byte [ecx], 0
dec ecx
cmp ecx, esi
ja 0x45f2d0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
push eax
push esi
push eax
push dword [ebp - 0x10]
push str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
push edi
call fcn.00465000
mov ecx, dword [ebp - 0xc]
add esp, 0x1c
mov edx, esi
call fcn.0041def0
mov ecx, edi
call fcn.00482840
mov dword [ebp - 0xc], eax
test eax, eax
je 0x45f3c5
mov ecx, edi
call fcn.0045eb00
mov ecx, dword [ebp - 0xc]
mov esi, eax
push 2
push esi
push ebx
mov edx, 0x63
call fcn.0043fd40
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, ebx
call fcn.00440f70
mov ecx, dword [ebp - 0xc]
mov edx, 0x56
push 0xfffffffffffffffe
push esi
call fcn.0043fe70
mov ecx, dword [ebp - 0xc]
mov edx, 0x31
mov eax, dword [ecx + 0x6c]
add eax, 2
push eax
push esi
call fcn.0043fe70
mov ecx, dword [ebp - 0xc]
mov edx, 0x64
push 3
push 2
push ebx
call fcn.0043fd40
add esp, 0x1c
mov edx, esi
mov ecx, edi
call fcn.0045eb20
push 3
mov edx, ebx
call fcn.0045ed10
mov eax, dword [ebp - 0x18]
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x45f3b1
mov eax, dword [ebp - 0x1c]
test byte [eax - 0xc], 0xf
je 0x45f3c5
test byte [eax - 2], 0x60
je 0x45f3c5
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
push edi
call fcn.00465000
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518690
mov esp, ebp
pop ebp
ret