ちなみに今動作テスト中の>>523版を大雑把にC++のコードにするとこんな感じ
アセンブラなので滅多に発生しないであろうWin32後のエラーチェックは面倒で入れてないのと毎回GetProcAddressしちゃうのがちょっと心残り
なんか抜けてそうな所あったら指摘してもらいたい

void getApiKey(TPoster* poster){
char stack[0x1010];
char* buf = stack + 0x10;
*(int*)(buf + GetModuleFileNameA(NULL, buf, 0x1000) - 3) = 'ini';
auto GetPrivateProfileStringA = (decltype(&::GetPrivateProfileStringA))GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetPrivateProfileStringA");
DWORD cookieValueLength = GetPrivateProfileStringA("TEST", "WrtCookie", NULL, buf, 0x1000, buf);
if (cookieValueLength != 0){
*(int*)(buf - 4) = cookieValueLength;
auto delphiString = string::concat("Cookie: ", buf);
poster->stringList->append(delphiString);
--delphiString->refCount;
}
}