{"type": "func", "start": 6443322288, "end": 6443322523, "name": "sub_1800D4BB0", "pseudocode": "// \n// sub_1800D4BB0 from 0x1800d4bb0 to 0x1800d4c9b (235 bytes)\n// \n// 3 xrefs:\n// > sub_1800D4660 @ 0x1800d471f\n// > sub_1800D4730 @ 0x1800d4842\n// > <???> @ 0x1801fee5c\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_1800D4BB0(__int64 a1, const void *a2, unsigned int a3)\n{\n  _DWORD *v4; // rdi\n  size_t v6; // rsi\n  void *v7; // rax\n  char v9; // [rsp+30h] [rbp-18h]\n\n  v4 = *(_DWORD **)(a1 + 40);\n  v6 = a3;\n  if ( *(_DWORD *)(a1 + 56) != a3 || memcmp(*(const void **)(a1 + 40), a2, a3) )\n  {\n    if ( v4 )\n    {\n      sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v4);\n      *(_QWORD *)(a1 + 40) = 0;\n    }\n    v9 = 1;\n    v7 = sub_1800B6530(\n           *((_QWORD *)off_1801AED20 + 52),\n           (unsigned int)v6,\n           \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_metadata.cpp\",\n           129,\n           0,\n           0,\n           v9);\n    *(_QWORD *)(a1 + 40) = v7;\n    if ( !v7 )\n      return 38;\n    memmove(v7, a2, v6);\n    *(_DWORD *)(a1 + 56) = v6;\n  }\n  *(_BYTE *)(a1 + 60) = 1;\n  return 0;\n}", "assembly": "; \n; sub_1800D4BB0 from 0x1800d4bb0 to 0x1800d4c9b (235 bytes)\n; \n; 3 xrefs:\n; > sub_1800D4660 @ 0x1800d471f\n; > sub_1800D4730 @ 0x1800d4842\n; > <???> @ 0x1801fee5c\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_0], rbx                                               ; +0x0, 0x1800d4bb0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800d4bb5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800d4bba\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800d4bbf\npush    r14                                                            ; +0x14, 0x1800d4bc4\nsub     rsp, 40h                                                       ; +0x16, 0x1800d4bc6\nmov     rbp, rdx                                                       ; +0x1a, 0x1800d4bca\nmov     rdi, [rcx+28h]                                                 ; +0x1d, 0x1800d4bcd\nmov     rbx, rcx                                                       ; +0x21, 0x1800d4bd1\nmov     esi, r8d                                                       ; +0x24, 0x1800d4bd4\ncmp     [rcx+38h], r8d                                                 ; +0x27, 0x1800d4bd7\njnz     short loc_1800D4BF0                                            ; +0x2b, 0x1800d4bdb\nmov     r8d, esi; Size                                                 ; +0x2d, 0x1800d4bdd\nmov     rcx, rdi; Buf1                                                 ; +0x30, 0x1800d4be0\ncall    memcmp                                                         ; +0x33, 0x1800d4be3\ntest    eax, eax                                                       ; +0x38, 0x1800d4be8\njz      loc_1800D4C7A                                                  ; +0x3a, 0x1800d4bea\ntest    rdi, rdi                                                       ; +0x40, 0x1800d4bf0\njz      short loc_1800D4C25                                            ; +0x43, 0x1800d4bf3\nmov     rcx, cs:off_1801AED20                                          ; +0x45, 0x1800d4bf5\nlea     r8, aCBuildagent1Wo_55; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x4c, 0x1800d4bfc\nmov     r9d, 7Dh ; '}'                                                 ; +0x53, 0x1800d4c03\nmov     byte ptr [rsp+48h+var_28], 1                                   ; +0x59, 0x1800d4c09\nmov     rdx, rdi                                                       ; +0x5e, 0x1800d4c0e\nmov     rcx, [rcx+1A0h]                                                ; +0x61, 0x1800d4c11\ncall    sub_1800B6AA0                                                  ; +0x68, 0x1800d4c18\nmov     qword ptr [rbx+28h], 0                                         ; +0x6d, 0x1800d4c1d\nmov     rcx, cs:off_1801AED20                                          ; +0x75, 0x1800d4c25\nlea     r8, aCBuildagent1Wo_55; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x7c, 0x1800d4c2c\nmov     [rsp+48h+var_18], 1                                            ; +0x83, 0x1800d4c33\nmov     r9d, 81h                                                       ; +0x88, 0x1800d4c38\nmov     [rsp+48h+var_20], 0                                            ; +0x8e, 0x1800d4c3e\nmov     edx, esi                                                       ; +0x93, 0x1800d4c43\nmov     [rsp+48h+var_28], 0                                            ; +0x95, 0x1800d4c45\nmov     rcx, [rcx+1A0h]                                                ; +0x9d, 0x1800d4c4d\ncall    sub_1800B6530                                                  ; +0xa4, 0x1800d4c54\nmov     [rbx+28h], rax                                                 ; +0xa9, 0x1800d4c59\ntest    rax, rax                                                       ; +0xad, 0x1800d4c5d\njnz     short loc_1800D4C69                                            ; +0xb0, 0x1800d4c60\nmov     eax, 26h ; '&'                                                 ; +0xb2, 0x1800d4c62\njmp     short loc_1800D4C80                                            ; +0xb7, 0x1800d4c67\nmov     r8, rsi; Size                                                  ; +0xb9, 0x1800d4c69\nmov     rdx, rbp; Src                                                  ; +0xbc, 0x1800d4c6c\nmov     rcx, rax; void *                                               ; +0xbf, 0x1800d4c6f\ncall    memmove                                                        ; +0xc2, 0x1800d4c72\nmov     [rbx+38h], esi                                                 ; +0xc7, 0x1800d4c77\nxor     eax, eax                                                       ; +0xca, 0x1800d4c7a\nmov     byte ptr [rbx+3Ch], 1                                          ; +0xcc, 0x1800d4c7c\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xd0, 0x1800d4c80\nmov     rbp, [rsp+48h+arg_8]                                           ; +0xd5, 0x1800d4c85\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xda, 0x1800d4c8a\nmov     rdi, [rsp+48h+arg_18]                                          ; +0xdf, 0x1800d4c8f\nadd     rsp, 40h                                                       ; +0xe4, 0x1800d4c94\npop     r14                                                            ; +0xe8, 0x1800d4c98\nretn                                                                   ; +0xea, 0x1800d4c9a", "xrefs": ["sub_1800D4660 @ 0x1800d471f", "sub_1800D4730 @ 0x1800d4842", "<???> @ 0x1801fee5c"], "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"}