// // PlatformToolbox::getRawPath from 0x1004bdb20 to 0x1004bdc2b (267 bytes) // // 0 xrefs: // // 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 12:31:04 +0000 // _QWORD *__fastcall PlatformToolbox::getRawPath(_QWORD *a1, __int64 a2) { __int64 v2; // rdx NSString *v3; // r14 NSArray *v4; // rax id v5; // rax id v6; // rax const char *v7; // r15 size_t v8; // rax size_t v9; // r14 void *v10; // r12 size_t v11; // r13 if ( (*(_BYTE *)a2 & 1) != 0 ) v2 = *(_QWORD *)(a2 + 16); else v2 = a2 + 1; v3 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v2); v4 = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, 1u, 1); v5 = -[NSArray objectAtIndex:](v4, "objectAtIndex:", 0); v6 = objc_msgSend(v5, "stringByAppendingPathComponent:", v3); v7 = (const char *)objc_msgSend(v6, "cStringUsingEncoding:", 4); v8 = strlen(v7); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = (v8 | 7) + 1; v10 = operator new(v11); a1[2] = v10; *a1 = v11 + 1; a1[1] = v9; } else { *(_BYTE *)a1 = 2 * v8; v10 = (char *)a1 + 1; if ( !v8 ) goto LABEL_12; } memmove(v10, v7, v9); LABEL_12: *((_BYTE *)v10 + v9) = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source