{"type": "func", "start": 6443324960, "end": 6443325150, "name": "sub_1800D5620", "pseudocode": "// \n// sub_1800D5620 from 0x1800d5620 to 0x1800d56de (190 bytes)\n// \n// 2 xrefs:\n// > sub_1800D52C0 @ 0x1800d5350\n// > <???> @ 0x1801ba7e8\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_1800D5620(_DWORD *a1)\n{\n  char *result; // rax\n  __int64 v3; // r9\n  unsigned __int8 *v4; // rdx\n  __int64 v5; // r8\n  char v6; // cl\n  bool v7; // cc\n  unsigned __int8 *i; // rcx\n  char v9; // dl\n  bool v10; // cc\n\n  result = sub_1800D5590((__int64)(a1 + 48));\n  if ( result )\n  {\n    v3 = 0;\n    v4 = (unsigned __int8 *)(result + 162);\n    v5 = 0;\n    while ( 1 )\n    {\n      v6 = *(v4 - 1);\n      if ( v6 == 3 )\n      {\n        if ( *v4 >> 4 >= a1[12] )\n          return nullptr;\n      }\n      else if ( v6 == 2 )\n      {\n        v7 = (int)*v4 < a1[8];\n        goto LABEL_7;\n      }\n      if ( v6 != 1 )\n        goto LABEL_8;\n      v7 = (int)*v4 < a1[4];\nLABEL_7:\n      if ( !v7 )\n        return nullptr;\nLABEL_8:\n      ++v5;\n      v4 += 4;\n      if ( v5 > 14 )\n      {\n        for ( i = (unsigned __int8 *)(result + 222); ; i += 4 )\n        {\n          v9 = *(i - 1);\n          switch ( v9 )\n          {\n            case 3:\n              if ( *i >> 4 >= a1[12] )\n                return nullptr;\n              break;\n            case 2:\n              v10 = (int)*i < a1[8];\nLABEL_14:\n              if ( !v10 )\n                return nullptr;\n              break;\n            case 1:\n              v10 = (int)*i < a1[4];\n              goto LABEL_14;\n          }\n          if ( ++v3 > 5 )\n            return result;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D5620 from 0x1800d5620 to 0x1800d56de (190 bytes)\n; \n; 2 xrefs:\n; > sub_1800D52C0 @ 0x1800d5350\n; > <???> @ 0x1801ba7e8\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\npush    rbx                                                            ; +0x0, 0x1800d5620\nsub     rsp, 20h                                                       ; +0x2, 0x1800d5622\nmov     rbx, rcx                                                       ; +0x6, 0x1800d5626\nadd     rcx, 0C0h                                                      ; +0x9, 0x1800d5629\ncall    sub_1800D5590                                                  ; +0x10, 0x1800d5630\nmov     r10, rax                                                       ; +0x15, 0x1800d5635\ntest    rax, rax                                                       ; +0x18, 0x1800d5638\njz      short loc_1800D56B3                                            ; +0x1b, 0x1800d563b\nxor     r9d, r9d                                                       ; +0x1d, 0x1800d563d\nlea     rdx, [rax+0A2h]                                                ; +0x20, 0x1800d5640\nmov     r8d, r9d                                                       ; +0x27, 0x1800d5647\nnop     word ptr [rax+rax+00h]                                         ; +0x2a, 0x1800d564a\nmovzx   ecx, byte ptr [rdx-1]                                          ; +0x30, 0x1800d5650\ncmp     cl, 3                                                          ; +0x34, 0x1800d5654\njnz     short loc_1800D56BC                                            ; +0x37, 0x1800d5657\nmovzx   eax, byte ptr [rdx]                                            ; +0x39, 0x1800d5659\nshr     eax, 4                                                         ; +0x3c, 0x1800d565c\ncmp     eax, [rbx+30h]                                                 ; +0x3f, 0x1800d565f\njge     short loc_1800D56D6                                            ; +0x42, 0x1800d5662\ncmp     cl, 1                                                          ; +0x44, 0x1800d5664\njnz     short loc_1800D5671                                            ; +0x47, 0x1800d5667\nmovzx   eax, byte ptr [rdx]                                            ; +0x49, 0x1800d5669\ncmp     eax, [rbx+10h]                                                 ; +0x4c, 0x1800d566c\njge     short loc_1800D56D6                                            ; +0x4f, 0x1800d566f\ninc     r8                                                             ; +0x51, 0x1800d5671\nadd     rdx, 4                                                         ; +0x54, 0x1800d5674\ncmp     r8, 0Eh                                                        ; +0x58, 0x1800d5678\njle     short loc_1800D5650                                            ; +0x5c, 0x1800d567c\nlea     rcx, [r10+0DEh]                                                ; +0x5e, 0x1800d567e\nmovzx   edx, byte ptr [rcx-1]                                          ; +0x65, 0x1800d5685\ncmp     dl, 3                                                          ; +0x69, 0x1800d5689\njnz     short loc_1800D56C9                                            ; +0x6c, 0x1800d568c\nmovzx   eax, byte ptr [rcx]                                            ; +0x6e, 0x1800d568e\nshr     eax, 4                                                         ; +0x71, 0x1800d5691\ncmp     eax, [rbx+30h]                                                 ; +0x74, 0x1800d5694\njge     short loc_1800D56D6                                            ; +0x77, 0x1800d5697\ncmp     dl, 1                                                          ; +0x79, 0x1800d5699\njnz     short loc_1800D56A6                                            ; +0x7c, 0x1800d569c\nmovzx   eax, byte ptr [rcx]                                            ; +0x7e, 0x1800d569e\ncmp     eax, [rbx+10h]                                                 ; +0x81, 0x1800d56a1\njge     short loc_1800D56D6                                            ; +0x84, 0x1800d56a4\ninc     r9                                                             ; +0x86, 0x1800d56a6\nadd     rcx, 4                                                         ; +0x89, 0x1800d56a9\ncmp     r9, 5                                                          ; +0x8d, 0x1800d56ad\njle     short loc_1800D5685                                            ; +0x91, 0x1800d56b1\nmov     rax, r10                                                       ; +0x93, 0x1800d56b3\nadd     rsp, 20h                                                       ; +0x96, 0x1800d56b6\npop     rbx                                                            ; +0x9a, 0x1800d56ba\nretn                                                                   ; +0x9b, 0x1800d56bb\ncmp     cl, 2                                                          ; +0x9c, 0x1800d56bc\njnz     short loc_1800D5664                                            ; +0x9f, 0x1800d56bf\nmovzx   eax, byte ptr [rdx]                                            ; +0xa1, 0x1800d56c1\ncmp     eax, [rbx+20h]                                                 ; +0xa4, 0x1800d56c4\njmp     short loc_1800D566F                                            ; +0xa7, 0x1800d56c7\ncmp     dl, 2                                                          ; +0xa9, 0x1800d56c9\njnz     short loc_1800D5699                                            ; +0xac, 0x1800d56cc\nmovzx   eax, byte ptr [rcx]                                            ; +0xae, 0x1800d56ce\ncmp     eax, [rbx+20h]                                                 ; +0xb1, 0x1800d56d1\njmp     short loc_1800D56A4                                            ; +0xb4, 0x1800d56d4\nxor     eax, eax                                                       ; +0xb6, 0x1800d56d6\nadd     rsp, 20h                                                       ; +0xb8, 0x1800d56d8\npop     rbx                                                            ; +0xbc, 0x1800d56dc\nretn                                                                   ; +0xbd, 0x1800d56dd", "xrefs": ["sub_1800D52C0 @ 0x1800d5350", "<???> @ 0x1801ba7e8"], "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"}