{"type": "func", "start": 4298835600, "end": 4298835899, "name": "DialogLayer::createDialogLayer", "pseudocode": "// \n// DialogLayer::createDialogLayer from 0x1003b0690 to 0x1003b07bb (299 bytes)\n// \n// 2 xrefs:\n// > DialogLayer::create @ 0x1003b0689\n// > DialogLayer::createWithObjects @ 0x1003b07dc\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:29:25 +0000\n// \n\nchar *__fastcall DialogLayer::createDialogLayer(__int64 a1, __int64 a2, unsigned int a3)\n{\n  char *v4; // rbx\n\n  v4 = (char *)operator new(0x288u);\n  cocos2d::CCLayerColor::CCLayerColor(v4);\n  *(_QWORD *)v4 = off_100B36C60;\n  *((_QWORD *)v4 + 40) = off_100B37190;\n  *((_QWORD *)v4 + 41) = &off_100B37200;\n  *((_QWORD *)v4 + 42) = off_100B37218;\n  *((_QWORD *)v4 + 43) = off_100B37238;\n  *((_QWORD *)v4 + 44) = off_100B37260;\n  *((_QWORD *)v4 + 51) = off_100B37290;\n  *((_QWORD *)v4 + 54) = off_100B37310;\n  *((_QWORD *)v4 + 68) = &off_100B37330;\n  *((_QWORD *)v4 + 69) = 0;\n  *(_OWORD *)(v4 + 568) = 0;\n  *(_OWORD *)(v4 + 584) = 0;\n  *((_DWORD *)v4 + 150) = -1;\n  *((_WORD *)v4 + 308) = 0;\n  *((_QWORD *)v4 + 78) = 0;\n  v4[632] = 0;\n  *((_DWORD *)v4 + 159) = 1;\n  v4[640] = 0;\n  if ( (unsigned __int8)DialogLayer::init(v4, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; DialogLayer::createDialogLayer from 0x1003b0690 to 0x1003b07bb (299 bytes)\n; \n; 2 xrefs:\n; > DialogLayer::create @ 0x1003b0689\n; > DialogLayer::createWithObjects @ 0x1003b07dc\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:29:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003b0690\nmov     rbp, rsp                                                       ; +0x1, 0x1003b0691\npush    r15                                                            ; +0x4, 0x1003b0694\npush    r14                                                            ; +0x6, 0x1003b0696\npush    r12                                                            ; +0x8, 0x1003b0698\npush    rbx                                                            ; +0xa, 0x1003b069a\nmov     r14d, edx                                                      ; +0xb, 0x1003b069b\nmov     r15, rsi                                                       ; +0xe, 0x1003b069e\nmov     r12, rdi                                                       ; +0x11, 0x1003b06a1\nmov     edi, 288h; __sz                                                ; +0x14, 0x1003b06a4\ncall    __Znwm; operator new(ulong)                                    ; +0x19, 0x1003b06a9\nmov     rbx, rax                                                       ; +0x1e, 0x1003b06ae\nmov     rdi, rax                                                       ; +0x21, 0x1003b06b1\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x24, 0x1003b06b4\nlea     rax, off_100B36C60                                             ; +0x29, 0x1003b06b9\nmov     [rbx], rax                                                     ; +0x30, 0x1003b06c0\nlea     rax, off_100B37190                                             ; +0x33, 0x1003b06c3\nmov     [rbx+140h], rax                                                ; +0x3a, 0x1003b06ca\nlea     rax, off_100B37200                                             ; +0x41, 0x1003b06d1\nmov     [rbx+148h], rax                                                ; +0x48, 0x1003b06d8\nlea     rax, off_100B37218                                             ; +0x4f, 0x1003b06df\nmov     [rbx+150h], rax                                                ; +0x56, 0x1003b06e6\nlea     rax, off_100B37238                                             ; +0x5d, 0x1003b06ed\nmov     [rbx+158h], rax                                                ; +0x64, 0x1003b06f4\nlea     rax, off_100B37260                                             ; +0x6b, 0x1003b06fb\nmov     [rbx+160h], rax                                                ; +0x72, 0x1003b0702\nlea     rax, off_100B37290                                             ; +0x79, 0x1003b0709\nmov     [rbx+198h], rax                                                ; +0x80, 0x1003b0710\nlea     rax, off_100B37310                                             ; +0x87, 0x1003b0717\nmov     [rbx+1B0h], rax                                                ; +0x8e, 0x1003b071e\nlea     rax, off_100B37330                                             ; +0x95, 0x1003b0725\nmov     [rbx+220h], rax                                                ; +0x9c, 0x1003b072c\nmov     qword ptr [rbx+228h], 0                                        ; +0xa3, 0x1003b0733\nxorps   xmm0, xmm0                                                     ; +0xae, 0x1003b073e\nmovups  xmmword ptr [rbx+238h], xmm0                                   ; +0xb1, 0x1003b0741\nmovups  xmmword ptr [rbx+248h], xmm0                                   ; +0xb8, 0x1003b0748\nmov     dword ptr [rbx+258h], 0FFFFFFFFh                               ; +0xbf, 0x1003b074f\nmov     word ptr [rbx+268h], 0                                         ; +0xc9, 0x1003b0759\nmov     qword ptr [rbx+270h], 0                                        ; +0xd2, 0x1003b0762\nmov     byte ptr [rbx+278h], 0                                         ; +0xdd, 0x1003b076d\nmov     dword ptr [rbx+27Ch], 1                                        ; +0xe4, 0x1003b0774\nmov     byte ptr [rbx+280h], 0                                         ; +0xee, 0x1003b077e\nmov     rdi, rbx                                                       ; +0xf5, 0x1003b0785\nmov     rsi, r12                                                       ; +0xf8, 0x1003b0788\nmov     rdx, r15                                                       ; +0xfb, 0x1003b078b\nmov     ecx, r14d                                                      ; +0xfe, 0x1003b078e\ncall    DialogLayer__init                                              ; +0x101, 0x1003b0791\ntest    al, al                                                         ; +0x106, 0x1003b0796\njz      short loc_1003B07A4                                            ; +0x108, 0x1003b0798\nmov     rdi, rbx                                                       ; +0x10a, 0x1003b079a\ncall    cocos2d__CCObject__autorelease                                 ; +0x10d, 0x1003b079d\njmp     short loc_1003B07AF                                            ; +0x112, 0x1003b07a2\nmov     rax, [rbx]                                                     ; +0x114, 0x1003b07a4\nmov     rdi, rbx                                                       ; +0x117, 0x1003b07a7\ncall    qword ptr [rax+10h]                                            ; +0x11a, 0x1003b07aa\nxor     ebx, ebx                                                       ; +0x11d, 0x1003b07ad\nmov     rax, rbx                                                       ; +0x11f, 0x1003b07af\npop     rbx                                                            ; +0x122, 0x1003b07b2\npop     r12                                                            ; +0x123, 0x1003b07b3\npop     r14                                                            ; +0x125, 0x1003b07b5\npop     r15                                                            ; +0x127, 0x1003b07b7\npop     rbp                                                            ; +0x129, 0x1003b07b9\nretn                                                                   ; +0x12a, 0x1003b07ba", "xrefs": ["DialogLayer::create @ 0x1003b0689", "DialogLayer::createWithObjects @ 0x1003b07dc"], "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"}