{"type": "func", "start": 4299306928, "end": 4299307369, "name": "GJSmartTemplate::getVerySimplifiedKey", "pseudocode": "// \n// GJSmartTemplate::getVerySimplifiedKey from 0x1004237b0 to 0x100423969 (441 bytes)\n// \n// 6 xrefs:\n// > GJSmartTemplate::saveRemap @ 0x100422675\n// > GJSmartTemplate::saveRemap @ 0x1004228ba\n// > GJSmartTemplate::getPrefab_1 @ 0x10042535f\n// > GJSmartTemplate::getPrefab_1 @ 0x1004253ed\n// > GJSmartTemplate::getPrefab_1 @ 0x100425536\n// > GJSmartTemplate::getPrefab_1 @ 0x1004255a9\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\n__int64 __fastcall GJSmartTemplate::getVerySimplifiedKey(__int64 a1, std::string *a2)\n{\n  unsigned int v2; // eax\n  std::string::pointer data; // r15\n  unsigned __int8 v4; // al\n  bool v5; // r12\n  std::string::pointer v6; // rax\n  std::string::pointer v7; // rax\n  std::string::pointer v8; // rax\n  std::string::pointer v9; // rax\n  std::string::pointer v10; // rax\n  std::string::pointer v11; // rax\n  std::string::pointer v12; // rax\n\n  v2 = (unsigned int)a2->__r_.__value_.__l.0;\n  if ( (v2 & 1) != 0 )\n  {\n    if ( !a2->__r_.__value_.__l.__size_ )\n      goto LABEL_39;\n  }\n  else if ( !(v2 >> 1) )\n  {\n    goto LABEL_39;\n  }\n  data = a2->__r_.__value_.__s.__data_;\n  v4 = *std::string::at(a2, 1u) - 50;\n  v5 = v4 < 0xFEu;\n  if ( v4 < 0xFEu )\n  {\n    v6 = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      v6 = a2->__r_.__value_.__l.__data_;\n    v6[1] = 49;\n  }\n  if ( (unsigned __int8)(*std::string::at(a2, 2u) - 50) <= 0xFDu )\n  {\n    v7 = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      v7 = a2->__r_.__value_.__l.__data_;\n    v7[2] = 49;\n    v5 = 1;\n  }\n  if ( (unsigned __int8)(*std::string::at(a2, 3u) - 50) <= 0xFDu )\n  {\n    v8 = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      v8 = a2->__r_.__value_.__l.__data_;\n    v8[3] = 49;\n    v5 = 1;\n  }\n  if ( (unsigned __int8)(*std::string::at(a2, 4u) - 50) <= 0xFDu )\n  {\n    v9 = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      v9 = a2->__r_.__value_.__l.__data_;\n    v9[4] = 49;\n    v5 = 1;\n  }\n  if ( (unsigned __int8)(*std::string::at(a2, 5u) - 50) <= 0xFDu )\n  {\n    v10 = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      v10 = a2->__r_.__value_.__l.__data_;\n    v10[5] = 49;\n    v5 = 1;\n  }\n  if ( (unsigned __int8)(*std::string::at(a2, 6u) - 50) <= 0xFDu )\n  {\n    v11 = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      v11 = a2->__r_.__value_.__l.__data_;\n    v11[6] = 49;\n    v5 = 1;\n  }\n  if ( (unsigned __int8)(*std::string::at(a2, 7u) - 50) <= 0xFDu )\n  {\n    v12 = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      v12 = a2->__r_.__value_.__l.__data_;\n    v12[7] = 49;\n    v5 = 1;\n  }\n  if ( (unsigned __int8)(*std::string::at(a2, 8u) - 50) <= 0xFDu )\n  {\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      data = a2->__r_.__value_.__l.__data_;\n    data[8] = 49;\n    goto LABEL_38;\n  }\n  if ( !v5 )\n  {\nLABEL_39:\n    *(_WORD *)a1 = 0;\n    return a1;\n  }\nLABEL_38:\n  *(_QWORD *)(a1 + 16) = a2->__r_.__value_.__l.__data_;\n  *(_OWORD *)a1 = *(_OWORD *)&a2->__r_.__value_.__l.0;\n  *(_OWORD *)&a2->__r_.__value_.__l.0 = 0;\n  a2->__r_.__value_.__r.__words[2] = 0;\n  return a1;\n}", "assembly": "; \n; GJSmartTemplate::getVerySimplifiedKey from 0x1004237b0 to 0x100423969 (441 bytes)\n; \n; 6 xrefs:\n; > GJSmartTemplate::saveRemap @ 0x100422675\n; > GJSmartTemplate::saveRemap @ 0x1004228ba\n; > GJSmartTemplate::getPrefab_1 @ 0x10042535f\n; > GJSmartTemplate::getPrefab_1 @ 0x1004253ed\n; > GJSmartTemplate::getPrefab_1 @ 0x100425536\n; > GJSmartTemplate::getPrefab_1 @ 0x1004255a9\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, 0x1004237b0\nmov     rbp, rsp                                                       ; +0x1, 0x1004237b1\npush    r15                                                            ; +0x4, 0x1004237b4\npush    r14                                                            ; +0x6, 0x1004237b6\npush    r12                                                            ; +0x8, 0x1004237b8\npush    rbx                                                            ; +0xa, 0x1004237ba\nmov     r14, rsi                                                       ; +0xb, 0x1004237bb\nmov     rbx, rdi                                                       ; +0xe, 0x1004237be\nmovzx   eax, byte ptr [rsi]                                            ; +0x11, 0x1004237c1\ntest    al, 1                                                          ; +0x14, 0x1004237c4\njnz     short loc_1004237D4                                            ; +0x16, 0x1004237c6\nshr     eax, 1                                                         ; +0x18, 0x1004237c8\ntest    rax, rax                                                       ; +0x1a, 0x1004237ca\njnz     short loc_1004237E1                                            ; +0x1d, 0x1004237cd\njmp     loc_100423958                                                  ; +0x1f, 0x1004237cf\nmov     rax, [r14+8]                                                   ; +0x24, 0x1004237d4\ntest    rax, rax                                                       ; +0x28, 0x1004237d8\njz      loc_100423958                                                  ; +0x2b, 0x1004237db\nlea     r15, [r14+1]                                                   ; +0x31, 0x1004237e1\nmov     esi, 1; __n                                                    ; +0x35, 0x1004237e5\nmov     rdi, r14; this                                                 ; +0x3a, 0x1004237ea\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x3d, 0x1004237ed\nmovzx   eax, byte ptr [rax]                                            ; +0x42, 0x1004237f2\nadd     al, 0CEh                                                       ; +0x45, 0x1004237f5\ncmp     al, 0FEh                                                       ; +0x47, 0x1004237f7\nsetb    r12b                                                           ; +0x49, 0x1004237f9\njnb     short loc_100423810                                            ; +0x4d, 0x1004237fd\ntest    byte ptr [r14], 1                                              ; +0x4f, 0x1004237ff\nmov     rax, r15                                                       ; +0x53, 0x100423803\njz      short loc_10042380C                                            ; +0x56, 0x100423806\nmov     rax, [r14+10h]                                                 ; +0x58, 0x100423808\nmov     byte ptr [rax+1], 31h ; '1'                                    ; +0x5c, 0x10042380c\nmov     esi, 2; __n                                                    ; +0x60, 0x100423810\nmov     rdi, r14; this                                                 ; +0x65, 0x100423815\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x68, 0x100423818\nmovzx   eax, byte ptr [rax]                                            ; +0x6d, 0x10042381d\nadd     al, 0CEh                                                       ; +0x70, 0x100423820\ncmp     al, 0FDh                                                       ; +0x72, 0x100423822\nja      short loc_10042383A                                            ; +0x74, 0x100423824\ntest    byte ptr [r14], 1                                              ; +0x76, 0x100423826\nmov     rax, r15                                                       ; +0x7a, 0x10042382a\njz      short loc_100423833                                            ; +0x7d, 0x10042382d\nmov     rax, [r14+10h]                                                 ; +0x7f, 0x10042382f\nmov     byte ptr [rax+2], 31h ; '1'                                    ; +0x83, 0x100423833\nmov     r12b, 1                                                        ; +0x87, 0x100423837\nmov     esi, 3; __n                                                    ; +0x8a, 0x10042383a\nmov     rdi, r14; this                                                 ; +0x8f, 0x10042383f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x92, 0x100423842\nmovzx   eax, byte ptr [rax]                                            ; +0x97, 0x100423847\nadd     al, 0CEh                                                       ; +0x9a, 0x10042384a\ncmp     al, 0FDh                                                       ; +0x9c, 0x10042384c\nja      short loc_100423864                                            ; +0x9e, 0x10042384e\ntest    byte ptr [r14], 1                                              ; +0xa0, 0x100423850\nmov     rax, r15                                                       ; +0xa4, 0x100423854\njz      short loc_10042385D                                            ; +0xa7, 0x100423857\nmov     rax, [r14+10h]                                                 ; +0xa9, 0x100423859\nmov     byte ptr [rax+3], 31h ; '1'                                    ; +0xad, 0x10042385d\nmov     r12b, 1                                                        ; +0xb1, 0x100423861\nmov     esi, 4; __n                                                    ; +0xb4, 0x100423864\nmov     rdi, r14; this                                                 ; +0xb9, 0x100423869\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xbc, 0x10042386c\nmovzx   eax, byte ptr [rax]                                            ; +0xc1, 0x100423871\nadd     al, 0CEh                                                       ; +0xc4, 0x100423874\ncmp     al, 0FDh                                                       ; +0xc6, 0x100423876\nja      short loc_10042388E                                            ; +0xc8, 0x100423878\ntest    byte ptr [r14], 1                                              ; +0xca, 0x10042387a\nmov     rax, r15                                                       ; +0xce, 0x10042387e\njz      short loc_100423887                                            ; +0xd1, 0x100423881\nmov     rax, [r14+10h]                                                 ; +0xd3, 0x100423883\nmov     byte ptr [rax+4], 31h ; '1'                                    ; +0xd7, 0x100423887\nmov     r12b, 1                                                        ; +0xdb, 0x10042388b\nmov     esi, 5; __n                                                    ; +0xde, 0x10042388e\nmov     rdi, r14; this                                                 ; +0xe3, 0x100423893\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xe6, 0x100423896\nmovzx   eax, byte ptr [rax]                                            ; +0xeb, 0x10042389b\nadd     al, 0CEh                                                       ; +0xee, 0x10042389e\ncmp     al, 0FDh                                                       ; +0xf0, 0x1004238a0\nja      short loc_1004238B8                                            ; +0xf2, 0x1004238a2\ntest    byte ptr [r14], 1                                              ; +0xf4, 0x1004238a4\nmov     rax, r15                                                       ; +0xf8, 0x1004238a8\njz      short loc_1004238B1                                            ; +0xfb, 0x1004238ab\nmov     rax, [r14+10h]                                                 ; +0xfd, 0x1004238ad\nmov     byte ptr [rax+5], 31h ; '1'                                    ; +0x101, 0x1004238b1\nmov     r12b, 1                                                        ; +0x105, 0x1004238b5\nmov     esi, 6; __n                                                    ; +0x108, 0x1004238b8\nmov     rdi, r14; this                                                 ; +0x10d, 0x1004238bd\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x110, 0x1004238c0\nmovzx   eax, byte ptr [rax]                                            ; +0x115, 0x1004238c5\nadd     al, 0CEh                                                       ; +0x118, 0x1004238c8\ncmp     al, 0FDh                                                       ; +0x11a, 0x1004238ca\nja      short loc_1004238E2                                            ; +0x11c, 0x1004238cc\ntest    byte ptr [r14], 1                                              ; +0x11e, 0x1004238ce\nmov     rax, r15                                                       ; +0x122, 0x1004238d2\njz      short loc_1004238DB                                            ; +0x125, 0x1004238d5\nmov     rax, [r14+10h]                                                 ; +0x127, 0x1004238d7\nmov     byte ptr [rax+6], 31h ; '1'                                    ; +0x12b, 0x1004238db\nmov     r12b, 1                                                        ; +0x12f, 0x1004238df\nmov     esi, 7; __n                                                    ; +0x132, 0x1004238e2\nmov     rdi, r14; this                                                 ; +0x137, 0x1004238e7\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x13a, 0x1004238ea\nmovzx   eax, byte ptr [rax]                                            ; +0x13f, 0x1004238ef\nadd     al, 0CEh                                                       ; +0x142, 0x1004238f2\ncmp     al, 0FDh                                                       ; +0x144, 0x1004238f4\nja      short loc_10042390C                                            ; +0x146, 0x1004238f6\ntest    byte ptr [r14], 1                                              ; +0x148, 0x1004238f8\nmov     rax, r15                                                       ; +0x14c, 0x1004238fc\njz      short loc_100423905                                            ; +0x14f, 0x1004238ff\nmov     rax, [r14+10h]                                                 ; +0x151, 0x100423901\nmov     byte ptr [rax+7], 31h ; '1'                                    ; +0x155, 0x100423905\nmov     r12b, 1                                                        ; +0x159, 0x100423909\nmov     esi, 8; __n                                                    ; +0x15c, 0x10042390c\nmov     rdi, r14; this                                                 ; +0x161, 0x100423911\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x164, 0x100423914\nmovzx   eax, byte ptr [rax]                                            ; +0x169, 0x100423919\nadd     al, 0CEh                                                       ; +0x16c, 0x10042391c\ncmp     al, 0FDh                                                       ; +0x16e, 0x10042391e\nja      short loc_100423933                                            ; +0x170, 0x100423920\ntest    byte ptr [r14], 1                                              ; +0x172, 0x100423922\njz      short loc_10042392C                                            ; +0x176, 0x100423926\nmov     r15, [r14+10h]                                                 ; +0x178, 0x100423928\nmov     byte ptr [r15+8], 31h ; '1'                                    ; +0x17c, 0x10042392c\njmp     short loc_100423938                                            ; +0x181, 0x100423931\ntest    r12b, r12b                                                     ; +0x183, 0x100423933\njz      short loc_100423958                                            ; +0x186, 0x100423936\nmov     rax, [r14+10h]                                                 ; +0x188, 0x100423938\nmov     [rbx+10h], rax                                                 ; +0x18c, 0x10042393c\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x190, 0x100423940\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x194, 0x100423944\nxorps   xmm0, xmm0                                                     ; +0x197, 0x100423947\nmovups  xmmword ptr [r14], xmm0                                        ; +0x19a, 0x10042394a\nmov     qword ptr [r14+10h], 0                                         ; +0x19e, 0x10042394e\njmp     short loc_10042395D                                            ; +0x1a6, 0x100423956\nmov     word ptr [rbx], 0                                              ; +0x1a8, 0x100423958\nmov     rax, rbx                                                       ; +0x1ad, 0x10042395d\npop     rbx                                                            ; +0x1b0, 0x100423960\npop     r12                                                            ; +0x1b1, 0x100423961\npop     r14                                                            ; +0x1b3, 0x100423963\npop     r15                                                            ; +0x1b5, 0x100423965\npop     rbp                                                            ; +0x1b7, 0x100423967\nretn                                                                   ; +0x1b8, 0x100423968", "xrefs": ["GJSmartTemplate::saveRemap @ 0x100422675", "GJSmartTemplate::saveRemap @ 0x1004228ba", "GJSmartTemplate::getPrefab_1 @ 0x10042535f", "GJSmartTemplate::getPrefab_1 @ 0x1004253ed", "GJSmartTemplate::getPrefab_1 @ 0x100425536", "GJSmartTemplate::getPrefab_1 @ 0x1004255a9"], "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"}