{"type": "func", "start": 6442985856, "end": 6442986157, "name": "sub_180082980", "pseudocode": "// \n// sub_180082980 from 0x180082980 to 0x180082aad (301 bytes)\n// \n// 2 xrefs:\n// > sub_180083740 @ 0x180083815\n// > <???> @ 0x1801b5424\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\nunsigned __int8 *__fastcall sub_180082980(unsigned __int8 *a1)\n{\n  unsigned __int8 *v1; // rbx\n  __int64 i; // rax\n  unsigned __int8 *v4; // rcx\n  unsigned __int8 *v5; // rdx\n  unsigned __int8 *v7; // rcx\n  unsigned __int8 *v8; // rdx\n  void *Src; // [rsp+20h] [rbp-18h] BYREF\n  __int64 v10; // [rsp+28h] [rbp-10h]\n\n  Src = nullptr;\n  v1 = a1;\n  v10 = 0;\n  while ( 1 )\n  {\n    for ( i = *v1; (byte_180101290[i] & 1) == 0; ++v1 )\n      i = v1[1];\n    if ( (_BYTE)i == 60 )\n      break;\n    if ( (_BYTE)i == 38 )\n    {\n      v1 = (unsigned __int8 *)sub_180085450(v1, &Src);\n    }\n    else\n    {\n      if ( !(_BYTE)i )\n      {\n        if ( Src )\n        {\n          memmove((char *)Src - v10, Src, v1 - (_BYTE *)Src);\n          v4 = &v1[-v10];\n        }\n        else\n        {\n          v4 = v1;\n        }\n        if ( v4 > a1 )\n        {\n          do\n          {\n            v5 = v4 - 1;\n            if ( (byte_180101290[*(v4 - 1)] & 8) == 0 )\n              break;\n            --v4;\n          }\n          while ( v5 > a1 );\n        }\n        *v4 = 0;\n        return v1;\n      }\n      ++v1;\n    }\n  }\n  if ( Src )\n  {\n    memmove((char *)Src - v10, Src, v1 - (_BYTE *)Src);\n    v7 = &v1[-v10];\n  }\n  else\n  {\n    v7 = v1;\n  }\n  if ( v7 > a1 )\n  {\n    do\n    {\n      v8 = v7 - 1;\n      if ( (byte_180101290[*(v7 - 1)] & 8) == 0 )\n        break;\n      --v7;\n    }\n    while ( v8 > a1 );\n  }\n  *v7 = 0;\n  return v1 + 1;\n}", "assembly": "; \n; sub_180082980 from 0x180082980 to 0x180082aad (301 bytes)\n; \n; 2 xrefs:\n; > sub_180083740 @ 0x180083815\n; > <???> @ 0x1801b5424\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180082980\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180082985\npush    rsi                                                            ; +0xa, 0x18008298a\nsub     rsp, 30h                                                       ; +0xb, 0x18008298b\nxor     eax, eax                                                       ; +0xf, 0x18008298f\nlea     rbp, byte_180101290                                            ; +0x11, 0x180082991\nmov     [rsp+38h+Src], rax                                             ; +0x18, 0x180082998\nmov     rbx, rcx                                                       ; +0x1d, 0x18008299d\nmov     [rsp+38h+var_10], rax                                          ; +0x20, 0x1800829a0\nmov     rsi, rcx                                                       ; +0x25, 0x1800829a5\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x1800829a8\nmovzx   eax, byte ptr [rbx]                                            ; +0x30, 0x1800829b0\ntest    byte ptr [rax+rbp], 1                                          ; +0x33, 0x1800829b3\njnz     short loc_1800829CD                                            ; +0x37, 0x1800829b7\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x1800829b9\nmovzx   eax, byte ptr [rbx+1]                                          ; +0x40, 0x1800829c0\ninc     rbx                                                            ; +0x44, 0x1800829c4\ntest    byte ptr [rax+rbp], 1                                          ; +0x47, 0x1800829c7\njz      short loc_1800829C0                                            ; +0x4b, 0x1800829cb\ncmp     al, 3Ch ; '<'                                                  ; +0x4d, 0x1800829cd\njz      short loc_180082A4C                                            ; +0x4f, 0x1800829cf\ncmp     al, 26h ; '&'                                                  ; +0x51, 0x1800829d1\njnz     short loc_1800829E7                                            ; +0x53, 0x1800829d3\nlea     rdx, [rsp+38h+Src]                                             ; +0x55, 0x1800829d5\nmov     rcx, rbx                                                       ; +0x5a, 0x1800829da\ncall    sub_180085450                                                  ; +0x5d, 0x1800829dd\nmov     rbx, rax                                                       ; +0x62, 0x1800829e2\njmp     short loc_1800829B0                                            ; +0x65, 0x1800829e5\ntest    al, al                                                         ; +0x67, 0x1800829e7\njz      short loc_1800829F0                                            ; +0x69, 0x1800829e9\ninc     rbx                                                            ; +0x6b, 0x1800829eb\njmp     short loc_1800829B0                                            ; +0x6e, 0x1800829ee\nmov     rdx, [rsp+38h+Src]; Src                                        ; +0x70, 0x1800829f0\ntest    rdx, rdx                                                       ; +0x75, 0x1800829f5\njz      short loc_180082A17                                            ; +0x78, 0x1800829f8\nmov     rcx, rdx                                                       ; +0x7a, 0x1800829fa\nmov     r8, rbx                                                        ; +0x7d, 0x1800829fd\nsub     rcx, [rsp+38h+var_10]; void *                                  ; +0x80, 0x180082a00\nsub     r8, rdx; Size                                                  ; +0x85, 0x180082a05\ncall    memmove                                                        ; +0x88, 0x180082a08\nmov     rcx, rbx                                                       ; +0x8d, 0x180082a0d\nsub     rcx, [rsp+38h+var_10]                                          ; +0x90, 0x180082a10\njmp     short loc_180082A1A                                            ; +0x95, 0x180082a15\nmov     rcx, rbx                                                       ; +0x97, 0x180082a17\ncmp     rcx, rsi                                                       ; +0x9a, 0x180082a1a\njbe     short loc_180082A36                                            ; +0x9d, 0x180082a1d\nnop                                                                    ; +0x9f, 0x180082a1f\nmovzx   eax, byte ptr [rcx-1]                                          ; +0xa0, 0x180082a20\nlea     rdx, [rcx-1]                                                   ; +0xa4, 0x180082a24\ntest    byte ptr [rax+rbp], 8                                          ; +0xa8, 0x180082a28\njz      short loc_180082A36                                            ; +0xac, 0x180082a2c\nmov     rcx, rdx                                                       ; +0xae, 0x180082a2e\ncmp     rdx, rsi                                                       ; +0xb1, 0x180082a31\nja      short loc_180082A20                                            ; +0xb4, 0x180082a34\nmov     rax, rbx                                                       ; +0xb6, 0x180082a36\nmov     byte ptr [rcx], 0                                              ; +0xb9, 0x180082a39\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xbc, 0x180082a3c\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xc1, 0x180082a41\nadd     rsp, 30h                                                       ; +0xc6, 0x180082a46\npop     rsi                                                            ; +0xca, 0x180082a4a\nretn                                                                   ; +0xcb, 0x180082a4b\nmov     rdx, [rsp+38h+Src]; Src                                        ; +0xcc, 0x180082a4c\ntest    rdx, rdx                                                       ; +0xd1, 0x180082a51\njz      short loc_180082A73                                            ; +0xd4, 0x180082a54\nmov     rcx, rdx                                                       ; +0xd6, 0x180082a56\nmov     r8, rbx                                                        ; +0xd9, 0x180082a59\nsub     rcx, [rsp+38h+var_10]; void *                                  ; +0xdc, 0x180082a5c\nsub     r8, rdx; Size                                                  ; +0xe1, 0x180082a61\ncall    memmove                                                        ; +0xe4, 0x180082a64\nmov     rcx, rbx                                                       ; +0xe9, 0x180082a69\nsub     rcx, [rsp+38h+var_10]                                          ; +0xec, 0x180082a6c\njmp     short loc_180082A76                                            ; +0xf1, 0x180082a71\nmov     rcx, rbx                                                       ; +0xf3, 0x180082a73\ncmp     rcx, rsi                                                       ; +0xf6, 0x180082a76\njbe     short loc_180082A96                                            ; +0xf9, 0x180082a79\nnop     dword ptr [rax+rax+00h]                                        ; +0xfb, 0x180082a7b\nmovzx   eax, byte ptr [rcx-1]                                          ; +0x100, 0x180082a80\nlea     rdx, [rcx-1]                                                   ; +0x104, 0x180082a84\ntest    byte ptr [rax+rbp], 8                                          ; +0x108, 0x180082a88\njz      short loc_180082A96                                            ; +0x10c, 0x180082a8c\nmov     rcx, rdx                                                       ; +0x10e, 0x180082a8e\ncmp     rdx, rsi                                                       ; +0x111, 0x180082a91\nja      short loc_180082A80                                            ; +0x114, 0x180082a94\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x116, 0x180082a96\nlea     rax, [rbx+1]                                                   ; +0x11b, 0x180082a9b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x11f, 0x180082a9f\nmov     byte ptr [rcx], 0                                              ; +0x124, 0x180082aa4\nadd     rsp, 30h                                                       ; +0x127, 0x180082aa7\npop     rsi                                                            ; +0x12b, 0x180082aab\nretn                                                                   ; +0x12c, 0x180082aac", "xrefs": ["sub_180083740 @ 0x180083815", "<???> @ 0x1801b5424"], "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"}