Function at 0x4d9c70
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 0x4d9c8c
jmp 0x4da037
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.00504200
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.004e2500
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.004ee390
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.004db4f0
add esp, 0x14
test eax, eax
je 0x4d9d33
jmp 0x4da037
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 1
je 0x4d9d55
push str.Cannot_add_a_PRIMARY_KEY_column
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e7db0
add esp, 8
jmp 0x4da037
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x4d9d74
push str.Cannot_add_a_UNIQUE_column
mov eax, dword [ebp + 8]
push eax
call fcn.004e7db0
add esp, 8
jmp 0x4da037
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xe]
and edx, 0x60
jne 0x4d9e71
cmp dword [ebp - 0xc], 0
je 0x4d9d9f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
movzx edx, byte [ecx]
cmp edx, 0x79
jne 0x4d9d9f
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 0x4d9de7
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x30], 0
je 0x4d9de7
cmp dword [ebp - 0xc], 0
je 0x4d9de7
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.004e7d80
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
and eax, 0xf
je 0x4d9e11
cmp dword [ebp - 0xc], 0
jne 0x4d9e11
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.004e7d80
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4d9e6f
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.0050c4d0
add esp, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4d9e44
jmp 0x4da037
cmp dword [ebp - 0x30], 0
jne 0x4d9e63
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.004e7d80
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0050c4a0
add esp, 4
jmp 0x4d9e96
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x40
je 0x4d9e96
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.004e7d80
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.004e5710
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4d9f40
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 0x4d9f05
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0x3b
je 0x4d9ef4
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5b8c30]
and ecx, 1
je 0x4d9f05
mov edx, dword [ebp - 0x20]
mov byte [edx], 0
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4d9ecf
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.004f8570
add esp, 0x1c
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004e50b0
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.004f3500
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4da037
mov eax, dword [ebp + 8]
push eax
call fcn.004f2460
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.0050c790
add esp, 0x14
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0051c110
add esp, 8
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x2c]
push eax
push 0x55
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0050c770
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
call fcn.0050d110
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.0050c770
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.0050c790
add esp, 0x14
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00502290
add esp, 8
push 3
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d24a0
add esp, 0xc
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x4da01e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
and ecx, 0xf
je 0x4da037
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x60
je 0x4da037
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.004f8570
add esp, 0x10
mov esp, ebp
pop ebp
ret