{"type": "func", "start": 6443354992, "end": 6443355126, "name": "sub_1800DCB70", "pseudocode": "// \n// sub_1800DCB70 from 0x1800dcb70 to 0x1800dcbf6 (134 bytes)\n// \n// 3 xrefs:\n// > sub_1800DC940 @ 0x1800dc9c0\n// > sub_1800DCFC0 @ 0x1800dcfe9\n// > <???> @ 0x1801ff5ac\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_1800DCB70(__int64 a1)\n{\n  int v1; // edx\n  const void *v3; // r9\n  int v4; // r8d\n  int v5; // edx\n  int v6; // edx\n  int v7; // edx\n  int v8; // eax\n  __int64 v9; // rcx\n\n  v1 = *(_DWORD *)(a1 + 40);\n  if ( (unsigned int)(v1 - 1) > 4 )\n    return 0;\n  v3 = *(const void **)(a1 + 368);\n  if ( !v3 )\n    return 0;\n  v4 = *(_DWORD *)(a1 + 104);\n  v5 = v1 - 1;\n  if ( v5 )\n  {\n    v6 = v5 - 1;\n    if ( !v6 )\n    {\n      v8 = 16;\n      goto LABEL_11;\n    }\n    v7 = v6 - 1;\n    if ( !v7 )\n    {\n      v8 = 24;\n      goto LABEL_11;\n    }\n    if ( (unsigned int)(v7 - 1) <= 1 )\n    {\n      v8 = 32;\n      goto LABEL_11;\n    }\n  }\n  v8 = 8;\nLABEL_11:\n  v9 = *(unsigned int *)(a1 + 384);\n  if ( (_DWORD)v9 )\n  {\n    memmove((void *)(*(_QWORD *)(a1 + 352) + v9), v3, (unsigned int)(v8 * v4));\n    *(_DWORD *)(a1 + 384) = 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800DCB70 from 0x1800dcb70 to 0x1800dcbf6 (134 bytes)\n; \n; 3 xrefs:\n; > sub_1800DC940 @ 0x1800dc9c0\n; > sub_1800DCFC0 @ 0x1800dcfe9\n; > <???> @ 0x1801ff5ac\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\npush    rbx                                                            ; +0x0, 0x1800dcb70\nsub     rsp, 20h                                                       ; +0x2, 0x1800dcb72\nmov     edx, [rcx+28h]                                                 ; +0x6, 0x1800dcb76\nmov     rbx, rcx                                                       ; +0x9, 0x1800dcb79\nlea     eax, [rdx-1]                                                   ; +0xc, 0x1800dcb7c\ncmp     eax, 4                                                         ; +0xf, 0x1800dcb7f\nja      short loc_1800DCBEE                                            ; +0x12, 0x1800dcb82\nmov     r9, [rcx+170h]                                                 ; +0x14, 0x1800dcb84\ntest    r9, r9                                                         ; +0x1b, 0x1800dcb8b\njz      short loc_1800DCBEE                                            ; +0x1e, 0x1800dcb8e\nmov     r8d, [rcx+68h]                                                 ; +0x20, 0x1800dcb90\nsub     edx, 1                                                         ; +0x24, 0x1800dcb94\njz      short loc_1800DCBC2                                            ; +0x27, 0x1800dcb97\nsub     edx, 1                                                         ; +0x29, 0x1800dcb99\njz      short loc_1800DCBBB                                            ; +0x2c, 0x1800dcb9c\nsub     edx, 1                                                         ; +0x2e, 0x1800dcb9e\njz      short loc_1800DCBB4                                            ; +0x31, 0x1800dcba1\nsub     edx, 1                                                         ; +0x33, 0x1800dcba3\njz      short loc_1800DCBAD                                            ; +0x36, 0x1800dcba6\ncmp     edx, 1                                                         ; +0x38, 0x1800dcba8\njnz     short loc_1800DCBC2                                            ; +0x3b, 0x1800dcbab\nmov     eax, 20h ; ' '                                                 ; +0x3d, 0x1800dcbad\njmp     short loc_1800DCBC7                                            ; +0x42, 0x1800dcbb2\nmov     eax, 18h                                                       ; +0x44, 0x1800dcbb4\njmp     short loc_1800DCBC7                                            ; +0x49, 0x1800dcbb9\nmov     eax, 10h                                                       ; +0x4b, 0x1800dcbbb\njmp     short loc_1800DCBC7                                            ; +0x50, 0x1800dcbc0\nmov     eax, 8                                                         ; +0x52, 0x1800dcbc2\nmov     ecx, [rcx+180h]                                                ; +0x57, 0x1800dcbc7\ntest    ecx, ecx                                                       ; +0x5d, 0x1800dcbcd\njz      short loc_1800DCBEE                                            ; +0x5f, 0x1800dcbcf\nadd     rcx, [rbx+160h]; void *                                        ; +0x61, 0x1800dcbd1\nmov     rdx, r9; Src                                                   ; +0x68, 0x1800dcbd8\nimul    r8d, eax; Size                                                 ; +0x6b, 0x1800dcbdb\ncall    memmove                                                        ; +0x6f, 0x1800dcbdf\nmov     dword ptr [rbx+180h], 0                                        ; +0x74, 0x1800dcbe4\nxor     eax, eax                                                       ; +0x7e, 0x1800dcbee\nadd     rsp, 20h                                                       ; +0x80, 0x1800dcbf0\npop     rbx                                                            ; +0x84, 0x1800dcbf4\nretn                                                                   ; +0x85, 0x1800dcbf5", "xrefs": ["sub_1800DC940 @ 0x1800dc9c0", "sub_1800DCFC0 @ 0x1800dcfe9", "<???> @ 0x1801ff5ac"], "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"}