{"type": "func", "start": 6442998928, "end": 6442999039, "name": "sub_180085C90", "pseudocode": "// \n// sub_180085C90 from 0x180085c90 to 0x180085cff (111 bytes)\n// \n// 4 xrefs:\n// > sub_180085B00 @ 0x180085b4f\n// > sub_180085C90 @ 0x180085cbb\n// > <???> @ 0x1801bf6d0\n// > <???> @ 0x1801bf6dc\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_180085C90(__int64 a1, __int64 a2)\n{\n  char *result; // rax\n  char v4; // dl\n\n  result = (char *)(a2 + 1);\n  v4 = *(_BYTE *)(a2 + 1);\n  if ( v4 )\n  {\n    do\n    {\n      if ( v4 == 60 && result[1] == 33 && result[2] == 91 )\n      {\n        result = (char *)sub_180085C90(a1, result);\n        if ( !result )\n          return result;\n      }\n      else\n      {\n        if ( *result == 93 && result[1] == 93 && result[2] == 62 )\n        {\n          result += 3;\n          return result;\n        }\n        ++result;\n      }\n      v4 = *result;\n    }\n    while ( *result );\n  }\n  *(_QWORD *)(a1 + 16) = result;\n  result = nullptr;\n  *(_DWORD *)(a1 + 24) = 9;\n  return result;\n}", "assembly": "; \n; sub_180085C90 from 0x180085c90 to 0x180085cff (111 bytes)\n; \n; 4 xrefs:\n; > sub_180085B00 @ 0x180085b4f\n; > sub_180085C90 @ 0x180085cbb\n; > <???> @ 0x1801bf6d0\n; > <???> @ 0x1801bf6dc\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; \npush    rbx                                                            ; +0x0, 0x180085c90\nsub     rsp, 20h                                                       ; +0x2, 0x180085c92\nlea     rax, [rdx+1]                                                   ; +0x6, 0x180085c96\nmov     rbx, rcx                                                       ; +0xa, 0x180085c9a\nmovzx   edx, byte ptr [rax]                                            ; +0xd, 0x180085c9d\ntest    dl, dl                                                         ; +0x10, 0x180085ca0\njz      short loc_180085CE2                                            ; +0x12, 0x180085ca2\ncmp     dl, 3Ch ; '<'                                                  ; +0x14, 0x180085ca4\njnz     short loc_180085CC7                                            ; +0x17, 0x180085ca7\ncmp     byte ptr [rax+1], 21h ; '!'                                    ; +0x19, 0x180085ca9\njnz     short loc_180085CC7                                            ; +0x1d, 0x180085cad\ncmp     byte ptr [rax+2], 5Bh ; '['                                    ; +0x1f, 0x180085caf\njnz     short loc_180085CC7                                            ; +0x23, 0x180085cb3\nmov     rdx, rax                                                       ; +0x25, 0x180085cb5\nmov     rcx, rbx                                                       ; +0x28, 0x180085cb8\ncall    sub_180085C90                                                  ; +0x2b, 0x180085cbb\ntest    rax, rax                                                       ; +0x30, 0x180085cc0\njz      short loc_180085CEF                                            ; +0x33, 0x180085cc3\njmp     short loc_180085CDB                                            ; +0x35, 0x180085cc5\ncmp     byte ptr [rax], 5Dh ; ']'                                      ; +0x37, 0x180085cc7\njnz     short loc_180085CD8                                            ; +0x3a, 0x180085cca\ncmp     byte ptr [rax+1], 5Dh ; ']'                                    ; +0x3c, 0x180085ccc\njnz     short loc_180085CD8                                            ; +0x40, 0x180085cd0\ncmp     byte ptr [rax+2], 3Eh ; '>'                                    ; +0x42, 0x180085cd2\njz      short loc_180085CF5                                            ; +0x46, 0x180085cd6\ninc     rax                                                            ; +0x48, 0x180085cd8\nmovzx   edx, byte ptr [rax]                                            ; +0x4b, 0x180085cdb\ntest    dl, dl                                                         ; +0x4e, 0x180085cde\njnz     short loc_180085CA4                                            ; +0x50, 0x180085ce0\nmov     [rbx+10h], rax                                                 ; +0x52, 0x180085ce2\nxor     eax, eax                                                       ; +0x56, 0x180085ce6\nmov     dword ptr [rbx+18h], 9                                         ; +0x58, 0x180085ce8\nadd     rsp, 20h                                                       ; +0x5f, 0x180085cef\npop     rbx                                                            ; +0x63, 0x180085cf3\nretn                                                                   ; +0x64, 0x180085cf4\nadd     rax, 3                                                         ; +0x65, 0x180085cf5\nadd     rsp, 20h                                                       ; +0x69, 0x180085cf9\npop     rbx                                                            ; +0x6d, 0x180085cfd\nretn                                                                   ; +0x6e, 0x180085cfe", "xrefs": ["sub_180085B00 @ 0x180085b4f", "sub_180085C90 @ 0x180085cbb", "<???> @ 0x1801bf6d0", "<???> @ 0x1801bf6dc"], "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"}