{"type": "func", "start": 6443339216, "end": 6443339773, "name": "sub_1800D8DD0", "pseudocode": "// \n// sub_1800D8DD0 from 0x1800d8dd0 to 0x1800d8ffd (557 bytes)\n// \n// 20 xrefs:\n// > sub_1800E66F0 @ 0x1800e67f8\n// > sub_1800E7B20 @ 0x1800e7c88\n// > sub_1800E7B20 @ 0x1800e7cb4\n// > sub_1800E7B20 @ 0x1800e7cdc\n// > sub_1800E7B20 @ 0x1800e7d04\n// > sub_1800E7B20 @ 0x1800e7d2c\n// > sub_1800E7B20 @ 0x1800e7d54\n// > sub_1800E7B20 @ 0x1800e7d7c\n// > sub_1800E7B20 @ 0x1800e7da4\n// > sub_1800E7B20 @ 0x1800e7dcc\n// > sub_1800E7B20 @ 0x1800e7df4\n// > sub_1800E7B20 @ 0x1800e7e1c\n// > sub_1800E7B20 @ 0x1800e7e44\n// > sub_1800E7B20 @ 0x1800e7e70\n// > sub_1800E7B20 @ 0x1800e7e98\n// > sub_1800E7B20 @ 0x1800e7ec0\n// > sub_1800E7B20 @ 0x1800e7ee8\n// > <???> @ 0x18018c578\n// > <???> @ 0x18018c588\n// > <???> @ 0x1801ff0d8\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_1800D8DD0(__int64 a1, __int64 a2, _DWORD *a3, unsigned int a4, __int64 a5)\n{\n  _DWORD *v10; // rax\n  _DWORD *v11; // rbx\n\n  if ( !a2 )\n    return 31;\n  if ( *(_DWORD *)a2 != 1 )\n    return 56;\n  v10 = sub_1800B6880(\n          *((_QWORD *)off_1801AED20 + 52),\n          264,\n          \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_pluginfactory.cpp\",\n          763,\n          0);\n  v11 = v10;\n  if ( !v10 )\n    return 38;\n  v10[6] = -1;\n  *(_QWORD *)v10 = v10;\n  *((_QWORD *)v10 + 1) = v10;\n  *((_QWORD *)v10 + 2) = 0;\n  *((_QWORD *)v10 + 32) = a5;\n  v10[8] = *(_DWORD *)a2;\n  *((_QWORD *)v10 + 5) = *(_QWORD *)(a2 + 8);\n  v10[12] = *(_DWORD *)(a2 + 16);\n  v10[14] = *(_DWORD *)(a2 + 24);\n  v10[13] = *(_DWORD *)(a2 + 20);\n  *((_QWORD *)v10 + 8) = *(_QWORD *)(a2 + 32);\n  *((_QWORD *)v10 + 9) = *(_QWORD *)(a2 + 40);\n  *((_QWORD *)v10 + 10) = *(_QWORD *)(a2 + 48);\n  *((_QWORD *)v10 + 11) = *(_QWORD *)(a2 + 56);\n  *((_QWORD *)v10 + 12) = *(_QWORD *)(a2 + 64);\n  *((_QWORD *)v10 + 13) = *(_QWORD *)(a2 + 72);\n  *((_QWORD *)v10 + 14) = *(_QWORD *)(a2 + 80);\n  *((_QWORD *)v10 + 15) = *(_QWORD *)(a2 + 88);\n  v10[32] = *(_DWORD *)(a2 + 96);\n  v10[33] = *(_DWORD *)(a2 + 100);\n  *((_QWORD *)v10 + 17) = *(_QWORD *)(a2 + 104);\n  v10[37] = *(_DWORD *)(a2 + 116);\n  *((_QWORD *)v10 + 20) = *(_QWORD *)(a2 + 128);\n  *((_QWORD *)v10 + 21) = *(_QWORD *)(a2 + 136);\n  *((_QWORD *)v10 + 22) = *(_QWORD *)(a2 + 144);\n  *((_QWORD *)v10 + 23) = *(_QWORD *)(a2 + 152);\n  *((_QWORD *)v10 + 24) = *(_QWORD *)(a2 + 160);\n  *((_QWORD *)v10 + 25) = *(_QWORD *)(a2 + 168);\n  *((_QWORD *)v10 + 26) = *(_QWORD *)(a2 + 176);\n  *((_QWORD *)v10 + 27) = *(_QWORD *)(a2 + 184);\n  *((_QWORD *)v10 + 28) = *(_QWORD *)(a2 + 192);\n  *((_QWORD *)v10 + 29) = *(_QWORD *)(a2 + 200);\n  *((_QWORD *)v10 + 30) = *(_QWORD *)(a2 + 208);\n  *((_QWORD *)v10 + 31) = *(_QWORD *)(a2 + 216);\n  v10[36] = (*(_DWORD *)(a1 + 936))++;\n  *((_QWORD *)v10 + 19) = *(_QWORD *)(a2 + 120);\n  sub_1800CCC80((__int64)v10, (__int64 **)(a1 + 384), a1 + 384, a4);\n  if ( a3 )\n    *a3 = v11[36];\n  return 0;\n}", "assembly": "; \n; sub_1800D8DD0 from 0x1800d8dd0 to 0x1800d8ffd (557 bytes)\n; \n; 20 xrefs:\n; > sub_1800E66F0 @ 0x1800e67f8\n; > sub_1800E7B20 @ 0x1800e7c88\n; > sub_1800E7B20 @ 0x1800e7cb4\n; > sub_1800E7B20 @ 0x1800e7cdc\n; > sub_1800E7B20 @ 0x1800e7d04\n; > sub_1800E7B20 @ 0x1800e7d2c\n; > sub_1800E7B20 @ 0x1800e7d54\n; > sub_1800E7B20 @ 0x1800e7d7c\n; > sub_1800E7B20 @ 0x1800e7da4\n; > sub_1800E7B20 @ 0x1800e7dcc\n; > sub_1800E7B20 @ 0x1800e7df4\n; > sub_1800E7B20 @ 0x1800e7e1c\n; > sub_1800E7B20 @ 0x1800e7e44\n; > sub_1800E7B20 @ 0x1800e7e70\n; > sub_1800E7B20 @ 0x1800e7e98\n; > sub_1800E7B20 @ 0x1800e7ec0\n; > sub_1800E7B20 @ 0x1800e7ee8\n; > <???> @ 0x18018c578\n; > <???> @ 0x18018c588\n; > <???> @ 0x1801ff0d8\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_8], rbp                                               ; +0x0, 0x1800d8dd0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800d8dd5\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1800d8dda\npush    r14                                                            ; +0xf, 0x1800d8ddf\nsub     rsp, 30h                                                       ; +0x11, 0x1800d8de1\nmov     r14d, r9d                                                      ; +0x15, 0x1800d8de5\nmov     rsi, r8                                                        ; +0x18, 0x1800d8de8\nmov     rdi, rdx                                                       ; +0x1b, 0x1800d8deb\nmov     rbp, rcx                                                       ; +0x1e, 0x1800d8dee\ntest    rdx, rdx                                                       ; +0x21, 0x1800d8df1\njnz     short loc_1800D8DFE                                            ; +0x24, 0x1800d8df4\nlea     eax, [rdx+1Fh]                                                 ; +0x26, 0x1800d8df6\njmp     loc_1800D8FE7                                                  ; +0x29, 0x1800d8df9\ncmp     dword ptr [rdx], 1                                             ; +0x2e, 0x1800d8dfe\njz      short loc_1800D8E0D                                            ; +0x31, 0x1800d8e01\nmov     eax, 38h ; '8'                                                 ; +0x33, 0x1800d8e03\njmp     loc_1800D8FE7                                                  ; +0x38, 0x1800d8e08\nmov     rcx, cs:off_1801AED20                                          ; +0x3d, 0x1800d8e0d\nlea     r8, aCBuildagent1Wo_57; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x44, 0x1800d8e14\nmov     r9d, 2FBh                                                      ; +0x4b, 0x1800d8e1b\nmov     [rsp+38h+arg_0], rbx                                           ; +0x51, 0x1800d8e21\nmov     edx, 108h                                                      ; +0x56, 0x1800d8e26\nmov     [rsp+38h+var_18], 0                                            ; +0x5b, 0x1800d8e2b\nmov     rcx, [rcx+1A0h]                                                ; +0x63, 0x1800d8e33\ncall    sub_1800B6880                                                  ; +0x6a, 0x1800d8e3a\nmov     rbx, rax                                                       ; +0x6f, 0x1800d8e3f\ntest    rax, rax                                                       ; +0x72, 0x1800d8e42\njz      loc_1800D8FDD                                                  ; +0x75, 0x1800d8e45\nmov     dword ptr [rax+18h], 0FFFFFFFFh                                ; +0x7b, 0x1800d8e4b\nlea     rdx, [rbp+180h]                                                ; +0x82, 0x1800d8e52\nmov     [rax], rax                                                     ; +0x89, 0x1800d8e59\nmov     r9d, r14d                                                      ; +0x8c, 0x1800d8e5c\nmov     [rax+8], rax                                                   ; +0x8f, 0x1800d8e5f\nmov     r8, rdx                                                        ; +0x93, 0x1800d8e63\nmov     qword ptr [rax+10h], 0                                         ; +0x96, 0x1800d8e66\nmov     rcx, [rsp+38h+arg_20]                                          ; +0x9e, 0x1800d8e6e\nmov     [rax+100h], rcx                                                ; +0xa3, 0x1800d8e73\nmov     ecx, [rdi]                                                     ; +0xaa, 0x1800d8e7a\nmov     [rax+20h], ecx                                                 ; +0xac, 0x1800d8e7c\nmov     rcx, [rdi+8]                                                   ; +0xaf, 0x1800d8e7f\nmov     [rax+28h], rcx                                                 ; +0xb3, 0x1800d8e83\nmov     ecx, [rdi+10h]                                                 ; +0xb7, 0x1800d8e87\nmov     [rax+30h], ecx                                                 ; +0xba, 0x1800d8e8a\nmov     rcx, rbx                                                       ; +0xbd, 0x1800d8e8d\nmov     eax, [rdi+18h]                                                 ; +0xc0, 0x1800d8e90\nmov     [rbx+38h], eax                                                 ; +0xc3, 0x1800d8e93\nmov     eax, [rdi+14h]                                                 ; +0xc6, 0x1800d8e96\nmov     [rbx+34h], eax                                                 ; +0xc9, 0x1800d8e99\nmov     rax, [rdi+20h]                                                 ; +0xcc, 0x1800d8e9c\nmov     [rbx+40h], rax                                                 ; +0xd0, 0x1800d8ea0\nmov     rax, [rdi+28h]                                                 ; +0xd4, 0x1800d8ea4\nmov     [rbx+48h], rax                                                 ; +0xd8, 0x1800d8ea8\nmov     rax, [rdi+30h]                                                 ; +0xdc, 0x1800d8eac\nmov     [rbx+50h], rax                                                 ; +0xe0, 0x1800d8eb0\nmov     rax, [rdi+38h]                                                 ; +0xe4, 0x1800d8eb4\nmov     [rbx+58h], rax                                                 ; +0xe8, 0x1800d8eb8\nmov     rax, [rdi+40h]                                                 ; +0xec, 0x1800d8ebc\nmov     [rbx+60h], rax                                                 ; +0xf0, 0x1800d8ec0\nmov     rax, [rdi+48h]                                                 ; +0xf4, 0x1800d8ec4\nmov     [rbx+68h], rax                                                 ; +0xf8, 0x1800d8ec8\nmov     rax, [rdi+50h]                                                 ; +0xfc, 0x1800d8ecc\nmov     [rbx+70h], rax                                                 ; +0x100, 0x1800d8ed0\nmov     rax, [rdi+58h]                                                 ; +0x104, 0x1800d8ed4\nmov     [rbx+78h], rax                                                 ; +0x108, 0x1800d8ed8\nmov     eax, [rdi+60h]                                                 ; +0x10c, 0x1800d8edc\nmov     [rbx+80h], eax                                                 ; +0x10f, 0x1800d8edf\nmov     eax, [rdi+64h]                                                 ; +0x115, 0x1800d8ee5\nmov     [rbx+84h], eax                                                 ; +0x118, 0x1800d8ee8\nmov     rax, [rdi+68h]                                                 ; +0x11e, 0x1800d8eee\nmov     [rbx+88h], rax                                                 ; +0x122, 0x1800d8ef2\nmov     eax, [rdi+74h]                                                 ; +0x129, 0x1800d8ef9\nmov     [rbx+94h], eax                                                 ; +0x12c, 0x1800d8efc\nmov     rax, [rdi+80h]                                                 ; +0x132, 0x1800d8f02\nmov     [rbx+0A0h], rax                                                ; +0x139, 0x1800d8f09\nmov     rax, [rdi+88h]                                                 ; +0x140, 0x1800d8f10\nmov     [rbx+0A8h], rax                                                ; +0x147, 0x1800d8f17\nmov     rax, [rdi+90h]                                                 ; +0x14e, 0x1800d8f1e\nmov     [rbx+0B0h], rax                                                ; +0x155, 0x1800d8f25\nmov     rax, [rdi+98h]                                                 ; +0x15c, 0x1800d8f2c\nmov     [rbx+0B8h], rax                                                ; +0x163, 0x1800d8f33\nmov     rax, [rdi+0A0h]                                                ; +0x16a, 0x1800d8f3a\nmov     [rbx+0C0h], rax                                                ; +0x171, 0x1800d8f41\nmov     rax, [rdi+0A8h]                                                ; +0x178, 0x1800d8f48\nmov     [rbx+0C8h], rax                                                ; +0x17f, 0x1800d8f4f\nmov     rax, [rdi+0B0h]                                                ; +0x186, 0x1800d8f56\nmov     [rbx+0D0h], rax                                                ; +0x18d, 0x1800d8f5d\nmov     rax, [rdi+0B8h]                                                ; +0x194, 0x1800d8f64\nmov     [rbx+0D8h], rax                                                ; +0x19b, 0x1800d8f6b\nmov     rax, [rdi+0C0h]                                                ; +0x1a2, 0x1800d8f72\nmov     [rbx+0E0h], rax                                                ; +0x1a9, 0x1800d8f79\nmov     rax, [rdi+0C8h]                                                ; +0x1b0, 0x1800d8f80\nmov     [rbx+0E8h], rax                                                ; +0x1b7, 0x1800d8f87\nmov     rax, [rdi+0D0h]                                                ; +0x1be, 0x1800d8f8e\nmov     [rbx+0F0h], rax                                                ; +0x1c5, 0x1800d8f95\nmov     rax, [rdi+0D8h]                                                ; +0x1cc, 0x1800d8f9c\nmov     [rbx+0F8h], rax                                                ; +0x1d3, 0x1800d8fa3\nmov     eax, [rbp+3A8h]                                                ; +0x1da, 0x1800d8faa\nmov     [rbx+90h], eax                                                 ; +0x1e0, 0x1800d8fb0\ninc     dword ptr [rbp+3A8h]                                           ; +0x1e6, 0x1800d8fb6\nmov     rax, [rdi+78h]                                                 ; +0x1ec, 0x1800d8fbc\nmov     [rbx+98h], rax                                                 ; +0x1f0, 0x1800d8fc0\ncall    sub_1800CCC80                                                  ; +0x1f7, 0x1800d8fc7\ntest    rsi, rsi                                                       ; +0x1fc, 0x1800d8fcc\njz      short loc_1800D8FD9                                            ; +0x1ff, 0x1800d8fcf\nmov     eax, [rbx+90h]                                                 ; +0x201, 0x1800d8fd1\nmov     [rsi], eax                                                     ; +0x207, 0x1800d8fd7\nxor     eax, eax                                                       ; +0x209, 0x1800d8fd9\njmp     short loc_1800D8FE2                                            ; +0x20b, 0x1800d8fdb\nmov     eax, 26h ; '&'                                                 ; +0x20d, 0x1800d8fdd\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x212, 0x1800d8fe2\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x217, 0x1800d8fe7\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x21c, 0x1800d8fec\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x221, 0x1800d8ff1\nadd     rsp, 30h                                                       ; +0x226, 0x1800d8ff6\npop     r14                                                            ; +0x22a, 0x1800d8ffa\nretn                                                                   ; +0x22c, 0x1800d8ffc", "xrefs": ["sub_1800E66F0 @ 0x1800e67f8", "sub_1800E7B20 @ 0x1800e7c88", "sub_1800E7B20 @ 0x1800e7cb4", "sub_1800E7B20 @ 0x1800e7cdc", "sub_1800E7B20 @ 0x1800e7d04", "sub_1800E7B20 @ 0x1800e7d2c", "sub_1800E7B20 @ 0x1800e7d54", "sub_1800E7B20 @ 0x1800e7d7c", "sub_1800E7B20 @ 0x1800e7da4", "sub_1800E7B20 @ 0x1800e7dcc", "sub_1800E7B20 @ 0x1800e7df4", "sub_1800E7B20 @ 0x1800e7e1c", "sub_1800E7B20 @ 0x1800e7e44", "sub_1800E7B20 @ 0x1800e7e70", "sub_1800E7B20 @ 0x1800e7e98", "sub_1800E7B20 @ 0x1800e7ec0", "sub_1800E7B20 @ 0x1800e7ee8", "<???> @ 0x18018c578", "<???> @ 0x18018c588", "<???> @ 0x1801ff0d8"], "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"}