{"type": "func", "start": 6442575408, "end": 6442575584, "name": "sub_18001E630", "pseudocode": "// \n// sub_18001E630 from 0x18001e630 to 0x18001e6e0 (176 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ed0c8\n// > <???> @ 0x1801b8cf8\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:21:27 +0000\n// \n\nfpos_t *__fastcall sub_18001E630(__int64 a1, fpos_t *a2, _QWORD *a3)\n{\n  bool v5; // zf\n  fpos_t v7; // rcx\n  fpos_t Position; // [rsp+30h] [rbp+8h] BYREF\n\n  v5 = *(_QWORD *)(a1 + 128) == 0;\n  Position = *a3 + a3[1];\n  if ( v5 || !sub_180018740(a1) || fsetpos(*(FILE **)(a1 + 128), &Position) )\n  {\n    *a2 = -1;\n    a2[1] = 0;\n    a2[2] = 0;\n    return a2;\n  }\n  else\n  {\n    *(_QWORD *)(a1 + 116) = a3[2];\n    sub_180018850(a1);\n    v7 = *(_QWORD *)(a1 + 116);\n    *a2 = Position;\n    a2[1] = 0;\n    a2[2] = v7;\n    return a2;\n  }\n}", "assembly": "; \n; sub_18001E630 from 0x18001e630 to 0x18001e6e0 (176 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ed0c8\n; > <???> @ 0x1801b8cf8\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:21:27 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18001e630\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18001e635\npush    rdi                                                            ; +0xa, 0x18001e63a\nsub     rsp, 20h                                                       ; +0xb, 0x18001e63b\nmov     rax, [r8+8]                                                    ; +0xf, 0x18001e63f\nmov     rsi, r8                                                        ; +0x13, 0x18001e643\nadd     rax, [r8]                                                      ; +0x16, 0x18001e646\nmov     rbx, rdx                                                       ; +0x19, 0x18001e649\ncmp     qword ptr [rcx+80h], 0                                         ; +0x1c, 0x18001e64c\nmov     rdi, rcx                                                       ; +0x24, 0x18001e654\nmov     [rsp+28h+Position], rax                                        ; +0x27, 0x18001e657\njz      short loc_18001E6B8                                            ; +0x2c, 0x18001e65c\ncall    sub_180018740                                                  ; +0x2e, 0x18001e65e\ntest    al, al                                                         ; +0x33, 0x18001e663\njz      short loc_18001E6B8                                            ; +0x35, 0x18001e665\nmov     rcx, [rdi+80h]; Stream                                         ; +0x37, 0x18001e667\nlea     rdx, [rsp+28h+Position]; Position                              ; +0x3e, 0x18001e66e\ncall    cs:fsetpos                                                     ; +0x43, 0x18001e673\ntest    eax, eax                                                       ; +0x49, 0x18001e679\njnz     short loc_18001E6B8                                            ; +0x4b, 0x18001e67b\nmov     rax, [rsi+10h]                                                 ; +0x4d, 0x18001e67d\nmov     rcx, rdi                                                       ; +0x51, 0x18001e681\nmov     [rdi+74h], rax                                                 ; +0x54, 0x18001e684\ncall    sub_180018850                                                  ; +0x58, 0x18001e688\nmov     rcx, [rdi+74h]                                                 ; +0x5d, 0x18001e68d\nmov     rax, [rsp+28h+Position]                                        ; +0x61, 0x18001e691\nmov     [rbx], rax                                                     ; +0x66, 0x18001e696\nmov     rax, rbx                                                       ; +0x69, 0x18001e699\nmov     qword ptr [rbx+8], 0                                           ; +0x6c, 0x18001e69c\nmov     [rbx+10h], rcx                                                 ; +0x74, 0x18001e6a4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x78, 0x18001e6a8\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x7d, 0x18001e6ad\nadd     rsp, 20h                                                       ; +0x82, 0x18001e6b2\npop     rdi                                                            ; +0x86, 0x18001e6b6\nretn                                                                   ; +0x87, 0x18001e6b7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x88, 0x18001e6b8\nxor     eax, eax                                                       ; +0x8d, 0x18001e6bd\nmov     qword ptr [rbx], 0FFFFFFFFFFFFFFFFh                            ; +0x8f, 0x18001e6bf\nmov     qword ptr [rbx+8], 0                                           ; +0x96, 0x18001e6c6\nmov     [rbx+10h], rax                                                 ; +0x9e, 0x18001e6ce\nmov     rax, rbx                                                       ; +0xa2, 0x18001e6d2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa5, 0x18001e6d5\nadd     rsp, 20h                                                       ; +0xaa, 0x18001e6da\npop     rdi                                                            ; +0xae, 0x18001e6de\nretn                                                                   ; +0xaf, 0x18001e6df", "xrefs": ["<???> @ 0x1800ed0c8", "<???> @ 0x1801b8cf8"], "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"}