Function at 0x4dcbc0
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 0x4dcbdc
jmp 0x4dcf87
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.00507150
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.004e5450
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.004f12e0
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.004de440
add esp, 0x14
test eax, eax
je 0x4dcc83
jmp 0x4dcf87
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 1
je 0x4dcca5
push str.Cannot_add_a_PRIMARY_KEY_column
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ead00
add esp, 8
jmp 0x4dcf87
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x4dccc4
push str.Cannot_add_a_UNIQUE_column
mov eax, dword [ebp + 8]
push eax
call fcn.004ead00
add esp, 8
jmp 0x4dcf87
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xe]
and edx, 0x60
jne 0x4dcdc1
cmp dword [ebp - 0xc], 0
je 0x4dccef
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
movzx edx, byte [ecx]
cmp edx, 0x79
jne 0x4dccef
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 0x4dcd37
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x30], 0
je 0x4dcd37
cmp dword [ebp - 0xc], 0
je 0x4dcd37
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.004eacd0
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
and eax, 0xf
je 0x4dcd61
cmp dword [ebp - 0xc], 0
jne 0x4dcd61
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.004eacd0
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4dcdbf
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.0050f420
add esp, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4dcd94
jmp 0x4dcf87
cmp dword [ebp - 0x30], 0
jne 0x4dcdb3
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.004eacd0
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0050f3f0
add esp, 4
jmp 0x4dcde6
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x40
je 0x4dcde6
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.004eacd0
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.004e8660
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4dce90
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 0x4dce55
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0x3b
je 0x4dce44
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5b91e0]
and ecx, 1
je 0x4dce55
mov edx, dword [ebp - 0x20]
mov byte [edx], 0
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4dce1f
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.004fb4c0
add esp, 0x1c
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004e8000
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.004f6450
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4dcf87
mov eax, dword [ebp + 8]
push eax
call fcn.004f53b0
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.0050f6e0
add esp, 0x14
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0051f060
add esp, 8
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x2c]
push eax
push 0x55
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0050f6c0
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
call fcn.00510060
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.0050f6c0
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.0050f6e0
add esp, 0x14
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005051e0
add esp, 8
push 3
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d53d0
add esp, 0xc
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x4dcf6e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
and ecx, 0xf
je 0x4dcf87
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x60
je 0x4dcf87
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.004fb4c0
add esp, 0x10
mov esp, ebp
pop ebp
ret