{"type": "func", "start": 6443120352, "end": 6443120429, "name": "sub_1800A36E0", "pseudocode": "// \n// sub_1800A36E0 from 0x1800a36e0 to 0x1800a372d (77 bytes)\n// \n// 2 xrefs:\n// > sub_1800A35B0 @ 0x1800a35e3\n// > <???> @ 0x1801c19a4\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 11:22:14 +0000\n// \n\n__int64 __fastcall sub_1800A36E0(__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_1800A36E0 from 0x1800a36e0 to 0x1800a372d (77 bytes)\n; \n; 2 xrefs:\n; > sub_1800A35B0 @ 0x1800a35e3\n; > <???> @ 0x1801c19a4\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 11:22:14 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1800a36e0\nmov     r10, r8                                                        ; +0x4, 0x1800a36e4\nmov     r11, rdx                                                       ; +0x7, 0x1800a36e7\ntest    r9d, r9d                                                       ; +0xa, 0x1800a36ea\njz      short loc_1800A3715                                            ; +0xd, 0x1800a36ed\nsub     r9d, 1                                                         ; +0xf, 0x1800a36ef\njz      short loc_1800A370D                                            ; +0x13, 0x1800a36f3\ncmp     r9d, 1                                                         ; +0x15, 0x1800a36f5\njz      short loc_1800A3705                                            ; +0x19, 0x1800a36f9\nmov     eax, 0FFFFFFFFh                                                ; +0x1b, 0x1800a36fb\nadd     rsp, 28h                                                       ; +0x20, 0x1800a3700\nretn                                                                   ; +0x24, 0x1800a3704\nmov     r8d, 2                                                         ; +0x25, 0x1800a3705\njmp     short loc_1800A3718                                            ; +0x2b, 0x1800a370b\nmov     r8d, 1                                                         ; +0x2d, 0x1800a370d\njmp     short loc_1800A3718                                            ; +0x33, 0x1800a3713\nxor     r8d, r8d; Origin                                               ; +0x35, 0x1800a3715\nmov     rdx, r10; Offset                                               ; +0x38, 0x1800a3718\nmov     rcx, r11; Stream                                               ; +0x3b, 0x1800a371b\ncall    cs:_fseeki64                                                   ; +0x3e, 0x1800a371e\nneg     eax                                                            ; +0x44, 0x1800a3724\nsbb     eax, eax                                                       ; +0x46, 0x1800a3726\nadd     rsp, 28h                                                       ; +0x48, 0x1800a3728\nretn                                                                   ; +0x4c, 0x1800a372c", "xrefs": ["sub_1800A35B0 @ 0x1800a35e3", "<???> @ 0x1801c19a4"], "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"}