{"type": "func", "start": 6442986320, "end": 6442986679, "name": "sub_180082B50", "pseudocode": "// \n// sub_180082B50 from 0x180082b50 to 0x180082cb7 (359 bytes)\n// \n// 3 xrefs:\n// > sub_180082B50 @ 0x180082bd8\n// > sub_180082EF0 @ 0x180083330\n// > <???> @ 0x1801b5430\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\nchar *__fastcall sub_180082B50(__int64 a1, __int64 a2, unsigned __int8 a3, char a4)\n{\n  char *result; // rax\n  char v6; // dl\n  char v9; // cl\n  __int64 v10; // rax\n  char v11; // cl\n  char v12; // cl\n  char *v13; // rdx\n  char v14; // cl\n  char v15; // cl\n\n  result = (char *)(a2 + 1);\n  v6 = *(_BYTE *)(a2 + 1);\n  if ( v6 )\n  {\n    do\n    {\n      switch ( v6 )\n      {\n        case '<':\n          if ( result[1] != 33 || (v9 = result[2], v9 == 45) )\n          {\n            v11 = result[1];\n            if ( v11 == 63 )\n            {\n              v12 = result[2];\n              result += 2;\n              if ( !v12 )\n                goto LABEL_11;\n              while ( 1 )\n              {\n                v13 = result++;\n                if ( v12 == 63 && *result == 62 )\n                  break;\n                v12 = *result;\n                if ( !*result )\n                  goto LABEL_11;\n              }\n              result = v13 + 2;\n            }\n            else\n            {\n              if ( v11 != 33 )\n                goto LABEL_11;\n              if ( result[2] != 45 )\n                goto LABEL_11;\n              if ( result[3] != 45 )\n                goto LABEL_11;\n              v14 = result[4];\n              result += 4;\n              if ( !v14 )\n                goto LABEL_11;\n              while ( v14 != 45 || result[1] != 45 || result[2] != 62 )\n              {\n                v14 = *++result;\n                if ( !v14 )\n                  goto LABEL_11;\n              }\n              result += 4;\n            }\n            goto LABEL_7;\n          }\n          if ( v9 == 91 )\n          {\n            result = (char *)sub_180082CC0(a1, result);\nLABEL_7:\n            if ( !result )\n              return nullptr;\n            break;\n          }\n          v10 = sub_180082B50(a1, result, a3, 0);\n          if ( !v10 )\n            return nullptr;\n          result = (char *)(v10 + 1);\n          break;\n        case '\"':\n        case '\\'':\n          v15 = *++result;\n          if ( !v15 )\n            goto LABEL_11;\n          while ( 1 )\n          {\n            ++result;\n            if ( v15 == v6 )\n              goto LABEL_7;\n            v15 = *result;\n            if ( !*result )\n              goto LABEL_11;\n          }\n        case '>':\n          return result;\n        default:\n          ++result;\n          break;\n      }\n      v6 = *result;\n    }\n    while ( *result );\n  }\n  if ( !a4 || a3 != 62 )\n  {\nLABEL_11:\n    *(_DWORD *)(a1 + 24) = 9;\n    *(_QWORD *)(a1 + 16) = result;\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; sub_180082B50 from 0x180082b50 to 0x180082cb7 (359 bytes)\n; \n; 3 xrefs:\n; > sub_180082B50 @ 0x180082bd8\n; > sub_180082EF0 @ 0x180083330\n; > <???> @ 0x1801b5430\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, 0x180082b50\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180082b55\npush    rdi                                                            ; +0xa, 0x180082b5a\nsub     rsp, 20h                                                       ; +0xb, 0x180082b5b\nlea     rax, [rdx+1]                                                   ; +0xf, 0x180082b5f\nmovzx   esi, r9b                                                       ; +0x13, 0x180082b63\nmovzx   edx, byte ptr [rax]                                            ; +0x17, 0x180082b67\nmovzx   edi, r8b                                                       ; +0x1a, 0x180082b6a\nmov     rbx, rcx                                                       ; +0x1e, 0x180082b6e\ntest    dl, dl                                                         ; +0x21, 0x180082b71\njz      short loc_180082BA9                                            ; +0x23, 0x180082b73\ncmp     dl, 3Ch ; '<'                                                  ; +0x25, 0x180082b75\njnz     loc_180082C6C                                                  ; +0x28, 0x180082b78\ncmp     byte ptr [rax+1], 21h ; '!'                                    ; +0x2e, 0x180082b7e\njnz     short loc_180082BE7                                            ; +0x32, 0x180082b82\nmovzx   ecx, byte ptr [rax+2]                                          ; +0x34, 0x180082b84\ncmp     cl, 2Dh ; '-'                                                  ; +0x38, 0x180082b88\njz      short loc_180082BE7                                            ; +0x3b, 0x180082b8b\ncmp     cl, 5Bh ; '['                                                  ; +0x3d, 0x180082b8d\nmov     rdx, rax                                                       ; +0x40, 0x180082b90\nmov     rcx, rbx                                                       ; +0x43, 0x180082b93\njnz     short loc_180082BD1                                            ; +0x46, 0x180082b96\ncall    sub_180082CC0                                                  ; +0x48, 0x180082b98\ntest    rax, rax                                                       ; +0x4d, 0x180082b9d\njz      short loc_180082BBF                                            ; +0x50, 0x180082ba0\nmovzx   edx, byte ptr [rax]                                            ; +0x52, 0x180082ba2\ntest    dl, dl                                                         ; +0x55, 0x180082ba5\njnz     short loc_180082B75                                            ; +0x57, 0x180082ba7\ntest    sil, sil                                                       ; +0x59, 0x180082ba9\njz      short loc_180082BB4                                            ; +0x5c, 0x180082bac\ncmp     dil, 3Eh ; '>'                                                 ; +0x5e, 0x180082bae\njz      short loc_180082BC1                                            ; +0x62, 0x180082bb2\nmov     dword ptr [rbx+18h], 9                                         ; +0x64, 0x180082bb4\nmov     [rbx+10h], rax                                                 ; +0x6b, 0x180082bbb\nxor     eax, eax                                                       ; +0x6f, 0x180082bbf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x71, 0x180082bc1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x76, 0x180082bc6\nadd     rsp, 20h                                                       ; +0x7b, 0x180082bcb\npop     rdi                                                            ; +0x7f, 0x180082bcf\nretn                                                                   ; +0x80, 0x180082bd0\nxor     r9d, r9d                                                       ; +0x81, 0x180082bd1\nmovzx   r8d, dil                                                       ; +0x84, 0x180082bd4\ncall    sub_180082B50                                                  ; +0x88, 0x180082bd8\ntest    rax, rax                                                       ; +0x8d, 0x180082bdd\njz      short loc_180082BBF                                            ; +0x90, 0x180082be0\ninc     rax                                                            ; +0x92, 0x180082be2\njmp     short loc_180082BA2                                            ; +0x95, 0x180082be5\nmovzx   ecx, byte ptr [rax+1]                                          ; +0x97, 0x180082be7\ncmp     cl, 3Fh ; '?'                                                  ; +0x9b, 0x180082beb\njnz     short loc_180082C22                                            ; +0x9e, 0x180082bee\nmovzx   ecx, byte ptr [rax+2]                                          ; +0xa0, 0x180082bf0\nadd     rax, 2                                                         ; +0xa4, 0x180082bf4\ntest    cl, cl                                                         ; +0xa8, 0x180082bf8\njz      short loc_180082BB4                                            ; +0xaa, 0x180082bfa\nnop     dword ptr [rax+00h]                                            ; +0xac, 0x180082bfc\nmov     rdx, rax                                                       ; +0xb0, 0x180082c00\ninc     rax                                                            ; +0xb3, 0x180082c03\ncmp     cl, 3Fh ; '?'                                                  ; +0xb6, 0x180082c06\njnz     short loc_180082C10                                            ; +0xb9, 0x180082c09\ncmp     byte ptr [rax], 3Eh ; '>'                                      ; +0xbb, 0x180082c0b\njz      short loc_180082C19                                            ; +0xbe, 0x180082c0e\nmovzx   ecx, byte ptr [rax]                                            ; +0xc0, 0x180082c10\ntest    cl, cl                                                         ; +0xc3, 0x180082c13\njnz     short loc_180082C00                                            ; +0xc5, 0x180082c15\njmp     short loc_180082BB4                                            ; +0xc7, 0x180082c17\nlea     rax, [rdx+2]                                                   ; +0xc9, 0x180082c19\njmp     loc_180082B9D                                                  ; +0xcd, 0x180082c1d\ncmp     cl, 21h ; '!'                                                  ; +0xd2, 0x180082c22\njnz     short loc_180082BB4                                            ; +0xd5, 0x180082c25\ncmp     byte ptr [rax+2], 2Dh ; '-'                                    ; +0xd7, 0x180082c27\njnz     short loc_180082BB4                                            ; +0xdb, 0x180082c2b\ncmp     byte ptr [rax+3], 2Dh ; '-'                                    ; +0xdd, 0x180082c2d\njnz     short loc_180082BB4                                            ; +0xe1, 0x180082c31\nmovzx   ecx, byte ptr [rax+4]                                          ; +0xe3, 0x180082c33\nadd     rax, 4                                                         ; +0xe7, 0x180082c37\ntest    cl, cl                                                         ; +0xeb, 0x180082c3b\njz      loc_180082BB4                                                  ; +0xed, 0x180082c3d\ncmp     cl, 2Dh ; '-'                                                  ; +0xf3, 0x180082c43\njnz     short loc_180082C53                                            ; +0xf6, 0x180082c46\ncmp     [rax+1], cl                                                    ; +0xf8, 0x180082c48\njnz     short loc_180082C53                                            ; +0xfb, 0x180082c4b\ncmp     byte ptr [rax+2], 3Eh ; '>'                                    ; +0xfd, 0x180082c4d\njz      short loc_180082C63                                            ; +0x101, 0x180082c51\nmovzx   ecx, byte ptr [rax+1]                                          ; +0x103, 0x180082c53\ninc     rax                                                            ; +0x107, 0x180082c57\ntest    cl, cl                                                         ; +0x10a, 0x180082c5a\njnz     short loc_180082C43                                            ; +0x10c, 0x180082c5c\njmp     loc_180082BB4                                                  ; +0x10e, 0x180082c5e\nadd     rax, 4                                                         ; +0x113, 0x180082c63\njmp     loc_180082B9D                                                  ; +0x117, 0x180082c67\ncmp     dl, 22h ; '\"'                                                  ; +0x11c, 0x180082c6c\njz      short loc_180082C87                                            ; +0x11f, 0x180082c6f\ncmp     dl, 27h ; '''                                                  ; +0x121, 0x180082c71\njz      short loc_180082C87                                            ; +0x124, 0x180082c74\ncmp     dl, 3Eh ; '>'                                                  ; +0x126, 0x180082c76\njz      loc_180082BC1                                                  ; +0x129, 0x180082c79\ninc     rax                                                            ; +0x12f, 0x180082c7f\njmp     loc_180082BA2                                                  ; +0x132, 0x180082c82\nmovzx   ecx, byte ptr [rax+1]                                          ; +0x137, 0x180082c87\ninc     rax                                                            ; +0x13b, 0x180082c8b\ntest    cl, cl                                                         ; +0x13e, 0x180082c8e\njz      loc_180082BB4                                                  ; +0x140, 0x180082c90\nnop     word ptr [rax+rax+00000000h]                                   ; +0x146, 0x180082c96\ninc     rax                                                            ; +0x150, 0x180082ca0\ncmp     cl, dl                                                         ; +0x153, 0x180082ca3\njz      loc_180082B9D                                                  ; +0x155, 0x180082ca5\nmovzx   ecx, byte ptr [rax]                                            ; +0x15b, 0x180082cab\ntest    cl, cl                                                         ; +0x15e, 0x180082cae\njnz     short loc_180082CA0                                            ; +0x160, 0x180082cb0\njmp     loc_180082BB4                                                  ; +0x162, 0x180082cb2", "xrefs": ["sub_180082B50 @ 0x180082bd8", "sub_180082EF0 @ 0x180083330", "<???> @ 0x1801b5430"], "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"}