//
// cocos2d::CCFileUtilsWin32::isAbsolutePath from 0x18007de10 to 0x18007df15 (261 bytes)
//
// 3 xrefs:
// > ??> @ 0x1801077d8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801befb0
//
// 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:01 +0000
//
__int64 __fastcall cocos2d::CCFileUtilsWin32::isAbsolutePath(__int64 a1, _QWORD *a2)
{
void *v2; // rcx
void **v3; // rax
void **v4; // rax
void **v5; // rax
void **v6; // rax
void **v7; // rax
unsigned __int8 v8; // bl
void *Block[3]; // [rsp+30h] [rbp-38h] BYREF
unsigned __int64 v11; // [rsp+48h] [rbp-20h]
if ( a2[3] > 0xFu )
a2 = (_QWORD *)*a2;
cocos2d::CCFileUtilsWin32::utf8Togbk(a1, Block, a2);
v2 = Block[0];
if ( Block[2] <= (void *)2 )
goto LABEL_20;
v3 = Block;
if ( v11 > 0xF )
v3 = (void **)Block[0];
if ( *(char *)v3 < 97 )
goto LABEL_15;
v4 = Block;
if ( v11 > 0xF )
v4 = (void **)Block[0];
if ( *(char *)v4 > 122 )
{
LABEL_15:
v5 = Block;
if ( v11 > 0xF )
v5 = (void **)Block[0];
if ( *(char *)v5 < 65 )
goto LABEL_20;
v6 = Block;
if ( v11 > 0xF )
v6 = (void **)Block[0];
if ( *(char *)v6 > 90 )
goto LABEL_20;
}
v7 = Block;
if ( v11 > 0xF )
v7 = (void **)Block[0];
if ( *((_BYTE *)v7 + 1) == 58 )
v8 = 1;
else
LABEL_20:
v8 = 0;
if ( v11 > 0xF )
{
if ( v11 + 1 >= 0x1000 )
{
v2 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v2 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v2);
}
return v8;
}