Function at 0x4f3d00
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 0x4f3d1c
jmp 0x4f40c2
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.00515040
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.004faf30
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.004fa4d0
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.004f9ca0
add esp, 0x14
test eax, eax
je 0x4f3dbe
jmp 0x4f40c2
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 1
je 0x4f3de0
push str.Cannot_add_a_PRIMARY_KEY_column
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a9320
add esp, 8
jmp 0x4f40c2
mov edx, dword [ebp - 0x24]
cmp dword [edx + 8], 0
je 0x4f3dff
push str.Cannot_add_a_UNIQUE_column
mov eax, dword [ebp + 8]
push eax
call fcn.004a9320
add esp, 8
jmp 0x4f40c2
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xe]
and edx, 0x60
jne 0x4f3efc
cmp dword [ebp - 0x28], 0
je 0x4f3e2a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
movzx edx, byte [ecx]
cmp edx, 0x79
jne 0x4f3e2a
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 0x4f3e72
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x30], 0
je 0x4f3e72
cmp dword [ebp - 0x28], 0
je 0x4f3e72
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.004f3cd0
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
and eax, 0xf
je 0x4f3e9c
cmp dword [ebp - 0x28], 0
jne 0x4f3e9c
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.004f3cd0
add esp, 0x10
cmp dword [ebp - 0x28], 0
je 0x4f3efa
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.004cf8e0
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4f3ecf
jmp 0x4f40c2
cmp dword [ebp - 0x34], 0
jne 0x4f3eee
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.004f3cd0
add esp, 0x10
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004cf950
add esp, 4
jmp 0x4f3f21
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x40
je 0x4f3f21
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.004f3cd0
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.004a50a0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f3fcb
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 0x4f3f90
mov eax, dword [ebp - 0x38]
movsx ecx, byte [eax]
cmp ecx, 0x3b
je 0x4f3f7f
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x58ee70]
and ecx, 1
je 0x4f3f90
mov edx, dword [ebp - 0x38]
mov byte [edx], 0
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
jmp 0x4f3f5a
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.004fa3a0
add esp, 0x1c
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004a4990
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.00518c00
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f40c2
mov eax, dword [ebp + 8]
push eax
call fcn.004f3670
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.004cfdf0
add esp, 0x14
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004d1310
add esp, 8
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x14]
push eax
push 0x56
mov ecx, dword [ebp - 4]
push ecx
call fcn.004cfed0
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.004d06f0
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.004cfed0
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.004cfdf0
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f36c0
add esp, 8
push 3
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f38f0
add esp, 0xc
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x10], 0
jne 0x4f40a9
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
and ecx, 0xf
je 0x4f40c2
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
and eax, 0x60
je 0x4f40c2
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.004fa3a0
add esp, 0x10
mov esp, ebp
pop ebp
ret