{"type": "func", "start": 6443759812, "end": 6443759952, "name": "__crt_seh_guarded_call<int>::operator", "pseudocode": "// \n// __crt_seh_guarded_call<int>::operator from 0x18013f8c4 to 0x18013f950 (140 bytes)\n// \n// 2 xrefs:\n// > _commit @ 0x18013f9c2\n// > <???> @ 0x180203bc0\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 __crt_seh_guarded_call<int>::operator()<_lambda_a37b2b86f63e897a80ea819b0eb08c01_,_lambda_38ce7e780aa69e748d6df282ebc68efe_ &,_lambda_99fb1378e971ab6e7edea83e3a7a83a2_>(\n        __int64 a1,\n        int *a2,\n        int **a3,\n        int *a4)\n{\n  void *osfhandle; // rax\n  unsigned int v7; // ebx\n  unsigned int *v8; // rbx\n\n  sub_180136164(*a2);\n  if ( (*(_BYTE *)(qword_1801F5160[(__int64)**a3 >> 6] + 72LL * (**a3 & 0x3F) + 56) & 1) == 0 )\n    goto LABEL_4;\n  osfhandle = (void *)get_osfhandle(**a3);\n  v7 = 0;\n  if ( !FlushFileBuffers(osfhandle) )\n  {\n    v8 = _doserrno();\n    *v8 = GetLastError();\nLABEL_4:\n    *errno() = 9;\n    v7 = -1;\n  }\n  sub_18013618C(*a4);\n  return v7;\n}", "assembly": "; \n; __crt_seh_guarded_call<int>::operator from 0x18013f8c4 to 0x18013f950 (140 bytes)\n; \n; 2 xrefs:\n; > _commit @ 0x18013f9c2\n; > <???> @ 0x180203bc0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18013f8c4\nmov     [rsp+arg_18], r9                                               ; +0x5, 0x18013f8c9\npush    rdi                                                            ; +0xa, 0x18013f8ce\nsub     rsp, 20h                                                       ; +0xb, 0x18013f8cf\nmov     rdi, r9                                                        ; +0xf, 0x18013f8d3\nmov     rbx, r8                                                        ; +0x12, 0x18013f8d6\nmov     ecx, [rdx]                                                     ; +0x15, 0x18013f8d9\ncall    sub_180136164                                                  ; +0x17, 0x18013f8db\nnop                                                                    ; +0x1c, 0x18013f8e0\nmov     rax, [rbx]                                                     ; +0x1d, 0x18013f8e1\nmovsxd  rcx, dword ptr [rax]; FileHandle                               ; +0x20, 0x18013f8e4\nmov     rdx, rcx                                                       ; +0x23, 0x18013f8e7\nmov     rax, rcx                                                       ; +0x26, 0x18013f8ea\nsar     rax, 6                                                         ; +0x29, 0x18013f8ed\nlea     r8, qword_1801F5160                                            ; +0x2d, 0x18013f8f1\nand     edx, 3Fh                                                       ; +0x34, 0x18013f8f8\nlea     rdx, [rdx+rdx*8]                                               ; +0x37, 0x18013f8fb\nmov     rax, [r8+rax*8]                                                ; +0x3b, 0x18013f8ff\ntest    byte ptr [rax+rdx*8+38h], 1                                    ; +0x3f, 0x18013f903\njz      short loc_18013F92E                                            ; +0x44, 0x18013f908\ncall    _get_osfhandle                                                 ; +0x46, 0x18013f90a\nmov     rcx, rax; hFile                                                ; +0x4b, 0x18013f90f\ncall    cs:FlushFileBuffers                                            ; +0x4e, 0x18013f912\nxor     ebx, ebx                                                       ; +0x54, 0x18013f918\ntest    eax, eax                                                       ; +0x56, 0x18013f91a\njnz     short loc_18013F93C                                            ; +0x58, 0x18013f91c\ncall    __doserrno                                                     ; +0x5a, 0x18013f91e\nmov     rbx, rax                                                       ; +0x5f, 0x18013f923\ncall    cs:GetLastError                                                ; +0x62, 0x18013f926\nmov     [rbx], eax                                                     ; +0x68, 0x18013f92c\ncall    _errno                                                         ; +0x6a, 0x18013f92e\nmov     dword ptr [rax], 9                                             ; +0x6f, 0x18013f933\nor      ebx, 0FFFFFFFFh                                                ; +0x75, 0x18013f939\nmov     ecx, [rdi]                                                     ; +0x78, 0x18013f93c\ncall    sub_18013618C                                                  ; +0x7a, 0x18013f93e\nmov     eax, ebx                                                       ; +0x7f, 0x18013f943\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x81, 0x18013f945\nadd     rsp, 20h                                                       ; +0x86, 0x18013f94a\npop     rdi                                                            ; +0x8a, 0x18013f94e\nretn                                                                   ; +0x8b, 0x18013f94f", "xrefs": ["_commit @ 0x18013f9c2", "<???> @ 0x180203bc0"], "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"}