{"type": "func", "start": 6443006736, "end": 6443006898, "name": "sub_180087B10", "pseudocode": "// \n// sub_180087B10 from 0x180087b10 to 0x180087bb2 (162 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ae348\n// > <???> @ 0x1801fa284\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:53:41 +0000\n// \n\n__int64 __fastcall sub_180087B10(__int64 *a1, __int64 a2, void *a3, int a4, __int64 a5, _DWORD *a6)\n{\n  __int64 v6; // r10\n  int v7; // r9d\n  __int64 v9; // rcx\n  const void *v10; // rdx\n\n  v6 = *a1;\n  if ( a2 )\n  {\n    *a6 = *(_DWORD *)(v6 + 572);\n    v7 = *(_DWORD *)(v6 + 572) * a4;\n    if ( v7 > *(_DWORD *)(v6 + 576) )\n      return 28;\n    v9 = *(_QWORD *)(v6 + 8);\n    if ( v9 == *(_QWORD *)(v6 + 584) )\n    {\n      v10 = *(const void **)(v6 + 552);\n    }\n    else\n    {\n      v10 = *(const void **)(v6 + 560);\n      *(_QWORD *)(v6 + 560) = *(_QWORD *)(v6 + 552);\n      *(_BYTE *)(v6 + 592) = *(_BYTE *)(v6 + 593);\n      *(_QWORD *)(v6 + 552) = v10;\n      *(_BYTE *)(v6 + 593) = 0;\n      *(_QWORD *)(v6 + 584) = v9;\n    }\n    memmove(a3, v10, 4LL * v7);\n  }\n  return 0;\n}", "assembly": "; \n; sub_180087B10 from 0x180087b10 to 0x180087bb2 (162 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ae348\n; > <???> @ 0x1801fa284\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:53:41 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x180087b10\nmov     r10, [rcx]                                                     ; +0x4, 0x180087b14\nmov     r11, r8                                                        ; +0x7, 0x180087b17\ntest    rdx, rdx                                                       ; +0xa, 0x180087b1a\njz      loc_180087BAB                                                  ; +0xd, 0x180087b1d\nmov     rax, [rsp+28h+arg_28]                                          ; +0x13, 0x180087b23\nmov     ecx, [r10+23Ch]                                                ; +0x18, 0x180087b28\nmov     [rax], ecx                                                     ; +0x1f, 0x180087b2f\nimul    r9d, [r10+23Ch]                                                ; +0x21, 0x180087b31\ncmp     r9d, [r10+240h]                                                ; +0x29, 0x180087b39\njle     short loc_180087B4C                                            ; +0x30, 0x180087b40\nmov     eax, 1Ch                                                       ; +0x32, 0x180087b42\nadd     rsp, 28h                                                       ; +0x37, 0x180087b47\nretn                                                                   ; +0x3b, 0x180087b4b\nmov     rcx, [r10+8]                                                   ; +0x3c, 0x180087b4c\ncmp     rcx, [r10+248h]                                                ; +0x40, 0x180087b50\njz      short loc_180087B95                                            ; +0x47, 0x180087b57\nmov     rax, [r10+228h]                                                ; +0x49, 0x180087b59\nmov     rdx, [r10+230h]                                                ; +0x50, 0x180087b60\nmov     [r10+230h], rax                                                ; +0x57, 0x180087b67\nmovzx   eax, byte ptr [r10+251h]                                       ; +0x5e, 0x180087b6e\nmov     [r10+250h], al                                                 ; +0x66, 0x180087b76\nmov     [r10+228h], rdx                                                ; +0x6d, 0x180087b7d\nmov     byte ptr [r10+251h], 0                                         ; +0x74, 0x180087b84\nmov     [r10+248h], rcx                                                ; +0x7c, 0x180087b8c\njmp     short loc_180087B9C                                            ; +0x83, 0x180087b93\nmov     rdx, [r10+228h]; Src                                           ; +0x85, 0x180087b95\nmovsxd  r8, r9d                                                        ; +0x8c, 0x180087b9c\nmov     rcx, r11; void *                                               ; +0x8f, 0x180087b9f\nshl     r8, 2; Size                                                    ; +0x92, 0x180087ba2\ncall    memmove                                                        ; +0x96, 0x180087ba6\nxor     eax, eax                                                       ; +0x9b, 0x180087bab\nadd     rsp, 28h                                                       ; +0x9d, 0x180087bad\nretn                                                                   ; +0xa1, 0x180087bb1", "xrefs": ["<???> @ 0x1801ae348", "<???> @ 0x1801fa284"], "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"}