{"type": "func", "start": 4300904144, "end": 4300904386, "name": "GameObject::getGlowFrame", "pseudocode": "// \n// GameObject::getGlowFrame from 0x1005a96d0 to 0x1005a97c2 (242 bytes)\n// \n// 35 xrefs:\n// > GameObject::setupCustomSprites @ 0x100445246\n// > GameObject::setupCustomSprites @ 0x100447408\n// > GameObject::setupCustomSprites @ 0x100448e3c\n// > GameObject::setupCustomSprites @ 0x100448ec5\n// > GameObject::setupCustomSprites @ 0x100448f4e\n// > GameObject::setupCustomSprites @ 0x100449203\n// > GameObject::setupCustomSprites @ 0x100449d84\n// > GameObject::setupCustomSprites @ 0x100449e0d\n// > GameObject::setupCustomSprites @ 0x100449f42\n// > GameObject::setupCustomSprites @ 0x10044b814\n// > GameObject::setupCustomSprites @ 0x10044b8b0\n// > GameObject::setupCustomSprites @ 0x10044bd87\n// > GameObject::setupCustomSprites @ 0x10044c37e\n// > GameObject::setupCustomSprites @ 0x10044c83e\n// > GameObject::setupCustomSprites @ 0x10044cd3f\n// > GameObject::setupCustomSprites @ 0x10044db65\n// > GameObject::setupCustomSprites @ 0x10044e3d7\n// > GameObject::setupCustomSprites @ 0x10044e463\n// > GameObject::setupCustomSprites @ 0x10044e4ef\n// > GameObject::setupCustomSprites @ 0x100453a8a\n// > GameObject::setupCustomSprites @ 0x1004562fb\n// > GameObject::setupCustomSprites @ 0x10045647e\n// > GameObject::setupCustomSprites @ 0x100458a08\n// > GameObject::setupCustomSprites @ 0x100459dc6\n// > GameObject::setupCustomSprites @ 0x10045b54b\n// > GameObject::setupCustomSprites @ 0x10045bb69\n// > GameObject::setupCustomSprites @ 0x10045bc07\n// > GameObject::setupCustomSprites @ 0x10045be14\n// > GameObject::setupCustomSprites @ 0x10045bf81\n// > GameObject::setupCustomSprites @ 0x10045c02d\n// > GameObject::setupCustomSprites @ 0x10045c0d9\n// > GameObject::setupCustomSprites @ 0x10045c3ec\n// > GameObject::setupCustomSprites @ 0x10045cc98\n// > GameObject::addNewSlope01Glow @ 0x1005cb92e\n// > GameObject::addNewSlope02Glow @ 0x1005cbb5e\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nsize_t *__fastcall GameObject::getGlowFrame(size_t *a1, double a2, __int64 a3, __int64 a4)\n{\n  const char *v4; // rdx\n  const char *data; // r14\n  size_t v6; // rax\n  size_t v7; // r15\n  _BYTE *v8; // r12\n  size_t v10; // r13\n  std::string v11[2]; // [rsp+0h] [rbp-40h] BYREF\n\n  if ( (*(_BYTE *)a4 & 1) != 0 )\n    v4 = *(const char **)(a4 + 16);\n  else\n    v4 = (const char *)(a4 + 1);\n  sub_1005A4350(v11, v4, (std::string *)\"_001.png\", \"_glow_001.png\", a2);\n  if ( (*(_BYTE *)&v11[0].__r_.__value_.__s.0 & 1) != 0 )\n    data = v11[0].__r_.__value_.__l.__data_;\n  else\n    data = v11[0].__r_.__value_.__s.__data_;\n  v6 = strlen(data);\n  if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(a2);\n  v7 = v6;\n  if ( v6 >= 0x17 )\n  {\n    v10 = 26;\n    if ( (v6 | 7) != 0x17 )\n      v10 = (v6 | 7) + 1;\n    v8 = operator new(v10);\n    a1[2] = (size_t)v8;\n    *a1 = v10 | 1;\n    a1[1] = v7;\nLABEL_16:\n    memmove(v8, data, v7);\n    v8[v7] = 0;\n    if ( (*(_BYTE *)&v11[0].__r_.__value_.__s.0 & 1) == 0 )\n      return a1;\n    goto LABEL_11;\n  }\n  *(_BYTE *)a1 = 2 * v6;\n  v8 = (char *)a1 + 1;\n  if ( v6 )\n    goto LABEL_16;\n  *v8 = 0;\n  if ( (*(_BYTE *)&v11[0].__r_.__value_.__s.0 & 1) != 0 )\nLABEL_11:\n    operator delete(v11[0].__r_.__value_.__l.__data_);\n  return a1;\n}", "assembly": "; \n; GameObject::getGlowFrame from 0x1005a96d0 to 0x1005a97c2 (242 bytes)\n; \n; 35 xrefs:\n; > GameObject::setupCustomSprites @ 0x100445246\n; > GameObject::setupCustomSprites @ 0x100447408\n; > GameObject::setupCustomSprites @ 0x100448e3c\n; > GameObject::setupCustomSprites @ 0x100448ec5\n; > GameObject::setupCustomSprites @ 0x100448f4e\n; > GameObject::setupCustomSprites @ 0x100449203\n; > GameObject::setupCustomSprites @ 0x100449d84\n; > GameObject::setupCustomSprites @ 0x100449e0d\n; > GameObject::setupCustomSprites @ 0x100449f42\n; > GameObject::setupCustomSprites @ 0x10044b814\n; > GameObject::setupCustomSprites @ 0x10044b8b0\n; > GameObject::setupCustomSprites @ 0x10044bd87\n; > GameObject::setupCustomSprites @ 0x10044c37e\n; > GameObject::setupCustomSprites @ 0x10044c83e\n; > GameObject::setupCustomSprites @ 0x10044cd3f\n; > GameObject::setupCustomSprites @ 0x10044db65\n; > GameObject::setupCustomSprites @ 0x10044e3d7\n; > GameObject::setupCustomSprites @ 0x10044e463\n; > GameObject::setupCustomSprites @ 0x10044e4ef\n; > GameObject::setupCustomSprites @ 0x100453a8a\n; > GameObject::setupCustomSprites @ 0x1004562fb\n; > GameObject::setupCustomSprites @ 0x10045647e\n; > GameObject::setupCustomSprites @ 0x100458a08\n; > GameObject::setupCustomSprites @ 0x100459dc6\n; > GameObject::setupCustomSprites @ 0x10045b54b\n; > GameObject::setupCustomSprites @ 0x10045bb69\n; > GameObject::setupCustomSprites @ 0x10045bc07\n; > GameObject::setupCustomSprites @ 0x10045be14\n; > GameObject::setupCustomSprites @ 0x10045bf81\n; > GameObject::setupCustomSprites @ 0x10045c02d\n; > GameObject::setupCustomSprites @ 0x10045c0d9\n; > GameObject::setupCustomSprites @ 0x10045c3ec\n; > GameObject::setupCustomSprites @ 0x10045cc98\n; > GameObject::addNewSlope01Glow @ 0x1005cb92e\n; > GameObject::addNewSlope02Glow @ 0x1005cbb5e\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1005a96d0\nmov     rbp, rsp                                                       ; +0x1, 0x1005a96d1\npush    r15                                                            ; +0x4, 0x1005a96d4\npush    r14                                                            ; +0x6, 0x1005a96d6\npush    r13                                                            ; +0x8, 0x1005a96d8\npush    r12                                                            ; +0xa, 0x1005a96da\npush    rbx                                                            ; +0xc, 0x1005a96dc\nsub     rsp, 18h                                                       ; +0xd, 0x1005a96dd\nmov     rbx, rdi                                                       ; +0x11, 0x1005a96e1\ntest    byte ptr [rdx], 1                                              ; +0x14, 0x1005a96e4\njnz     short loc_1005A96EE                                            ; +0x17, 0x1005a96e7\ninc     rdx                                                            ; +0x19, 0x1005a96e9\njmp     short loc_1005A96F2                                            ; +0x1c, 0x1005a96ec\nmov     rdx, [rdx+10h]                                                 ; +0x1e, 0x1005a96ee\nlea     rax, a001Png; \"_001.png\"                                       ; +0x22, 0x1005a96f2\nlea     rcx, aGlow001Png; \"_glow_001.png\"                              ; +0x29, 0x1005a96f9\nlea     rdi, [rbp+var_40]                                              ; +0x30, 0x1005a9700\nmov     rsi, rdx                                                       ; +0x34, 0x1005a9704\nmov     rdx, rax                                                       ; +0x37, 0x1005a9707\ncall    sub_1005A4350                                                  ; +0x3a, 0x1005a970a\ntest    [rbp+var_40], 1                                                ; +0x3f, 0x1005a970f\njz      short loc_1005A971B                                            ; +0x43, 0x1005a9713\nmov     r14, [rbp+__s]                                                 ; +0x45, 0x1005a9715\njmp     short loc_1005A971F                                            ; +0x49, 0x1005a9719\nlea     r14, [rbp+var_3F]                                              ; +0x4b, 0x1005a971b\nmov     rdi, r14; __s                                                  ; +0x4f, 0x1005a971f\ncall    _strlen                                                        ; +0x52, 0x1005a9722\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x57, 0x1005a9727\njnb     loc_1005A97BD                                                  ; +0x5b, 0x1005a972b\nmov     r15, rax                                                       ; +0x61, 0x1005a9731\ncmp     rax, 17h                                                       ; +0x64, 0x1005a9734\njnb     short loc_1005A976F                                            ; +0x68, 0x1005a9738\nlea     eax, [r15+r15]                                                 ; +0x6a, 0x1005a973a\nmov     [rbx], al                                                      ; +0x6e, 0x1005a973e\nlea     r12, [rbx+1]                                                   ; +0x70, 0x1005a9740\ntest    r15, r15                                                       ; +0x74, 0x1005a9744\njnz     short loc_1005A97A2                                            ; +0x77, 0x1005a9747\nmov     byte ptr [r12+r15], 0                                          ; +0x79, 0x1005a9749\ntest    [rbp+var_40], 1                                                ; +0x7e, 0x1005a974e\njz      short loc_1005A975D                                            ; +0x82, 0x1005a9752\nmov     rdi, [rbp+__s]; __p                                            ; +0x84, 0x1005a9754\ncall    __ZdlPv; operator delete(void *)                               ; +0x88, 0x1005a9758\nmov     rax, rbx                                                       ; +0x8d, 0x1005a975d\nadd     rsp, 18h                                                       ; +0x90, 0x1005a9760\npop     rbx                                                            ; +0x94, 0x1005a9764\npop     r12                                                            ; +0x95, 0x1005a9765\npop     r13                                                            ; +0x97, 0x1005a9767\npop     r14                                                            ; +0x99, 0x1005a9769\npop     r15                                                            ; +0x9b, 0x1005a976b\npop     rbp                                                            ; +0x9d, 0x1005a976d\nretn                                                                   ; +0x9e, 0x1005a976e\nmov     rax, r15                                                       ; +0x9f, 0x1005a976f\nor      rax, 7                                                         ; +0xa2, 0x1005a9772\nlea     rcx, [rax+1]                                                   ; +0xa6, 0x1005a9776\ncmp     rax, 17h                                                       ; +0xaa, 0x1005a977a\nmov     r13d, 1Ah                                                      ; +0xae, 0x1005a977e\ncmovnz  r13, rcx                                                       ; +0xb4, 0x1005a9784\nmov     rdi, r13; __sz                                                 ; +0xb8, 0x1005a9788\ncall    __Znwm; operator new(ulong)                                    ; +0xbb, 0x1005a978b\nmov     r12, rax                                                       ; +0xc0, 0x1005a9790\nmov     [rbx+10h], rax                                                 ; +0xc3, 0x1005a9793\nor      r13, 1                                                         ; +0xc7, 0x1005a9797\nmov     [rbx], r13                                                     ; +0xcb, 0x1005a979b\nmov     [rbx+8], r15                                                   ; +0xce, 0x1005a979e\nmov     rdi, r12; __dst                                                ; +0xd2, 0x1005a97a2\nmov     rsi, r14; __src                                                ; +0xd5, 0x1005a97a5\nmov     rdx, r15; __len                                                ; +0xd8, 0x1005a97a8\ncall    _memmove                                                       ; +0xdb, 0x1005a97ab\nmov     byte ptr [r12+r15], 0                                          ; +0xe0, 0x1005a97b0\ntest    [rbp+var_40], 1                                                ; +0xe5, 0x1005a97b5\njnz     short loc_1005A9754                                            ; +0xe9, 0x1005a97b9\njmp     short loc_1005A975D                                            ; +0xeb, 0x1005a97bb\ncall    sub_100006BF0                                                  ; +0xed, 0x1005a97bd", "xrefs": ["GameObject::setupCustomSprites @ 0x100445246", "GameObject::setupCustomSprites @ 0x100447408", "GameObject::setupCustomSprites @ 0x100448e3c", "GameObject::setupCustomSprites @ 0x100448ec5", "GameObject::setupCustomSprites @ 0x100448f4e", "GameObject::setupCustomSprites @ 0x100449203", "GameObject::setupCustomSprites @ 0x100449d84", "GameObject::setupCustomSprites @ 0x100449e0d", "GameObject::setupCustomSprites @ 0x100449f42", "GameObject::setupCustomSprites @ 0x10044b814", "GameObject::setupCustomSprites @ 0x10044b8b0", "GameObject::setupCustomSprites @ 0x10044bd87", "GameObject::setupCustomSprites @ 0x10044c37e", "GameObject::setupCustomSprites @ 0x10044c83e", "GameObject::setupCustomSprites @ 0x10044cd3f", "GameObject::setupCustomSprites @ 0x10044db65", "GameObject::setupCustomSprites @ 0x10044e3d7", "GameObject::setupCustomSprites @ 0x10044e463", "GameObject::setupCustomSprites @ 0x10044e4ef", "GameObject::setupCustomSprites @ 0x100453a8a", "GameObject::setupCustomSprites @ 0x1004562fb", "GameObject::setupCustomSprites @ 0x10045647e", "GameObject::setupCustomSprites @ 0x100458a08", "GameObject::setupCustomSprites @ 0x100459dc6", "GameObject::setupCustomSprites @ 0x10045b54b", "GameObject::setupCustomSprites @ 0x10045bb69", "GameObject::setupCustomSprites @ 0x10045bc07", "GameObject::setupCustomSprites @ 0x10045be14", "GameObject::setupCustomSprites @ 0x10045bf81", "GameObject::setupCustomSprites @ 0x10045c02d", "GameObject::setupCustomSprites @ 0x10045c0d9", "GameObject::setupCustomSprites @ 0x10045c3ec", "GameObject::setupCustomSprites @ 0x10045cc98", "GameObject::addNewSlope01Glow @ 0x1005cb92e", "GameObject::addNewSlope02Glow @ 0x1005cbb5e"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}