Function at 0x4f9d40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
je 0x4f9d5c
jmp 0x4fa102
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xec]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0051b090
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [edx + ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
add ecx, 0x10
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
movsx eax, word [edx + 0x22]
sub eax, 1
shl eax, 4
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00500f70
add esp, 8
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00500510
add esp, 0xc
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x1a
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ffce0
add esp, 0x14
test eax, eax
je 0x4f9dfe
jmp 0x4fa102
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 1
je 0x4f9e20
push str.Cannot_add_a_PRIMARY_KEY_column
mov ecx, dword [ebp + 8]
push ecx
call fcn.004af360
add esp, 8
jmp 0x4fa102
mov edx, dword [ebp - 0x24]
cmp dword [edx + 8], 0
je 0x4f9e3f
push str.Cannot_add_a_UNIQUE_column
mov eax, dword [ebp + 8]
push eax
call fcn.004af360
add esp, 8
jmp 0x4fa102
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xe]
and edx, 0x60
jne 0x4f9f3c
cmp dword [ebp - 0x28], 0
je 0x4f9e6a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
movzx edx, byte [ecx]
cmp edx, 0x79
jne 0x4f9e6a
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
and ecx, 0x4000
mov edx, dword [eax + 0x24]
and edx, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
je 0x4f9eb2
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x30], 0
je 0x4f9eb2
cmp dword [ebp - 0x28], 0
je 0x4f9eb2
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9d10
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
and eax, 0xf
je 0x4f9edc
cmp dword [ebp - 0x28], 0
jne 0x4f9edc
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f9d10
add esp, 0x10
cmp dword [ebp - 0x28], 0
je 0x4f9f3a
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0x41
push 1
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004d5910
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4f9f0f
jmp 0x4fa102
cmp dword [ebp - 0x34], 0
jne 0x4f9f2e
push str.Cannot_add_a_column_with_non_constant_default
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f9d10
add esp, 0x10
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004d5980
add esp, 4
jmp 0x4f9f61
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x40
je 0x4f9f61
push str.cannot_add_a_STORED_column
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f9d10
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004ab0e0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4fa00b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx - 1]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0xc]
jbe 0x4f9fd0
mov eax, dword [ebp - 0x38]
movsx ecx, byte [eax]
cmp ecx, 0x3b
je 0x4f9fbf
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x594e90]
and ecx, 1
je 0x4f9fd0
mov edx, dword [ebp - 0x38]
mov byte [edx], 0
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
jmp 0x4f9f9a
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
mov edx, dword [ebp + 8]
push edx
call fcn.005003e0
add esp, 0x1c
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004aa9d0
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.0051ec50
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4fa102
mov eax, dword [ebp + 8]
push eax
call fcn.004f96b0
add esp, 4
mov dword [ebp - 0x14], eax
push 2
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x63
mov eax, dword [ebp - 4]
push eax
call fcn.004d5e30
add esp, 0x14
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004d7350
add esp, 8
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x14]
push eax
push 0x56
mov ecx, dword [ebp - 4]
push ecx
call fcn.004d5f10
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.004d6730
add esp, 4
add eax, 2
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x31
mov ecx, dword [ebp - 4]
push ecx
call fcn.004d5f10
add esp, 0x10
push 3
push 2
mov edx, dword [ebp - 0x2c]
push edx
push 0x64
mov eax, dword [ebp - 4]
push eax
call fcn.004d5e30
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f9700
add esp, 8
push 3
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9930
add esp, 0xc
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x10], 0
jne 0x4fa0e9
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
and ecx, 0xf
je 0x4fa102
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x60
je 0x4fa102
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
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
mov eax, dword [ebp + 8]
push eax
call fcn.005003e0
add esp, 0x10
mov esp, ebp
pop ebp
ret