// // _FindPESection from 0x180142590 to 0x1801425d4 (68 bytes) // // 1 xrefs: // > _IsNonwritableInCurrentImage @ 0x180142609 // // 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 10:55:05 +0000 // __int64 __fastcall FindPESection(__int64 a1, unsigned __int64 a2) { unsigned int v2; // r9d __int64 v3; // r8 __int64 result; // rax unsigned __int64 v6; // rdx v2 = 0; v3 = a1 + *(int *)(a1 + 60); result = v3 + *(unsigned __int16 *)(v3 + 20) + 24LL; if ( !*(_WORD *)(v3 + 6) ) return 0; while ( 1 ) { v6 = *(unsigned int *)(result + 12); if ( a2 >= v6 && a2 < (unsigned int)(v6 + *(_DWORD *)(result + 8)) ) break; ++v2; result += 40; if ( v2 >= *(unsigned __int16 *)(v3 + 6) ) return 0; } return result; }