{"type": "func", "start": 6442669328, "end": 6442670014, "name": "sub_180035510", "pseudocode": "// \n// sub_180035510 from 0x180035510 to 0x1800357be (686 bytes)\n// \n// 5 xrefs:\n// > sub_180034270 @ 0x18003439f\n// > <???> @ 0x1801803e8\n// > <???> @ 0x1801803f8\n// > <???> @ 0x18018040c\n// > <???> @ 0x1801f7b60\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 10:53:05 +0000\n// \n\n__int64 __fastcall sub_180035510(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  int v5; // [rsp+40h] [rbp-C0h] BYREF\n  int v6; // [rsp+44h] [rbp-BCh] BYREF\n  _BYTE v7[512]; // [rsp+50h] [rbp-B0h] BYREF\n\n  result = sub_1800B3990(*(_QWORD *)(a1 + 368), 0, 0);\n  if ( !(_DWORD)result )\n  {\n    if ( (unsigned int)sub_180033FC0(a1, v7, 512, nullptr) || (unsigned int)sub_1800B7FF0(v7, \"[playlist]\", 10) )\n    {\n      return 19;\n    }\n    else\n    {\n      while ( !(unsigned int)sub_180033FC0(a1, v7, 512, nullptr) )\n      {\n        if ( (unsigned int)sub_1800B7FF0(\"File\", v7, 4) )\n        {\n          if ( (unsigned int)sub_1800B7FF0(\"Title\", v7, 5) )\n          {\n            if ( (unsigned int)sub_1800B7FF0(\"Length\", v7, 6) )\n            {\n              if ( (!(unsigned int)sub_1800B7FF0(\"NumberOfEntries\", v7, 15)\n                 || !(unsigned int)sub_1800B7FF0(\"Version\", v7, 7))\n                && (unsigned int)sub_180033FC0(a1, v7, 512, nullptr) )\n              {\n                return 0;\n              }\n            }\n            else\n            {\n              v6 = 0;\n              if ( (unsigned int)sub_180033FC0(a1, v7, 512, &v5) )\n                return 0;\n              if ( (unsigned __int64)v5 >= 0x200 )\n                _report_rangecheckfailure(v4, v3);\n              v7[v5] = 0;\n              v6 = unknown_libname_28(v7);\n              sub_180012590(a1, 8, (int)\"LENGTH\", (int)&v6, 4, 1, 0);\n            }\n          }\n          else\n          {\n            if ( (unsigned int)sub_180033FC0(a1, v7, 512, &v5) )\n              return 0;\n            sub_180012590(a1, 8, (int)\"TITLE\", (int)v7, v5 + 1, 3, 0);\n          }\n        }\n        else\n        {\n          if ( (unsigned int)sub_180033FC0(a1, v7, 512, &v5) )\n            return 0;\n          sub_180012590(a1, 8, (int)\"FILE\", (int)v7, v5 + 1, 3, 0);\n        }\n      }\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180035510 from 0x180035510 to 0x1800357be (686 bytes)\n; \n; 5 xrefs:\n; > sub_180034270 @ 0x18003439f\n; > <???> @ 0x1801803e8\n; > <???> @ 0x1801803f8\n; > <???> @ 0x18018040c\n; > <???> @ 0x1801f7b60\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 10:53:05 +0000\n; \nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x180035510\npush    rbp                                                            ; +0x5, 0x180035515\nlea     rbp, [rsp-160h]                                                ; +0x6, 0x180035516\nsub     rsp, 260h                                                      ; +0xe, 0x18003551e\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x180035525\nxor     rax, rsp                                                       ; +0x1c, 0x18003552c\nmov     [rbp+160h+var_10], rax                                         ; +0x1f, 0x18003552f\nmov     rbx, rcx                                                       ; +0x26, 0x180035536\nxor     r8d, r8d                                                       ; +0x29, 0x180035539\nmov     rcx, [rcx+170h]                                                ; +0x2c, 0x18003553c\nxor     edx, edx                                                       ; +0x33, 0x180035543\ncall    sub_1800B3990                                                  ; +0x35, 0x180035545\ntest    eax, eax                                                       ; +0x3a, 0x18003554a\njnz     loc_180035791                                                  ; +0x3c, 0x18003554c\nxor     r9d, r9d                                                       ; +0x42, 0x180035552\nlea     rdx, [rsp+260h+var_210]                                        ; +0x45, 0x180035555\nmov     r8d, 200h                                                      ; +0x4a, 0x18003555a\nmov     rcx, rbx                                                       ; +0x50, 0x180035560\ncall    sub_180033FC0                                                  ; +0x53, 0x180035563\ntest    eax, eax                                                       ; +0x58, 0x180035568\njnz     loc_1800357B1                                                  ; +0x5a, 0x18003556a\nlea     r8d, [rax+0Ah]                                                 ; +0x60, 0x180035570\nlea     rdx, aPlaylist_0; \"[playlist]\"                                 ; +0x64, 0x180035574\nlea     rcx, [rsp+260h+var_210]                                        ; +0x6b, 0x18003557b\ncall    sub_1800B7FF0                                                  ; +0x70, 0x180035580\ntest    eax, eax                                                       ; +0x75, 0x180035585\njnz     loc_1800357B1                                                  ; +0x77, 0x180035587\nxor     r9d, r9d                                                       ; +0x7d, 0x18003558d\nmov     [rsp+260h+arg_8], rdi                                          ; +0x80, 0x180035590\nmov     r8d, 200h                                                      ; +0x88, 0x180035598\nlea     rdx, [rsp+260h+var_210]                                        ; +0x8e, 0x18003559e\nmov     rcx, rbx                                                       ; +0x93, 0x1800355a3\ncall    sub_180033FC0                                                  ; +0x96, 0x1800355a6\ntest    eax, eax                                                       ; +0x9b, 0x1800355ab\njnz     loc_180035787                                                  ; +0x9d, 0x1800355ad\nxor     edi, edi                                                       ; +0xa3, 0x1800355b3\nmov     r8d, 4                                                         ; +0xa5, 0x1800355b5\nlea     rdx, [rsp+260h+var_210]                                        ; +0xab, 0x1800355bb\nlea     rcx, aFile_1; \"File\"                                           ; +0xb0, 0x1800355c0\ncall    sub_1800B7FF0                                                  ; +0xb7, 0x1800355c7\nlea     rdx, [rsp+260h+var_210]                                        ; +0xbc, 0x1800355cc\ntest    eax, eax                                                       ; +0xc1, 0x1800355d1\njnz     short loc_180035625                                            ; +0xc3, 0x1800355d3\nlea     r9, [rsp+260h+var_220]                                         ; +0xc5, 0x1800355d5\nmov     r8d, 200h                                                      ; +0xca, 0x1800355da\nmov     rcx, rbx                                                       ; +0xd0, 0x1800355e0\ncall    sub_180033FC0                                                  ; +0xd3, 0x1800355e3\ntest    eax, eax                                                       ; +0xd8, 0x1800355e8\njnz     loc_180035787                                                  ; +0xda, 0x1800355ea\nmov     eax, [rsp+260h+var_220]                                        ; +0xe0, 0x1800355f0\nlea     r9, [rsp+260h+var_210]                                         ; +0xe4, 0x1800355f4\ninc     eax                                                            ; +0xe9, 0x1800355f9\nmov     [rsp+260h+var_230], dil                                        ; +0xeb, 0x1800355fb\nmov     [rsp+260h+var_238], 3                                          ; +0xf0, 0x180035600\nlea     r8, aFile; \"FILE\"                                              ; +0xf8, 0x180035608\nmov     edx, 8                                                         ; +0xff, 0x18003560f\nmov     [rsp+260h+var_240], eax                                        ; +0x104, 0x180035614\nmov     rcx, rbx                                                       ; +0x108, 0x180035618\ncall    sub_180012590                                                  ; +0x10b, 0x18003561b\njmp     loc_180035769                                                  ; +0x110, 0x180035620\nmov     r8d, 5                                                         ; +0x115, 0x180035625\nlea     rcx, aTitle_0; \"Title\"                                         ; +0x11b, 0x18003562b\ncall    sub_1800B7FF0                                                  ; +0x122, 0x180035632\nlea     rdx, [rsp+260h+var_210]                                        ; +0x127, 0x180035637\ntest    eax, eax                                                       ; +0x12c, 0x18003563c\njnz     short loc_180035690                                            ; +0x12e, 0x18003563e\nlea     r9, [rsp+260h+var_220]                                         ; +0x130, 0x180035640\nmov     r8d, 200h                                                      ; +0x135, 0x180035645\nmov     rcx, rbx                                                       ; +0x13b, 0x18003564b\ncall    sub_180033FC0                                                  ; +0x13e, 0x18003564e\ntest    eax, eax                                                       ; +0x143, 0x180035653\njnz     loc_180035787                                                  ; +0x145, 0x180035655\nmov     eax, [rsp+260h+var_220]                                        ; +0x14b, 0x18003565b\nlea     r9, [rsp+260h+var_210]                                         ; +0x14f, 0x18003565f\ninc     eax                                                            ; +0x154, 0x180035664\nmov     [rsp+260h+var_230], dil                                        ; +0x156, 0x180035666\nmov     [rsp+260h+var_238], 3                                          ; +0x15b, 0x18003566b\nlea     r8, aTitle; \"TITLE\"                                            ; +0x163, 0x180035673\nmov     edx, 8                                                         ; +0x16a, 0x18003567a\nmov     [rsp+260h+var_240], eax                                        ; +0x16f, 0x18003567f\nmov     rcx, rbx                                                       ; +0x173, 0x180035683\ncall    sub_180012590                                                  ; +0x176, 0x180035686\njmp     loc_180035769                                                  ; +0x17b, 0x18003568b\nmov     r8d, 6                                                         ; +0x180, 0x180035690\nlea     rcx, aLength_0; \"Length\"                                       ; +0x186, 0x180035696\ncall    sub_1800B7FF0                                                  ; +0x18d, 0x18003569d\nlea     rdx, [rsp+260h+var_210]                                        ; +0x192, 0x1800356a2\ntest    eax, eax                                                       ; +0x197, 0x1800356a7\njnz     short loc_18003571E                                            ; +0x199, 0x1800356a9\nlea     r9, [rsp+260h+var_220]                                         ; +0x19b, 0x1800356ab\nmov     [rsp+260h+var_21C], edi                                        ; +0x1a0, 0x1800356b0\nmov     r8d, 200h                                                      ; +0x1a4, 0x1800356b4\nmov     rcx, rbx                                                       ; +0x1aa, 0x1800356ba\ncall    sub_180033FC0                                                  ; +0x1ad, 0x1800356bd\ntest    eax, eax                                                       ; +0x1b2, 0x1800356c2\njnz     loc_180035787                                                  ; +0x1b4, 0x1800356c4\nmovsxd  rax, [rsp+260h+var_220]                                        ; +0x1ba, 0x1800356ca\ncmp     rax, 200h                                                      ; +0x1bf, 0x1800356cf\njnb     loc_1800357B8                                                  ; +0x1c5, 0x1800356d5\nlea     rcx, [rsp+260h+var_210]                                        ; +0x1cb, 0x1800356db\nmov     [rsp+rax+260h+var_210], dil                                    ; +0x1d0, 0x1800356e0\ncall    unknown_libname_28; Microsoft VisualC 64bit universal runtime  ; +0x1d5, 0x1800356e5\nmov     [rsp+260h+var_230], dil                                        ; +0x1da, 0x1800356ea\nlea     r9, [rsp+260h+var_21C]                                         ; +0x1df, 0x1800356ef\nmov     [rsp+260h+var_238], 1                                          ; +0x1e4, 0x1800356f4\nlea     r8, aLength; \"LENGTH\"                                          ; +0x1ec, 0x1800356fc\nmov     edx, 8                                                         ; +0x1f3, 0x180035703\nmov     [rsp+260h+var_240], 4                                          ; +0x1f8, 0x180035708\nmov     rcx, rbx                                                       ; +0x200, 0x180035710\nmov     [rsp+260h+var_21C], eax                                        ; +0x203, 0x180035713\ncall    sub_180012590                                                  ; +0x207, 0x180035717\njmp     short loc_180035769                                            ; +0x20c, 0x18003571c\nmov     r8d, 0Fh                                                       ; +0x20e, 0x18003571e\nlea     rcx, aNumberofentrie; \"NumberOfEntries\"                        ; +0x214, 0x180035724\ncall    sub_1800B7FF0                                                  ; +0x21b, 0x18003572b\nlea     rdx, [rsp+260h+var_210]                                        ; +0x220, 0x180035730\ntest    eax, eax                                                       ; +0x225, 0x180035735\njz      short loc_180035754                                            ; +0x227, 0x180035737\nmov     r8d, 7                                                         ; +0x229, 0x180035739\nlea     rcx, aVersion; \"Version\"                                       ; +0x22f, 0x18003573f\ncall    sub_1800B7FF0                                                  ; +0x236, 0x180035746\ntest    eax, eax                                                       ; +0x23b, 0x18003574b\njnz     short loc_180035769                                            ; +0x23d, 0x18003574d\nlea     rdx, [rsp+260h+var_210]                                        ; +0x23f, 0x18003574f\nxor     r9d, r9d                                                       ; +0x244, 0x180035754\nmov     r8d, 200h                                                      ; +0x247, 0x180035757\nmov     rcx, rbx                                                       ; +0x24d, 0x18003575d\ncall    sub_180033FC0                                                  ; +0x250, 0x180035760\ntest    eax, eax                                                       ; +0x255, 0x180035765\njnz     short loc_180035787                                            ; +0x257, 0x180035767\nxor     r9d, r9d                                                       ; +0x259, 0x180035769\nlea     rdx, [rsp+260h+var_210]                                        ; +0x25c, 0x18003576c\nmov     r8d, 200h                                                      ; +0x261, 0x180035771\nmov     rcx, rbx                                                       ; +0x267, 0x180035777\ncall    sub_180033FC0                                                  ; +0x26a, 0x18003577a\ntest    eax, eax                                                       ; +0x26f, 0x18003577f\njz      loc_1800355B5                                                  ; +0x271, 0x180035781\nmov     rdi, [rsp+260h+arg_8]                                          ; +0x277, 0x180035787\nxor     eax, eax                                                       ; +0x27f, 0x18003578f\nmov     rcx, [rbp+160h+var_10]                                         ; +0x281, 0x180035791\nxor     rcx, rsp; StackCookie                                          ; +0x288, 0x180035798\ncall    __security_check_cookie                                        ; +0x28b, 0x18003579b\nmov     rbx, [rsp+260h+arg_10]                                         ; +0x290, 0x1800357a0\nadd     rsp, 260h                                                      ; +0x298, 0x1800357a8\npop     rbp                                                            ; +0x29f, 0x1800357af\nretn                                                                   ; +0x2a0, 0x1800357b0\nmov     eax, 13h                                                       ; +0x2a1, 0x1800357b1\njmp     short loc_180035791                                            ; +0x2a6, 0x1800357b6\ncall    __report_rangecheckfailure                                     ; +0x2a8, 0x1800357b8\ndb 0CCh                                                                ; +0x2ad, 0x1800357bd", "xrefs": ["sub_180034270 @ 0x18003439f", "<???> @ 0x1801803e8", "<???> @ 0x1801803f8", "<???> @ 0x18018040c", "<???> @ 0x1801f7b60"], "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"}