Function at 0x1401be900
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
nop
mov qword [rsp - 8], rdi
sub rsp, 8
sub rsp, 0x70
mov esi, edx
xchg rcx, rdi
mov rcx, rdi
xchg rcx, rdi
cmp edx, 0xffffffff
jne 0x1401be94e
xor eax, eax
xchg r8, rsi
mov r8, qword [rsp + 0x88]
xchg rsi, r8
add rsp, 0x70
nop
add rsp, 8
xchg qword [rsp - 8], rdi
nop
add rsp, 8
jmp qword [rsp - 8]
xchg r14, rbx
mov qword [rsp + 0x80], r14
xchg rbx, r14
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 0x1401be9ac
xchg rcx, rdi
mov rdi, rcx
xchg rcx, rdi
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, rsi
mov rcx, rsi
xchg rsi, rdi
xchg r8, rax
mov rbx, r8
xchg r8, 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 0x1401be9ac
mov rcx, 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 0x1401bebeb
cmp qword [rdi + 0x80], 0
je 0x1401bebbe
xchg r10, rdi
mov rcx, r10
xchg rdi, r10
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 0x1401bea08
xchg rsi, rdx
mov rsi, qword [rdi + 0x88]
xchg rsi, rdx
xchg rcx, rdi
mov rdi, rcx
xchg rcx, rdi
xchg r9, r15
mov r15, qword [rdi + 0x90]
xchg r15, r9
xchg r8, rcx
mov rcx, rdx
xchg r8, rcx
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]
xchg rcx, r13
mov r13, qword [rdi + 0x68]
xchg rcx, r13
test rcx, rcx
jne 0x1401bea5b
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0x2965c2f9
add ecx, 0x33dc3a42
xor ecx, 0x72134fb1
add ecx, 0x409b7fa7
sub ecx, 0xb92d767
add ecx, 0x9ba4a535
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1401bebeb
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], sil
xchg r10, rax
mov qword [rsp + 0x38], r10
xchg r10, rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
xchg r8, rax
mov qword [rsp + 0x20], r8
xchg r8, 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 0x1401beb0b
sub eax, 1
je 0x1401beb0b
cmp eax, 2
jne 0x1401bebbe
movsx ecx, byte [rsp + 0x40]
xchg r12, rdx
mov r12, qword [rdi + 0x80]
xchg r12, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0x74568eb4
sub ecx, 0x50023a2e
add ecx, 0x1a01c19a
add ecx, 0x1c2d7705
add ecx, 0xcd03c6e
add ecx, 0x98ac366c
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1401bebeb
mov rbx, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rbx, rax
je 0x1401beb62
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rbx
mov edx, 0x7d7138be
sub edx, 0x5dabb999
xor edx, 0x1caa3b25
add edx, 0x7a959f78
xor edx, 0x29c8fe3
sub edx, 0x7c986c9a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1401bebbe
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 0x43
sub byte [rdi + 0x71], 0x3b
xor byte [rdi + 0x71], 0x1e
add byte [rdi + 0x71], 0x68
xor byte [rdi + 0x71], 0x22
sub byte [rdi + 0x71], 0x5b
cmp qword [rsp + 0x98], rax
pushf
mov ecx, 0x42f68580
sub ecx, 0x3a47bb18
add ecx, 0x2ed15167
add ecx, 0x3d199bae
xor ecx, 0x2c11d45f
xor ecx, 0x24ba6de7
xor ecx, 0x83cdf13a
popf
cmovne ecx, esi
mov eax, ecx
jmp 0x1401bebeb
mov eax, 0xf2b0346
xor eax, 0x559e2ce5
sub eax, 0x54f18777
add eax, 0x241b9540
add eax, 0x322a691e
sub eax, 0x1c84396b
add eax, 0x283a8c68
sub eax, 0x2df0dcd5
xor eax, 0xc630e34d
xchg rdx, rbx
mov rdx, qword [rsp + 0x80]
xchg rdx, rbx
xchg r12, rsi
mov r12, qword [rsp + 0x88]
xchg rsi, r12
add rsp, 0x70
nop
add rsp, 8
mov rdi, qword [rsp - 8]
nop
add rsp, 8
jmp qword [rsp - 8]