; ; __crt_seh_guarded_call::operator from 0x18013f8c4 to 0x18013f950 (140 bytes) ; ; 2 xrefs: ; > _commit @ 0x18013f9c2 ; > @ 0x180203bc0 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x18013f8c4 mov [rsp+arg_18], r9 ; +0x5, 0x18013f8c9 push rdi ; +0xa, 0x18013f8ce sub rsp, 20h ; +0xb, 0x18013f8cf mov rdi, r9 ; +0xf, 0x18013f8d3 mov rbx, r8 ; +0x12, 0x18013f8d6 mov ecx, [rdx] ; +0x15, 0x18013f8d9 call sub_180136164 ; +0x17, 0x18013f8db nop ; +0x1c, 0x18013f8e0 mov rax, [rbx] ; +0x1d, 0x18013f8e1 movsxd rcx, dword ptr [rax]; FileHandle ; +0x20, 0x18013f8e4 mov rdx, rcx ; +0x23, 0x18013f8e7 mov rax, rcx ; +0x26, 0x18013f8ea sar rax, 6 ; +0x29, 0x18013f8ed lea r8, qword_1801F5160 ; +0x2d, 0x18013f8f1 and edx, 3Fh ; +0x34, 0x18013f8f8 lea rdx, [rdx+rdx*8] ; +0x37, 0x18013f8fb mov rax, [r8+rax*8] ; +0x3b, 0x18013f8ff test byte ptr [rax+rdx*8+38h], 1 ; +0x3f, 0x18013f903 jz short loc_18013F92E ; +0x44, 0x18013f908 call _get_osfhandle ; +0x46, 0x18013f90a mov rcx, rax; hFile ; +0x4b, 0x18013f90f call cs:FlushFileBuffers ; +0x4e, 0x18013f912 xor ebx, ebx ; +0x54, 0x18013f918 test eax, eax ; +0x56, 0x18013f91a jnz short loc_18013F93C ; +0x58, 0x18013f91c call __doserrno ; +0x5a, 0x18013f91e mov rbx, rax ; +0x5f, 0x18013f923 call cs:GetLastError ; +0x62, 0x18013f926 mov [rbx], eax ; +0x68, 0x18013f92c call _errno ; +0x6a, 0x18013f92e mov dword ptr [rax], 9 ; +0x6f, 0x18013f933 or ebx, 0FFFFFFFFh ; +0x75, 0x18013f939 mov ecx, [rdi] ; +0x78, 0x18013f93c call sub_18013618C ; +0x7a, 0x18013f93e mov eax, ebx ; +0x7f, 0x18013f943 mov rbx, [rsp+28h+arg_0] ; +0x81, 0x18013f945 add rsp, 20h ; +0x86, 0x18013f94a pop rdi ; +0x8a, 0x18013f94e retn ; +0x8b, 0x18013f94f