// // SecretLayer::getBasicMessage from 0x1005fd290 to 0x1005fd82b (1435 bytes) // // 4 xrefs: // > SecretLayer::init @ 0x1005fb163 // > SecretLayer::getMessage @ 0x1005fb658 // > SecretLayer::onSubmit @ 0x1005fc3ca // > SecretLayer::onSubmit @ 0x1005fc803 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // _QWORD *__fastcall SecretLayer::getBasicMessage(_QWORD *a1, __int64 a2, __m128 a3) { int v3; // eax int v4; // eax __m128 v5; // xmm1 __int64 v6; // rcx _OWORD *v7; // rax __int128 v8; // xmm0 _BYTE *v9; // rax char *v10; // rax __int128 v11; // xmm0 __int64 v12; // rax char *v13; // rax char *v14; // rax char *v15; // rax __int64 v16; // rax char *v17; // rax char *v18; // rax char *v19; // rax char *v20; // rax char *v21; // rax ++*(_DWORD *)(a2 + 436); v3 = *(_DWORD *)(a2 + 424); if ( v3 < 0 ) { a3.f32[0] = (float)((float)rand() * 4.6566129e-10) * 10.0; v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, a3), (__m128)xmmword_1008150C0); 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 < 30 ) v6 = (unsigned int)v4; *(_DWORD *)(a2 + 424) = v6; switch ( v6 ) { case 0LL: v7 = operator new(0x20u); a1[2] = v7; *a1 = 33; a1[1] = 25; *(_OWORD *)((char *)v7 + 9) = *(_OWORD *)"ou get in here?!"; v8 = *(_OWORD *)"How did you get in here?!"; goto LABEL_34; case 1LL: v13 = (char *)operator new(0x20u); a1[2] = v13; *a1 = 33; a1[1] = 31; qmemcpy(v13, "What are you poking around for?", 31); v9 = v13 + 31; break; case 2LL: v14 = (char *)operator new(0x28u); a1[2] = v14; *a1 = 41; a1[1] = 35; qmemcpy(v14, "Don't you have better things to do?", 35); v9 = v14 + 35; break; case 3LL: qmemcpy(a1, "\"There is no spoon", 18); goto LABEL_14; case 4LL: *(_BYTE *)a1 = 16; *(_QWORD *)((char *)a1 + 1) = 0x2179617761206F47LL; v9 = (char *)a1 + 9; break; case 5LL: v10 = (char *)operator new(0x28u); a1[2] = v10; *a1 = 41; a1[1] = 37; *(_QWORD *)(v10 + 29) = 0x2E2E2E7265747465LL; *((_OWORD *)v10 + 1) = *(_OWORD *)"d this room better..."; v11 = *(_OWORD *)"I should have hid this room better..."; goto LABEL_29; case 6LL: v15 = (char *)operator new(0x28u); a1[2] = v15; *a1 = 41; a1[1] = 36; qmemcpy(v15, "You're not supposed to be in here...", 36); v9 = v15 + 36; break; case 7LL: v7 = operator new(0x20u); a1[2] = v7; *a1 = 33; a1[1] = 25; *(_OWORD *)((char *)v7 + 9) = *(_OWORD *)"n't like this..."; v8 = *(_OWORD *)"RubRub won't like this..."; LABEL_34: *v7 = v8; v9 = (char *)v7 + 25; break; case 8LL: *(_BYTE *)a1 = 20; qmemcpy((char *)a1 + 1, "zzzZZZZ...", 10); v9 = (char *)a1 + 11; break; case 10LL: qmemcpy(a1, "*Why U touch my s", 17); v12 = 0x3F66667574732079LL; goto LABEL_32; case 11LL: v10 = (char *)operator new(0x28u); a1[2] = v10; *a1 = 41; a1[1] = 37; *(_QWORD *)(v10 + 29) = 0x2E2E2E6572656820LL; *((_OWORD *)v10 + 1) = *(_OWORD *)"t find you in here..."; v11 = *(_OWORD *)"RubRub better not find you in here..."; LABEL_29: *(_OWORD *)v10 = v11; v9 = v10 + 37; break; case 12LL: qmemcpy(a1, "*Can't you just l", 17); v12 = 0x3F657661656C2074LL; goto LABEL_32; case 13LL: v18 = (char *)operator new(0x30u); a1[2] = v18; *a1 = 49; a1[1] = 43; qmemcpy(v18, "This is not the room you are looking for...", 43); v9 = v18 + 43; break; case 14LL: qmemcpy(a1, " Sneaky sneaky...", 17); v9 = (char *)a1 + 17; break; case 15LL: qmemcpy(a1, "&It's my precious...", 20); goto LABEL_39; case 16LL: qmemcpy(a1, "&You shall not pass!", 20); goto LABEL_39; case 17LL: qmemcpy(a1, ",Don't push the b", 17); v16 = 0x216E6F7474756220LL; goto LABEL_41; case 18LL: v19 = (char *)operator new(0x28u); a1[2] = v19; *a1 = 41; a1[1] = 33; qmemcpy(v19, "You're gonna get me in trouble...", 33); v9 = v19 + 33; break; case 19LL: v21 = (char *)operator new(0x20u); a1[2] = v21; *a1 = 33; a1[1] = 28; qmemcpy(v21, "This is getting ridiculus...", 28); v9 = v21 + 28; break; case 20LL: qmemcpy(a1, "*Go collect some ", 17); v12 = 0x737261747320656DLL; LABEL_32: *(_QWORD *)((char *)a1 + 14) = v12; v9 = (char *)a1 + 22; break; case 21LL: v17 = (char *)operator new(0x20u); a1[2] = v17; *a1 = 33; a1[1] = 27; qmemcpy(v17, "Maybe there are new levels?", 27); v9 = v17 + 27; break; case 22LL: v20 = (char *)operator new(0x1Au); a1[2] = v20; *a1 = 27; a1[1] = 23; *(_QWORD *)(v20 + 15) = 0x656D20676E697265LL; *(_OWORD *)v20 = *(_OWORD *)"Just, stop bothering me"; v9 = v20 + 23; break; case 23LL: qmemcpy(a1, ",I'm gonna stop t", 17); v16 = 0x676E696B6C617420LL; goto LABEL_41; case 24LL: *(_BYTE *)a1 = 6; *(_WORD *)((char *)a1 + 1) = 11822; *((_BYTE *)a1 + 3) = 46; v9 = (char *)a1 + 4; break; case 25LL: *(_BYTE *)a1 = 12; *(_DWORD *)((char *)a1 + 1) = 774778414; *(_WORD *)((char *)a1 + 5) = 11822; v9 = (char *)a1 + 7; break; case 26LL: *(_BYTE *)a1 = 8; *(_DWORD *)((char *)a1 + 1) = 558383431; v9 = (char *)a1 + 5; break; case 27LL: qmemcpy(a1, "$You're hopeless...", 19); v9 = (char *)a1 + 19; break; case 28LL: qmemcpy(a1, "&Really, still here?", 20); LABEL_39: v9 = (char *)a1 + 20; break; case 29LL: qmemcpy(a1, ",Fine, press the ", 17); v16 = 0x6E6F747475622065LL; LABEL_41: *(_QWORD *)((char *)a1 + 15) = v16; v9 = (char *)a1 + 23; break; default: qmemcpy(a1, "\"Don't touch that!", 18); LABEL_14: v9 = (char *)a1 + 18; break; } *v9 = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source