{"type": "func", "start": 5371828480, "end": 5371828860, "name": "GJChallengeItem::create", "pseudocode": "// \n// GJChallengeItem::create from 0x1402f9900 to 0x1402f9a7c (380 bytes)\n// \n// 3 xrefs:\n// > GJChallengeItem::createFromString @ 0x1402f9866\n// > GJObjectDecoder::getDecodedObject @ 0x140391e1f\n// > <???> @ 0x14091e260\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:30:05 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid **__fastcall GJChallengeItem::create(int a1, int a2, int a3, int a4, __int64 a5)\n{\n  void **v9; // rsi\n  __int64 v10; // rax\n  __int64 v11; // r14\n  void *v12; // rdx\n  float v13; // xmm0_4\n  float v14; // xmm0_4\n  _BYTE v16[32]; // [rsp+28h] [rbp-60h] BYREF\n  __int64 v17; // [rsp+48h] [rbp-40h]\n\n  v17 = a5;\n  v9 = (void **)operator new(0x90u);\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v9);\n  *v9 = &GJChallengeItem::`vftable';\n  v9[7] = nullptr;\n  v9[8] = nullptr;\n  v9[9] = nullptr;\n  v9[10] = nullptr;\n  v9[11] = nullptr;\n  *((_DWORD *)v9 + 24) = 0;\n  *((_BYTE *)v9 + 100) = 0;\n  *((_DWORD *)v9 + 26) = 0;\n  *((_OWORD *)v9 + 7) = 0;\n  v9[16] = nullptr;\n  v9[17] = (void *)15;\n  *((_BYTE *)v9 + 112) = 0;\n  v10 = sub_14003F4F0((__int64)v16, a5);\n  v11 = v10;\n  *((_DWORD *)v9 + 14) = a1;\n  *((_DWORD *)v9 + 24) = a4;\n  if ( v9 + 14 != (void **)v10 )\n  {\n    v12 = (void *)v10;\n    if ( *(_QWORD *)(v10 + 24) > 0xFu )\n      v12 = *(void **)v10;\n    sub_1400405A0(v9 + 14, v12, *(_QWORD *)(v10 + 16));\n  }\n  *((_DWORD *)v9 + 23) = a2;\n  v13 = (float)((float)rand() / 32767.0) * 1000.0;\n  *((_DWORD *)v9 + 22) = (int)v13;\n  *((_DWORD *)v9 + 21) = a2 + (int)v13;\n  *((_DWORD *)v9 + 20) = a3;\n  v14 = (float)((float)rand() / 32767.0) * 1000.0;\n  *((_DWORD *)v9 + 19) = (int)v14;\n  *((_DWORD *)v9 + 18) = a3 + (int)v14;\n  sub_14003D310(v11);\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);\n  sub_14003D310(a5);\n  return v9;\n}", "assembly": "; \n; GJChallengeItem::create from 0x1402f9900 to 0x1402f9a7c (380 bytes)\n; \n; 3 xrefs:\n; > GJChallengeItem::createFromString @ 0x1402f9866\n; > GJObjectDecoder::getDecodedObject @ 0x140391e1f\n; > <???> @ 0x14091e260\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:30:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402f9900\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1402f9905\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1402f990a\npush    rdi                                                            ; +0xf, 0x1402f990f\npush    r12                                                            ; +0x10, 0x1402f9910\npush    r13                                                            ; +0x12, 0x1402f9912\npush    r14                                                            ; +0x14, 0x1402f9914\npush    r15                                                            ; +0x16, 0x1402f9916\nsub     rsp, 60h                                                       ; +0x18, 0x1402f9918\nmov     rax, cs:__security_cookie                                      ; +0x1c, 0x1402f991c\nxor     rax, rsp                                                       ; +0x23, 0x1402f9923\nmov     [rsp+88h+var_38], rax                                          ; +0x26, 0x1402f9926\nmov     edi, r9d                                                       ; +0x2b, 0x1402f992b\nmov     ebp, r8d                                                       ; +0x2e, 0x1402f992e\nmov     r12d, edx                                                      ; +0x31, 0x1402f9931\nmov     ebx, ecx                                                       ; +0x34, 0x1402f9934\nmov     r13, [rsp+88h+arg_20]                                          ; +0x36, 0x1402f9936\nmov     [rsp+88h+var_40], r13                                          ; +0x3e, 0x1402f993e\nmov     ecx, 90h; Size                                                 ; +0x43, 0x1402f9943\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x1402f9948\nmov     rsi, rax                                                       ; +0x4d, 0x1402f994d\nmov     [rsp+88h+var_68], rax                                          ; +0x50, 0x1402f9950\nmov     rcx, rax                                                       ; +0x55, 0x1402f9955\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x58, 0x1402f9958\nlea     rax, ??_7GJChallengeItem@@6B@; const GJChallengeItem::`vftable' ; +0x5e, 0x1402f995e\nmov     [rsi], rax                                                     ; +0x65, 0x1402f9965\nxor     eax, eax                                                       ; +0x68, 0x1402f9968\nmov     [rsi+38h], rax                                                 ; +0x6a, 0x1402f996a\nmov     [rsi+40h], rax                                                 ; +0x6e, 0x1402f996e\nmov     [rsi+48h], rax                                                 ; +0x72, 0x1402f9972\nmov     [rsi+50h], rax                                                 ; +0x76, 0x1402f9976\nmov     [rsi+58h], rax                                                 ; +0x7a, 0x1402f997a\nmov     [rsi+60h], eax                                                 ; +0x7e, 0x1402f997e\nmov     [rsi+64h], al                                                  ; +0x81, 0x1402f9981\nmov     [rsi+68h], eax                                                 ; +0x84, 0x1402f9984\nlea     r15, [rsi+70h]                                                 ; +0x87, 0x1402f9987\nxorps   xmm0, xmm0                                                     ; +0x8b, 0x1402f998b\nmovups  xmmword ptr [r15], xmm0                                        ; +0x8e, 0x1402f998e\nmov     [r15+10h], rax                                                 ; +0x92, 0x1402f9992\nmov     qword ptr [r15+18h], 0Fh                                       ; +0x96, 0x1402f9996\nmov     [r15], al                                                      ; +0x9e, 0x1402f999e\nmov     rdx, r13                                                       ; +0xa1, 0x1402f99a1\nlea     rcx, [rsp+88h+var_60]                                          ; +0xa4, 0x1402f99a4\ncall    sub_14003F4F0                                                  ; +0xa9, 0x1402f99a9\nmov     r14, rax                                                       ; +0xae, 0x1402f99ae\nmov     [rsp+88h+var_68], rax                                          ; +0xb1, 0x1402f99b1\nmov     [rsi+38h], ebx                                                 ; +0xb6, 0x1402f99b6\nmov     [rsi+60h], edi                                                 ; +0xb9, 0x1402f99b9\ncmp     r15, rax                                                       ; +0xbc, 0x1402f99bc\njz      short loc_1402F99DA                                            ; +0xbf, 0x1402f99bf\nmov     rdx, rax                                                       ; +0xc1, 0x1402f99c1\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xc4, 0x1402f99c4\njbe     short loc_1402F99CE                                            ; +0xc9, 0x1402f99c9\nmov     rdx, [rax]; Src                                                ; +0xcb, 0x1402f99cb\nmov     r8, [rax+10h]; Size                                            ; +0xce, 0x1402f99ce\nmov     rcx, r15; void *                                               ; +0xd2, 0x1402f99d2\ncall    sub_1400405A0                                                  ; +0xd5, 0x1402f99d5\nmov     [rsi+5Ch], r12d                                                ; +0xda, 0x1402f99da\ncall    cs:rand                                                        ; +0xde, 0x1402f99de\nmovd    xmm0, eax                                                      ; +0xe4, 0x1402f99e4\ncvtdq2ps xmm0, xmm0                                                    ; +0xe8, 0x1402f99e8\ndivss   xmm0, cs:dword_140835BDC                                       ; +0xeb, 0x1402f99eb\nmulss   xmm0, cs:dword_140835AA4                                       ; +0xf3, 0x1402f99f3\ncvttss2si eax, xmm0                                                    ; +0xfb, 0x1402f99fb\nmov     [rsi+58h], eax                                                 ; +0xff, 0x1402f99ff\nadd     eax, r12d                                                      ; +0x102, 0x1402f9a02\nmov     [rsi+54h], eax                                                 ; +0x105, 0x1402f9a05\nmov     [rsi+50h], ebp                                                 ; +0x108, 0x1402f9a08\ncall    cs:rand                                                        ; +0x10b, 0x1402f9a0b\nmovd    xmm0, eax                                                      ; +0x111, 0x1402f9a11\ncvtdq2ps xmm0, xmm0                                                    ; +0x115, 0x1402f9a15\ndivss   xmm0, cs:dword_140835BDC                                       ; +0x118, 0x1402f9a18\nmulss   xmm0, cs:dword_140835AA4                                       ; +0x120, 0x1402f9a20\ncvttss2si eax, xmm0                                                    ; +0x128, 0x1402f9a28\nmov     [rsi+4Ch], eax                                                 ; +0x12c, 0x1402f9a2c\nadd     eax, ebp                                                       ; +0x12f, 0x1402f9a2f\nmov     [rsi+48h], eax                                                 ; +0x131, 0x1402f9a31\nmov     rcx, r14                                                       ; +0x134, 0x1402f9a34\ncall    sub_14003D310                                                  ; +0x137, 0x1402f9a37\nmov     rcx, rsi                                                       ; +0x13c, 0x1402f9a3c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x13f, 0x1402f9a3f\nnop                                                                    ; +0x145, 0x1402f9a45\nmov     rcx, r13                                                       ; +0x146, 0x1402f9a46\ncall    sub_14003D310                                                  ; +0x149, 0x1402f9a49\nmov     rax, rsi                                                       ; +0x14e, 0x1402f9a4e\nmov     rcx, [rsp+88h+var_38]                                          ; +0x151, 0x1402f9a51\nxor     rcx, rsp; StackCookie                                          ; +0x156, 0x1402f9a56\ncall    __security_check_cookie                                        ; +0x159, 0x1402f9a59\nlea     r11, [rsp+88h+var_28]                                          ; +0x15e, 0x1402f9a5e\nmov     rbx, [r11+30h]                                                 ; +0x163, 0x1402f9a63\nmov     rbp, [r11+38h]                                                 ; +0x167, 0x1402f9a67\nmov     rsi, [r11+40h]                                                 ; +0x16b, 0x1402f9a6b\nmov     rsp, r11                                                       ; +0x16f, 0x1402f9a6f\npop     r15                                                            ; +0x172, 0x1402f9a72\npop     r14                                                            ; +0x174, 0x1402f9a74\npop     r13                                                            ; +0x176, 0x1402f9a76\npop     r12                                                            ; +0x178, 0x1402f9a78\npop     rdi                                                            ; +0x17a, 0x1402f9a7a\nretn                                                                   ; +0x17b, 0x1402f9a7b", "xrefs": ["GJChallengeItem::createFromString @ 0x1402f9866", "GJObjectDecoder::getDecodedObject @ 0x140391e1f", "<???> @ 0x14091e260"], "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"}