{"type": "func", "start": 6442664560, "end": 6442665347, "name": "sub_180034270", "pseudocode": "// \n// sub_180034270 from 0x180034270 to 0x180034583 (787 bytes)\n// \n// 4 xrefs:\n// > sub_180034260 @ 0x180034260\n// > <???> @ 0x18018024c\n// > <???> @ 0x18018025c\n// > <???> @ 0x1801f7a94\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\n__int64 __fastcall sub_180034270(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rcx\n  __int64 v4; // rdi\n  __int64 v5; // rcx\n  int v6; // [rsp+20h] [rbp-48h]\n  _BYTE v7[8]; // [rsp+30h] [rbp-38h] BYREF\n  __int64 v8; // [rsp+38h] [rbp-30h] BYREF\n  __int128 v9; // [rsp+40h] [rbp-28h] BYREF\n\n  *(_DWORD *)(a1 + 40) = 11;\n  *(_QWORD *)(a1 + 288) = 0;\n  *(_QWORD *)(a1 + 296) = 0;\n  *(_QWORD *)(a1 + 304) = 0;\n  *(_QWORD *)(a1 + 328) = 0;\n  *(_QWORD *)(a1 + 312) = 0;\n  *(_QWORD *)(a1 + 360) = 0;\n  *(_DWORD *)(a1 + 24) = 0;\n  *(_QWORD *)(a1 + 8) = 0;\n  do\n  {\n    result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v7);\n    if ( (_DWORD)result )\n      return result;\n  }\n  while ( v7[0] == 32 || v7[0] == 9 || v7[0] == 10 || v7[0] == 13 );\n  result = sub_1800B3990(*(_QWORD *)(a1 + 368), 0xFFFFFFFFLL, 1);\n  if ( !(_DWORD)result )\n  {\n    v3 = *(_QWORD *)(a1 + 368);\n    v9 = 0;\n    result = sub_1800B3470(v3, (unsigned int)&v9, 12, 1, 0);\n    if ( (result & 0xFFFFFFEF) == 0 )\n    {\n      if ( !(unsigned int)sub_1800B7FF0(\"#EXTM3U\", &v9, 7) )\n      {\n        result = sub_180035080(a1);\n        if ( (_DWORD)result )\n          return result;\nLABEL_31:\n        *(_OWORD *)(a1 + 376) = 0;\n        *(_OWORD *)(a1 + 392) = 0;\n        *(_OWORD *)(a1 + 408) = 0;\n        *(_QWORD *)(a1 + 424) = 0;\n        v5 = *(_QWORD *)(a1 + 368);\n        *(_QWORD *)(a1 + 8) = a1 + 376;\n        *(_DWORD *)(a1 + 24) = 0;\n        result = sub_1800B25E0(v5);\n        if ( !(_DWORD)result )\n        {\n          LOBYTE(v6) = 1;\n          sub_1800B6AA0(\n            *((_QWORD *)off_1801AED20 + 52),\n            *(_QWORD *)(a1 + 368),\n            \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_playlist.cpp\",\n            180,\n            v6);\n          *(_DWORD *)(a1 + 44) |= 0x400u;\n          *(_QWORD *)(a1 + 368) = 0;\n          return 0;\n        }\n        return result;\n      }\n      if ( !(unsigned int)sub_1800B7FF0(\"[PLAYLIST]\", &v9, 10) )\n      {\n        result = sub_180035510(a1);\n        if ( (_DWORD)result )\n          return result;\n        goto LABEL_31;\n      }\n      if ( !(unsigned int)sub_1800B7FF0(\"<ASX VERSION\", &v9, 12) )\n      {\n        result = sub_180034590(a1);\n        if ( (_DWORD)result )\n          return result;\n        goto LABEL_31;\n      }\n      if ( !(unsigned int)sub_1800B7FF0(\"<?WPL VERSION\", &v9, 12) )\n      {\n        result = sub_180035A30(a1);\n        if ( (_DWORD)result )\n          return result;\n        goto LABEL_31;\n      }\n      if ( !(unsigned int)sub_1800B7FF0(\"<?XML VERSION\", &v9, 12) )\n      {\n        result = sub_180034AA0(a1);\n        if ( (_DWORD)result )\n          return result;\n        goto LABEL_31;\n      }\n      result = sub_1800B3040(*(_QWORD *)(a1 + 368), &v8);\n      if ( (_DWORD)result )\n        return result;\n      v4 = (int)(sub_1800B7F50(v8) - 4);\n      if ( (unsigned int)sub_1800B7FB0(v4 + v8, \".pls\", 4)\n        && (unsigned int)sub_1800B7FB0(v4 + v8, \".m3u\", 4)\n        && (unsigned int)sub_1800B7FB0(v4 + v8, \".asx\", 4)\n        && (unsigned int)sub_1800B7FB0(v4 + v8, \".wax\", 4) )\n      {\n        return 19;\n      }\n      result = sub_1800357C0(a1);\n      if ( !(_DWORD)result )\n        goto LABEL_31;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180034270 from 0x180034270 to 0x180034583 (787 bytes)\n; \n; 4 xrefs:\n; > sub_180034260 @ 0x180034260\n; > <???> @ 0x18018024c\n; > <???> @ 0x18018025c\n; > <???> @ 0x1801f7a94\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180034270\npush    rsi                                                            ; +0x5, 0x180034275\nsub     rsp, 60h                                                       ; +0x6, 0x180034276\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18003427a\nxor     rax, rsp                                                       ; +0x11, 0x180034281\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x180034284\nxor     esi, esi                                                       ; +0x19, 0x180034289\nmov     dword ptr [rcx+28h], 0Bh                                       ; +0x1b, 0x18003428b\nmov     [rcx+120h], rsi                                                ; +0x22, 0x180034292\nmov     rbx, rcx                                                       ; +0x29, 0x180034299\nmov     [rcx+128h], rsi                                                ; +0x2c, 0x18003429c\nmov     [rcx+130h], rsi                                                ; +0x33, 0x1800342a3\nmov     [rcx+148h], rsi                                                ; +0x3a, 0x1800342aa\nmov     [rcx+138h], rsi                                                ; +0x41, 0x1800342b1\nmov     [rcx+168h], rsi                                                ; +0x48, 0x1800342b8\nmov     [rcx+18h], esi                                                 ; +0x4f, 0x1800342bf\nmov     [rcx+8], rsi                                                   ; +0x52, 0x1800342c2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x56, 0x1800342c6\nmov     rcx, [rbx+170h]                                                ; +0x60, 0x1800342d0\nlea     rdx, [rsp+68h+var_38]                                          ; +0x67, 0x1800342d7\ncall    sub_1800B2CB0                                                  ; +0x6c, 0x1800342dc\ntest    eax, eax                                                       ; +0x71, 0x1800342e1\njnz     loc_180034568                                                  ; +0x73, 0x1800342e3\nmovzx   eax, [rsp+68h+var_38]                                          ; +0x79, 0x1800342e9\ncmp     al, 20h ; ' '                                                  ; +0x7e, 0x1800342ee\njz      short loc_1800342D0                                            ; +0x80, 0x1800342f0\ncmp     al, 9                                                          ; +0x82, 0x1800342f2\njz      short loc_1800342D0                                            ; +0x84, 0x1800342f4\ncmp     al, 0Ah                                                        ; +0x86, 0x1800342f6\njz      short loc_1800342D0                                            ; +0x88, 0x1800342f8\ncmp     al, 0Dh                                                        ; +0x8a, 0x1800342fa\njz      short loc_1800342D0                                            ; +0x8c, 0x1800342fc\nmov     rcx, [rbx+170h]                                                ; +0x8e, 0x1800342fe\nmov     edx, 0FFFFFFFFh                                                ; +0x95, 0x180034305\nlea     r8d, [rdx+2]                                                   ; +0x9a, 0x18003430a\ncall    sub_1800B3990                                                  ; +0x9e, 0x18003430e\ntest    eax, eax                                                       ; +0xa3, 0x180034313\njnz     loc_180034568                                                  ; +0xa5, 0x180034315\nmov     rcx, [rbx+170h]                                                ; +0xab, 0x18003431b\nlea     r9d, [rax+1]                                                   ; +0xb2, 0x180034322\nxorps   xmm0, xmm0                                                     ; +0xb6, 0x180034326\nmov     qword ptr [rsp+68h+var_48], rsi                                ; +0xb9, 0x180034329\nlea     r8d, [rax+0Ch]                                                 ; +0xbe, 0x18003432e\nlea     rdx, [rsp+68h+var_28]                                          ; +0xc2, 0x180034332\nmovups  [rsp+68h+var_28], xmm0                                         ; +0xc7, 0x180034337\ncall    sub_1800B3470                                                  ; +0xcc, 0x18003433c\ntest    eax, 0FFFFFFEFh                                                ; +0xd1, 0x180034341\njnz     loc_180034568                                                  ; +0xd6, 0x180034346\nmov     r8d, 7                                                         ; +0xdc, 0x18003434c\nmov     [rsp+68h+arg_8], rdi                                           ; +0xe2, 0x180034352\nlea     rdx, [rsp+68h+var_28]                                          ; +0xe7, 0x180034357\nlea     rcx, aExtm3u; \"#EXTM3U\"                                        ; +0xec, 0x18003435c\ncall    sub_1800B7FF0                                                  ; +0xf3, 0x180034363\ntest    eax, eax                                                       ; +0xf8, 0x180034368\njnz     short loc_180034381                                            ; +0xfa, 0x18003436a\nmov     rcx, rbx                                                       ; +0xfc, 0x18003436c\ncall    sub_180035080                                                  ; +0xff, 0x18003436f\ntest    eax, eax                                                       ; +0x104, 0x180034374\njz      loc_1800344F5                                                  ; +0x106, 0x180034376\njmp     loc_180034563                                                  ; +0x10c, 0x18003437c\nmov     r8d, 0Ah                                                       ; +0x111, 0x180034381\nlea     rdx, [rsp+68h+var_28]                                          ; +0x117, 0x180034387\nlea     rcx, aPlaylist; \"[PLAYLIST]\"                                   ; +0x11c, 0x18003438c\ncall    sub_1800B7FF0                                                  ; +0x123, 0x180034393\ntest    eax, eax                                                       ; +0x128, 0x180034398\njnz     short loc_1800343B1                                            ; +0x12a, 0x18003439a\nmov     rcx, rbx                                                       ; +0x12c, 0x18003439c\ncall    sub_180035510                                                  ; +0x12f, 0x18003439f\ntest    eax, eax                                                       ; +0x134, 0x1800343a4\njz      loc_1800344F5                                                  ; +0x136, 0x1800343a6\njmp     loc_180034563                                                  ; +0x13c, 0x1800343ac\nmov     r8d, 0Ch                                                       ; +0x141, 0x1800343b1\nlea     rdx, [rsp+68h+var_28]                                          ; +0x147, 0x1800343b7\nlea     rcx, aAsxVersion; \"<ASX VERSION\"                               ; +0x14c, 0x1800343bc\ncall    sub_1800B7FF0                                                  ; +0x153, 0x1800343c3\ntest    eax, eax                                                       ; +0x158, 0x1800343c8\njnz     short loc_1800343E1                                            ; +0x15a, 0x1800343ca\nmov     rcx, rbx                                                       ; +0x15c, 0x1800343cc\ncall    sub_180034590                                                  ; +0x15f, 0x1800343cf\ntest    eax, eax                                                       ; +0x164, 0x1800343d4\njz      loc_1800344F5                                                  ; +0x166, 0x1800343d6\njmp     loc_180034563                                                  ; +0x16c, 0x1800343dc\nmov     r8d, 0Ch                                                       ; +0x171, 0x1800343e1\nlea     rdx, [rsp+68h+var_28]                                          ; +0x177, 0x1800343e7\nlea     rcx, aWplVersion; \"<?WPL VERSION\"                              ; +0x17c, 0x1800343ec\ncall    sub_1800B7FF0                                                  ; +0x183, 0x1800343f3\ntest    eax, eax                                                       ; +0x188, 0x1800343f8\njnz     short loc_180034411                                            ; +0x18a, 0x1800343fa\nmov     rcx, rbx                                                       ; +0x18c, 0x1800343fc\ncall    sub_180035A30                                                  ; +0x18f, 0x1800343ff\ntest    eax, eax                                                       ; +0x194, 0x180034404\njz      loc_1800344F5                                                  ; +0x196, 0x180034406\njmp     loc_180034563                                                  ; +0x19c, 0x18003440c\nmov     r8d, 0Ch                                                       ; +0x1a1, 0x180034411\nlea     rdx, [rsp+68h+var_28]                                          ; +0x1a7, 0x180034417\nlea     rcx, aXmlVersion; \"<?XML VERSION\"                              ; +0x1ac, 0x18003441c\ncall    sub_1800B7FF0                                                  ; +0x1b3, 0x180034423\ntest    eax, eax                                                       ; +0x1b8, 0x180034428\njnz     short loc_180034441                                            ; +0x1ba, 0x18003442a\nmov     rcx, rbx                                                       ; +0x1bc, 0x18003442c\ncall    sub_180034AA0                                                  ; +0x1bf, 0x18003442f\ntest    eax, eax                                                       ; +0x1c4, 0x180034434\njz      loc_1800344F5                                                  ; +0x1c6, 0x180034436\njmp     loc_180034563                                                  ; +0x1cc, 0x18003443c\nmov     rcx, [rbx+170h]                                                ; +0x1d1, 0x180034441\nlea     rdx, [rsp+68h+var_30]                                          ; +0x1d8, 0x180034448\ncall    sub_1800B3040                                                  ; +0x1dd, 0x18003444d\ntest    eax, eax                                                       ; +0x1e2, 0x180034452\njnz     loc_180034563                                                  ; +0x1e4, 0x180034454\nmov     rcx, [rsp+68h+var_30]                                          ; +0x1ea, 0x18003445a\ncall    sub_1800B7F50                                                  ; +0x1ef, 0x18003445f\nmov     rcx, [rsp+68h+var_30]                                          ; +0x1f4, 0x180034464\nlea     rdx, aPls; \".pls\"                                              ; +0x1f9, 0x180034469\nsub     eax, 4                                                         ; +0x200, 0x180034470\nmov     r8d, 4                                                         ; +0x203, 0x180034473\nmovsxd  rdi, eax                                                       ; +0x209, 0x180034479\nadd     rcx, rdi                                                       ; +0x20c, 0x18003447c\ncall    sub_1800B7FB0                                                  ; +0x20f, 0x18003447f\ntest    eax, eax                                                       ; +0x214, 0x180034484\njz      short loc_1800344E9                                            ; +0x216, 0x180034486\nmov     rcx, [rsp+68h+var_30]                                          ; +0x218, 0x180034488\nlea     rdx, aM3u; \".m3u\"                                              ; +0x21d, 0x18003448d\nadd     rcx, rdi                                                       ; +0x224, 0x180034494\nmov     r8d, 4                                                         ; +0x227, 0x180034497\ncall    sub_1800B7FB0                                                  ; +0x22d, 0x18003449d\ntest    eax, eax                                                       ; +0x232, 0x1800344a2\njz      short loc_1800344E9                                            ; +0x234, 0x1800344a4\nmov     rcx, [rsp+68h+var_30]                                          ; +0x236, 0x1800344a6\nlea     rdx, aAsx; \".asx\"                                              ; +0x23b, 0x1800344ab\nadd     rcx, rdi                                                       ; +0x242, 0x1800344b2\nmov     r8d, 4                                                         ; +0x245, 0x1800344b5\ncall    sub_1800B7FB0                                                  ; +0x24b, 0x1800344bb\ntest    eax, eax                                                       ; +0x250, 0x1800344c0\njz      short loc_1800344E9                                            ; +0x252, 0x1800344c2\nmov     rcx, [rsp+68h+var_30]                                          ; +0x254, 0x1800344c4\nlea     rdx, aWax; \".wax\"                                              ; +0x259, 0x1800344c9\nadd     rcx, rdi                                                       ; +0x260, 0x1800344d0\nmov     r8d, 4                                                         ; +0x263, 0x1800344d3\ncall    sub_1800B7FB0                                                  ; +0x269, 0x1800344d9\ntest    eax, eax                                                       ; +0x26e, 0x1800344de\njz      short loc_1800344E9                                            ; +0x270, 0x1800344e0\nmov     eax, 13h                                                       ; +0x272, 0x1800344e2\njmp     short loc_180034563                                            ; +0x277, 0x1800344e7\nmov     rcx, rbx                                                       ; +0x279, 0x1800344e9\ncall    sub_1800357C0                                                  ; +0x27c, 0x1800344ec\ntest    eax, eax                                                       ; +0x281, 0x1800344f1\njnz     short loc_180034563                                            ; +0x283, 0x1800344f3\nlea     rax, [rbx+178h]                                                ; +0x285, 0x1800344f5\nxorps   xmm0, xmm0                                                     ; +0x28c, 0x1800344fc\nmovups  xmmword ptr [rax], xmm0                                        ; +0x28f, 0x1800344ff\nxor     ecx, ecx                                                       ; +0x292, 0x180034502\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x294, 0x180034504\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x298, 0x180034508\nmov     [rax+30h], rcx                                                 ; +0x29c, 0x18003450c\nmov     rcx, [rbx+170h]                                                ; +0x2a0, 0x180034510\nmov     [rbx+8], rax                                                   ; +0x2a7, 0x180034517\nmov     [rbx+18h], esi                                                 ; +0x2ab, 0x18003451b\ncall    sub_1800B25E0                                                  ; +0x2ae, 0x18003451e\ntest    eax, eax                                                       ; +0x2b3, 0x180034523\njnz     short loc_180034563                                            ; +0x2b5, 0x180034525\nmov     rcx, cs:off_1801AED20                                          ; +0x2b7, 0x180034527\nlea     r8, aCBuildagent1Wo_9; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x2be, 0x18003452e\nmov     rdx, [rbx+170h]                                                ; +0x2c5, 0x180034535\nmov     r9d, 0B4h                                                      ; +0x2cc, 0x18003453c\nmov     byte ptr [rsp+68h+var_48], 1                                   ; +0x2d2, 0x180034542\nmov     rcx, [rcx+1A0h]                                                ; +0x2d7, 0x180034547\ncall    sub_1800B6AA0                                                  ; +0x2de, 0x18003454e\nor      dword ptr [rbx+2Ch], 400h                                      ; +0x2e3, 0x180034553\nxor     eax, eax                                                       ; +0x2ea, 0x18003455a\nmov     [rbx+170h], rsi                                                ; +0x2ec, 0x18003455c\nmov     rdi, [rsp+68h+arg_8]                                           ; +0x2f3, 0x180034563\nmov     rcx, [rsp+68h+var_18]                                          ; +0x2f8, 0x180034568\nxor     rcx, rsp; StackCookie                                          ; +0x2fd, 0x18003456d\ncall    __security_check_cookie                                        ; +0x300, 0x180034570\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x305, 0x180034575\nadd     rsp, 60h                                                       ; +0x30d, 0x18003457d\npop     rsi                                                            ; +0x311, 0x180034581\nretn                                                                   ; +0x312, 0x180034582", "xrefs": ["sub_180034260 @ 0x180034260", "<???> @ 0x18018024c", "<???> @ 0x18018025c", "<???> @ 0x1801f7a94"], "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"}