Function at 0x14005d5e4
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x70], rbx
mov qword [rbp], rcx
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], rdx
mov qword [rbp + 0xa0], r8
mov eax, 0
cmp eax, 1
je 0x14005d7f3
mov rax, qword [rbp + 0x90]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x14005d67d
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xa0]
mov rbx, qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rbp + 0x50], rcx
mov rcx, rax
mov rax, qword [rbp + 0x50]
mov r8, rax
call rbx
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x80]
pop rbp
ret
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x90]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0xa0]
test rax, rax
jle 0x14005d761
mov rax, qword [rbp + 0x30]
test rax, rax
jle 0x14005d761
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x30]
cmp rax, rdx
jge 0x14005d6df
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x90]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x58], rcx
mov rcx, rax
mov rax, qword [rbp + 0x58]
mov r8, rax
call fcn.1400521f8
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x30]
add rax, qword [rbp + 0x98]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x30]
neg rax
add rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0x90]
mov edx, dword [rbp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
mov qword [rbp + 0x60], rcx
mov rcx, rax
mov rax, qword [rbp + 0x60]
call rax
mov rax, qword [rbp + 0xa0]
test rax, rax
jle 0x14005d7d4
mov rax, qword [rbp + 0x90]
mov rax, qword [rax + 0x80]
test rax, rax
je 0x14005d7d4
mov rax, qword [rbp + 0x98]
mov edx, 1
mov rcx, qword [rbp + 0xa0]
mov rbx, qword [rbp + 0x90]
mov rbx, qword [rbx + 0x80]
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rbp + 0x68], rcx
mov rcx, rax
mov rax, qword [rbp + 0x68]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
neg rax
add rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
neg rax
add rax, qword [rbp + 0x20]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x80]
pop rbp
ret
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x80]
pop rbp
ret