{"type": "func", "start": 6442936512, "end": 6442936582, "name": "cocos2d::CCApplication::setStartupScriptFilename", "pseudocode": "// \n// cocos2d::CCApplication::setStartupScriptFilename from 0x1800768c0 to 0x180076906 (70 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be83c\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:21:58 +0000\n// \n\n_BYTE *__fastcall cocos2d::CCApplication::setStartupScriptFilename(__int64 a1, void **a2)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rcx\n  _BYTE *result; // rax\n  _BYTE *v5; // rcx\n\n  v2 = a1 + 72;\n  sub_1800751E0((void **)(a1 + 72), a2);\n  v3 = *(_QWORD *)(v2 + 16);\n  if ( *(_QWORD *)(v2 + 24) <= 0xFu )\n  {\n    v5 = (_BYTE *)(v2 + v3);\n    result = (_BYTE *)v2;\n  }\n  else\n  {\n    result = *(_BYTE **)v2;\n    v5 = (_BYTE *)(*(_QWORD *)v2 + v3);\n  }\n  for ( ; result != v5; ++result )\n  {\n    if ( *result == 92 )\n      *result = 47;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCApplication::setStartupScriptFilename from 0x1800768c0 to 0x180076906 (70 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be83c\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:21:58 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800768c0\nsub     rsp, 20h                                                       ; +0x2, 0x1800768c2\nlea     rbx, [rcx+48h]                                                 ; +0x6, 0x1800768c6\nmov     rcx, rbx; void *                                               ; +0xa, 0x1800768ca\ncall    sub_1800751E0                                                  ; +0xd, 0x1800768cd\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x12, 0x1800768d2\nmov     rcx, [rbx+10h]                                                 ; +0x17, 0x1800768d7\njbe     short loc_1800768E5                                            ; +0x1b, 0x1800768db\nmov     rax, [rbx]                                                     ; +0x1d, 0x1800768dd\nadd     rcx, rax                                                       ; +0x20, 0x1800768e0\njmp     short loc_1800768EB                                            ; +0x23, 0x1800768e3\nadd     rcx, rbx                                                       ; +0x25, 0x1800768e5\nmov     rax, rbx                                                       ; +0x28, 0x1800768e8\ncmp     rax, rcx                                                       ; +0x2b, 0x1800768eb\njz      short loc_180076900                                            ; +0x2e, 0x1800768ee\ncmp     byte ptr [rax], 5Ch ; '\\'                                      ; +0x30, 0x1800768f0\njnz     short loc_1800768F8                                            ; +0x33, 0x1800768f3\nmov     byte ptr [rax], 2Fh ; '/'                                      ; +0x35, 0x1800768f5\ninc     rax                                                            ; +0x38, 0x1800768f8\ncmp     rax, rcx                                                       ; +0x3b, 0x1800768fb\njnz     short loc_1800768F0                                            ; +0x3e, 0x1800768fe\nadd     rsp, 20h                                                       ; +0x40, 0x180076900\npop     rbx                                                            ; +0x44, 0x180076904\nretn                                                                   ; +0x45, 0x180076905", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801be83c"], "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"}