31 lines
1.2 KiB
C
31 lines
1.2 KiB
C
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
|
* Ghidra 12.1.2 decompiler output for 0x14003a680 ATL::CWin32Heap::Reallocate
|
|
* Pseudocode, not original source. */
|
|
|
|
/* Library Function - Single Match
|
|
public: virtual void * __ptr64 __cdecl ATL::CWin32Heap::Reallocate(void * __ptr64,unsigned
|
|
__int64) __ptr64
|
|
|
|
Libraries: Visual Studio 2010 Release, Visual Studio 2012 Release */
|
|
|
|
void * __thiscall ATL::CWin32Heap::Reallocate(CWin32Heap *this,void *param_1,__uint64 param_2)
|
|
|
|
{
|
|
void *pvVar1;
|
|
|
|
if (param_1 == (void *)0x0) {
|
|
/* WARNING: Could not recover jumptable at 0x00014003a693. Too many branches */
|
|
/* WARNING: Treating indirect jump as call */
|
|
pvVar1 = (void *)(*(code *)**(undefined8 **)this)(this,param_2);
|
|
return pvVar1;
|
|
}
|
|
if (param_2 == 0) {
|
|
(**(code **)(*(longlong *)this + 8))();
|
|
return (void *)0x0;
|
|
}
|
|
/* WARNING: Could not recover jumptable at 0x00014003a6b8. Too many branches */
|
|
/* WARNING: Treating indirect jump as call */
|
|
pvVar1 = (void *)HeapReAlloc(*(undefined8 *)(this + 8),0,param_1,param_2);
|
|
return pvVar1;
|
|
}
|
|
|