{"type": "func", "start": 5372607984, "end": 5372608381, "name": "GJSmartTemplate::getNoCornerKey", "pseudocode": "// \n// GJSmartTemplate::getNoCornerKey from 0x1403b7df0 to 0x1403b7f7d (397 bytes)\n// \n// 9 xrefs:\n// > GJSmartTemplate::saveRemap @ 0x1403b7021\n// > GJSmartTemplate::saveRemap @ 0x1403b7066\n// > GJSmartTemplate::saveRemap @ 0x1403b71a7\n// > GJSmartTemplate::saveRemap @ 0x1403b72d3\n// > GJSmartTemplate::scanForPrefab @ 0x1403b81fb\n// > GJSmartTemplate::getPrefab @ 0x1403b9375\n// > GJSmartTemplate::getPrefab @ 0x1403b9401\n// > GJSmartTemplate::getPrefab @ 0x1403b9499\n// > <???> @ 0x140923d20\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:31:25 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall GJSmartTemplate::getNoCornerKey(__int64 a1, __int64 a2, const void **a3)\n{\n  unsigned __int64 v5; // rax\n  size_t v6; // r8\n  const void *v7; // rdx\n  const void *v8; // rdx\n  void **v9; // rcx\n  char *v10; // rsi\n  unsigned __int64 v11; // r15\n  unsigned __int64 v12; // r14\n  unsigned __int64 v13; // rbp\n  size_t v14; // r8\n  char *v15; // rax\n  void *Buf1[2]; // [rsp+40h] [rbp-58h] BYREF\n  __int128 v18; // [rsp+50h] [rbp-48h]\n\n  v5 = (unsigned __int64)a3[2];\n  if ( v5 )\n  {\n    *(_OWORD *)Buf1 = 0;\n    v18 = 0u;\n    v6 = 5;\n    if ( v5 < 5 )\n      v6 = v5;\n    v7 = a3;\n    if ( (unsigned __int64)a3[3] > 0xF )\n      v7 = *a3;\n    sub_14003D230(Buf1, v7, v6);\n    sub_140044D80(Buf1, \"0000\", 4u);\n    v8 = a3;\n    if ( (unsigned __int64)a3[3] > 0xF )\n      v8 = *a3;\n    v9 = Buf1;\n    v10 = (char *)Buf1[0];\n    v11 = *((_QWORD *)&v18 + 1);\n    if ( *((_QWORD *)&v18 + 1) > 0xFu )\n      v9 = (void **)Buf1[0];\n    v12 = (unsigned __int64)a3[2];\n    v13 = v18;\n    v14 = v18;\n    if ( v12 < (unsigned __int64)v18 )\n      v14 = (size_t)a3[2];\n    if ( !memcmp(v9, v8, v14) && v13 >= v12 && v13 <= v12 )\n    {\n      *(_OWORD *)a2 = 0;\n      *(_QWORD *)(a2 + 16) = 0;\n      *(_QWORD *)(a2 + 24) = 15;\n      *(_BYTE *)a2 = 0;\n      if ( v11 > 0xF )\n      {\n        v15 = v10;\n        if ( v11 + 1 >= 0x1000 )\n        {\n          v10 = *((char **)v10 - 1);\n          if ( (unsigned __int64)(v15 - v10 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v10);\n      }\n    }\n    else\n    {\n      *(_OWORD *)a2 = *(_OWORD *)Buf1;\n      *(_OWORD *)(a2 + 16) = v18;\n    }\n  }\n  else\n  {\n    *(_OWORD *)a2 = 0;\n    *(_QWORD *)(a2 + 16) = 0;\n    *(_QWORD *)(a2 + 24) = 15;\n    *(_BYTE *)a2 = 0;\n  }\n  sub_14003D310((__int64)a3);\n  return a2;\n}", "assembly": "; \n; GJSmartTemplate::getNoCornerKey from 0x1403b7df0 to 0x1403b7f7d (397 bytes)\n; \n; 9 xrefs:\n; > GJSmartTemplate::saveRemap @ 0x1403b7021\n; > GJSmartTemplate::saveRemap @ 0x1403b7066\n; > GJSmartTemplate::saveRemap @ 0x1403b71a7\n; > GJSmartTemplate::saveRemap @ 0x1403b72d3\n; > GJSmartTemplate::scanForPrefab @ 0x1403b81fb\n; > GJSmartTemplate::getPrefab @ 0x1403b9375\n; > GJSmartTemplate::getPrefab @ 0x1403b9401\n; > GJSmartTemplate::getPrefab @ 0x1403b9499\n; > <???> @ 0x140923d20\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:31:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403b7df0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1403b7df5\npush    rsi                                                            ; +0xa, 0x1403b7dfa\npush    rdi                                                            ; +0xb, 0x1403b7dfb\npush    r12                                                            ; +0xc, 0x1403b7dfc\npush    r14                                                            ; +0xe, 0x1403b7dfe\npush    r15                                                            ; +0x10, 0x1403b7e00\nsub     rsp, 70h                                                       ; +0x12, 0x1403b7e02\nmov     rax, cs:__security_cookie                                      ; +0x16, 0x1403b7e06\nxor     rax, rsp                                                       ; +0x1d, 0x1403b7e0d\nmov     [rsp+98h+var_38], rax                                          ; +0x20, 0x1403b7e10\nmov     rdi, r8                                                        ; +0x25, 0x1403b7e15\nmov     rbx, rdx                                                       ; +0x28, 0x1403b7e18\nmov     [rsp+98h+var_60], rdx                                          ; +0x2b, 0x1403b7e1b\nmov     [rsp+98h+var_60], r8                                           ; +0x30, 0x1403b7e20\nxor     r12d, r12d                                                     ; +0x35, 0x1403b7e25\nmov     rax, [r8+10h]                                                  ; +0x38, 0x1403b7e28\nxorps   xmm0, xmm0                                                     ; +0x3c, 0x1403b7e2c\ntest    rax, rax                                                       ; +0x3f, 0x1403b7e2f\njnz     short loc_1403B7E4A                                            ; +0x42, 0x1403b7e32\nmovups  xmmword ptr [rdx], xmm0                                        ; +0x44, 0x1403b7e34\nmov     [rdx+10h], r12                                                 ; +0x47, 0x1403b7e37\nmov     qword ptr [rdx+18h], 0Fh                                       ; +0x4b, 0x1403b7e3b\nmov     [rdx], al                                                      ; +0x53, 0x1403b7e43\njmp     loc_1403B7F4C                                                  ; +0x55, 0x1403b7e45\nmovups  xmmword ptr [rsp+98h+Buf1], xmm0                               ; +0x5a, 0x1403b7e4a\nmov     qword ptr [rsp+98h+var_48], r12                                ; +0x5f, 0x1403b7e4f\nmov     qword ptr [rsp+98h+var_48+8], r12                              ; +0x64, 0x1403b7e54\nmov     r8d, 5                                                         ; +0x69, 0x1403b7e59\ncmp     rax, r8                                                        ; +0x6f, 0x1403b7e5f\ncmovb   r8, rax                                                        ; +0x72, 0x1403b7e62\nmov     rdx, rdi                                                       ; +0x76, 0x1403b7e66\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x79, 0x1403b7e69\njbe     short loc_1403B7E73                                            ; +0x7e, 0x1403b7e6e\nmov     rdx, [rdi]                                                     ; +0x80, 0x1403b7e70\nlea     rcx, [rsp+98h+Buf1]                                            ; +0x83, 0x1403b7e73\ncall    sub_14003D230                                                  ; +0x88, 0x1403b7e78\nnop                                                                    ; +0x8d, 0x1403b7e7d\nmov     r8d, 4; Size                                                   ; +0x8e, 0x1403b7e7e\nlea     rdx, a0000; \"0000\"                                             ; +0x94, 0x1403b7e84\nlea     rcx, [rsp+98h+Buf1]; Src                                       ; +0x9b, 0x1403b7e8b\ncall    sub_140044D80                                                  ; +0xa0, 0x1403b7e90\nmov     rdx, rdi                                                       ; +0xa5, 0x1403b7e95\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0xa8, 0x1403b7e98\njbe     short loc_1403B7EA2                                            ; +0xad, 0x1403b7e9d\nmov     rdx, [rdi]; Buf2                                               ; +0xaf, 0x1403b7e9f\nlea     rcx, [rsp+98h+Buf1]                                            ; +0xb2, 0x1403b7ea2\nmov     rsi, [rsp+98h+Buf1]                                            ; +0xb7, 0x1403b7ea7\nmov     r15, qword ptr [rsp+98h+var_48+8]                              ; +0xbc, 0x1403b7eac\ncmp     r15, 0Fh                                                       ; +0xc1, 0x1403b7eb1\ncmova   rcx, rsi; Buf1                                                 ; +0xc5, 0x1403b7eb5\nmov     r14, [rdi+10h]                                                 ; +0xc9, 0x1403b7eb9\nmov     rbp, qword ptr [rsp+98h+var_48]                                ; +0xcd, 0x1403b7ebd\nmov     r8, rbp                                                        ; +0xd2, 0x1403b7ec2\ncmp     r14, rbp                                                       ; +0xd5, 0x1403b7ec5\ncmovb   r8, r14; Size                                                  ; +0xd8, 0x1403b7ec8\ncall    memcmp                                                         ; +0xdc, 0x1403b7ecc\ntest    eax, eax                                                       ; +0xe1, 0x1403b7ed1\njnz     short loc_1403B7F3B                                            ; +0xe3, 0x1403b7ed3\ncmp     rbp, r14                                                       ; +0xe5, 0x1403b7ed5\njb      short loc_1403B7F3B                                            ; +0xe8, 0x1403b7ed8\nja      short loc_1403B7F3B                                            ; +0xea, 0x1403b7eda\nxorps   xmm0, xmm0                                                     ; +0xec, 0x1403b7edc\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xef, 0x1403b7edf\nmov     [rbx+10h], r12                                                 ; +0xf2, 0x1403b7ee2\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0xf6, 0x1403b7ee6\nmov     [rbx], al                                                      ; +0xfe, 0x1403b7eee\ncmp     r15, 0Fh                                                       ; +0x100, 0x1403b7ef0\njbe     short loc_1403B7F4C                                            ; +0x104, 0x1403b7ef4\nlea     rdx, [r15+1]                                                   ; +0x106, 0x1403b7ef6\nmov     rax, rsi                                                       ; +0x10a, 0x1403b7efa\ncmp     rdx, 1000h                                                     ; +0x10d, 0x1403b7efd\njb      short loc_1403B7F31                                            ; +0x114, 0x1403b7f04\nadd     rdx, 27h ; '''                                                 ; +0x116, 0x1403b7f06\nmov     rsi, [rsi-8]                                                   ; +0x11a, 0x1403b7f0a\nsub     rax, rsi                                                       ; +0x11e, 0x1403b7f0e\nsub     rax, 8                                                         ; +0x121, 0x1403b7f11\ncmp     rax, 1Fh                                                       ; +0x125, 0x1403b7f15\njbe     short loc_1403B7F31                                            ; +0x129, 0x1403b7f19\nmov     [rsp+98h+Reserved], r12; Reserved                              ; +0x12b, 0x1403b7f1b\nxor     r9d, r9d; LineNo                                               ; +0x130, 0x1403b7f20\nxor     r8d, r8d; FileName                                             ; +0x133, 0x1403b7f23\nxor     edx, edx; FunctionName                                         ; +0x136, 0x1403b7f26\nxor     ecx, ecx; Expression                                           ; +0x138, 0x1403b7f28\ncall    cs:_invoke_watson                                              ; +0x13a, 0x1403b7f2a\ndb 0CCh                                                                ; +0x140, 0x1403b7f30\nmov     rcx, rsi; Block                                                ; +0x141, 0x1403b7f31\ncall    j_j_free                                                       ; +0x144, 0x1403b7f34\njmp     short loc_1403B7F4C                                            ; +0x149, 0x1403b7f39\nmovups  xmm0, xmmword ptr [rsp+98h+Buf1]                               ; +0x14b, 0x1403b7f3b\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x150, 0x1403b7f40\nmovups  xmm1, [rsp+98h+var_48]                                         ; +0x153, 0x1403b7f43\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x158, 0x1403b7f48\nmov     rcx, rdi                                                       ; +0x15c, 0x1403b7f4c\ncall    sub_14003D310                                                  ; +0x15f, 0x1403b7f4f\nmov     rax, rbx                                                       ; +0x164, 0x1403b7f54\nmov     rcx, [rsp+98h+var_38]                                          ; +0x167, 0x1403b7f57\nxor     rcx, rsp; StackCookie                                          ; +0x16c, 0x1403b7f5c\ncall    __security_check_cookie                                        ; +0x16f, 0x1403b7f5f\nlea     r11, [rsp+98h+var_28]                                          ; +0x174, 0x1403b7f64\nmov     rbx, [r11+30h]                                                 ; +0x179, 0x1403b7f69\nmov     rbp, [r11+48h]                                                 ; +0x17d, 0x1403b7f6d\nmov     rsp, r11                                                       ; +0x181, 0x1403b7f71\npop     r15                                                            ; +0x184, 0x1403b7f74\npop     r14                                                            ; +0x186, 0x1403b7f76\npop     r12                                                            ; +0x188, 0x1403b7f78\npop     rdi                                                            ; +0x18a, 0x1403b7f7a\npop     rsi                                                            ; +0x18b, 0x1403b7f7b\nretn                                                                   ; +0x18c, 0x1403b7f7c", "xrefs": ["GJSmartTemplate::saveRemap @ 0x1403b7021", "GJSmartTemplate::saveRemap @ 0x1403b7066", "GJSmartTemplate::saveRemap @ 0x1403b71a7", "GJSmartTemplate::saveRemap @ 0x1403b72d3", "GJSmartTemplate::scanForPrefab @ 0x1403b81fb", "GJSmartTemplate::getPrefab @ 0x1403b9375", "GJSmartTemplate::getPrefab @ 0x1403b9401", "GJSmartTemplate::getPrefab @ 0x1403b9499", "<???> @ 0x140923d20"], "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"}