{"type": "func", "start": 4299227872, "end": 4299228157, "name": "GJSmartTemplate::getNoCornerKey", "pseudocode": "// \n// GJSmartTemplate::getNoCornerKey from 0x1004102e0 to 0x1004103fd (285 bytes)\n// \n// 8 xrefs:\n// > GJSmartTemplate::saveRemap @ 0x10040f11b\n// > GJSmartTemplate::saveRemap @ 0x10040f200\n// > GJSmartTemplate::saveRemap @ 0x10040f46c\n// > GJSmartTemplate::saveRemap @ 0x10040f6bc\n// > GJSmartTemplate::scanForPrefab @ 0x100410a27\n// > GJSmartTemplate::getPrefab_1 @ 0x100411fdb\n// > GJSmartTemplate::getPrefab_1 @ 0x1004120df\n// > GJSmartTemplate::getPrefab_1 @ 0x100412225\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:09 +0000\n// \n\nstd::string *__fastcall GJSmartTemplate::getNoCornerKey(std::string *a1, __int64 a2, unsigned __int8 *a3)\n{\n  std::string *v4; // rbx\n  unsigned int v5; // eax\n  unsigned __int64 v6; // rax\n  const void *v7; // rsi\n  size_t v8; // r15\n  std::string::pointer data; // r12\n  unsigned int v10; // r15d\n  std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v11; // r13\n  size_t v12; // rbx\n  unsigned __int128 v13; // kr00_16\n  size_t v14; // r15\n  const void *v15; // r14\n  size_t v16; // rdx\n  std::string::pointer __p; // [rsp+0h] [rbp-50h]\n  std::string __dst[2]; // [rsp+10h] [rbp-40h] BYREF\n\n  v4 = a1;\n  v5 = *a3;\n  if ( (v5 & 1) == 0 )\n  {\n    if ( *a3 )\n    {\n      v6 = v5 >> 1;\n      v7 = a3 + 1;\n      goto LABEL_6;\n    }\nLABEL_11:\n    *(_WORD *)&a1->__r_.__value_.__l.0 = 0;\n    return v4;\n  }\n  v6 = *((_QWORD *)a3 + 1);\n  if ( !v6 )\n    goto LABEL_11;\n  v7 = *((const void **)a3 + 2);\nLABEL_6:\n  v8 = 5;\n  if ( v6 < 5 )\n    v8 = v6;\n  __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v8);\n  data = __dst[0].__r_.__value_.__s.__data_;\n  memmove((char *)&__dst[0].__r_.__value_.__l.0 + 1, v7, v8);\n  *((_BYTE *)&__dst[0].__r_.__value_.__l.0 + v8 + 1) = 0;\n  std::string::append(__dst, \"0000\");\n  v10 = *a3;\n  v11 = __dst[0].__r_.__value_.__s.0;\n  if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 )\n  {\n    v12 = *(_BYTE *)&__dst[0].__r_.__value_.__l.0 >> 1;\n    __p = __dst[0].__r_.__value_.__l.__data_;\n    if ( (v10 & 1) == 0 )\n      goto LABEL_10;\nLABEL_13:\n    v14 = *((_QWORD *)a3 + 1);\n    v15 = *((const void **)a3 + 2);\n    goto LABEL_14;\n  }\n  data = __dst[0].__r_.__value_.__l.__data_;\n  v13 = *(_OWORD *)&__dst[0].__r_.__value_.__r.__words[1];\n  __p = (std::string::pointer)(v13 >> 64);\n  v12 = v13;\n  if ( (v10 & 1) != 0 )\n    goto LABEL_13;\nLABEL_10:\n  v14 = v10 >> 1;\n  v15 = a3 + 1;\nLABEL_14:\n  v16 = v12;\n  if ( v14 < v12 )\n    v16 = v14;\n  if ( !memcmp(data, v15, v16) && v14 == v12 )\n  {\n    v4 = a1;\n    *(_WORD *)&a1->__r_.__value_.__l.0 = 0;\n    if ( (*(_BYTE *)&v11 & 1) != 0 )\n      operator delete(__p);\n  }\n  else\n  {\n    v4 = a1;\n    *a1 = __dst[0];\n  }\n  return v4;\n}", "assembly": "; \n; GJSmartTemplate::getNoCornerKey from 0x1004102e0 to 0x1004103fd (285 bytes)\n; \n; 8 xrefs:\n; > GJSmartTemplate::saveRemap @ 0x10040f11b\n; > GJSmartTemplate::saveRemap @ 0x10040f200\n; > GJSmartTemplate::saveRemap @ 0x10040f46c\n; > GJSmartTemplate::saveRemap @ 0x10040f6bc\n; > GJSmartTemplate::scanForPrefab @ 0x100410a27\n; > GJSmartTemplate::getPrefab_1 @ 0x100411fdb\n; > GJSmartTemplate::getPrefab_1 @ 0x1004120df\n; > GJSmartTemplate::getPrefab_1 @ 0x100412225\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:09 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004102e0\nmov     rbp, rsp                                                       ; +0x1, 0x1004102e1\npush    r15                                                            ; +0x4, 0x1004102e4\npush    r14                                                            ; +0x6, 0x1004102e6\npush    r13                                                            ; +0x8, 0x1004102e8\npush    r12                                                            ; +0xa, 0x1004102ea\npush    rbx                                                            ; +0xc, 0x1004102ec\nsub     rsp, 28h                                                       ; +0xd, 0x1004102ed\nmov     r14, rdx                                                       ; +0x11, 0x1004102f1\nmov     rbx, rdi                                                       ; +0x14, 0x1004102f4\nmovzx   eax, byte ptr [rdx]                                            ; +0x17, 0x1004102f7\ntest    al, 1                                                          ; +0x1a, 0x1004102fa\njnz     short loc_10041030B                                            ; +0x1c, 0x1004102fc\ntest    rax, rax                                                       ; +0x1e, 0x1004102fe\njz      short loc_100410382                                            ; +0x21, 0x100410301\nshr     eax, 1                                                         ; +0x23, 0x100410303\nlea     rsi, [r14+1]                                                   ; +0x25, 0x100410305\njmp     short loc_100410318                                            ; +0x29, 0x100410309\nmov     rax, [r14+8]                                                   ; +0x2b, 0x10041030b\ntest    rax, rax                                                       ; +0x2f, 0x10041030f\njz      short loc_100410382                                            ; +0x32, 0x100410312\nmov     rsi, [r14+10h]; __src                                          ; +0x34, 0x100410314\ncmp     rax, 5                                                         ; +0x38, 0x100410318\nmov     r15d, 5                                                        ; +0x3c, 0x10041031c\ncmovb   r15, rax                                                       ; +0x42, 0x100410322\nlea     eax, [r15+r15]                                                 ; +0x46, 0x100410326\nmov     byte ptr [rbp+__dst], al                                       ; +0x4a, 0x10041032a\nlea     r12, [rbp+__dst+1]                                             ; +0x4d, 0x10041032d\nmov     rdi, r12; __dst                                                ; +0x51, 0x100410331\nmov     rdx, r15; __len                                                ; +0x54, 0x100410334\ncall    _memmove                                                       ; +0x57, 0x100410337\nmov     byte ptr [rbp+r15+__dst+1], 0                                  ; +0x5c, 0x10041033c\nlea     rsi, a0000; \"0000\"                                             ; +0x62, 0x100410342\nlea     rdi, [rbp+__dst]; this                                         ; +0x69, 0x100410349\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x6d, 0x10041034d\nmov     [rbp+var_48], rbx                                              ; +0x72, 0x100410352\nmovzx   r15d, byte ptr [r14]                                           ; +0x76, 0x100410356\nmovzx   r13d, byte ptr [rbp+__dst]                                     ; +0x7a, 0x10041035a\nmov     rax, [rbp+__s1]                                                ; +0x7f, 0x10041035f\ntest    r13b, 1                                                        ; +0x83, 0x100410363\njz      short loc_100410389                                            ; +0x87, 0x100410367\nmov     rbx, qword ptr [rbp+__dst+8]                                   ; +0x89, 0x100410369\nmov     r12, rax                                                       ; +0x8d, 0x10041036d\ntest    r15b, 1                                                        ; +0x90, 0x100410370\nmov     [rbp+__p], rax                                                 ; +0x94, 0x100410374\njnz     short loc_100410398                                            ; +0x98, 0x100410378\nshr     r15d, 1                                                        ; +0x9a, 0x10041037a\ninc     r14                                                            ; +0x9d, 0x10041037d\njmp     short loc_1004103A0                                            ; +0xa0, 0x100410380\nmov     word ptr [rbx], 0                                              ; +0xa2, 0x100410382\njmp     short loc_1004103EB                                            ; +0xa7, 0x100410387\nmov     ebx, r13d                                                      ; +0xa9, 0x100410389\nshr     ebx, 1                                                         ; +0xac, 0x10041038c\ntest    r15b, 1                                                        ; +0xae, 0x10041038e\nmov     [rbp+__p], rax                                                 ; +0xb2, 0x100410392\njz      short loc_10041037A                                            ; +0xb6, 0x100410396\nmov     r15, [r14+8]                                                   ; +0xb8, 0x100410398\nmov     r14, [r14+10h]                                                 ; +0xbc, 0x10041039c\ncmp     r15, rbx                                                       ; +0xc0, 0x1004103a0\nmov     rdx, rbx                                                       ; +0xc3, 0x1004103a3\ncmovb   rdx, r15; __n                                                  ; +0xc6, 0x1004103a6\nmov     rdi, r12; __s1                                                 ; +0xca, 0x1004103aa\nmov     rsi, r14; __s2                                                 ; +0xcd, 0x1004103ad\ncall    _memcmp                                                        ; +0xd0, 0x1004103b0\ntest    eax, eax                                                       ; +0xd5, 0x1004103b5\njnz     short loc_1004103D8                                            ; +0xd7, 0x1004103b7\ncmp     r15, rbx                                                       ; +0xd9, 0x1004103b9\njnz     short loc_1004103D8                                            ; +0xdc, 0x1004103bc\nmov     rbx, [rbp+var_48]                                              ; +0xde, 0x1004103be\nmov     word ptr [rbx], 0                                              ; +0xe2, 0x1004103c2\ntest    r13b, 1                                                        ; +0xe7, 0x1004103c7\njz      short loc_1004103EB                                            ; +0xeb, 0x1004103cb\nmov     rdi, [rbp+__p]; __p                                            ; +0xed, 0x1004103cd\ncall    __ZdlPv; operator delete(void *)                               ; +0xf1, 0x1004103d1\njmp     short loc_1004103EB                                            ; +0xf6, 0x1004103d6\nmov     rax, [rbp+__s1]                                                ; +0xf8, 0x1004103d8\nmov     rbx, [rbp+var_48]                                              ; +0xfc, 0x1004103dc\nmov     [rbx+10h], rax                                                 ; +0x100, 0x1004103e0\nmovups  xmm0, [rbp+__dst]                                              ; +0x104, 0x1004103e4\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x108, 0x1004103e8\nmov     rax, rbx                                                       ; +0x10b, 0x1004103eb\nadd     rsp, 28h                                                       ; +0x10e, 0x1004103ee\npop     rbx                                                            ; +0x112, 0x1004103f2\npop     r12                                                            ; +0x113, 0x1004103f3\npop     r13                                                            ; +0x115, 0x1004103f5\npop     r14                                                            ; +0x117, 0x1004103f7\npop     r15                                                            ; +0x119, 0x1004103f9\npop     rbp                                                            ; +0x11b, 0x1004103fb\nretn                                                                   ; +0x11c, 0x1004103fc", "xrefs": ["GJSmartTemplate::saveRemap @ 0x10040f11b", "GJSmartTemplate::saveRemap @ 0x10040f200", "GJSmartTemplate::saveRemap @ 0x10040f46c", "GJSmartTemplate::saveRemap @ 0x10040f6bc", "GJSmartTemplate::scanForPrefab @ 0x100410a27", "GJSmartTemplate::getPrefab_1 @ 0x100411fdb", "GJSmartTemplate::getPrefab_1 @ 0x1004120df", "GJSmartTemplate::getPrefab_1 @ 0x100412225"], "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"}