{"type": "func", "start": 6443261024, "end": 6443261164, "name": "cocos2d::CCTimer::timerWithScriptHandler", "pseudocode": "// \n// cocos2d::CCTimer::timerWithScriptHandler from 0x1800c5c60 to 0x1800c5cec (140 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c381c\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 11:22:27 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCTimer *__fastcall cocos2d::CCTimer::timerWithScriptHandler(int a1, float a2)\n{\n  cocos2d::CCObject *v3; // rax\n  cocos2d::CCObject *v4; // rbx\n\n  v3 = (cocos2d::CCObject *)sub_1800E4AC0(0x68u);\n  v4 = v3;\n  if ( v3 )\n  {\n    cocos2d::CCObject::CCObject(v3);\n    *(_QWORD *)v4 = &cocos2d::CCTimer::`vftable';\n    *((_QWORD *)v4 + 7) = 0;\n    *((_DWORD *)v4 + 16) = -1082130432;\n    *((_WORD *)v4 + 34) = 0;\n    *((_QWORD *)v4 + 9) = 0;\n    *((_QWORD *)v4 + 10) = 0;\n    *((_QWORD *)v4 + 11) = 0;\n    *((_DWORD *)v4 + 24) = 0;\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  *((_DWORD *)v4 + 24) = a1;\n  *((_DWORD *)v4 + 16) = -1082130432;\n  *((float *)v4 + 21) = a2;\n  cocos2d::CCObject::autorelease(v4);\n  return v4;\n}", "assembly": "; \n; cocos2d::CCTimer::timerWithScriptHandler from 0x1800c5c60 to 0x1800c5cec (140 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c381c\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 11:22:27 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800c5c60\npush    rdi                                                            ; +0x5, 0x1800c5c65\nsub     rsp, 30h                                                       ; +0x6, 0x1800c5c66\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x1800c5c6a\nmovaps  xmm6, xmm1                                                     ; +0xf, 0x1800c5c6f\nmov     edi, ecx                                                       ; +0x12, 0x1800c5c72\nmov     ecx, 68h ; 'h'; Size                                           ; +0x14, 0x1800c5c74\ncall    sub_1800E4AC0                                                  ; +0x19, 0x1800c5c79\nmov     rbx, rax                                                       ; +0x1e, 0x1800c5c7e\nmov     [rsp+38h+arg_10], rax                                          ; +0x21, 0x1800c5c81\ntest    rax, rax                                                       ; +0x26, 0x1800c5c86\njz      short loc_1800C5CBF                                            ; +0x29, 0x1800c5c89\nmov     rcx, rax; this                                                 ; +0x2b, 0x1800c5c8b\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2e, 0x1800c5c8e\nlea     rax, ??_7CCTimer@cocos2d@@6B@; const cocos2d::CCTimer::`vftable' ; +0x33, 0x1800c5c93\nmov     [rbx], rax                                                     ; +0x3a, 0x1800c5c9a\nxor     eax, eax                                                       ; +0x3d, 0x1800c5c9d\nmov     [rbx+38h], rax                                                 ; +0x3f, 0x1800c5c9f\nmov     dword ptr [rbx+40h], 0BF800000h                                ; +0x43, 0x1800c5ca3\nmov     [rbx+44h], ax                                                  ; +0x4a, 0x1800c5caa\nmov     [rbx+48h], rax                                                 ; +0x4e, 0x1800c5cae\nmov     [rbx+50h], rax                                                 ; +0x52, 0x1800c5cb2\nmov     [rbx+58h], rax                                                 ; +0x56, 0x1800c5cb6\nmov     [rbx+60h], eax                                                 ; +0x5a, 0x1800c5cba\njmp     short loc_1800C5CC2                                            ; +0x5d, 0x1800c5cbd\nmov     rbx, rax                                                       ; +0x5f, 0x1800c5cbf\nmov     [rbx+60h], edi                                                 ; +0x62, 0x1800c5cc2\nmov     dword ptr [rbx+40h], 0BF800000h                                ; +0x65, 0x1800c5cc5\nmovss   dword ptr [rbx+54h], xmm6                                      ; +0x6c, 0x1800c5ccc\nmov     rcx, rbx; this                                                 ; +0x71, 0x1800c5cd1\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x74, 0x1800c5cd4\nmov     rax, rbx                                                       ; +0x79, 0x1800c5cd9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7c, 0x1800c5cdc\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x81, 0x1800c5ce1\nadd     rsp, 30h                                                       ; +0x86, 0x1800c5ce6\npop     rdi                                                            ; +0x8a, 0x1800c5cea\nretn                                                                   ; +0x8b, 0x1800c5ceb", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c381c"], "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"}