Function at 0x558980
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x18
push ebx
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x24], 0
mov ebx, dword [edi]
mov dword [esp + 0x24], ebx
jne 0x558c1a
push ebp
push esi
mov esi, dword [edi + 0xf8]
mov dword [esp + 0x18], esi
push dword [esi + 0x3c]
push ebx
call fcn.0057526e
mov ecx, dword [ebx + 0x10]
mov edx, eax
mov ebp, dword [esi]
add edx, edx
mov dword [esp + 0x18], eax
add ebp, 0x10
mov eax, dword [esi + 4]
add eax, 0xfffffff0
mov ebx, dword [ecx + edx*8]
movsx ecx, word [esi + 0x22]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x2c], ebx
push eax
push esi
mov dword [esp + 0x2c], eax
call fcn.0055e30b
push ebx
push ebp
push dword [esp + 0x44]
mov esi, eax
call fcn.00566398
push 0
mov dword [esp + 0x40], eax
push dword [eax]
push ebx
push 0x1a
push edi
call fcn.00559d89
add esp, 0x30
test eax, eax
jne 0x558c18
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0xe]
test al, 1
je 0x558a1b
push str.Cannot_add_a_PRIMARY_KEY_column
jmp 0x558a2a
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], 0
je 0x558a37
push str.Cannot_add_a_UNIQUE_column
push edi
call fcn.00561f37
pop ecx
pop ecx
jmp 0x558c18
test al, 0x60
jne 0x558aec
test esi, esi
je 0x558a4e
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp byte [eax], 0x79
cmove esi, ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x558a7d
cmp dword [edx + 0x30], 0
je 0x558a7d
test esi, esi
je 0x558a7d
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push ebp
push ebx
push edi
call fcn.00561f19
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [esp + 0x1c]
test byte [eax + 4], 0xf
je 0x558a92
test esi, esi
jne 0x558a96
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x558af5
test esi, esi
je 0x558b00
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
push 0x41
push 1
push esi
push ecx
call fcn.0058dda2
add esp, 0x18
test eax, eax
jne 0x558c18
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x558ad8
push str.Cannot_add_a_column_with_non_constant_default
push ebp
push ebx
push edi
call fcn.00561f19
mov esi, dword [esp + 0x24]
add esp, 0x10
test esi, esi
je 0x558b00
push esi
call fcn.00583802
push esi
push dword [esi + 0x14]
call fcn.00560283
add esp, 0xc
jmp 0x558b00
test al, 0x40
je 0x558b00
push str.cannot_add_a_STORED_column
push ebp
push ebx
push edi
call fcn.00561f19
add esp, 0x10
mov eax, dword [esp + 0x30]
push 0
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x38]
call fcn.00560620
mov esi, eax
add esp, 0x10
test esi, esi
je 0x558b68
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 4]
dec ecx
add ecx, esi
jmp 0x558b3f
mov al, byte [ecx]
cmp al, 0x3b
je 0x558b3b
movzx eax, al
test byte [eax + 0x657150], 1
je 0x558b43
mov byte [ecx], 0
dec ecx
cmp ecx, esi
ja 0x558b29
mov eax, dword [esp + 0x18]
push ebp
push dword [eax + 0x2c]
push esi
push dword [eax + 0x2c]
push ebx
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.0056d352
push esi
push dword [esp + 0x4c]
call fcn.00560283
add esp, 0x24
push edi
call fcn.0056a013
mov ebx, eax
pop ecx
test ebx, ebx
je 0x558c18
push edi
call fcn.00569765
push 2
mov esi, eax
push esi
push dword [esp + 0x1c]
push 0x63
push ebx
call fcn.0057b786
push dword [esp + 0x28]
push ebx
call fcn.00585486
push 0xfffffffffffffffe
push esi
push 0x56
push ebx
call fcn.0057b76b
mov eax, dword [ebx + 0x6c]
add eax, 2
push eax
push esi
push 0x3b
push ebx
call fcn.0057b76b
add esp, 0x40
push 3
push 2
push dword [esp + 0x18]
push 0x64
push ebx
call fcn.0057b786
push esi
push edi
call fcn.00573e04
push 3
push dword [esp + 0x30]
push edi
call fcn.00553614
mov eax, dword [esp + 0x40]
add esp, 0x28
cmp dword [eax + 0x10], 0
jne 0x558c05
mov eax, dword [esp + 0x1c]
test byte [eax + 4], 0xf
je 0x558bf8
test byte [eax + 0xe], 0x60
jne 0x558c05
mov eax, dword [esp + 0x20]
test dword [eax + 0x1c], 0x10000
je 0x558c18
push dword [esp + 0x24]
push ebp
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__WHEN_quick_check_GLOB_non__value_in_THEN_raise_ABORT_type_mismatch_on_DEFAULT__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL_OR_quick_check_GLOB_non__value_in
push edi
call fcn.0056d352
add esp, 0x10
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret