{"type": "func", "start": 6442998528, "end": 6442998928, "name": "sub_180085B00", "pseudocode": "// \n// sub_180085B00 from 0x180085b00 to 0x180085c90 (400 bytes)\n// \n// 3 xrefs:\n// > sub_180085B00 @ 0x180085b69\n// > sub_180085EC0 @ 0x18008630a\n// > <???> @ 0x1801bf6d0\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:22:04 +0000\n// \n\nchar *__fastcall sub_180085B00(__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; // dl\n  char v12; // cl\n  char v13; // cl\n  char v14; // dl\n  char *v15; // rcx\n  char v16; // cl\n\n  result = (char *)(a2 + 1);\n  v6 = *(_BYTE *)(a2 + 1);\n  if ( v6 )\n  {\n    do\n    {\n      if ( v6 == 60 && result[1] == 33 && (v9 = result[2], v9 != 45) )\n      {\n        if ( v9 == 91 )\n        {\n          result = (char *)sub_180085C90(a1, result);\n          if ( !result )\n            return nullptr;\n        }\n        else\n        {\n          v10 = sub_180085B00(a1, result, a3, 0);\n          if ( !v10 )\n            return nullptr;\n          result = (char *)(v10 + 1);\n        }\n      }\n      else\n      {\n        v11 = *result;\n        if ( *result == 60 )\n        {\n          v13 = result[1];\n          if ( v13 == 63 )\n          {\n            v14 = result[2];\n            result += 2;\n            if ( !v14 )\n              goto LABEL_44;\n            while ( 1 )\n            {\n              v15 = result + 1;\n              if ( v14 == 63 && *v15 == 62 )\n                break;\n              v14 = *v15;\n              ++result;\n              if ( !*v15 )\n                goto LABEL_44;\n            }\n            if ( !*result )\n              goto LABEL_44;\n            result += 2;\n          }\n          else\n          {\n            if ( v13 != 33 )\n              goto LABEL_44;\n            if ( result[2] != 45 )\n              goto LABEL_44;\n            if ( result[3] != 45 )\n              goto LABEL_44;\n            v16 = result[4];\n            result += 4;\n            if ( !v16 )\n              goto LABEL_44;\n            while ( v16 != 45 || result[1] != 45 || result[2] != 62 )\n            {\n              v16 = *++result;\n              if ( !v16 )\n                goto LABEL_44;\n            }\n            if ( !*result )\n              goto LABEL_44;\n            result += 4;\n          }\n          goto LABEL_40;\n        }\n        if ( v11 == 34 || v11 == 39 )\n        {\n          v12 = *++result;\n          if ( !v12 )\n            goto LABEL_44;\n          while ( v12 != v11 )\n          {\n            v12 = *++result;\n            if ( !v12 )\n              goto LABEL_44;\n          }\n          if ( !*result )\n            goto LABEL_44;\n          ++result;\nLABEL_40:\n          if ( !result )\n            return result;\n          goto LABEL_41;\n        }\n        if ( v11 == 62 )\n          return result;\n        ++result;\n      }\nLABEL_41:\n      v6 = *result;\n    }\n    while ( *result );\n  }\n  if ( !a4 || a3 != 62 )\n  {\nLABEL_44:\n    *(_DWORD *)(a1 + 24) = 9;\n    *(_QWORD *)(a1 + 16) = result;\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; sub_180085B00 from 0x180085b00 to 0x180085c90 (400 bytes)\n; \n; 3 xrefs:\n; > sub_180085B00 @ 0x180085b69\n; > sub_180085EC0 @ 0x18008630a\n; > <???> @ 0x1801bf6d0\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:22:04 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180085b00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180085b05\npush    rdi                                                            ; +0xa, 0x180085b0a\nsub     rsp, 20h                                                       ; +0xb, 0x180085b0b\nlea     rax, [rdx+1]                                                   ; +0xf, 0x180085b0f\nmovzx   esi, r9b                                                       ; +0x13, 0x180085b13\nmovzx   edx, byte ptr [rax]                                            ; +0x17, 0x180085b17\nmovzx   edi, r8b                                                       ; +0x1a, 0x180085b1a\nmov     rbx, rcx                                                       ; +0x1e, 0x180085b1e\ntest    dl, dl                                                         ; +0x21, 0x180085b21\njz      loc_180085C68                                                  ; +0x23, 0x180085b23\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x180085b29\ncmp     dl, 3Ch ; '<'                                                  ; +0x30, 0x180085b30\njnz     short loc_180085B7F                                            ; +0x33, 0x180085b33\ncmp     byte ptr [rax+1], 21h ; '!'                                    ; +0x35, 0x180085b35\njnz     short loc_180085B7F                                            ; +0x39, 0x180085b39\nmovzx   ecx, byte ptr [rax+2]                                          ; +0x3b, 0x180085b3b\ncmp     cl, 2Dh ; '-'                                                  ; +0x3f, 0x180085b3f\njz      short loc_180085B7F                                            ; +0x42, 0x180085b42\ncmp     cl, 5Bh ; '['                                                  ; +0x44, 0x180085b44\nmov     rdx, rax                                                       ; +0x47, 0x180085b47\nmov     rcx, rbx                                                       ; +0x4a, 0x180085b4a\njnz     short loc_180085B62                                            ; +0x4d, 0x180085b4d\ncall    sub_180085C90                                                  ; +0x4f, 0x180085b4f\ntest    rax, rax                                                       ; +0x54, 0x180085b54\njz      loc_180085C7E                                                  ; +0x57, 0x180085b57\njmp     loc_180085C5D                                                  ; +0x5d, 0x180085b5d\nxor     r9d, r9d                                                       ; +0x62, 0x180085b62\nmovzx   r8d, dil                                                       ; +0x65, 0x180085b65\ncall    sub_180085B00                                                  ; +0x69, 0x180085b69\ntest    rax, rax                                                       ; +0x6e, 0x180085b6e\njz      loc_180085C7E                                                  ; +0x71, 0x180085b71\ninc     rax                                                            ; +0x77, 0x180085b77\njmp     loc_180085C5D                                                  ; +0x7a, 0x180085b7a\nmovzx   edx, byte ptr [rax]                                            ; +0x7f, 0x180085b7f\ncmp     dl, 3Ch ; '<'                                                  ; +0x82, 0x180085b82\njz      short loc_180085BD6                                            ; +0x85, 0x180085b85\ncmp     dl, 22h ; '\"'                                                  ; +0x87, 0x180085b87\njz      short loc_180085BA2                                            ; +0x8a, 0x180085b8a\ncmp     dl, 27h ; '''                                                  ; +0x8c, 0x180085b8c\njz      short loc_180085BA2                                            ; +0x8f, 0x180085b8f\ncmp     dl, 3Eh ; '>'                                                  ; +0x91, 0x180085b91\njz      loc_180085C80                                                  ; +0x94, 0x180085b94\ninc     rax                                                            ; +0x9a, 0x180085b9a\njmp     loc_180085C5D                                                  ; +0x9d, 0x180085b9d\nmovzx   ecx, byte ptr [rax+1]                                          ; +0xa2, 0x180085ba2\ninc     rax                                                            ; +0xa6, 0x180085ba6\ntest    cl, cl                                                         ; +0xa9, 0x180085ba9\njz      loc_180085C73                                                  ; +0xab, 0x180085bab\ncmp     cl, dl                                                         ; +0xb1, 0x180085bb1\njz      short loc_180085BC5                                            ; +0xb3, 0x180085bb3\nmovzx   ecx, byte ptr [rax+1]                                          ; +0xb5, 0x180085bb5\ninc     rax                                                            ; +0xb9, 0x180085bb9\ntest    cl, cl                                                         ; +0xbc, 0x180085bbc\njnz     short loc_180085BB1                                            ; +0xbe, 0x180085bbe\njmp     loc_180085C73                                                  ; +0xc0, 0x180085bc0\ncmp     byte ptr [rax], 0                                              ; +0xc5, 0x180085bc5\njz      loc_180085C73                                                  ; +0xc8, 0x180085bc8\ninc     rax                                                            ; +0xce, 0x180085bce\njmp     loc_180085C58                                                  ; +0xd1, 0x180085bd1\nmovzx   ecx, byte ptr [rax+1]                                          ; +0xd6, 0x180085bd6\ncmp     cl, 3Fh ; '?'                                                  ; +0xda, 0x180085bda\njnz     short loc_180085C15                                            ; +0xdd, 0x180085bdd\nmovzx   edx, byte ptr [rax+2]                                          ; +0xdf, 0x180085bdf\nadd     rax, 2                                                         ; +0xe3, 0x180085be3\ntest    dl, dl                                                         ; +0xe7, 0x180085be7\njz      loc_180085C73                                                  ; +0xe9, 0x180085be9\nnop                                                                    ; +0xef, 0x180085bef\nlea     rcx, [rax+1]                                                   ; +0xf0, 0x180085bf0\ncmp     dl, 3Fh ; '?'                                                  ; +0xf4, 0x180085bf4\njnz     short loc_180085BFE                                            ; +0xf7, 0x180085bf7\ncmp     byte ptr [rcx], 3Eh ; '>'                                      ; +0xf9, 0x180085bf9\njz      short loc_180085C0A                                            ; +0xfc, 0x180085bfc\nmovzx   edx, byte ptr [rcx]                                            ; +0xfe, 0x180085bfe\nmov     rax, rcx                                                       ; +0x101, 0x180085c01\ntest    dl, dl                                                         ; +0x104, 0x180085c04\njnz     short loc_180085BF0                                            ; +0x106, 0x180085c06\njmp     short loc_180085C73                                            ; +0x108, 0x180085c08\ncmp     byte ptr [rax], 0                                              ; +0x10a, 0x180085c0a\njz      short loc_180085C73                                            ; +0x10d, 0x180085c0d\nadd     rax, 2                                                         ; +0x10f, 0x180085c0f\njmp     short loc_180085C58                                            ; +0x113, 0x180085c13\ncmp     cl, 21h ; '!'                                                  ; +0x115, 0x180085c15\njnz     short loc_180085C73                                            ; +0x118, 0x180085c18\ncmp     byte ptr [rax+2], 2Dh ; '-'                                    ; +0x11a, 0x180085c1a\njnz     short loc_180085C73                                            ; +0x11e, 0x180085c1e\ncmp     byte ptr [rax+3], 2Dh ; '-'                                    ; +0x120, 0x180085c20\njnz     short loc_180085C73                                            ; +0x124, 0x180085c24\nmovzx   ecx, byte ptr [rax+4]                                          ; +0x126, 0x180085c26\nadd     rax, 4                                                         ; +0x12a, 0x180085c2a\ntest    cl, cl                                                         ; +0x12e, 0x180085c2e\njz      short loc_180085C73                                            ; +0x130, 0x180085c30\ncmp     cl, 2Dh ; '-'                                                  ; +0x132, 0x180085c32\njnz     short loc_180085C42                                            ; +0x135, 0x180085c35\ncmp     [rax+1], cl                                                    ; +0x137, 0x180085c37\njnz     short loc_180085C42                                            ; +0x13a, 0x180085c3a\ncmp     byte ptr [rax+2], 3Eh ; '>'                                    ; +0x13c, 0x180085c3c\njz      short loc_180085C4F                                            ; +0x140, 0x180085c40\nmovzx   ecx, byte ptr [rax+1]                                          ; +0x142, 0x180085c42\ninc     rax                                                            ; +0x146, 0x180085c46\ntest    cl, cl                                                         ; +0x149, 0x180085c49\njnz     short loc_180085C32                                            ; +0x14b, 0x180085c4b\njmp     short loc_180085C73                                            ; +0x14d, 0x180085c4d\ncmp     byte ptr [rax], 0                                              ; +0x14f, 0x180085c4f\njz      short loc_180085C73                                            ; +0x152, 0x180085c52\nadd     rax, 4                                                         ; +0x154, 0x180085c54\ntest    rax, rax                                                       ; +0x158, 0x180085c58\njz      short loc_180085C80                                            ; +0x15b, 0x180085c5b\nmovzx   edx, byte ptr [rax]                                            ; +0x15d, 0x180085c5d\ntest    dl, dl                                                         ; +0x160, 0x180085c60\njnz     loc_180085B30                                                  ; +0x162, 0x180085c62\ntest    sil, sil                                                       ; +0x168, 0x180085c68\njz      short loc_180085C73                                            ; +0x16b, 0x180085c6b\ncmp     dil, 3Eh ; '>'                                                 ; +0x16d, 0x180085c6d\njz      short loc_180085C80                                            ; +0x171, 0x180085c71\nmov     dword ptr [rbx+18h], 9                                         ; +0x173, 0x180085c73\nmov     [rbx+10h], rax                                                 ; +0x17a, 0x180085c7a\nxor     eax, eax                                                       ; +0x17e, 0x180085c7e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x180, 0x180085c80\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x185, 0x180085c85\nadd     rsp, 20h                                                       ; +0x18a, 0x180085c8a\npop     rdi                                                            ; +0x18e, 0x180085c8e\nretn                                                                   ; +0x18f, 0x180085c8f", "xrefs": ["sub_180085B00 @ 0x180085b69", "sub_180085EC0 @ 0x18008630a", "<???> @ 0x1801bf6d0"], "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"}