Unexpected memory changes caused by using global memory change global memory to heap memory.
Cell:(Abs:0x2B98)[A8][FF][FF][FF][6E][6B]
Size: 0x58
Signeture: nk
Flags: 0x20
Time stamp: 2021/09/12 08:56
Access bits: 0x2
Parent offset: 0x3D8
Number of subkeys: 0x0
Number of volatile subkeys: 0x0
Subkeys list offset: 0xFFFFFFFF
Number of key values: 0x1
Key values list offset: 0x19B8
Key security offset: 0x178
Class name offset: 0xFFFFFFFF
Largest subkey name length: 0x0
Largest subkey class name length: 0x0
Largest value name length: 0xE
Largest value data size: 0x1
WorkVar: 0x0
Key name length: 0x8
Class name length: 0x0
Key name: 46000010
ValueList:(Abs:0x29B8)[F8][FF][FF][FF]
Size: 0x8
Offset #0: 0x1998
Cell:(Abs:0x2998)[E0][FF][FF][FF][76][6B]
Size: 0x20
Signeture: vk
Value name size: 0x7
Data size: 0x80000001
Data offset: 0x1
Data type: 0x3
Flags: 0x1
Key name: Element
Data: 0x1
ValueList:(Abs:0x29B8)[F8][FF][FF][FF]
Size: 0x8
Offset #0: 0x1998
Cell:(Abs:0x2998)[E0][FF][FF][FF][76][6B]
Size: 0x20
Signeture: vk
Value name size: 0x7
Data size: 0x80000001
Data offset: 0x1
Data type: 0x3
Flags: 0x1
Key name: Element
Data: 0x1
When the key node structure changed by the child key returns to the parent key, the unset is changed and the same value is referenced.
Change to a local variable and allocate heap memory. Since memory usage will increase more than before, we will organize variables.