//
// cocos2d::CCFileUtilsWin32::removeSearchPath from 0x18007afc0 to 0x18007b053 (147 bytes)
//
// 4 xrefs:
// > ??> @ 0x1801010d8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4ce0
// > ??> @ 0x1801b4cec
//
// 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
//
void __fastcall cocos2d::CCFileUtilsWin32::removeSearchPath(cocos2d::CCFileUtilsWin32 *this, const char *a2)
{
void **v3; // rdx
void *v4; // rcx
void *Block[3]; // [rsp+20h] [rbp-38h] BYREF
unsigned __int64 v6; // [rsp+38h] [rbp-20h]
cocos2d::CCFileUtilsWin32::utf8Togbk(this, Block, a2);
v3 = Block;
if ( v6 > 0xF )
v3 = (void **)Block[0];
cocos2d::CCFileUtils::removeSearchPath(this, (const char *)v3);
if ( v6 > 0xF )
{
v4 = Block[0];
if ( v6 + 1 >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v4);
}
}