{"type": "func", "start": 5369391872, "end": 5369392226, "name": "AccountBanPopup::banStateShort", "pseudocode": "// \n// AccountBanPopup::banStateShort from 0x1400a6b00 to 0x1400a6c62 (354 bytes)\n// \n// 4 xrefs:\n// > AccountReviewPopup::updateCard @ 0x1400b178e\n// > AccountReviewPopup::updateCard @ 0x1400b1871\n// > AccountReviewPopup::updateCard @ 0x1400b19f2\n// > <???> @ 0x140913220\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:26:08 +0000\n// \n\nchar *__fastcall AccountBanPopup::banStateShort(char *a1, int a2)\n{\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  cocos2d::CCString *v7; // rax\n  __int64 v8; // rdx\n  cocos2d::CCString *v9; // rax\n\n  if ( a2 >= 0 )\n  {\n    if ( a2 )\n    {\n      if ( a2 < 86400 )\n      {\n        if ( a2 < 3600 )\n        {\n          v8 = a2 / 0x3Cu;\n          if ( (int)v8 < 1 )\n            v8 = 1;\n          v9 = cocos2d::CCString::createWithFormat(\"%im\", v8);\n          CString = cocos2d::CCString::getCString(v9);\n          v6 = -1;\n          *(_OWORD *)a1 = 0;\n          *((_QWORD *)a1 + 2) = 0;\n          *((_QWORD *)a1 + 3) = 0;\n          do\n            ++v6;\n          while ( CString[v6] );\n        }\n        else\n        {\n          v7 = cocos2d::CCString::createWithFormat(\"%ih\", a2 / 0xE10u);\n          CString = cocos2d::CCString::getCString(v7);\n          v6 = -1;\n          *(_OWORD *)a1 = 0;\n          *((_QWORD *)a1 + 2) = 0;\n          *((_QWORD *)a1 + 3) = 0;\n          do\n            ++v6;\n          while ( CString[v6] );\n        }\n      }\n      else\n      {\n        v4 = cocos2d::CCString::createWithFormat(\"%id\", a2 / 0x15180u);\n        CString = cocos2d::CCString::getCString(v4);\n        v6 = -1;\n        *(_OWORD *)a1 = 0;\n        *((_QWORD *)a1 + 2) = 0;\n        *((_QWORD *)a1 + 3) = 0;\n        do\n          ++v6;\n        while ( CString[v6] );\n      }\n      sub_14003D230(a1, CString, v6);\n      return a1;\n    }\n    else\n    {\n      *(_OWORD *)a1 = 0;\n      *((_QWORD *)a1 + 2) = 0;\n      *((_QWORD *)a1 + 3) = 15;\n      *a1 = 0;\n      return a1;\n    }\n  }\n  else\n  {\n    *(_OWORD *)a1 = 0;\n    *((_QWORD *)a1 + 2) = 4;\n    *((_QWORD *)a1 + 3) = 15;\n    strcpy(a1, \"perm\");\n    return a1;\n  }\n}", "assembly": "; \n; AccountBanPopup::banStateShort from 0x1400a6b00 to 0x1400a6c62 (354 bytes)\n; \n; 4 xrefs:\n; > AccountReviewPopup::updateCard @ 0x1400b178e\n; > AccountReviewPopup::updateCard @ 0x1400b1871\n; > AccountReviewPopup::updateCard @ 0x1400b19f2\n; > <???> @ 0x140913220\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:26:08 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400a6b00\npush    rdi                                                            ; +0x5, 0x1400a6b05\nsub     rsp, 30h                                                       ; +0x6, 0x1400a6b06\nxor     edi, edi                                                       ; +0xa, 0x1400a6b0a\nmov     rbx, rcx                                                       ; +0xc, 0x1400a6b0c\ntest    edx, edx                                                       ; +0xf, 0x1400a6b0f\njns     short loc_1400A6B41                                            ; +0x11, 0x1400a6b11\nxorps   xmm0, xmm0                                                     ; +0x13, 0x1400a6b13\nmov     rax, rcx                                                       ; +0x16, 0x1400a6b16\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x19, 0x1400a6b19\nmov     qword ptr [rcx+10h], 4                                         ; +0x1c, 0x1400a6b1c\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0x24, 0x1400a6b24\nmov     dword ptr [rcx], 6D726570h                                     ; +0x2c, 0x1400a6b2c\nmov     [rcx+4], dil                                                   ; +0x32, 0x1400a6b32\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x36, 0x1400a6b36\nadd     rsp, 30h                                                       ; +0x3b, 0x1400a6b3b\npop     rdi                                                            ; +0x3f, 0x1400a6b3f\nretn                                                                   ; +0x40, 0x1400a6b40\njnz     short loc_1400A6B66                                            ; +0x41, 0x1400a6b41\nxorps   xmm0, xmm0                                                     ; +0x43, 0x1400a6b43\nmov     rax, rbx                                                       ; +0x46, 0x1400a6b46\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x49, 0x1400a6b49\nmov     [rcx+10h], rdi                                                 ; +0x4c, 0x1400a6b4c\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0x50, 0x1400a6b50\nmov     [rcx], dil                                                     ; +0x58, 0x1400a6b58\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x5b, 0x1400a6b5b\nadd     rsp, 30h                                                       ; +0x60, 0x1400a6b60\npop     rdi                                                            ; +0x64, 0x1400a6b64\nretn                                                                   ; +0x65, 0x1400a6b65\ncmp     edx, 15180h                                                    ; +0x66, 0x1400a6b66\njl      short loc_1400A6BB1                                            ; +0x6c, 0x1400a6b6c\nmov     eax, 0C22E4507h                                                ; +0x6e, 0x1400a6b6e\nlea     rcx, aId_1; \"%id\"                                              ; +0x73, 0x1400a6b73\nmul     edx                                                            ; +0x7a, 0x1400a6b7a\nshr     edx, 10h                                                       ; +0x7c, 0x1400a6b7c\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x7f, 0x1400a6b7f\nmov     rcx, rax                                                       ; +0x85, 0x1400a6b85\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x88, 0x1400a6b88\nxorps   xmm0, xmm0                                                     ; +0x8e, 0x1400a6b8e\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x91, 0x1400a6b91\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x98, 0x1400a6b98\nmov     [rbx+10h], rdi                                                 ; +0x9b, 0x1400a6b9b\nmov     [rbx+18h], rdi                                                 ; +0x9f, 0x1400a6b9f\ninc     r8                                                             ; +0xa3, 0x1400a6ba3\ncmp     [rax+r8], dil                                                  ; +0xa6, 0x1400a6ba6\njnz     short loc_1400A6BA3                                            ; +0xaa, 0x1400a6baa\njmp     loc_1400A6C49                                                  ; +0xac, 0x1400a6bac\ncmp     edx, 0E10h                                                     ; +0xb1, 0x1400a6bb1\njl      short loc_1400A6BFB                                            ; +0xb7, 0x1400a6bb7\nmov     eax, 91A2B3C5h                                                 ; +0xb9, 0x1400a6bb9\nlea     rcx, aIh; \"%ih\"                                                ; +0xbe, 0x1400a6bbe\nmul     edx                                                            ; +0xc5, 0x1400a6bc5\nshr     edx, 0Bh                                                       ; +0xc7, 0x1400a6bc7\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xca, 0x1400a6bca\nmov     rcx, rax                                                       ; +0xd0, 0x1400a6bd0\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd3, 0x1400a6bd3\nxorps   xmm0, xmm0                                                     ; +0xd9, 0x1400a6bd9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xdc, 0x1400a6bdc\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xe3, 0x1400a6be3\nmov     [rbx+10h], rdi                                                 ; +0xe6, 0x1400a6be6\nmov     [rbx+18h], rdi                                                 ; +0xea, 0x1400a6bea\nxchg    ax, ax                                                         ; +0xee, 0x1400a6bee\ninc     r8                                                             ; +0xf0, 0x1400a6bf0\ncmp     [rax+r8], dil                                                  ; +0xf3, 0x1400a6bf3\njnz     short loc_1400A6BF0                                            ; +0xf7, 0x1400a6bf7\njmp     short loc_1400A6C49                                            ; +0xf9, 0x1400a6bf9\nmov     eax, 88888889h                                                 ; +0xfb, 0x1400a6bfb\nlea     rcx, aIm; \"%im\"                                                ; +0x100, 0x1400a6c00\nmul     edx                                                            ; +0x107, 0x1400a6c07\nmov     eax, 1                                                         ; +0x109, 0x1400a6c09\nshr     edx, 5                                                         ; +0x10e, 0x1400a6c0e\ncmp     edx, eax                                                       ; +0x111, 0x1400a6c11\ncmovl   edx, eax                                                       ; +0x113, 0x1400a6c13\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x116, 0x1400a6c16\nmov     rcx, rax                                                       ; +0x11c, 0x1400a6c1c\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x11f, 0x1400a6c1f\nxorps   xmm0, xmm0                                                     ; +0x125, 0x1400a6c25\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x128, 0x1400a6c28\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x12f, 0x1400a6c2f\nmov     [rbx+10h], rdi                                                 ; +0x132, 0x1400a6c32\nmov     [rbx+18h], rdi                                                 ; +0x136, 0x1400a6c36\nnop     word ptr [rax+rax+00h]                                         ; +0x13a, 0x1400a6c3a\ninc     r8                                                             ; +0x140, 0x1400a6c40\ncmp     [rax+r8], dil                                                  ; +0x143, 0x1400a6c43\njnz     short loc_1400A6C40                                            ; +0x147, 0x1400a6c47\nmov     rdx, rax                                                       ; +0x149, 0x1400a6c49\nmov     rcx, rbx                                                       ; +0x14c, 0x1400a6c4c\ncall    sub_14003D230                                                  ; +0x14f, 0x1400a6c4f\nmov     rax, rbx                                                       ; +0x154, 0x1400a6c54\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x157, 0x1400a6c57\nadd     rsp, 30h                                                       ; +0x15c, 0x1400a6c5c\npop     rdi                                                            ; +0x160, 0x1400a6c60\nretn                                                                   ; +0x161, 0x1400a6c61", "xrefs": ["AccountReviewPopup::updateCard @ 0x1400b178e", "AccountReviewPopup::updateCard @ 0x1400b1871", "AccountReviewPopup::updateCard @ 0x1400b19f2", "<???> @ 0x140913220"], "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"}