{"type": "func", "start": 4299244736, "end": 4299245043, "name": "GJSmartTemplate::isUnrequired", "pseudocode": "// \n// GJSmartTemplate::isUnrequired from 0x1004144c0 to 0x1004145f3 (307 bytes)\n// \n// 3 xrefs:\n// > GJSmartTemplate::logTemplateStatus @ 0x100414263\n// > GJSmartTemplate::getTemplateState @ 0x100414889\n// > BrowseSmartTemplateLayer::init @ 0x1004e3cb2\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:30:10 +0000\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 0x1004144c0 to 0x1004145f3 (307 bytes)\n; \n; 3 xrefs:\n; > GJSmartTemplate::logTemplateStatus @ 0x100414263\n; > GJSmartTemplate::getTemplateState @ 0x100414889\n; > BrowseSmartTemplateLayer::init @ 0x1004e3cb2\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:30:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004144c0\nmov     rbp, rsp                                                       ; +0x1, 0x1004144c1\npush    r15                                                            ; +0x4, 0x1004144c4\npush    r14                                                            ; +0x6, 0x1004144c6\npush    r13                                                            ; +0x8, 0x1004144c8\npush    r12                                                            ; +0xa, 0x1004144ca\npush    rbx                                                            ; +0xc, 0x1004144cc\npush    rax                                                            ; +0xd, 0x1004144cd\nmov     rbx, rsi                                                       ; +0xe, 0x1004144ce\nmov     esi, 1; __n                                                    ; +0x11, 0x1004144d1\nmov     rdi, rbx; this                                                 ; +0x16, 0x1004144d6\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x19, 0x1004144d9\nmovzx   eax, byte ptr [rax]                                            ; +0x1e, 0x1004144de\nmov     [rbp+var_2C], al                                               ; +0x21, 0x1004144e1\ncmp     al, 30h ; '0'                                                  ; +0x24, 0x1004144e4\nsetz    r15b                                                           ; +0x26, 0x1004144e6\nmov     esi, 2; __n                                                    ; +0x2a, 0x1004144ea\nmov     rdi, rbx; this                                                 ; +0x2f, 0x1004144ef\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x32, 0x1004144f2\nmovzx   eax, byte ptr [rax]                                            ; +0x37, 0x1004144f7\nmov     [rbp+var_2A], al                                               ; +0x3a, 0x1004144fa\ncmp     al, 30h ; '0'                                                  ; +0x3d, 0x1004144fd\nsetz    [rbp+var_2D]                                                   ; +0x3f, 0x1004144ff\nmov     esi, 3; __n                                                    ; +0x43, 0x100414503\nmov     rdi, rbx; this                                                 ; +0x48, 0x100414508\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x4b, 0x10041450b\nmovzx   eax, byte ptr [rax]                                            ; +0x50, 0x100414510\nmov     [rbp+var_2B], al                                               ; +0x53, 0x100414513\ncmp     al, 30h ; '0'                                                  ; +0x56, 0x100414516\nsetz    [rbp+var_2F]                                                   ; +0x58, 0x100414518\nmov     esi, 4; __n                                                    ; +0x5c, 0x10041451c\nmov     rdi, rbx; this                                                 ; +0x61, 0x100414521\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x64, 0x100414524\nmovzx   eax, byte ptr [rax]                                            ; +0x69, 0x100414529\nmov     [rbp+var_29], al                                               ; +0x6c, 0x10041452c\ncmp     al, 30h ; '0'                                                  ; +0x6f, 0x10041452f\nsetz    [rbp+var_2E]                                                   ; +0x71, 0x100414531\nmov     esi, 5; __n                                                    ; +0x75, 0x100414535\nmov     rdi, rbx; this                                                 ; +0x7a, 0x10041453a\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x7d, 0x10041453d\ncmp     byte ptr [rax], 30h ; '0'                                      ; +0x82, 0x100414542\nsetnz   r14b                                                           ; +0x85, 0x100414545\nmov     esi, 6; __n                                                    ; +0x89, 0x100414549\nmov     rdi, rbx; this                                                 ; +0x8e, 0x10041454e\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x91, 0x100414551\ncmp     byte ptr [rax], 30h ; '0'                                      ; +0x96, 0x100414556\nsetnz   r13b                                                           ; +0x99, 0x100414559\nmov     esi, 7; __n                                                    ; +0x9d, 0x10041455d\nmov     rdi, rbx; this                                                 ; +0xa2, 0x100414562\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xa5, 0x100414565\ncmp     byte ptr [rax], 30h ; '0'                                      ; +0xaa, 0x10041456a\nsetnz   r12b                                                           ; +0xad, 0x10041456d\nmov     esi, 8; __n                                                    ; +0xb1, 0x100414571\nmov     rdi, rbx; this                                                 ; +0xb6, 0x100414576\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xb9, 0x100414579\nmovzx   esi, [rbp+var_2F]                                              ; +0xbe, 0x10041457e\nmov     rcx, rax                                                       ; +0xc2, 0x100414582\nmov     edx, r15d                                                      ; +0xc5, 0x100414585\nor      dl, sil                                                        ; +0xc8, 0x100414588\nmov     al, 1                                                          ; +0xcb, 0x10041458b\ntest    r14b, dl                                                       ; +0xcd, 0x10041458d\njnz     short loc_1004145E4                                            ; +0xd0, 0x100414590\nor      r15b, [rbp+var_2E]                                             ; +0xd2, 0x100414592\nand     r13b, r15b                                                     ; +0xd6, 0x100414596\njnz     short loc_1004145E4                                            ; +0xd9, 0x100414599\nmovzx   edx, [rbp+var_2D]                                              ; +0xdb, 0x10041459b\nor      dl, sil                                                        ; +0xdf, 0x10041459f\nand     r12b, dl                                                       ; +0xe2, 0x1004145a2\njnz     short loc_1004145E4                                            ; +0xe5, 0x1004145a5\ncmp     byte ptr [rcx], 30h ; '0'                                      ; +0xe7, 0x1004145a7\njnz     short loc_1004145D4                                            ; +0xea, 0x1004145aa\nmovzx   esi, [rbp+var_29]                                              ; +0xec, 0x1004145ac\nxor     sil, 30h                                                       ; +0xf0, 0x1004145b0\nmovzx   edx, [rbp+var_2B]                                              ; +0xf4, 0x1004145b4\nxor     dl, 30h                                                        ; +0xf8, 0x1004145b8\nmovzx   ecx, [rbp+var_2A]                                              ; +0xfb, 0x1004145bb\nxor     cl, 30h                                                        ; +0xff, 0x1004145bf\nmovzx   eax, [rbp+var_2C]                                              ; +0x102, 0x1004145c2\nxor     al, 30h                                                        ; +0x106, 0x1004145c6\nor      al, cl                                                         ; +0x108, 0x1004145c8\nor      al, dl                                                         ; +0x10a, 0x1004145ca\nor      al, sil                                                        ; +0x10c, 0x1004145cc\nsetz    al                                                             ; +0x10f, 0x1004145cf\njmp     short loc_1004145E4                                            ; +0x112, 0x1004145d2\ncmp     [rbp+var_29], 30h ; '0'                                        ; +0x114, 0x1004145d4\nsetz    cl                                                             ; +0x118, 0x1004145d8\ncmp     [rbp+var_2A], 30h ; '0'                                        ; +0x11b, 0x1004145db\nsetz    al                                                             ; +0x11f, 0x1004145df\nor      al, cl                                                         ; +0x122, 0x1004145e2\nadd     rsp, 8                                                         ; +0x124, 0x1004145e4\npop     rbx                                                            ; +0x128, 0x1004145e8\npop     r12                                                            ; +0x129, 0x1004145e9\npop     r13                                                            ; +0x12b, 0x1004145eb\npop     r14                                                            ; +0x12d, 0x1004145ed\npop     r15                                                            ; +0x12f, 0x1004145ef\npop     rbp                                                            ; +0x131, 0x1004145f1\nretn                                                                   ; +0x132, 0x1004145f2", "xrefs": ["GJSmartTemplate::logTemplateStatus @ 0x100414263", "GJSmartTemplate::getTemplateState @ 0x100414889", "BrowseSmartTemplateLayer::init @ 0x1004e3cb2"], "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"}