{"type": "func", "start": 4295319936, "end": 4295320246, "name": "GJChallengeItem::create", "pseudocode": "// \n// GJChallengeItem::create from 0x100056180 to 0x1000562b6 (310 bytes)\n// \n// 3 xrefs:\n// > GJChallengeItem::createFromString @ 0x1000560ea\n// > GJChallengeItem::create_1 @ 0x1000562fa\n// > GJChallengeItem::createWithCoder @ 0x1000563c0\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:19:36 +0000\n// \n\nchar *__fastcall GJChallengeItem::create(int a1, int a2, int a3, int a4, std::string *a5)\n{\n  char *v7; // rbx\n  int v8; // eax\n  float v9; // xmm0_4\n  std::string __str; // [rsp+0h] [rbp-50h] BYREF\n  int v12; // [rsp+20h] [rbp-30h]\n  int v13; // [rsp+24h] [rbp-2Ch]\n\n  v12 = a4;\n  v13 = a1;\n  v7 = (char *)operator new(0x88u);\n  cocos2d::CCObject::CCObject(v7);\n  *(_QWORD *)v7 = off_100AB6F38;\n  *((_DWORD *)v7 + 26) = 0;\n  *((_OWORD *)v7 + 7) = 0;\n  *((_QWORD *)v7 + 16) = 0;\n  *(_OWORD *)(v7 + 56) = 0;\n  *(_OWORD *)(v7 + 72) = 0;\n  *(_OWORD *)(v7 + 85) = 0;\n  if ( (*(_BYTE *)&a5->__r_.__value_.__s.0 & 1) != 0 )\n    sub_10001AD30(&__str, a5->__r_.__value_.__l.__data_, a5->__r_.__value_.__l.__size_);\n  else\n    __str = *a5;\n  *((_DWORD *)v7 + 14) = v13;\n  *((_DWORD *)v7 + 24) = v12;\n  std::string::operator=((std::string *)(v7 + 112), &__str);\n  *((_DWORD *)v7 + 23) = a2;\n  v8 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *((_DWORD *)v7 + 22) = v8;\n  *((_DWORD *)v7 + 21) = v8 + a2;\n  *((_DWORD *)v7 + 20) = a3;\n  v9 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n  *((_DWORD *)v7 + 19) = (int)v9;\n  *((_DWORD *)v7 + 18) = (int)v9 + a3;\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  cocos2d::CCObject::autorelease(v7);\n  return v7;\n}", "assembly": "; \n; GJChallengeItem::create from 0x100056180 to 0x1000562b6 (310 bytes)\n; \n; 3 xrefs:\n; > GJChallengeItem::createFromString @ 0x1000560ea\n; > GJChallengeItem::create_1 @ 0x1000562fa\n; > GJChallengeItem::createWithCoder @ 0x1000563c0\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:19:36 +0000\n; \npush    rbp                                                            ; +0x0, 0x100056180\nmov     rbp, rsp                                                       ; +0x1, 0x100056181\npush    r15                                                            ; +0x4, 0x100056184\npush    r14                                                            ; +0x6, 0x100056186\npush    r13                                                            ; +0x8, 0x100056188\npush    r12                                                            ; +0xa, 0x10005618a\npush    rbx                                                            ; +0xc, 0x10005618c\nsub     rsp, 28h                                                       ; +0xd, 0x10005618d\nmov     r12, r8                                                        ; +0x11, 0x100056191\nmov     [rbp+var_30], ecx                                              ; +0x14, 0x100056194\nmov     r14d, edx                                                      ; +0x17, 0x100056197\nmov     r15d, esi                                                      ; +0x1a, 0x10005619a\nmov     [rbp+var_2C], edi                                              ; +0x1d, 0x10005619d\nmov     edi, 88h; __sz                                                 ; +0x20, 0x1000561a0\ncall    __Znwm; operator new(ulong)                                    ; +0x25, 0x1000561a5\nmov     r13, rax                                                       ; +0x2a, 0x1000561aa\nmov     rbx, rax                                                       ; +0x2d, 0x1000561ad\nmov     rdi, rax                                                       ; +0x30, 0x1000561b0\ncall    cocos2d__CCObject__CCObject                                    ; +0x33, 0x1000561b3\nlea     rax, off_100AB6F38                                             ; +0x38, 0x1000561b8\nmov     [rbx], rax                                                     ; +0x3f, 0x1000561bf\nmov     dword ptr [rbx+68h], 0                                         ; +0x42, 0x1000561c2\nadd     r13, 70h ; 'p'                                                 ; +0x49, 0x1000561c9\nxorps   xmm0, xmm0                                                     ; +0x4d, 0x1000561cd\nmovups  xmmword ptr [rbx+70h], xmm0                                    ; +0x50, 0x1000561d0\nmov     qword ptr [rbx+80h], 0                                         ; +0x54, 0x1000561d4\nmovups  xmmword ptr [rbx+38h], xmm0                                    ; +0x5f, 0x1000561df\nmovups  xmmword ptr [rbx+48h], xmm0                                    ; +0x63, 0x1000561e3\nmovups  xmmword ptr [rbx+55h], xmm0                                    ; +0x67, 0x1000561e7\ntest    byte ptr [r12], 1                                              ; +0x6b, 0x1000561eb\njnz     short loc_100056206                                            ; +0x70, 0x1000561f0\nmov     rax, [r12+10h]                                                 ; +0x72, 0x1000561f2\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x77, 0x1000561f7\nmovups  xmm0, xmmword ptr [r12]                                        ; +0x7b, 0x1000561fb\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x80, 0x100056200\njmp     short loc_100056219                                            ; +0x84, 0x100056204\nmov     rdx, [r12+8]                                                   ; +0x86, 0x100056206\nmov     rsi, [r12+10h]                                                 ; +0x8b, 0x10005620b\nlea     rdi, [rbp+__str]                                               ; +0x90, 0x100056210\ncall    sub_10001AD30                                                  ; +0x94, 0x100056214\nmov     eax, [rbp+var_2C]                                              ; +0x99, 0x100056219\nmov     [rbx+38h], eax                                                 ; +0x9c, 0x10005621c\nmov     eax, [rbp+var_30]                                              ; +0x9f, 0x10005621f\nmov     [rbx+60h], eax                                                 ; +0xa2, 0x100056222\nlea     rsi, [rbp+__str]; __str                                        ; +0xa5, 0x100056225\nmov     rdi, r13; this                                                 ; +0xa9, 0x100056229\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xac, 0x10005622c\nmov     [rbx+5Ch], r15d                                                ; +0xb1, 0x100056231\ncall    _rand                                                          ; +0xb5, 0x100056235\nxorps   xmm0, xmm0                                                     ; +0xba, 0x10005623a\ncvtsi2ss xmm0, eax                                                     ; +0xbd, 0x10005623d\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xc1, 0x100056241\nmulss   xmm0, cs:dword_100A03738                                       ; +0xc9, 0x100056249\ncvttss2si eax, xmm0                                                    ; +0xd1, 0x100056251\nmov     [rbx+58h], eax                                                 ; +0xd5, 0x100056255\nadd     r15d, eax                                                      ; +0xd8, 0x100056258\nmov     [rbx+54h], r15d                                                ; +0xdb, 0x10005625b\nmov     [rbx+50h], r14d                                                ; +0xdf, 0x10005625f\ncall    _rand                                                          ; +0xe3, 0x100056263\nxorps   xmm0, xmm0                                                     ; +0xe8, 0x100056268\ncvtsi2ss xmm0, eax                                                     ; +0xeb, 0x10005626b\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xef, 0x10005626f\nmulss   xmm0, cs:dword_100A03738                                       ; +0xf7, 0x100056277\ncvttss2si eax, xmm0                                                    ; +0xff, 0x10005627f\nmov     [rbx+4Ch], eax                                                 ; +0x103, 0x100056283\nadd     r14d, eax                                                      ; +0x106, 0x100056286\nmov     [rbx+48h], r14d                                                ; +0x109, 0x100056289\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x10d, 0x10005628d\njz      short loc_10005629C                                            ; +0x111, 0x100056291\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x113, 0x100056293\ncall    __ZdlPv; operator delete(void *)                               ; +0x117, 0x100056297\nmov     rdi, rbx                                                       ; +0x11c, 0x10005629c\ncall    cocos2d__CCObject__autorelease                                 ; +0x11f, 0x10005629f\nmov     rax, rbx                                                       ; +0x124, 0x1000562a4\nadd     rsp, 28h                                                       ; +0x127, 0x1000562a7\npop     rbx                                                            ; +0x12b, 0x1000562ab\npop     r12                                                            ; +0x12c, 0x1000562ac\npop     r13                                                            ; +0x12e, 0x1000562ae\npop     r14                                                            ; +0x130, 0x1000562b0\npop     r15                                                            ; +0x132, 0x1000562b2\npop     rbp                                                            ; +0x134, 0x1000562b4\nretn                                                                   ; +0x135, 0x1000562b5", "xrefs": ["GJChallengeItem::createFromString @ 0x1000560ea", "GJChallengeItem::create_1 @ 0x1000562fa", "GJChallengeItem::createWithCoder @ 0x1000563c0"], "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"}