Function at 0x1401be260
Capabilities:
Write file on windows

Disassembly:
xchg rdi, rsi
mov qword [rsp + 0x10], rdi
xchg rdi, rsi
nop
mov qword [rsp - 8], rdi
sub rsp, 8
sub rsp, 0x70
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1401be2b5
xor eax, eax
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
push rcx
push rcx
push rdx
push rax
push rcx
push rax
push rcx
xchg qword [rsp + 0x38], rdi
pop rcx
pop rax
pop rcx
pop rax
pop rdx
pop rcx
pop rcx
add rsp, 8
nop
add rsp, 8
jmp qword [rsp - 8]
mov qword [rsp + 0x80], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1401be313
xchg r8, rdi
mov rcx, r8
xchg rdi, r8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
xchg rdi, rcx
mov rdi, rcx
xchg rdi, rcx
xchg rbx, rax
mov rax, rbx
xchg rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x1401be313
xchg rdi, r10
mov rcx, r10
xchg r10, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1401be572
cmp qword [rdi + 0x80], 0
je 0x1401be54f
xchg rcx, r11
mov r11, rdi
xchg r11, rcx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1401be35d
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
xchg rdx, r8
mov rdx, r8
xchg r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1401be3b6
xchg rsi, rdx
mov rsi, qword [rdi + 0x80]
xchg rsi, rdx
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0x5e71e680
sub ecx, 0x13e95bee
xor ecx, 0x2af5f05f
sub ecx, 0x40bd50e
add ecx, 0xdc50817
sub ecx, 0x61f1d67d
add ecx, 0xf7bb28a6
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1401be572
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], sil
xchg rsi, rax
mov qword [rsp + 0x38], rsi
xchg rsi, rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x68]
xchg r14, rax
mov qword [rsp + 0x30], r14
xchg r14, rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
xchg rcx, rax
mov qword [rsp + 0x28], rcx
xchg rcx, rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
xchg r10, rax
mov qword [rsp + 0x20], r10
xchg r10, rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1401be480
sub eax, 1
je 0x1401be480
cmp eax, 2
jne 0x1401be54f
movsx ecx, byte [rsp + 0x40]
xchg rdx, r10
mov r10, qword [rdi + 0x80]
xchg r10, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0x35d7fa11
sub ecx, 0x2d5a8030
add ecx, 0x6ab2640e
xor ecx, 0x4289067b
sub ecx, 0x58fd067
add ecx, 0x4db55e70
xor ecx, 0x6b37db11
add ecx, 0x27717595
xor ecx, 0xc592d7de
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1401be572
xchg rdx, rbx
mov rdx, qword [rsp + 0x90]
xchg rdx, rbx
lea rax, [rsp + 0x48]
sub rbx, rax
je 0x1401be4ef
xchg r9, r8
mov r8, qword [rdi + 0x80]
xchg r8, r9
lea rcx, [rsp + 0x48]
xchg r8, r10
mov r10, rbx
xchg r8, r10
mov edx, 0x12fc4fed
add edx, 0x361ea732
sub edx, 0x29697c48
add edx, 0x5aad0a9a
sub edx, 0x6b0a2d02
add edx, 0x4b1e44fe
xor edx, 0x5a729d6c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1401be54f
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
add byte [rdi + 0x71], 0xa
add byte [rdi + 0x71], 0x26
sub byte [rdi + 0x71], 0x15
add byte [rdi + 0x71], 0xc
sub byte [rdi + 0x71], 0x11
sub byte [rdi + 0x71], 0x16
cmp qword [rsp + 0x98], rax
pushf
mov ecx, 0x7669632b
xor ecx, 0x30c4b7cb
sub ecx, 0x106e431c
add ecx, 0x3b286a1f
sub ecx, 0x3f26f761
add ecx, 0xe81eb81
add ecx, 0xbf3d0ffc
popf
cmovne ecx, esi
mov eax, ecx
jmp 0x1401be572
mov eax, 0x247f7b02
xor eax, 0x45c760f5
xor eax, 0x24f38f5f
add eax, 0x225bb1a3
sub eax, 0x26e1f6d7
sub eax, 0x89d8243
xor eax, 0xc7d832ce
xchg rbx, r12
mov r12, qword [rsp + 0x80]
xchg rbx, r12
xchg rsi, rbx
mov rbx, qword [rsp + 0x88]
xchg rsi, rbx
add rsp, 0x70
push rdx
push rax
push rbx
push rcx
push rbx
push rax
push rcx
xchg qword [rsp + 0x38], rdi
pop rcx
pop rax
pop rbx
pop rcx
pop rbx
pop rax
pop rdx
add rsp, 8
nop
add rsp, 8
jmp qword [rsp - 8]