{"type": "func", "start": 6443487040, "end": 6443487226, "name": "sub_1800FCF40", "pseudocode": "// \n// sub_1800FCF40 from 0x1800fcf40 to 0x1800fcffa (186 bytes)\n// \n// 28 xrefs:\n// > sub_18005A4F0 @ 0x18005a543\n// > sub_18005A650 @ 0x18005a712\n// > sub_18005A650 @ 0x18005aa1b\n// > sub_18005ADD0 @ 0x18005ae66\n// > sub_180067160 @ 0x1800671c2\n// > sub_180068B10 @ 0x180068b86\n// > sub_180069950 @ 0x1800699a3\n// > sub_180070270 @ 0x180070300\n// > sub_1800879E0 @ 0x180087a6d\n// > sub_1800889A0 @ 0x1800889c7\n// > sub_18008AB50 @ 0x18008ac5b\n// > sub_1800923A0 @ 0x18009249e\n// > sub_180092550 @ 0x1800925d6\n// > sub_180095EA0 @ 0x180096027\n// > sub_180096490 @ 0x1800964e1\n// > sub_1800985F0 @ 0x1800986a6\n// > sub_180098980 @ 0x1800989f7\n// > sub_1800992C0 @ 0x1800993e0\n// > sub_18009B6A0 @ 0x18009b72f\n// > sub_18009B890 @ 0x18009b8fd\n// > sub_18009C1B0 @ 0x18009c213\n// > sub_18009C2B0 @ 0x18009c2f7\n// > sub_18009C430 @ 0x18009c552\n// > sub_1800C9120 @ 0x1800c91e9\n// > sub_1800E9660 @ 0x1800e97a0\n// > <???> @ 0x18018f674\n// > <???> @ 0x18018f684\n// > <???> @ 0x180200f38\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:54:26 +0000\n// \n\n__int64 __fastcall sub_1800FCF40(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  char v4; // bp\n  int v5; // edi\n  _QWORD *v6; // r14\n  __int64 result; // rax\n  unsigned int v9; // edi\n  unsigned int v10; // esi\n  _DWORD *v11; // rcx\n\n  v4 = a4;\n  v5 = a3;\n  v6 = (_QWORD *)a2;\n  if ( !(_BYTE)a4 || (result = sub_1801021C0(a1, 1), !(_DWORD)result) )\n  {\n    v9 = (v5 + 7) & 0xFFFFFFF8;\n    if ( (int)(v9 + *(_DWORD *)(a1 + 67456)) > 0x10000 && (LOBYTE(a2) = 1, (v10 = sub_1800FC980(a1, a2, a3, a4)) != 0) )\n    {\n      if ( v4 )\n        sub_180102300(a1, 1);\n      return v10;\n    }\n    else\n    {\n      v11 = (_DWORD *)(*(int *)(a1 + 67456) + a1 + 1920);\n      *v11 = (unsigned __int8)*v11;\n      *v11 |= v9 << 8;\n      *(_DWORD *)(a1 + 67456) += v9;\n      *v6 = v11;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800FCF40 from 0x1800fcf40 to 0x1800fcffa (186 bytes)\n; \n; 28 xrefs:\n; > sub_18005A4F0 @ 0x18005a543\n; > sub_18005A650 @ 0x18005a712\n; > sub_18005A650 @ 0x18005aa1b\n; > sub_18005ADD0 @ 0x18005ae66\n; > sub_180067160 @ 0x1800671c2\n; > sub_180068B10 @ 0x180068b86\n; > sub_180069950 @ 0x1800699a3\n; > sub_180070270 @ 0x180070300\n; > sub_1800879E0 @ 0x180087a6d\n; > sub_1800889A0 @ 0x1800889c7\n; > sub_18008AB50 @ 0x18008ac5b\n; > sub_1800923A0 @ 0x18009249e\n; > sub_180092550 @ 0x1800925d6\n; > sub_180095EA0 @ 0x180096027\n; > sub_180096490 @ 0x1800964e1\n; > sub_1800985F0 @ 0x1800986a6\n; > sub_180098980 @ 0x1800989f7\n; > sub_1800992C0 @ 0x1800993e0\n; > sub_18009B6A0 @ 0x18009b72f\n; > sub_18009B890 @ 0x18009b8fd\n; > sub_18009C1B0 @ 0x18009c213\n; > sub_18009C2B0 @ 0x18009c2f7\n; > sub_18009C430 @ 0x18009c552\n; > sub_1800C9120 @ 0x1800c91e9\n; > sub_1800E9660 @ 0x1800e97a0\n; > <???> @ 0x18018f674\n; > <???> @ 0x18018f684\n; > <???> @ 0x180200f38\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:54:26 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800fcf40\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800fcf45\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1800fcf4a\npush    r14                                                            ; +0xf, 0x1800fcf4f\nsub     rsp, 20h                                                       ; +0x11, 0x1800fcf51\nmovzx   ebp, r9b                                                       ; +0x15, 0x1800fcf55\nmov     edi, r8d                                                       ; +0x19, 0x1800fcf59\nmov     r14, rdx                                                       ; +0x1c, 0x1800fcf5c\nmov     rbx, rcx                                                       ; +0x1f, 0x1800fcf5f\ntest    r9b, r9b                                                       ; +0x22, 0x1800fcf62\njz      short loc_1800FCF75                                            ; +0x25, 0x1800fcf65\nmov     edx, 1                                                         ; +0x27, 0x1800fcf67\ncall    sub_1801021C0                                                  ; +0x2c, 0x1800fcf6c\ntest    eax, eax                                                       ; +0x31, 0x1800fcf71\njnz     short loc_1800FCFE4                                            ; +0x33, 0x1800fcf73\nmov     ecx, [rbx+10780h]                                              ; +0x35, 0x1800fcf75\nadd     edi, 7                                                         ; +0x3b, 0x1800fcf7b\nand     edi, 0FFFFFFF8h                                                ; +0x3e, 0x1800fcf7e\nmov     [rsp+28h+arg_0], rsi                                           ; +0x41, 0x1800fcf81\nadd     ecx, edi                                                       ; +0x46, 0x1800fcf86\ncmp     ecx, 10000h                                                    ; +0x48, 0x1800fcf88\njle     short loc_1800FCFB6                                            ; +0x4e, 0x1800fcf8e\nmov     dl, 1                                                          ; +0x50, 0x1800fcf90\nmov     rcx, rbx                                                       ; +0x52, 0x1800fcf92\ncall    sub_1800FC980                                                  ; +0x55, 0x1800fcf95\nmov     esi, eax                                                       ; +0x5a, 0x1800fcf9a\ntest    eax, eax                                                       ; +0x5c, 0x1800fcf9c\njz      short loc_1800FCFB6                                            ; +0x5e, 0x1800fcf9e\ntest    bpl, bpl                                                       ; +0x60, 0x1800fcfa0\njz      short loc_1800FCFB2                                            ; +0x63, 0x1800fcfa3\nmov     edx, 1                                                         ; +0x65, 0x1800fcfa5\nmov     rcx, rbx                                                       ; +0x6a, 0x1800fcfaa\ncall    sub_180102300                                                  ; +0x6d, 0x1800fcfad\nmov     eax, esi                                                       ; +0x72, 0x1800fcfb2\njmp     short loc_1800FCFDF                                            ; +0x74, 0x1800fcfb4\nmovsxd  rax, dword ptr [rbx+10780h]                                    ; +0x76, 0x1800fcfb6\nlea     rcx, [rbx+780h]                                                ; +0x7d, 0x1800fcfbd\nadd     rcx, rax                                                       ; +0x84, 0x1800fcfc4\nmov     eax, edi                                                       ; +0x87, 0x1800fcfc7\nshl     eax, 8                                                         ; +0x89, 0x1800fcfc9\nand     dword ptr [rcx], 0FFh                                          ; +0x8c, 0x1800fcfcc\nor      [rcx], eax                                                     ; +0x92, 0x1800fcfd2\nadd     [rbx+10780h], edi                                              ; +0x94, 0x1800fcfd4\nxor     eax, eax                                                       ; +0x9a, 0x1800fcfda\nmov     [r14], rcx                                                     ; +0x9c, 0x1800fcfdc\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x9f, 0x1800fcfdf\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa4, 0x1800fcfe4\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xa9, 0x1800fcfe9\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xae, 0x1800fcfee\nadd     rsp, 20h                                                       ; +0xb3, 0x1800fcff3\npop     r14                                                            ; +0xb7, 0x1800fcff7\nretn                                                                   ; +0xb9, 0x1800fcff9", "xrefs": ["sub_18005A4F0 @ 0x18005a543", "sub_18005A650 @ 0x18005a712", "sub_18005A650 @ 0x18005aa1b", "sub_18005ADD0 @ 0x18005ae66", "sub_180067160 @ 0x1800671c2", "sub_180068B10 @ 0x180068b86", "sub_180069950 @ 0x1800699a3", "sub_180070270 @ 0x180070300", "sub_1800879E0 @ 0x180087a6d", "sub_1800889A0 @ 0x1800889c7", "sub_18008AB50 @ 0x18008ac5b", "sub_1800923A0 @ 0x18009249e", "sub_180092550 @ 0x1800925d6", "sub_180095EA0 @ 0x180096027", "sub_180096490 @ 0x1800964e1", "sub_1800985F0 @ 0x1800986a6", "sub_180098980 @ 0x1800989f7", "sub_1800992C0 @ 0x1800993e0", "sub_18009B6A0 @ 0x18009b72f", "sub_18009B890 @ 0x18009b8fd", "sub_18009C1B0 @ 0x18009c213", "sub_18009C2B0 @ 0x18009c2f7", "sub_18009C430 @ 0x18009c552", "sub_1800C9120 @ 0x1800c91e9", "sub_1800E9660 @ 0x1800e97a0", "<???> @ 0x18018f674", "<???> @ 0x18018f684", "<???> @ 0x180200f38"], "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"}