{"type": "func", "start": 6443104688, "end": 6443104765, "name": "sub_18009F9B0", "pseudocode": "// \n// sub_18009F9B0 from 0x18009f9b0 to 0x18009f9fd (77 bytes)\n// \n// 2 xrefs:\n// > sub_18009F880 @ 0x18009f8b3\n// > <???> @ 0x1801b7704\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_18009F9B0(__int64 a1, FILE *a2, __int64 a3, int a4)\n{\n  int v5; // r9d\n  int v7; // r8d\n\n  if ( a4 )\n  {\n    v5 = a4 - 1;\n    if ( v5 )\n    {\n      if ( v5 != 1 )\n        return 0xFFFFFFFFLL;\n      v7 = 2;\n    }\n    else\n    {\n      v7 = 1;\n    }\n  }\n  else\n  {\n    v7 = 0;\n  }\n  return (unsigned int)-(fseeki64(a2, a3, v7) != 0);\n}", "assembly": "; \n; sub_18009F9B0 from 0x18009f9b0 to 0x18009f9fd (77 bytes)\n; \n; 2 xrefs:\n; > sub_18009F880 @ 0x18009f8b3\n; > <???> @ 0x1801b7704\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\nsub     rsp, 28h                                                       ; +0x0, 0x18009f9b0\nmov     r10, r8                                                        ; +0x4, 0x18009f9b4\nmov     r11, rdx                                                       ; +0x7, 0x18009f9b7\ntest    r9d, r9d                                                       ; +0xa, 0x18009f9ba\njz      short loc_18009F9E5                                            ; +0xd, 0x18009f9bd\nsub     r9d, 1                                                         ; +0xf, 0x18009f9bf\njz      short loc_18009F9DD                                            ; +0x13, 0x18009f9c3\ncmp     r9d, 1                                                         ; +0x15, 0x18009f9c5\njz      short loc_18009F9D5                                            ; +0x19, 0x18009f9c9\nmov     eax, 0FFFFFFFFh                                                ; +0x1b, 0x18009f9cb\nadd     rsp, 28h                                                       ; +0x20, 0x18009f9d0\nretn                                                                   ; +0x24, 0x18009f9d4\nmov     r8d, 2                                                         ; +0x25, 0x18009f9d5\njmp     short loc_18009F9E8                                            ; +0x2b, 0x18009f9db\nmov     r8d, 1                                                         ; +0x2d, 0x18009f9dd\njmp     short loc_18009F9E8                                            ; +0x33, 0x18009f9e3\nxor     r8d, r8d; Origin                                               ; +0x35, 0x18009f9e5\nmov     rdx, r10; Offset                                               ; +0x38, 0x18009f9e8\nmov     rcx, r11; Stream                                               ; +0x3b, 0x18009f9eb\ncall    cs:_fseeki64                                                   ; +0x3e, 0x18009f9ee\nneg     eax                                                            ; +0x44, 0x18009f9f4\nsbb     eax, eax                                                       ; +0x46, 0x18009f9f6\nadd     rsp, 28h                                                       ; +0x48, 0x18009f9f8\nretn                                                                   ; +0x4c, 0x18009f9fc", "xrefs": ["sub_18009F880 @ 0x18009f8b3", "<???> @ 0x1801b7704"], "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"}