// // SecretLayer4::getBasicMessage from 0x10039d8c0 to 0x10039dc86 (966 bytes) // // 3 xrefs: // > SecretLayer4::init @ 0x10039a602 // > sub_10039B170 @ 0x10039b1ed // > SecretLayer4::onSubmit @ 0x10039bc47 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:29:19 +0000 // _QWORD *__fastcall SecretLayer4::getBasicMessage(_QWORD *a1, __int64 a2, __m128 a3) { int v3; // eax int v4; // eax __m128 v5; // xmm1 __int64 v6; // rcx _BYTE *v7; // rax char *v8; // rax char *v9; // rax char *v10; // rax char *v11; // rax char *v12; // rax __int128 v13; // xmm0 _OWORD *v14; // rax __int128 v15; // xmm0 char *v16; // rax ++*(_DWORD *)(a2 + 448); v3 = *(_DWORD *)(a2 + 436); if ( v3 < 0 ) { a3.f32[0] = (float)((float)rand() * 4.6566129e-10) * 20.0; v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, a3), (__m128)xmmword_100A03600); v5.f32[0] = v5.f32[0] + a3.f32[0]; v4 = (int)_mm_round_ss((__m128)0LL, v5, 11).f32[0]; } else { v4 = v3 + 1; } v6 = 0; if ( v4 < 21 ) v6 = (unsigned int)v4; *(_DWORD *)(a2 + 436) = v6; switch ( v6 ) { case 0LL: v10 = (char *)operator new(0x1Au); a1[2] = v10; *a1 = 27; a1[1] = 23; *(_QWORD *)(v10 + 15) = 0x3F6E656B6F776120LL; *(_OWORD *)v10 = *(_OWORD *)"Why have I been awoken?"; v7 = v10 + 23; break; case 1LL: qmemcpy(a1, " Leave this place", 17); v7 = (char *)a1 + 17; break; case 2LL: v12 = (char *)operator new(0x20u); a1[2] = v12; *a1 = 33; a1[1] = 24; *((_QWORD *)v12 + 2) = 0x6572656820656D6FLL; v13 = *(_OWORD *)"You are not welcome here"; goto LABEL_22; case 3LL: *(_BYTE *)a1 = 30; qmemcpy((char *)a1 + 1, "None shall pass", 15); v7 = a1 + 2; break; case 4LL: qmemcpy(a1, "(You test my patience", 21); goto LABEL_17; case 6LL: v14 = operator new(0x20u); a1[2] = v14; *a1 = 33; a1[1] = 31; *(_OWORD *)((char *)v14 + 15) = *(_OWORD *)"ou keep this up?"; v15 = *(_OWORD *)"How long will you keep this up?"; goto LABEL_28; case 7LL: v9 = (char *)operator new(0x28u); a1[2] = v9; *a1 = 41; a1[1] = 34; qmemcpy(v9, "Don't you have other things to do?", 34); v7 = v9 + 34; break; case 9LL: v14 = operator new(0x20u); a1[2] = v14; *a1 = 33; a1[1] = 31; *(_OWORD *)((char *)v14 + 15) = *(_OWORD *)"nd this anymore!"; v15 = *(_OWORD *)"Gah I can't stand this anymore!"; LABEL_28: *v14 = v15; v7 = (char *)v14 + 31; break; case 10LL: v8 = (char *)operator new(0x20u); a1[2] = v8; *a1 = 33; a1[1] = 26; qmemcpy(v8, "The smell, it's killing me", 26); v7 = v8 + 26; break; case 11LL: qmemcpy(a1, "\"Can you smell it?", 18); v7 = (char *)a1 + 18; break; case 12LL: v12 = (char *)operator new(0x20u); a1[2] = v12; *a1 = 33; a1[1] = 24; *((_QWORD *)v12 + 2) = 0x6E656B6369686320LL; v13 = *(_OWORD *)"Chicken, burning chicken"; LABEL_22: *(_OWORD *)v12 = v13; v7 = v12 + 24; break; case 13LL: qmemcpy(a1, "(El pollo ardiente...", 21); goto LABEL_17; case 14LL: qmemcpy(a1, "(Ok, playtime is over", 21); LABEL_17: v7 = (char *)a1 + 21; break; case 15LL: *(_BYTE *)a1 = 18; *(_QWORD *)((char *)a1 + 1) = 0x636F74206B636954LL; *((_BYTE *)a1 + 9) = 107; v7 = (char *)a1 + 10; break; case 16LL: qmemcpy(a1, "&Time is running out", 20); goto LABEL_25; case 18LL: qmemcpy(a1, "&Really? Still here?", 20); LABEL_25: v7 = (char *)a1 + 20; break; case 19LL: v16 = (char *)operator new(0x30u); a1[2] = v16; *a1 = 49; a1[1] = 43; qmemcpy(v16, "This is my first conversation in 1000 years", 43); v7 = v16 + 43; break; case 20LL: v11 = (char *)operator new(0x20u); a1[2] = v11; *a1 = 33; a1[1] = 28; qmemcpy(v11, "Not what I was hoping for...", 28); v7 = v11 + 28; break; default: *(_BYTE *)a1 = 6; *(_WORD *)((char *)a1 + 1) = 11822; *((_BYTE *)a1 + 3) = 46; v7 = (char *)a1 + 4; break; } *v7 = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source