Function at 0x4e4e50
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 - 0x10], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
je 0x4e4e6c
jmp 0x4e5217
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xec]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0050f3e0
add esp, 8
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
shl edx, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx]
mov dword [ebp - 8], edx
mov eax, 1
shl eax, 4
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
sub eax, 1
shl eax, 4
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004ed6e0
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004f9570
add esp, 0xc
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x1a
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e66d0
add esp, 0x14
test eax, eax
je 0x4e4f13
jmp 0x4e5217
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 1
je 0x4e4f35
push str.Cannot_add_a_PRIMARY_KEY_column
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f2f90
add esp, 8
jmp 0x4e5217
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x4e4f54
push str.Cannot_add_a_UNIQUE_column
mov eax, dword [ebp + 8]
push eax
call fcn.004f2f90
add esp, 8
jmp 0x4e5217
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xe]
and edx, 0x60
jne 0x4e5051
cmp dword [ebp - 0xc], 0
je 0x4e4f7f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
movzx edx, byte [ecx]
cmp edx, 0x79
jne 0x4e4f7f
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
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 0x4e4fc7
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x30], 0
je 0x4e4fc7
cmp dword [ebp - 0xc], 0
je 0x4e4fc7
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f2f60
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
and eax, 0xf
je 0x4e4ff1
cmp dword [ebp - 0xc], 0
jne 0x4e4ff1
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f2f60
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4e504f
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push ecx
push 0x41
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.005176b0
add esp, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4e5024
jmp 0x4e5217
cmp dword [ebp - 0x30], 0
jne 0x4e5043
push str.Cannot_add_a_column_with_non_constant_default
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f2f60
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00517680
add esp, 4
jmp 0x4e5076
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x40
je 0x4e5076
push str.cannot_add_a_STORED_column
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f2f60
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 - 0x10]
push eax
call fcn.004f08f0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4e5120
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx - 1]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x24]
jbe 0x4e50e5
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0x3b
je 0x4e50d4
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5bedf0]
and ecx, 1
je 0x4e50e5
mov edx, dword [ebp - 0x20]
mov byte [edx], 0
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4e50af
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 8]
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.00503750
add esp, 0x1c
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004f0290
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.004fe6e0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e5217
mov eax, dword [ebp + 8]
push eax
call fcn.004fd640
add esp, 4
mov dword [ebp - 0x2c], eax
push 2
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x62
mov eax, dword [ebp - 0x14]
push eax
call fcn.00517970
add esp, 0x14
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005272f0
add esp, 8
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x2c]
push eax
push 0x55
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00517950
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
call fcn.005182f0
add esp, 4
add eax, 2
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x31
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00517950
add esp, 0x10
push 3
push 2
mov edx, dword [ebp - 0x28]
push edx
push 0x63
mov eax, dword [ebp - 0x14]
push eax
call fcn.00517970
add esp, 0x14
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050d470
add esp, 8
push 3
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004dd680
add esp, 0xc
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x4e51fe
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
and ecx, 0xf
je 0x4e5217
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x60
je 0x4e5217
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
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.00503750
add esp, 0x10
mov esp, ebp
pop ebp
ret