{"type": "func", "start": 4301527104, "end": 4301527408, "name": "GJScaleControl::create", "pseudocode": "// \n// GJScaleControl::create from 0x100641840 to 0x100641970 (304 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x100005555\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:34:43 +0000\n// \n\nchar *GJScaleControl::create()\n{\n  char *v0; // rbx\n\n  v0 = (char *)operator new(0x268u);\n  cocos2d::CCLayer::CCLayer((__int64)v0);\n  *(_QWORD *)v0 = off_100B81890;\n  *((_QWORD *)v0 + 40) = off_100B81D20;\n  *((_QWORD *)v0 + 41) = &off_100B81D90;\n  *((_QWORD *)v0 + 42) = off_100B81DA8;\n  *((_QWORD *)v0 + 43) = off_100B81DC8;\n  *((_QWORD *)v0 + 44) = off_100B81DF0;\n  *(_OWORD *)(v0 + 408) = 0;\n  *((_QWORD *)v0 + 53) = 0;\n  *((_DWORD *)v0 + 108) = -1;\n  *(_QWORD *)(v0 + 436) = 0;\n  *((_WORD *)v0 + 229) = 0;\n  *((_QWORD *)v0 + 56) = 0;\n  v0[456] = 0;\n  *(_OWORD *)(v0 + 488) = 0;\n  *(_OWORD *)(v0 + 504) = 0;\n  *(_OWORD *)(v0 + 520) = 0;\n  *(_OWORD *)(v0 + 536) = 0;\n  *(_OWORD *)(v0 + 552) = 0;\n  *(_OWORD *)(v0 + 568) = 0;\n  *((_QWORD *)v0 + 73) = 0x3F00000040000000LL;\n  *((_DWORD *)v0 + 148) = 0;\n  *((_QWORD *)v0 + 75) = 0;\n  v0[608] = 0;\n  if ( (unsigned __int8)GJScaleControl::init(v0) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; GJScaleControl::create from 0x100641840 to 0x100641970 (304 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x100005555\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:34:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x100641840\nmov     rbp, rsp                                                       ; +0x1, 0x100641841\npush    r14                                                            ; +0x4, 0x100641844\npush    rbx                                                            ; +0x6, 0x100641846\nmov     edi, 268h; __sz                                                ; +0x7, 0x100641847\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x10064184c\nmov     rbx, rax                                                       ; +0x11, 0x100641851\nmov     rdi, rax                                                       ; +0x14, 0x100641854\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x17, 0x100641857\nlea     rax, off_100B81890                                             ; +0x1c, 0x10064185c\nmov     [rbx], rax                                                     ; +0x23, 0x100641863\nlea     rax, off_100B81D20                                             ; +0x26, 0x100641866\nmov     [rbx+140h], rax                                                ; +0x2d, 0x10064186d\nlea     rax, off_100B81D90                                             ; +0x34, 0x100641874\nmov     [rbx+148h], rax                                                ; +0x3b, 0x10064187b\nlea     rax, off_100B81DA8                                             ; +0x42, 0x100641882\nmov     [rbx+150h], rax                                                ; +0x49, 0x100641889\nlea     rax, off_100B81DC8                                             ; +0x50, 0x100641890\nmov     [rbx+158h], rax                                                ; +0x57, 0x100641897\nlea     rax, off_100B81DF0                                             ; +0x5e, 0x10064189e\nmov     [rbx+160h], rax                                                ; +0x65, 0x1006418a5\nxorps   xmm0, xmm0                                                     ; +0x6c, 0x1006418ac\nmovups  xmmword ptr [rbx+198h], xmm0                                   ; +0x6f, 0x1006418af\nmov     qword ptr [rbx+1A8h], 0                                        ; +0x76, 0x1006418b6\nmov     dword ptr [rbx+1B0h], 0FFFFFFFFh                               ; +0x81, 0x1006418c1\nmov     qword ptr [rbx+1B4h], 0                                        ; +0x8b, 0x1006418cb\nmov     word ptr [rbx+1CAh], 0                                         ; +0x96, 0x1006418d6\nmov     qword ptr [rbx+1C0h], 0                                        ; +0x9f, 0x1006418df\nmov     byte ptr [rbx+1C8h], 0                                         ; +0xaa, 0x1006418ea\nmovups  xmmword ptr [rbx+1E8h], xmm0                                   ; +0xb1, 0x1006418f1\nmovups  xmmword ptr [rbx+1F8h], xmm0                                   ; +0xb8, 0x1006418f8\nmovups  xmmword ptr [rbx+208h], xmm0                                   ; +0xbf, 0x1006418ff\nmovups  xmmword ptr [rbx+218h], xmm0                                   ; +0xc6, 0x100641906\nmovups  xmmword ptr [rbx+228h], xmm0                                   ; +0xcd, 0x10064190d\nmovups  xmmword ptr [rbx+238h], xmm0                                   ; +0xd4, 0x100641914\nmovsd   xmm0, cs:qword_100A0D760                                       ; +0xdb, 0x10064191b\nmovsd   qword ptr [rbx+248h], xmm0                                     ; +0xe3, 0x100641923\nmov     dword ptr [rbx+250h], 0                                        ; +0xeb, 0x10064192b\nmov     qword ptr [rbx+258h], 0                                        ; +0xf5, 0x100641935\nmov     byte ptr [rbx+260h], 0                                         ; +0x100, 0x100641940\nmov     rdi, rbx                                                       ; +0x107, 0x100641947\ncall    GJScaleControl__init                                           ; +0x10a, 0x10064194a\ntest    al, al                                                         ; +0x10f, 0x10064194f\njz      short loc_10064195D                                            ; +0x111, 0x100641951\nmov     rdi, rbx                                                       ; +0x113, 0x100641953\ncall    cocos2d__CCObject__autorelease                                 ; +0x116, 0x100641956\njmp     short loc_100641968                                            ; +0x11b, 0x10064195b\nmov     rax, [rbx]                                                     ; +0x11d, 0x10064195d\nmov     rdi, rbx                                                       ; +0x120, 0x100641960\ncall    qword ptr [rax+10h]                                            ; +0x123, 0x100641963\nxor     ebx, ebx                                                       ; +0x126, 0x100641966\nmov     rax, rbx                                                       ; +0x128, 0x100641968\npop     rbx                                                            ; +0x12b, 0x10064196b\npop     r14                                                            ; +0x12c, 0x10064196c\npop     rbp                                                            ; +0x12e, 0x10064196e\nretn                                                                   ; +0x12f, 0x10064196f", "xrefs": ["EditorUI::init @ 0x100005555"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}