{"type": "func", "start": 5371631232, "end": 5371631898, "name": "MoveStepPopup::onBuildWindowContent", "pseudocode": "// \n// MoveStepPopup::onBuildWindowContent from 0x1402c9680 to 0x1402c991a (666 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140766fe8\n// > <???> @ 0x14091dc78\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:29:23 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MoveStepPopup::onBuildWindowContent(_QWORD *a1)\n{\n  __int64 v2; // rax\n  __int64 *v3; // rdi\n  __int64 v4; // rbx\n  __int64 v5; // rax\n  __int64 v6; // rax\n  cocos2d::CCString *v7; // rax\n  char *CString; // rax\n  size_t v9; // r8\n  cocos2d::CCDictionary *v10; // rcx\n  struct cocos2d::CCObject *v11; // rax\n  __int64 v12; // rax\n  struct cocos2d::CCSprite *v13; // rax\n  int v14; // ebx\n  cocos2d::CCObject *v15; // rbx\n  __int64 v16; // rax\n  int v17[2]; // [rsp+30h] [rbp-D0h] BYREF\n  float v18[2]; // [rsp+38h] [rbp-C8h] BYREF\n  _BYTE v19[8]; // [rsp+40h] [rbp-C0h] BYREF\n  _BYTE v20[24]; // [rsp+48h] [rbp-B8h] BYREF\n  int v21; // [rsp+60h] [rbp-A0h] BYREF\n  _BYTE v22[32]; // [rsp+68h] [rbp-98h] BYREF\n  _BYTE v23[8]; // [rsp+88h] [rbp-78h] BYREF\n  int v24; // [rsp+90h] [rbp-70h]\n  char v25; // [rsp+94h] [rbp-6Ch]\n  int v26; // [rsp+98h] [rbp-68h]\n  int v27; // [rsp+9Ch] [rbp-64h]\n  char v28; // [rsp+A0h] [rbp-60h]\n  int v29; // [rsp+A4h] [rbp-5Ch]\n  int v30; // [rsp+A8h] [rbp-58h]\n  int v31; // [rsp+B8h] [rbp-48h]\n  _BYTE v32[40]; // [rsp+C8h] [rbp-38h] BYREF\n  void *v33[4]; // [rsp+F0h] [rbp-10h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2, v17);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, *(float *)v17 * 0.5, *(float *)&v17[1] * 0.5);\n  v3 = (__int64 *)a1[126];\n  v4 = *v3;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v20, 15.0, 15.0, 50.0, 50.0);\n  (*(void (__fastcall **)(__int64 *, __int64))(v4 + 912))(v3, v5);\n  sub_14009BE60((__int64)&v21);\n  v21 = -1;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v18[0] - 16.0, v18[1]);\n  cocos2d::CCPoint::operator=(v23, v6);\n  v24 = 1058642330;\n  v25 = 1;\n  v28 = 1;\n  v26 = 1;\n  v31 = 2;\n  v27 = 3;\n  v29 = 1008981770;\n  v30 = 1133903872;\n  v7 = cocos2d::CCString::createWithFormat(\"%g\", 0x4024000000000000LL);\n  CString = (char *)cocos2d::CCString::getCString(v7);\n  v9 = -1;\n  do\n    ++v9;\n  while ( CString[v9] );\n  sub_1400405A0(v33, CString, v9);\n  SetupTriggerPopup::createValueControlAdvanced_1(a1, &v21);\n  v17[0] = -1;\n  *(_BYTE *)sub_14016EE40(a1 + 109, v17) = 1;\n  v10 = (cocos2d::CCDictionary *)a1[95];\n  if ( v10 )\n  {\n    v11 = cocos2d::CCDictionary::objectForKey(v10, -1);\n    if ( v11 )\n    {\n      v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 200LL))(v11);\n      cocos2d::CCNode::convertToNodeSpace(a1[69], v17, v12);\n      v13 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_trashBtn_001.png\");\n      v14 = (int)v13;\n      (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v13 + 160LL))(v13);\n      v15 = CCMenuItemSpriteExtra::create(v14, 0, (int)a1, (__int64)MoveStepPopup::onReset);\n      (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)a1[69] + 464LL))(a1[69], v15);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 66.0, 0.0);\n      cocos2d::CCPoint::operator+(v17, v19, v16);\n      (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v15 + 184LL))(v15, v19);\n    }\n  }\n  sub_14003D310((__int64)v33);\n  sub_14003D310((__int64)v32);\n  sub_14003D310((__int64)v22);\n}", "assembly": "; \n; MoveStepPopup::onBuildWindowContent from 0x1402c9680 to 0x1402c991a (666 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140766fe8\n; > <???> @ 0x14091dc78\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:29:23 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x1402c9680\nmov     [rsp-8+arg_10], rsi                                            ; +0x5, 0x1402c9685\nmov     [rsp-8+arg_18], rdi                                            ; +0xa, 0x1402c968a\npush    rbp                                                            ; +0xf, 0x1402c968f\nlea     rbp, [rsp-20h]                                                 ; +0x10, 0x1402c9690\nsub     rsp, 120h                                                      ; +0x15, 0x1402c9695\nmov     rax, cs:__security_cookie                                      ; +0x1c, 0x1402c969c\nxor     rax, rsp                                                       ; +0x23, 0x1402c96a3\nmov     [rbp+20h+var_10], rax                                          ; +0x26, 0x1402c96a6\nmov     rsi, rcx                                                       ; +0x2a, 0x1402c96aa\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2d, 0x1402c96ad\nmov     rcx, rax                                                       ; +0x33, 0x1402c96b3\nlea     rdx, [rsp+120h+var_F0]                                         ; +0x36, 0x1402c96b6\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x3b, 0x1402c96bb\nmovss   xmm2, [rsp+120h+var_EC]                                        ; +0x41, 0x1402c96c1\nmulss   xmm2, cs:dword_140834F20                                       ; +0x47, 0x1402c96c7\nmovss   xmm1, [rsp+120h+var_F0]                                        ; +0x4f, 0x1402c96cf\nmulss   xmm1, cs:dword_140834F20                                       ; +0x55, 0x1402c96d5\nlea     rcx, [rsp+120h+var_E8]                                         ; +0x5d, 0x1402c96dd\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x62, 0x1402c96e2\nmov     rdi, [rsi+3F0h]                                                ; +0x68, 0x1402c96e8\nmov     rbx, [rdi]                                                     ; +0x6f, 0x1402c96ef\nmovss   xmm3, cs:dword_1408356B0                                       ; +0x72, 0x1402c96f2\nmovss   [rsp+120h+var_100], xmm3                                       ; +0x7a, 0x1402c96fa\nmovss   xmm1, cs:dword_14083555C                                       ; +0x80, 0x1402c9700\nmovaps  xmm2, xmm1                                                     ; +0x88, 0x1402c9708\nlea     rcx, [rsp+120h+var_D8]                                         ; +0x8b, 0x1402c970b\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x90, 0x1402c9710\nmov     rdx, rax                                                       ; +0x96, 0x1402c9716\nmov     rcx, rdi                                                       ; +0x99, 0x1402c9719\ncall    qword ptr [rbx+390h]                                           ; +0x9c, 0x1402c971c\nlea     rcx, [rsp+120h+var_C0]                                         ; +0xa2, 0x1402c9722\ncall    sub_14009BE60                                                  ; +0xa7, 0x1402c9727\nnop                                                                    ; +0xac, 0x1402c972c\nmov     [rsp+120h+var_C0], 0FFFFFFFFh                                  ; +0xad, 0x1402c972d\nmovss   xmm1, [rsp+120h+var_E8]                                        ; +0xb5, 0x1402c9735\nsubss   xmm1, cs:dword_140835580                                       ; +0xbb, 0x1402c973b\nmovss   xmm2, [rsp+120h+var_E4]                                        ; +0xc3, 0x1402c9743\nlea     rcx, [rsp+120h+var_E0]                                         ; +0xc9, 0x1402c9749\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xce, 0x1402c974e\nmov     rdx, rax                                                       ; +0xd4, 0x1402c9754\nlea     rcx, [rbp+20h+var_98]                                          ; +0xd7, 0x1402c9757\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xdb, 0x1402c975b\nmov     [rbp+20h+var_90], 3F19999Ah                                    ; +0xe1, 0x1402c9761\nmov     [rbp+20h+var_8C], 1                                            ; +0xe8, 0x1402c9768\nmov     [rbp+20h+var_80], 1                                            ; +0xec, 0x1402c976c\nmov     [rbp+20h+var_88], 1                                            ; +0xf0, 0x1402c9770\nmov     [rbp+20h+var_68], 2                                            ; +0xf7, 0x1402c9777\nmov     [rbp+20h+var_84], 3                                            ; +0xfe, 0x1402c977e\nmov     [rbp+20h+var_7C], 3C23D70Ah                                    ; +0x105, 0x1402c9785\nmov     [rbp+20h+var_78], 43960000h                                    ; +0x10c, 0x1402c978c\nmovsd   xmm1, cs:qword_140835328                                       ; +0x113, 0x1402c9793\nmovq    rdx, xmm1                                                      ; +0x11b, 0x1402c979b\nlea     rcx, aG_3; \"%g\"                                                ; +0x120, 0x1402c97a0\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x127, 0x1402c97a7\nmov     rcx, rax                                                       ; +0x12d, 0x1402c97ad\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x130, 0x1402c97b0\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x136, 0x1402c97b6\nnop     dword ptr [rax]                                                ; +0x13d, 0x1402c97bd\ninc     r8; Size                                                       ; +0x140, 0x1402c97c0\ncmp     byte ptr [rax+r8], 0                                           ; +0x143, 0x1402c97c3\njnz     short loc_1402C97C0                                            ; +0x148, 0x1402c97c8\nmov     rdx, rax; Src                                                  ; +0x14a, 0x1402c97ca\nlea     rcx, [rbp+20h+var_30]; void *                                  ; +0x14d, 0x1402c97cd\ncall    sub_1400405A0                                                  ; +0x151, 0x1402c97d1\nlea     rdx, [rsp+120h+var_C0]                                         ; +0x156, 0x1402c97d6\nmov     rcx, rsi                                                       ; +0x15b, 0x1402c97db\ncall    SetupTriggerPopup__createValueControlAdvanced_1                ; +0x15e, 0x1402c97de\nmov     [rsp+120h+var_F0], 0FFFFFFFFh                                  ; +0x163, 0x1402c97e3\nlea     rcx, [rsi+368h]                                                ; +0x16b, 0x1402c97eb\nlea     rdx, [rsp+120h+var_F0]                                         ; +0x172, 0x1402c97f2\ncall    sub_14016EE40                                                  ; +0x177, 0x1402c97f7\nmov     byte ptr [rax], 1                                              ; +0x17c, 0x1402c97fc\nmov     rcx, [rsi+2F8h]                                                ; +0x17f, 0x1402c97ff\ntest    rcx, rcx                                                       ; +0x186, 0x1402c9806\njz      loc_1402C98D9                                                  ; +0x189, 0x1402c9809\nmov     rdx, 0FFFFFFFFFFFFFFFFh                                        ; +0x18f, 0x1402c980f\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x196, 0x1402c9816\ntest    rax, rax                                                       ; +0x19c, 0x1402c981c\njz      loc_1402C98D9                                                  ; +0x19f, 0x1402c981f\nmov     rcx, [rax]                                                     ; +0x1a5, 0x1402c9825\nmov     rdx, [rcx+0C8h]                                                ; +0x1a8, 0x1402c9828\nmov     rcx, rax                                                       ; +0x1af, 0x1402c982f\ncall    rdx                                                            ; +0x1b2, 0x1402c9832\nmov     r8, rax                                                        ; +0x1b4, 0x1402c9834\nlea     rdx, [rsp+120h+var_F0]                                         ; +0x1b7, 0x1402c9837\nmov     rcx, [rsi+228h]                                                ; +0x1bc, 0x1402c983c\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x1c3, 0x1402c9843\nlea     rcx, aGjTrashbtn001P; \"GJ_trashBtn_001.png\"                    ; +0x1c9, 0x1402c9849\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x1d0, 0x1402c9850\nmov     rbx, rax                                                       ; +0x1d6, 0x1402c9856\nmov     rcx, [rax]                                                     ; +0x1d9, 0x1402c9859\nmov     rdx, [rcx+0A0h]                                                ; +0x1dc, 0x1402c985c\nmovss   xmm1, cs:dword_140834F20                                       ; +0x1e3, 0x1402c9863\nmov     rcx, rax                                                       ; +0x1eb, 0x1402c986b\ncall    rdx                                                            ; +0x1ee, 0x1402c986e\nlea     r9, MoveStepPopup__onReset                                     ; +0x1f0, 0x1402c9870\nmov     r8, rsi                                                        ; +0x1f7, 0x1402c9877\nxor     edx, edx                                                       ; +0x1fa, 0x1402c987a\nmov     rcx, rbx                                                       ; +0x1fc, 0x1402c987c\ncall    CCMenuItemSpriteExtra__create                                  ; +0x1ff, 0x1402c987f\nmov     rbx, rax                                                       ; +0x204, 0x1402c9884\nmov     rcx, [rsi+228h]                                                ; +0x207, 0x1402c9887\nmov     rdx, [rcx]                                                     ; +0x20e, 0x1402c988e\nmov     r8, [rdx+1D0h]                                                 ; +0x211, 0x1402c9891\nmov     rdx, rax                                                       ; +0x218, 0x1402c9898\ncall    r8                                                             ; +0x21b, 0x1402c989b\nxorps   xmm2, xmm2                                                     ; +0x21e, 0x1402c989e\nmovss   xmm1, cs:dword_140835704                                       ; +0x221, 0x1402c98a1\nlea     rcx, [rsp+120h+var_D8]                                         ; +0x229, 0x1402c98a9\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x22e, 0x1402c98ae\nmov     r8, rax                                                        ; +0x234, 0x1402c98b4\nlea     rdx, [rsp+120h+var_E0]                                         ; +0x237, 0x1402c98b7\nlea     rcx, [rsp+120h+var_F0]                                         ; +0x23c, 0x1402c98bc\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x241, 0x1402c98c1\nmov     rax, [rbx]                                                     ; +0x247, 0x1402c98c7\nlea     rdx, [rsp+120h+var_E0]                                         ; +0x24a, 0x1402c98ca\nmov     rcx, rbx                                                       ; +0x24f, 0x1402c98cf\ncall    qword ptr [rax+0B8h]                                           ; +0x252, 0x1402c98d2\nnop                                                                    ; +0x258, 0x1402c98d8\nlea     rcx, [rbp+20h+var_30]                                          ; +0x259, 0x1402c98d9\ncall    sub_14003D310                                                  ; +0x25d, 0x1402c98dd\nlea     rcx, [rbp+20h+var_58]                                          ; +0x262, 0x1402c98e2\ncall    sub_14003D310                                                  ; +0x266, 0x1402c98e6\nlea     rcx, [rsp+120h+var_B8]                                         ; +0x26b, 0x1402c98eb\ncall    sub_14003D310                                                  ; +0x270, 0x1402c98f0\nmov     rcx, [rbp+20h+var_10]                                          ; +0x275, 0x1402c98f5\nxor     rcx, rsp; StackCookie                                          ; +0x279, 0x1402c98f9\ncall    __security_check_cookie                                        ; +0x27c, 0x1402c98fc\nlea     r11, [rsp+120h+var_s0]                                         ; +0x281, 0x1402c9901\nmov     rbx, [r11+18h]                                                 ; +0x289, 0x1402c9909\nmov     rsi, [r11+20h]                                                 ; +0x28d, 0x1402c990d\nmov     rdi, [r11+28h]                                                 ; +0x291, 0x1402c9911\nmov     rsp, r11                                                       ; +0x295, 0x1402c9915\npop     rbp                                                            ; +0x298, 0x1402c9918\nretn                                                                   ; +0x299, 0x1402c9919", "xrefs": ["<???> @ 0x140766fe8", "<???> @ 0x14091dc78"], "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"}