Function at 0x48298f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x24], 0
mov ebx, dword [edi]
mov dword [ebp - 4], ebx
jne 0x482c1d
push esi
mov esi, dword [edi + 0xf8]
mov dword [ebp - 0x10], esi
push dword [esi + 0x3c]
push ebx
call fcn.0049e806
mov ecx, dword [ebx + 0x10]
mov edx, eax
mov ebx, dword [esi]
add edx, edx
mov dword [ebp - 8], eax
add ebx, 0x10
mov eax, dword [esi + 4]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], ebx
mov edx, dword [ecx + edx*8]
movsx ecx, word [esi + 0x22]
shl ecx, 4
add eax, ecx
mov dword [ebp + 8], edx
push eax
push esi
mov dword [ebp - 0x14], eax
call fcn.00488164
push edx
push ebx
push dword [ebp - 4]
mov esi, eax
call fcn.0048fecd
push 0
mov dword [ebp - 0x18], eax
push dword [eax]
push dword [ebp + 8]
push 0x1a
push edi
call fcn.00483c99
add esp, 0x30
test eax, eax
jne 0x482c1c
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xe]
test al, 1
je 0x482a28
push str.Cannot_add_a_PRIMARY_KEY_column
jmp 0x482a36
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0
je 0x482a43
push str.Cannot_add_a_UNIQUE_column
push edi
call fcn.0048bb1f
pop ecx
pop ecx
jmp 0x482c1c
test al, 0x60
jne 0x482af5
test esi, esi
je 0x482a5a
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp byte [eax], 0x79
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x482a89
cmp dword [edx + 0x30], 0
je 0x482a89
test esi, esi
je 0x482a89
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push ebx
push dword [ebp + 8]
push edi
call fcn.0048bb01
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x14]
test byte [eax + 4], 0xf
je 0x482a9d
test esi, esi
jne 0x482aa1
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x482afe
test esi, esi
je 0x482b0b
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 0
push eax
push 0x41
push 1
push esi
push ecx
call fcn.004b68a1
add esp, 0x18
test eax, eax
jne 0x482c1c
mov esi, dword [ebp - 0xc]
test esi, esi
jne 0x482ae1
push str.Cannot_add_a_column_with_non_constant_default
push ebx
push dword [ebp + 8]
push edi
call fcn.0048bb01
mov esi, dword [ebp - 0xc]
add esp, 0x10
test esi, esi
je 0x482b0b
push esi
call fcn.004ac785
push esi
push dword [esi + 0x14]
call fcn.00489ef9
add esp, 0xc
jmp 0x482b0b
test al, 0x40
je 0x482b0b
push str.cannot_add_a_STORED_column
push ebx
push dword [ebp + 8]
push edi
call fcn.0048bb01
add esp, 0x10
mov eax, dword [ebp + 0xc]
push 0
push dword [eax + 4]
push dword [eax]
push dword [ebp - 4]
call fcn.0048a2a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x482b70
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
dec ecx
add ecx, esi
jmp 0x482b47
mov al, byte [ecx]
cmp al, 0x3b
je 0x482b43
movzx eax, al
test byte [eax + 0x68fd68], 1
je 0x482b4b
mov byte [ecx], 0
dec ecx
cmp ecx, esi
ja 0x482b31
mov eax, dword [ebp - 0x10]
push ebx
push dword [eax + 0x2c]
push esi
push dword [eax + 0x2c]
push dword [ebp + 8]
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.00496b6b
push esi
push dword [ebp - 4]
call fcn.00489ef9
add esp, 0x24
push edi
call fcn.004938c2
mov ebx, eax
pop ecx
test ebx, ebx
je 0x482c1c
push edi
call fcn.00493013
push 2
mov esi, eax
push esi
push dword [ebp - 8]
push 0x63
push ebx
call fcn.004a47e6
push dword [ebp - 8]
push ebx
call fcn.004ae40d
push 0
push 0xfffffffffffffffe
push esi
push 0x56
push ebx
call fcn.004a47e6
mov eax, dword [ebx + 0x6c]
add eax, 2
push eax
push esi
push 0x3b
push ebx
call fcn.004a47cb
add esp, 0x44
push 3
push 2
push dword [ebp - 8]
push 0x64
push ebx
call fcn.004a47e6
push esi
push edi
call fcn.0049d34f
push 3
push dword [ebp - 8]
push edi
call fcn.0047d6da
mov eax, dword [ebp - 0x10]
add esp, 0x28
cmp dword [eax + 0x10], 0
jne 0x482c08
mov eax, dword [ebp - 0x14]
test byte [eax + 4], 0xf
je 0x482bfc
test byte [eax + 0xe], 0x60
jne 0x482c08
mov eax, dword [ebp - 0x18]
test dword [eax + 0x1c], 0x10000
je 0x482c1c
push dword [ebp + 8]
push dword [ebp - 0x1c]
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.00496b6b
add esp, 0x10
pop esi
pop edi
pop ebx
leave
ret