; ; __acrt_stdio_flush_nolock from 0x18013898c to 0x180138a06 (122 bytes) ; ; 5 xrefs: ; > _fclose_nolock @ 0x18012fa30 ; > __acrt_stdio_end_temporary_buffering_nolock @ 0x180138619 ; > unknown_libname_69 @ 0x180138a20 ; > _lambda_b4f66040be5f354a654fb75160c27bfc_::operator @ 0x18013943f ; > @ 0x1802036c8 ; ; 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, 0x18013898c mov [rsp+arg_8], rsi ; +0x5, 0x180138991 push rdi ; +0xa, 0x180138996 sub rsp, 20h ; +0xb, 0x180138997 mov rbx, rcx ; +0xf, 0x18013899b mov ecx, [rcx+14h] ; +0x12, 0x18013899e mov eax, ecx ; +0x15, 0x1801389a1 and al, 3 ; +0x17, 0x1801389a3 cmp al, 2 ; +0x19, 0x1801389a5 jnz short loc_1801389F4 ; +0x1b, 0x1801389a7 test cl, 0C0h ; +0x1d, 0x1801389a9 jz short loc_1801389F4 ; +0x20, 0x1801389ac mov edi, [rbx] ; +0x22, 0x1801389ae sub edi, [rbx+8] ; +0x24, 0x1801389b0 and dword ptr [rbx+10h], 0 ; +0x27, 0x1801389b3 mov rsi, [rbx+8] ; +0x2b, 0x1801389b7 mov [rbx], rsi ; +0x2f, 0x1801389bb test edi, edi ; +0x32, 0x1801389be jle short loc_1801389F4 ; +0x34, 0x1801389c0 mov rcx, rbx; Stream ; +0x36, 0x1801389c2 call _fileno ; +0x39, 0x1801389c5 mov ecx, eax; FileHandle ; +0x3e, 0x1801389ca mov r8d, edi; MaxCharCount ; +0x40, 0x1801389cc mov rdx, rsi; Buf ; +0x43, 0x1801389cf call _write ; +0x46, 0x1801389d2 cmp edi, eax ; +0x4b, 0x1801389d7 jz short loc_1801389E5 ; +0x4d, 0x1801389d9 lock or dword ptr [rbx+14h], 10h ; +0x4f, 0x1801389db or eax, 0FFFFFFFFh ; +0x54, 0x1801389e0 jmp short loc_1801389F6 ; +0x57, 0x1801389e3 mov eax, [rbx+14h] ; +0x59, 0x1801389e5 shr eax, 2 ; +0x5c, 0x1801389e8 test al, 1 ; +0x5f, 0x1801389eb jz short loc_1801389F4 ; +0x61, 0x1801389ed lock and dword ptr [rbx+14h], 0FFFFFFFDh ; +0x63, 0x1801389ef xor eax, eax ; +0x68, 0x1801389f4 mov rbx, [rsp+28h+arg_0] ; +0x6a, 0x1801389f6 mov rsi, [rsp+28h+arg_8] ; +0x6f, 0x1801389fb add rsp, 20h ; +0x74, 0x180138a00 pop rdi ; +0x78, 0x180138a04 retn ; +0x79, 0x180138a05