//
// sub_1800D7930 from 0x1800d7930 to 0x1800d79a0 (112 bytes)
//
// 9 xrefs:
// > sub_1800E0080 @ 0x1800e00c2
// > sub_1800E0750 @ 0x1800e0b42
// > sub_1800E0750 @ 0x1800e0b79
// > sub_1800E0750 @ 0x1800e0bb0
// > sub_1800E0750 @ 0x1800e0be7
// > sub_1800E0750 @ 0x1800e0c1e
// > sub_1800E0750 @ 0x1800e0c55
// > sub_1800E1110 @ 0x1800e1136
// > ??> @ 0x1801c4914
//
// 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 11:22:33 +0000
//
__int64 __fastcall sub_1800D7930(char *SubStr, char *Str)
{
char *v2; // rdi
char *v4; // rax
__int64 v5; // rcx
const char *v6; // rcx
v2 = Str;
v4 = strstr(Str, SubStr);
if ( !v4 )
return 0;
while ( 1 )
{
v5 = -1;
do
++v5;
while ( SubStr[v5] );
v6 = &v4[v5];
if ( (v4 == v2 || *(v4 - 1) == 32) && (*v6 & 0xDF) == 0 )
break;
v2 = (char *)v6;
v4 = strstr(v6, SubStr);
if ( !v4 )
return 0;
}
return 1;
}