// // GameObject::perspectiveFrame from 0x100444090 to 0x1004443d2 (834 bytes) // // 23 xrefs: // > GameObject::perspectiveColorFrame @ 0x10044441a // > GameObject::setupCustomSprites @ 0x100444883 // > GameObject::setupCustomSprites @ 0x1004448e4 // > GameObject::setupCustomSprites @ 0x100444a24 // > GameObject::setupCustomSprites @ 0x100444af4 // > GameObject::setupCustomSprites @ 0x100444b45 // > GameObject::setupCustomSprites @ 0x100444c90 // > GameObject::setupCustomSprites @ 0x100444ce5 // > GameObject::setupCustomSprites @ 0x100444ebe // > GameObject::setupCustomSprites @ 0x100445061 // > GameObject::setupCustomSprites @ 0x10044535b // > GameObject::setupCustomSprites @ 0x10044544f // > GameObject::setupCustomSprites @ 0x1004455bb // > GameObject::setupCustomSprites @ 0x10044569e // > GameObject::setupCustomSprites @ 0x10044602c // > GameObject::setupCustomSprites @ 0x100446062 // > GameObject::setupCustomSprites @ 0x10044607b // > GameObject::setupCustomSprites @ 0x1004460c3 // > GameObject::setupCustomSprites @ 0x1004460f9 // > GameObject::setupCustomSprites @ 0x10044eb4d // > GameObject::setupCustomSprites @ 0x10044ec3c // > GameObject::setupCustomSprites @ 0x10044ed2b // > GameObject::setupCustomSprites @ 0x10044ee1a // // 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 // size_t *__fastcall GameObject::perspectiveFrame(size_t *a1, double a2, __int64 a3, const char *a4, int a5) { _BYTE *v5; // r12 size_t v7; // rax size_t v8; // r15 size_t v9; // r13 size_t v10; // r14 size_t v11; // rdi char *v12; // rbx size_t v13; // r14 size_t v14; // r12 size_t v15; // rdi char *v16; // rax char *v17; // rbx _BYTE *v18; // r15 size_t v19; // r14 size_t v20; // rdi void *v21; // rax void *v22; // rbx _BYTE *v23; // r15 void *v24; // r15 size_t v25; // rax size_t v26; // r14 void *v27; // rbx size_t v28; // r12 size_t __len; // [rsp+10h] [rbp-240h] BYREF size_t v33; // [rsp+18h] [rbp-238h] void *__src; // [rsp+20h] [rbp-230h] _BYTE v35[504]; // [rsp+28h] [rbp-228h] BYREF __len = 0; v33 = 500; v5 = v35; __src = v35; if ( !a4 ) goto LABEL_14; v7 = strlen(a4); v8 = v7; if ( v7 < 0x1F5 ) { __len = v7; v9 = 500; if ( v7 ) goto LABEL_8; LABEL_14: v8 = 0; v10 = 2; goto LABEL_15; } v9 = 750; if ( v7 >= 0x2EF ) v9 = v7; v33 = v9; v5 = operator new[](v9); __src = v5; __len = v8; LABEL_8: memcpy(v5, a4, v8); v10 = v8 + 2; if ( v9 >= v8 + 2 ) { LABEL_15: v12 = v5; goto LABEL_16; } v11 = v9 + (v9 >> 1); if ( v11 <= v10 ) v11 = v8 + 2; v33 = v11; v12 = (char *)operator new[](v11); memmove(v12, v5, v8); if ( v5 != v35 ) operator delete[](v5); __src = v12; LABEL_16: __len = v10; *(_WORD *)&v12[v8] = 12383; sub_10003DD80((__int64)&__len, a5); v13 = __len; v14 = __len + 8; if ( v33 >= __len + 8 ) { v17 = (char *)__src; } else { v15 = v33 + (v33 >> 1); if ( v15 <= v14 ) v15 = __len + 8; v33 = v15; v16 = (char *)operator new[](v15); v17 = v16; v18 = __src; if ( v13 ) memmove(v16, __src, v13); if ( v18 != v35 && v18 != nullptr ) operator delete[](v18); __src = v17; } __len = v14; *(_QWORD *)&v17[v13] = 0x676E702E3130305FLL; v19 = __len; if ( v33 >= __len + 1 ) { v22 = __src; } else { v20 = v33 + (v33 >> 1); if ( v20 <= __len + 1 ) v20 = __len + 1; v33 = v20; v21 = operator new[](v20); v22 = v21; v23 = __src; if ( v19 ) memmove(v21, __src, v19); if ( v23 != v35 && v23 != nullptr ) operator delete[](v23); __src = v22; } *((_BYTE *)v22 + v19) = 0; v24 = __src; v25 = strlen((const char *)__src); if ( v25 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(a2); v26 = v25; if ( v25 >= 0x17 ) { v28 = 26; if ( (v25 | 7) != 0x17 ) v28 = (v25 | 7) + 1; v27 = operator new(v28); a1[2] = (size_t)v27; *a1 = v28 | 1; a1[1] = v26; goto LABEL_41; } *(_BYTE *)a1 = 2 * v25; v27 = (char *)a1 + 1; if ( v25 ) LABEL_41: memmove(v27, v24, v26); *((_BYTE *)v27 + v26) = 0; if ( __src != v35 && __src != nullptr ) operator delete[](__src); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source