{"type": "func", "start": 6443006432, "end": 6443006625, "name": "sub_1800879E0", "pseudocode": "// \n// sub_1800879E0 from 0x1800879e0 to 0x180087aa1 (193 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ae330\n// > <???> @ 0x1801fa26c\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_1800879E0(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  __int64 v4; // rbx\n  _QWORD *v5; // rax\n  __int64 v6; // rdx\n  int v7; // ecx\n  int v8; // eax\n  __int64 v9; // rcx\n  __int64 result; // rax\n  __int64 v11; // r8\n  __int64 v12; // [rsp+30h] [rbp+8h] BYREF\n\n  v4 = *a1;\n  LOBYTE(a4) = 1;\n  v5 = (_QWORD *)(*a1 + 608LL);\n  v5[2] = 0;\n  v5[1] = v5;\n  *v5 = v5;\n  v6 = *(_QWORD *)(v4 + 168);\n  v7 = *(_DWORD *)(v6 + 74136);\n  v8 = v7 + 1;\n  if ( v7 == 0x7FFFFFFF )\n    v8 = 0;\n  *(_DWORD *)(v6 + 74136) = v8;\n  *(_DWORD *)(v4 + 632) = v7;\n  v9 = *(_QWORD *)(v4 + 168);\n  *(_QWORD *)(v4 + 568) = 0;\n  *(_DWORD *)(v4 + 576) = 0;\n  *(_QWORD *)(v4 + 552) = 0;\n  *(_QWORD *)(v4 + 560) = 0;\n  *(_QWORD *)(v4 + 584) = 0;\n  *(_DWORD *)(v4 + 600) = 0;\n  *(_DWORD *)(v4 + 636) = 1065353216;\n  result = sub_1800FCF40(v9, &v12, 16, a4);\n  if ( !(_DWORD)result )\n  {\n    LOBYTE(v11) = 1;\n    *(_BYTE *)v12 = 8;\n    *(_QWORD *)(v12 + 8) = v4;\n    return sub_1800FD370(*(_QWORD *)(v4 + 168), v12, v11);\n  }\n  return result;\n}", "assembly": "; \n; sub_1800879E0 from 0x1800879e0 to 0x180087aa1 (193 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ae330\n; > <???> @ 0x1801fa26c\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; \npush    rbx                                                            ; +0x0, 0x1800879e0\nsub     rsp, 20h                                                       ; +0x2, 0x1800879e2\nmov     rbx, [rcx]                                                     ; +0x6, 0x1800879e6\nxor     r8d, r8d                                                       ; +0x9, 0x1800879e9\nmov     r9b, 1                                                         ; +0xc, 0x1800879ec\nlea     rax, [rbx+260h]                                                ; +0xf, 0x1800879ef\nmov     [rax+10h], r8                                                  ; +0x16, 0x1800879f6\nmov     [rax+8], rax                                                   ; +0x1a, 0x1800879fa\nmov     [rax], rax                                                     ; +0x1e, 0x1800879fe\nmov     rdx, [rbx+0A8h]                                                ; +0x21, 0x180087a01\nmov     ecx, [rdx+12198h]                                              ; +0x28, 0x180087a08\ncmp     ecx, 7FFFFFFFh                                                 ; +0x2e, 0x180087a0e\nlea     eax, [rcx+1]                                                   ; +0x34, 0x180087a14\ncmovge  eax, r8d                                                       ; +0x37, 0x180087a17\nmov     [rdx+12198h], eax                                              ; +0x3b, 0x180087a1b\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x41, 0x180087a21\nmov     [rbx+278h], ecx                                                ; +0x46, 0x180087a26\nmov     rcx, [rbx+0A8h]                                                ; +0x4c, 0x180087a2c\nmov     [rbx+238h], r8                                                 ; +0x53, 0x180087a33\nmov     [rbx+240h], r8d                                                ; +0x5a, 0x180087a3a\nmov     [rbx+228h], r8                                                 ; +0x61, 0x180087a41\nmov     [rbx+230h], r8                                                 ; +0x68, 0x180087a48\nmov     [rbx+248h], r8                                                 ; +0x6f, 0x180087a4f\nmov     [rbx+258h], r8d                                                ; +0x76, 0x180087a56\nmov     r8d, 10h                                                       ; +0x7d, 0x180087a5d\nmov     dword ptr [rbx+27Ch], 3F800000h                                ; +0x83, 0x180087a63\ncall    sub_1800FCF40                                                  ; +0x8d, 0x180087a6d\ntest    eax, eax                                                       ; +0x92, 0x180087a72\njnz     short loc_180087A9B                                            ; +0x94, 0x180087a74\nmov     rax, [rsp+28h+arg_0]                                           ; +0x96, 0x180087a76\nmov     r8b, 1                                                         ; +0x9b, 0x180087a7b\nmov     byte ptr [rax], 8                                              ; +0x9e, 0x180087a7e\nmov     rax, [rsp+28h+arg_0]                                           ; +0xa1, 0x180087a81\nmov     [rax+8], rbx                                                   ; +0xa6, 0x180087a86\nmov     rdx, [rsp+28h+arg_0]                                           ; +0xaa, 0x180087a8a\nmov     rcx, [rbx+0A8h]                                                ; +0xaf, 0x180087a8f\ncall    sub_1800FD370                                                  ; +0xb6, 0x180087a96\nadd     rsp, 20h                                                       ; +0xbb, 0x180087a9b\npop     rbx                                                            ; +0xbf, 0x180087a9f\nretn                                                                   ; +0xc0, 0x180087aa0", "xrefs": ["<???> @ 0x1801ae330", "<???> @ 0x1801fa26c"], "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"}