#include "classes.h" // 007e48b0 PathNode::PathNode(void *other) { size_t srcBytes; uint uVar1; void *buffer; void *srcBegin; *GHIDRA_CAST(this) = *GHIDRA_CAST(other); *GHIDRA_CAST((GHIDRA_CAST(this) + 4)) = *GHIDRA_CAST((GHIDRA_CAST(other) + 4)); *GHIDRA_CAST((GHIDRA_CAST(this) + 8)) = 0; *GHIDRA_CAST((GHIDRA_CAST(this) + 0xc)) = 0; *GHIDRA_CAST((GHIDRA_CAST(this) + 0x10)) = 0; srcBegin = *(void **)(GHIDRA_CAST(other) + 8); if (srcBegin != *(void **)(GHIDRA_CAST(other) + 0xc)) { srcBytes = GHIDRA_INT(*(void **)(GHIDRA_CAST(other) + 0xc)) - GHIDRA_INT(srcBegin); uVar1 = GHIDRA_INT(srcBytes) >> 2; if (0x3fffffff < uVar1) { /* WARNING: Subroutine does not return */ FUN_0040cee0(); } uVar1 = uVar1 * 4; buffer = std::_Allocate(uVar1); *(void **)(GHIDRA_CAST(this) + 8) = buffer; *(void **)(GHIDRA_CAST(this) + 0xc) = buffer; *(void **)(GHIDRA_CAST(this) + 0x10) = (void *)(GHIDRA_INT(buffer) + uVar1); buffer = *(void **)(GHIDRA_CAST(this) + 8); memmove(buffer,srcBegin,srcBytes); *(void **)(GHIDRA_CAST(this) + 0xc) = (void *)(uVar1 + GHIDRA_INT(buffer)); } return this; }