{"type": "func", "start": 4299323472, "end": 4299323779, "name": "GJSmartTemplate::isUnrequired", "pseudocode": "// \n// GJSmartTemplate::isUnrequired from 0x100427850 to 0x100427983 (307 bytes)\n// \n// 3 xrefs:\n// > GJSmartTemplate::logTemplateStatus @ 0x1004275f3\n// > GJSmartTemplate::getTemplateState @ 0x100427c19\n// > BrowseSmartTemplateLayer::init @ 0x1004e91f2\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall GJSmartTemplate::isUnrequired(__int64 a1, std::string *a2)\n{\n  bool v2; // r14\n  bool v3; // r13\n  bool v4; // r12\n  std::string::reference v5; // rcx\n  bool result; // al\n  std::string::value_type v7; // [rsp+4h] [rbp-2Ch]\n  std::string::value_type v8; // [rsp+5h] [rbp-2Bh]\n  std::string::value_type v9; // [rsp+6h] [rbp-2Ah]\n  std::string::value_type v10; // [rsp+7h] [rbp-29h]\n\n  v7 = *std::string::at(a2, 1u);\n  v9 = *std::string::at(a2, 2u);\n  v8 = *std::string::at(a2, 3u);\n  v10 = *std::string::at(a2, 4u);\n  v2 = *std::string::at(a2, 5u) != 48;\n  v3 = *std::string::at(a2, 6u) != 48;\n  v4 = *std::string::at(a2, 7u) != 48;\n  v5 = std::string::at(a2, 8u);\n  result = 1;\n  if ( (v8 != 48 && v7 != 48 || !v2) && (v10 != 48 && v7 != 48 || !v3) && (v8 != 48 && v9 != 48 || !v4) )\n  {\n    if ( *v5 == 48 )\n      return ((unsigned __int8)v10 ^ 0x30\n            | (unsigned __int8)v8 ^ 0x30\n            | (unsigned __int8)v9 ^ 0x30\n            | (unsigned __int8)v7 ^ 0x30) == 0;\n    else\n      return v10 == 48 || v9 == 48;\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::isUnrequired from 0x100427850 to 0x100427983 (307 bytes)\n; \n; 3 xrefs:\n; > GJSmartTemplate::logTemplateStatus @ 0x1004275f3\n; > GJSmartTemplate::getTemplateState @ 0x100427c19\n; > BrowseSmartTemplateLayer::init @ 0x1004e91f2\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100427850\nmov     rbp, rsp                                                       ; +0x1, 0x100427851\npush    r15                                                            ; +0x4, 0x100427854\npush    r14                                                            ; +0x6, 0x100427856\npush    r13                                                            ; +0x8, 0x100427858\npush    r12                                                            ; +0xa, 0x10042785a\npush    rbx                                                            ; +0xc, 0x10042785c\npush    rax                                                            ; +0xd, 0x10042785d\nmov     rbx, rsi                                                       ; +0xe, 0x10042785e\nmov     esi, 1; __n                                                    ; +0x11, 0x100427861\nmov     rdi, rbx; this                                                 ; +0x16, 0x100427866\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x19, 0x100427869\nmovzx   eax, byte ptr [rax]                                            ; +0x1e, 0x10042786e\nmov     [rbp+var_2C], al                                               ; +0x21, 0x100427871\ncmp     al, 30h ; '0'                                                  ; +0x24, 0x100427874\nsetz    r15b                                                           ; +0x26, 0x100427876\nmov     esi, 2; __n                                                    ; +0x2a, 0x10042787a\nmov     rdi, rbx; this                                                 ; +0x2f, 0x10042787f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x32, 0x100427882\nmovzx   eax, byte ptr [rax]                                            ; +0x37, 0x100427887\nmov     [rbp+var_2A], al                                               ; +0x3a, 0x10042788a\ncmp     al, 30h ; '0'                                                  ; +0x3d, 0x10042788d\nsetz    [rbp+var_2D]                                                   ; +0x3f, 0x10042788f\nmov     esi, 3; __n                                                    ; +0x43, 0x100427893\nmov     rdi, rbx; this                                                 ; +0x48, 0x100427898\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x4b, 0x10042789b\nmovzx   eax, byte ptr [rax]                                            ; +0x50, 0x1004278a0\nmov     [rbp+var_2B], al                                               ; +0x53, 0x1004278a3\ncmp     al, 30h ; '0'                                                  ; +0x56, 0x1004278a6\nsetz    [rbp+var_2F]                                                   ; +0x58, 0x1004278a8\nmov     esi, 4; __n                                                    ; +0x5c, 0x1004278ac\nmov     rdi, rbx; this                                                 ; +0x61, 0x1004278b1\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x64, 0x1004278b4\nmovzx   eax, byte ptr [rax]                                            ; +0x69, 0x1004278b9\nmov     [rbp+var_29], al                                               ; +0x6c, 0x1004278bc\ncmp     al, 30h ; '0'                                                  ; +0x6f, 0x1004278bf\nsetz    [rbp+var_2E]                                                   ; +0x71, 0x1004278c1\nmov     esi, 5; __n                                                    ; +0x75, 0x1004278c5\nmov     rdi, rbx; this                                                 ; +0x7a, 0x1004278ca\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x7d, 0x1004278cd\ncmp     byte ptr [rax], 30h ; '0'                                      ; +0x82, 0x1004278d2\nsetnz   r14b                                                           ; +0x85, 0x1004278d5\nmov     esi, 6; __n                                                    ; +0x89, 0x1004278d9\nmov     rdi, rbx; this                                                 ; +0x8e, 0x1004278de\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x91, 0x1004278e1\ncmp     byte ptr [rax], 30h ; '0'                                      ; +0x96, 0x1004278e6\nsetnz   r13b                                                           ; +0x99, 0x1004278e9\nmov     esi, 7; __n                                                    ; +0x9d, 0x1004278ed\nmov     rdi, rbx; this                                                 ; +0xa2, 0x1004278f2\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xa5, 0x1004278f5\ncmp     byte ptr [rax], 30h ; '0'                                      ; +0xaa, 0x1004278fa\nsetnz   r12b                                                           ; +0xad, 0x1004278fd\nmov     esi, 8; __n                                                    ; +0xb1, 0x100427901\nmov     rdi, rbx; this                                                 ; +0xb6, 0x100427906\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xb9, 0x100427909\nmovzx   esi, [rbp+var_2F]                                              ; +0xbe, 0x10042790e\nmov     rcx, rax                                                       ; +0xc2, 0x100427912\nmov     edx, r15d                                                      ; +0xc5, 0x100427915\nor      dl, sil                                                        ; +0xc8, 0x100427918\nmov     al, 1                                                          ; +0xcb, 0x10042791b\ntest    r14b, dl                                                       ; +0xcd, 0x10042791d\njnz     short loc_100427974                                            ; +0xd0, 0x100427920\nor      r15b, [rbp+var_2E]                                             ; +0xd2, 0x100427922\nand     r13b, r15b                                                     ; +0xd6, 0x100427926\njnz     short loc_100427974                                            ; +0xd9, 0x100427929\nmovzx   edx, [rbp+var_2D]                                              ; +0xdb, 0x10042792b\nor      dl, sil                                                        ; +0xdf, 0x10042792f\nand     r12b, dl                                                       ; +0xe2, 0x100427932\njnz     short loc_100427974                                            ; +0xe5, 0x100427935\ncmp     byte ptr [rcx], 30h ; '0'                                      ; +0xe7, 0x100427937\njnz     short loc_100427964                                            ; +0xea, 0x10042793a\nmovzx   esi, [rbp+var_29]                                              ; +0xec, 0x10042793c\nxor     sil, 30h                                                       ; +0xf0, 0x100427940\nmovzx   edx, [rbp+var_2B]                                              ; +0xf4, 0x100427944\nxor     dl, 30h                                                        ; +0xf8, 0x100427948\nmovzx   ecx, [rbp+var_2A]                                              ; +0xfb, 0x10042794b\nxor     cl, 30h                                                        ; +0xff, 0x10042794f\nmovzx   eax, [rbp+var_2C]                                              ; +0x102, 0x100427952\nxor     al, 30h                                                        ; +0x106, 0x100427956\nor      al, cl                                                         ; +0x108, 0x100427958\nor      al, dl                                                         ; +0x10a, 0x10042795a\nor      al, sil                                                        ; +0x10c, 0x10042795c\nsetz    al                                                             ; +0x10f, 0x10042795f\njmp     short loc_100427974                                            ; +0x112, 0x100427962\ncmp     [rbp+var_29], 30h ; '0'                                        ; +0x114, 0x100427964\nsetz    cl                                                             ; +0x118, 0x100427968\ncmp     [rbp+var_2A], 30h ; '0'                                        ; +0x11b, 0x10042796b\nsetz    al                                                             ; +0x11f, 0x10042796f\nor      al, cl                                                         ; +0x122, 0x100427972\nadd     rsp, 8                                                         ; +0x124, 0x100427974\npop     rbx                                                            ; +0x128, 0x100427978\npop     r12                                                            ; +0x129, 0x100427979\npop     r13                                                            ; +0x12b, 0x10042797b\npop     r14                                                            ; +0x12d, 0x10042797d\npop     r15                                                            ; +0x12f, 0x10042797f\npop     rbp                                                            ; +0x131, 0x100427981\nretn                                                                   ; +0x132, 0x100427982", "xrefs": ["GJSmartTemplate::logTemplateStatus @ 0x1004275f3", "GJSmartTemplate::getTemplateState @ 0x100427c19", "BrowseSmartTemplateLayer::init @ 0x1004e91f2"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}