{"type": "func", "start": 6442998368, "end": 6442998527, "name": "sub_180085A60", "pseudocode": "// \n// sub_180085A60 from 0x180085a60 to 0x180085aff (159 bytes)\n// \n// 1 xrefs:\n// > sub_180086730 @ 0x1800867fc\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\nunsigned __int8 *__fastcall sub_180085A60(unsigned __int8 *a1)\n{\n  unsigned __int8 *v1; // r9\n  __int64 i; // rax\n  _BYTE *v3; // rdx\n  unsigned __int8 *v4; // r8\n  _BYTE *v6; // rdx\n  unsigned __int8 *v7; // r8\n\n  v1 = a1;\n  while ( 1 )\n  {\n    for ( i = *a1; (byte_1801079B0[i] & 1) == 0; ++a1 )\n      i = a1[1];\n    if ( (_BYTE)i == 60 )\n      break;\n    if ( !(_BYTE)i )\n    {\n      v3 = a1;\n      if ( a1 > v1 )\n      {\n        do\n        {\n          v4 = v3 - 1;\n          if ( (byte_1801079B0[(unsigned __int8)*(v3 - 1)] & 8) == 0 )\n            break;\n          --v3;\n        }\n        while ( v4 > v1 );\n      }\n      *v3 = 0;\n      return a1;\n    }\n    ++a1;\n  }\n  v6 = a1;\n  if ( a1 > v1 )\n  {\n    do\n    {\n      v7 = v6 - 1;\n      if ( (byte_1801079B0[(unsigned __int8)*(v6 - 1)] & 8) == 0 )\n        break;\n      --v6;\n    }\n    while ( v7 > v1 );\n  }\n  *v6 = 0;\n  return a1 + 1;\n}", "assembly": "; \n; sub_180085A60 from 0x180085a60 to 0x180085aff (159 bytes)\n; \n; 1 xrefs:\n; > sub_180086730 @ 0x1800867fc\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     r9, rcx                                                        ; +0x0, 0x180085a60\nlea     r10, byte_1801079B0                                            ; +0x3, 0x180085a63\nnop     word ptr [rax+rax+00h]                                         ; +0xa, 0x180085a6a\nmovzx   eax, byte ptr [rcx]                                            ; +0x10, 0x180085a70\ntest    byte ptr [rax+r10], 1                                          ; +0x13, 0x180085a73\njnz     short loc_180085A8E                                            ; +0x18, 0x180085a78\nnop     word ptr [rax+rax+00h]                                         ; +0x1a, 0x180085a7a\nmovzx   eax, byte ptr [rcx+1]                                          ; +0x20, 0x180085a80\ninc     rcx                                                            ; +0x24, 0x180085a84\ntest    byte ptr [rax+r10], 1                                          ; +0x27, 0x180085a87\njz      short loc_180085A80                                            ; +0x2c, 0x180085a8c\ncmp     al, 3Ch ; '<'                                                  ; +0x2e, 0x180085a8e\njz      short loc_180085ACE                                            ; +0x30, 0x180085a90\ntest    al, al                                                         ; +0x32, 0x180085a92\njz      short loc_180085A9B                                            ; +0x34, 0x180085a94\ninc     rcx                                                            ; +0x36, 0x180085a96\njmp     short loc_180085A70                                            ; +0x39, 0x180085a99\nmov     rdx, rcx                                                       ; +0x3b, 0x180085a9b\ncmp     rcx, r9                                                        ; +0x3e, 0x180085a9e\njbe     short loc_180085AC7                                            ; +0x41, 0x180085aa1\nnop     dword ptr [rax+00h]                                            ; +0x43, 0x180085aa3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x180085aa7\nmovzx   eax, byte ptr [rdx-1]                                          ; +0x50, 0x180085ab0\nlea     r8, [rdx-1]                                                    ; +0x54, 0x180085ab4\ntest    byte ptr [rax+r10], 8                                          ; +0x58, 0x180085ab8\njz      short loc_180085AC7                                            ; +0x5d, 0x180085abd\nmov     rdx, r8                                                        ; +0x5f, 0x180085abf\ncmp     r8, r9                                                         ; +0x62, 0x180085ac2\nja      short loc_180085AB0                                            ; +0x65, 0x180085ac5\nmov     rax, rcx                                                       ; +0x67, 0x180085ac7\nmov     byte ptr [rdx], 0                                              ; +0x6a, 0x180085aca\nretn                                                                   ; +0x6d, 0x180085acd\nmov     rdx, rcx                                                       ; +0x6e, 0x180085ace\ncmp     rcx, r9                                                        ; +0x71, 0x180085ad1\njbe     short loc_180085AF7                                            ; +0x74, 0x180085ad4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x76, 0x180085ad6\nmovzx   eax, byte ptr [rdx-1]                                          ; +0x80, 0x180085ae0\nlea     r8, [rdx-1]                                                    ; +0x84, 0x180085ae4\ntest    byte ptr [rax+r10], 8                                          ; +0x88, 0x180085ae8\njz      short loc_180085AF7                                            ; +0x8d, 0x180085aed\nmov     rdx, r8                                                        ; +0x8f, 0x180085aef\ncmp     r8, r9                                                         ; +0x92, 0x180085af2\nja      short loc_180085AE0                                            ; +0x95, 0x180085af5\nlea     rax, [rcx+1]                                                   ; +0x97, 0x180085af7\nmov     byte ptr [rdx], 0                                              ; +0x9b, 0x180085afb\nretn                                                                   ; +0x9e, 0x180085afe", "xrefs": ["sub_180086730 @ 0x1800867fc"], "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"}