{"type": "func", "start": 6442532512, "end": 6442532824, "name": "sub_180013EA0", "pseudocode": "// \n// sub_180013EA0 from 0x180013ea0 to 0x180013fd8 (312 bytes)\n// \n// 2 xrefs:\n// > sub_180013E20 @ 0x180013e38\n// > <???> @ 0x1801f6fd8\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:52:46 +0000\n// \n\n__int64 __fastcall sub_180013EA0(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // r8\n  _BYTE v4[8]; // [rsp+30h] [rbp-28h] BYREF\n  _BYTE v5[4]; // [rsp+38h] [rbp-20h] BYREF\n  unsigned int v6; // [rsp+3Ch] [rbp-1Ch]\n\n  *(_DWORD *)(a1 + 40) = 3;\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  *(_DWORD *)(a1 + 272) = 0;\n  *(_DWORD *)(a1 + 376) = 0;\n  *(_DWORD *)(a1 + 392) = 0;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v5, 1, 8, 0);\n  if ( !(_DWORD)result )\n  {\n    if ( (unsigned int)sub_1800B7FB0(v5, \"RIFF\", 4) )\n      return 19;\n    result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v4, 1, 4, 0);\n    if ( !(_DWORD)result )\n    {\n      if ( (unsigned int)sub_1800B7FB0(v4, \"DLS \", 4) )\n        return 19;\n      v3 = v6;\n      *(_DWORD *)(a1 + 272) = 0;\n      *(_DWORD *)(a1 + 396) = 0;\n      result = sub_180013FE0(a1, v4, v3);\n      if ( !(_DWORD)result )\n      {\n        if ( *(int *)(a1 + 376) <= 0 )\n          return 19;\n        *(_DWORD *)(a1 + 24) = *(_DWORD *)(a1 + 392);\n        return 0;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180013EA0 from 0x180013ea0 to 0x180013fd8 (312 bytes)\n; \n; 2 xrefs:\n; > sub_180013E20 @ 0x180013e38\n; > <???> @ 0x1801f6fd8\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:52:46 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180013ea0\npush    rdi                                                            ; +0x5, 0x180013ea5\nsub     rsp, 50h                                                       ; +0x6, 0x180013ea6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x180013eaa\nxor     rax, rsp                                                       ; +0x11, 0x180013eb1\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x180013eb4\nxor     edi, edi                                                       ; +0x19, 0x180013eb9\nmov     dword ptr [rcx+28h], 3                                         ; +0x1b, 0x180013ebb\nmov     rbx, rcx                                                       ; +0x22, 0x180013ec2\nmov     [rcx+120h], rdi                                                ; +0x25, 0x180013ec5\nmov     [rcx+128h], rdi                                                ; +0x2c, 0x180013ecc\nlea     rdx, [rsp+58h+var_20]                                          ; +0x33, 0x180013ed3\nmov     [rcx+130h], rdi                                                ; +0x38, 0x180013ed8\nmov     [rcx+148h], rdi                                                ; +0x3f, 0x180013edf\nlea     r9d, [rdi+8]                                                   ; +0x46, 0x180013ee6\nmov     [rcx+138h], rdi                                                ; +0x4a, 0x180013eea\nlea     r8d, [rdi+1]                                                   ; +0x51, 0x180013ef1\nmov     [rcx+168h], rdi                                                ; +0x55, 0x180013ef5\nmov     [rcx+18h], edi                                                 ; +0x5c, 0x180013efc\nmov     [rcx+8], rdi                                                   ; +0x5f, 0x180013eff\nmov     [rcx+110h], edi                                                ; +0x63, 0x180013f03\nmov     [rcx+178h], edi                                                ; +0x69, 0x180013f09\nmov     [rcx+188h], edi                                                ; +0x6f, 0x180013f0f\nmov     rcx, [rcx+170h]                                                ; +0x75, 0x180013f15\nmov     [rsp+58h+var_38], rdi                                          ; +0x7c, 0x180013f1c\ncall    sub_1800B3470                                                  ; +0x81, 0x180013f21\ntest    eax, eax                                                       ; +0x86, 0x180013f26\njnz     loc_180013FC0                                                  ; +0x88, 0x180013f28\nlea     r8d, [rdi+4]                                                   ; +0x8e, 0x180013f2e\nlea     rdx, aRiff; \"RIFF\"                                             ; +0x92, 0x180013f32\nlea     rcx, [rsp+58h+var_20]                                          ; +0x99, 0x180013f39\ncall    sub_1800B7FB0                                                  ; +0x9e, 0x180013f3e\ntest    eax, eax                                                       ; +0xa3, 0x180013f43\njz      short loc_180013F4E                                            ; +0xa5, 0x180013f45\nmov     eax, 13h                                                       ; +0xa7, 0x180013f47\njmp     short loc_180013FC0                                            ; +0xac, 0x180013f4c\nmov     rcx, [rbx+170h]                                                ; +0xae, 0x180013f4e\nlea     rdx, [rsp+58h+var_28]                                          ; +0xb5, 0x180013f55\nmov     r9d, 4                                                         ; +0xba, 0x180013f5a\nmov     [rsp+58h+var_38], rdi                                          ; +0xc0, 0x180013f60\nlea     r8d, [r9-3]                                                    ; +0xc5, 0x180013f65\ncall    sub_1800B3470                                                  ; +0xc9, 0x180013f69\ntest    eax, eax                                                       ; +0xce, 0x180013f6e\njnz     short loc_180013FC0                                            ; +0xd0, 0x180013f70\nlea     r8d, [rax+4]                                                   ; +0xd2, 0x180013f72\nlea     rdx, aDls; \"DLS \"                                              ; +0xd6, 0x180013f76\nlea     rcx, [rsp+58h+var_28]                                          ; +0xdd, 0x180013f7d\ncall    sub_1800B7FB0                                                  ; +0xe2, 0x180013f82\ntest    eax, eax                                                       ; +0xe7, 0x180013f87\njnz     short loc_180013F47                                            ; +0xe9, 0x180013f89\nmov     r8d, [rsp+58h+var_1C]                                          ; +0xeb, 0x180013f8b\nlea     rdx, [rsp+58h+var_28]                                          ; +0xf0, 0x180013f90\nmov     rcx, rbx                                                       ; +0xf5, 0x180013f95\nmov     [rbx+110h], edi                                                ; +0xf8, 0x180013f98\nmov     [rbx+18Ch], edi                                                ; +0xfe, 0x180013f9e\ncall    sub_180013FE0                                                  ; +0x104, 0x180013fa4\ntest    eax, eax                                                       ; +0x109, 0x180013fa9\njnz     short loc_180013FC0                                            ; +0x10b, 0x180013fab\ncmp     [rbx+178h], edi                                                ; +0x10d, 0x180013fad\njle     short loc_180013F47                                            ; +0x113, 0x180013fb3\nmov     ecx, [rbx+188h]                                                ; +0x115, 0x180013fb5\nmov     eax, edi                                                       ; +0x11b, 0x180013fbb\nmov     [rbx+18h], ecx                                                 ; +0x11d, 0x180013fbd\nmov     rcx, [rsp+58h+var_18]                                          ; +0x120, 0x180013fc0\nxor     rcx, rsp; StackCookie                                          ; +0x125, 0x180013fc5\ncall    __security_check_cookie                                        ; +0x128, 0x180013fc8\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x12d, 0x180013fcd\nadd     rsp, 50h                                                       ; +0x132, 0x180013fd2\npop     rdi                                                            ; +0x136, 0x180013fd6\nretn                                                                   ; +0x137, 0x180013fd7", "xrefs": ["sub_180013E20 @ 0x180013e38", "<???> @ 0x1801f6fd8"], "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"}