{"type": "func", "start": 6442623520, "end": 6442623754, "name": "sub_18002A220", "pseudocode": "// \n// sub_18002A220 from 0x18002a220 to 0x18002a30a (234 bytes)\n// \n// 4 xrefs:\n// > sub_180028B10 @ 0x180028b60\n// > <???> @ 0x18017fc78\n// > <???> @ 0x18017fcac\n// > <???> @ 0x1801f7770\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_18002A220(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v3; // eax\n  int v6; // edi\n  __int64 v7; // rsi\n  int v9; // [rsp+20h] [rbp-28h]\n  int v10; // [rsp+30h] [rbp-18h]\n\n  v3 = *(_DWORD *)(a1 + 448);\n  if ( v3 && *(_QWORD *)(a1 + 440) )\n  {\n    v6 = 0;\n    if ( v3 > 0 )\n    {\n      v7 = 0;\n      do\n      {\n        LOBYTE(v10) = 0;\n        (*(void (__fastcall **)(__int64, _QWORD, __int64, _QWORD, _QWORD, _DWORD, int))(*(_QWORD *)a3 + 264LL))(\n          a3,\n          *(unsigned int *)(v7 + *(_QWORD *)(a1 + 440) + 48),\n          2,\n          *(_QWORD *)(v7 + *(_QWORD *)(a1 + 440) + 32),\n          0,\n          0,\n          v10);\n        ++v6;\n        v7 += 316;\n      }\n      while ( v6 < *(_DWORD *)(a1 + 448) );\n    }\n    sub_1800E12D0(a3);\n    LOBYTE(v9) = 1;\n    sub_1800B6AA0(\n      *((_QWORD *)off_1801AED20 + 52),\n      *(_QWORD *)(a1 + 440),\n      \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_mpeg.cpp\",\n      1170,\n      v9);\n    *(_QWORD *)(a1 + 440) = 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_18002A220 from 0x18002a220 to 0x18002a30a (234 bytes)\n; \n; 4 xrefs:\n; > sub_180028B10 @ 0x180028b60\n; > <???> @ 0x18017fc78\n; > <???> @ 0x18017fcac\n; > <???> @ 0x1801f7770\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_18], rbx                                              ; +0x0, 0x18002a220\npush    r14                                                            ; +0x5, 0x18002a225\nsub     rsp, 40h                                                       ; +0x7, 0x18002a227\nmov     eax, [rcx+1C0h]                                                ; +0xb, 0x18002a22b\nmov     r14, r8                                                        ; +0x11, 0x18002a231\nmov     rbx, rcx                                                       ; +0x14, 0x18002a234\ntest    eax, eax                                                       ; +0x17, 0x18002a237\njz      loc_18002A2FC                                                  ; +0x19, 0x18002a239\ncmp     qword ptr [rcx+1B8h], 0                                        ; +0x1f, 0x18002a23f\njz      loc_18002A2FC                                                  ; +0x27, 0x18002a247\nmov     [rsp+48h+arg_0], rbp                                           ; +0x2d, 0x18002a24d\nxor     ebp, ebp                                                       ; +0x32, 0x18002a252\nmov     [rsp+48h+arg_10], rdi                                          ; +0x34, 0x18002a254\nmov     edi, ebp                                                       ; +0x39, 0x18002a259\ntest    eax, eax                                                       ; +0x3b, 0x18002a25b\njle     short loc_18002A2B7                                            ; +0x3d, 0x18002a25d\nmov     [rsp+48h+arg_8], rsi                                           ; +0x3f, 0x18002a25f\nmov     esi, ebp                                                       ; +0x44, 0x18002a264\nnop     word ptr [rax+rax+00000000h]                                   ; +0x46, 0x18002a266\nmov     rax, [rbx+1B8h]                                                ; +0x50, 0x18002a270\nmov     r8d, 2                                                         ; +0x57, 0x18002a277\nmov     r10, [r14]                                                     ; +0x5d, 0x18002a27d\nmov     rcx, r14                                                       ; +0x60, 0x18002a280\nmov     byte ptr [rsp+48h+var_18], bpl                                 ; +0x63, 0x18002a283\nmov     [rsp+48h+var_20], ebp                                          ; +0x68, 0x18002a288\nmov     r9, [rsi+rax+20h]                                              ; +0x6c, 0x18002a28c\nmov     edx, [rsi+rax+30h]                                             ; +0x71, 0x18002a291\nmov     [rsp+48h+var_28], rbp                                          ; +0x75, 0x18002a295\ncall    qword ptr [r10+108h]                                           ; +0x7a, 0x18002a29a\ninc     edi                                                            ; +0x81, 0x18002a2a1\nlea     rsi, [rsi+13Ch]                                                ; +0x83, 0x18002a2a3\ncmp     edi, [rbx+1C0h]                                                ; +0x8a, 0x18002a2aa\njl      short loc_18002A270                                            ; +0x90, 0x18002a2b0\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x92, 0x18002a2b2\nmov     rcx, r14                                                       ; +0x97, 0x18002a2b7\ncall    sub_1800E12D0                                                  ; +0x9a, 0x18002a2ba\nmov     rcx, cs:off_1801AED20                                          ; +0x9f, 0x18002a2bf\nlea     r8, aCBuildagent1Wo_7; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xa6, 0x18002a2c6\nmov     rdx, [rbx+1B8h]                                                ; +0xad, 0x18002a2cd\nmov     r9d, 492h                                                      ; +0xb4, 0x18002a2d4\nmov     byte ptr [rsp+48h+var_28], 1                                   ; +0xba, 0x18002a2da\nmov     rcx, [rcx+1A0h]                                                ; +0xbf, 0x18002a2df\ncall    sub_1800B6AA0                                                  ; +0xc6, 0x18002a2e6\nmov     rdi, [rsp+48h+arg_10]                                          ; +0xcb, 0x18002a2eb\nmov     [rbx+1B8h], rbp                                                ; +0xd0, 0x18002a2f0\nmov     rbp, [rsp+48h+arg_0]                                           ; +0xd7, 0x18002a2f7\nmov     rbx, [rsp+48h+arg_18]                                          ; +0xdc, 0x18002a2fc\nxor     eax, eax                                                       ; +0xe1, 0x18002a301\nadd     rsp, 40h                                                       ; +0xe3, 0x18002a303\npop     r14                                                            ; +0xe7, 0x18002a307\nretn                                                                   ; +0xe9, 0x18002a309", "xrefs": ["sub_180028B10 @ 0x180028b60", "<???> @ 0x18017fc78", "<???> @ 0x18017fcac", "<???> @ 0x1801f7770"], "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"}