Function at 0x140175ff0
Capabilities:
Write file on windows

Disassembly:
xchg rbx, rsi
mov qword [rsp + 0x10], rsi
xchg rbx, rsi
xchg rbp, r10
mov qword [rsp + 0x18], r10
xchg rbp, r10
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x80], 0
xchg rdx, rcx
mov rbx, rdx
xchg rcx, rdx
je 0x1401761f1
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::eback_void_const___ptr64]
lea rdx, [rbx + 0x70]
cmp rax, rdx
jne 0x140176066
xchg r10, rdx
mov r10, qword [rbx + 0x88]
xchg rdx, r10
xchg rcx, rbx
mov rbx, rcx
xchg rbx, rcx
mov r9, qword [rbx + 0x90]
xchg r8, r13
mov r13, rdx
xchg r13, r8
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setg_wchar_t____ptr64__wchar_t____ptr64__wchar_t____ptr64____ptr64]
cmp qword [rbx + 0x68], 0
lea rdi, [rbx + 0x72]
je 0x140176136
cmp byte [rdi], 0
je 0x140176136
xchg r10, rax
mov r10, qword [rbx]
xchg r10, rax
mov esi, 0x297bb659
sub esi, 0x23f20f1c
xor esi, 0x3dd3ace9
xor esi, 0x6bc039c0
xor esi, 0x213ab1c0
add esi, 0x1b51524
sub esi, 0x6989915
sub esi, 0x4e05559b
sub esi, 0x1fb6aa49
mov edx, esi
xchg r11, rcx
mov r11, rbx
xchg r11, rcx
call qword [rax + 0x18]
cmp si, ax
jne 0x1401760d8
xor al, al
jmp 0x140176146
xchg r14, rcx
mov r14, qword [rbx + 0x68]
xchg rcx, r14
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
xchg r15, rax
mov qword [rsp + 0x20], r15
xchg r15, rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140176168
sub eax, 1
je 0x140176180
cmp eax, 2
jne 0x1401760d1
mov byte [rdi], 0x59
sub byte [rdi], 0x57
add byte [rdi], 0x19
add byte [rdi], 0x17
add byte [rdi], 0x32
sub byte [rdi], 0x30
xor byte [rdi], 0x29
xor byte [rdi], 0x1d
mov al, 0x21
xor al, 0x7a
xor al, 6
xor al, 0x6d
add al, 3
add al, 0x31
sub al, 0x45
sub al, 0x1e
mov rcx, qword [rbx + 0x80]
xor esi, esi
test al, al
mov ebp, esi
cmovne rbp, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbp, rsi
jmp 0x1401761f9
mov byte [rdi], 0x6b
add byte [rdi], 0
sub byte [rdi], 0x48
sub byte [rdi], 0xb
xor byte [rdi], 0x6d
sub byte [rdi], 0x56
sub byte [rdi], 0xa
sub byte [rdi], 0x15
mov rsi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rsi, rax
je 0x1401761e6
xchg r9, r15
mov r15, qword [rbx + 0x80]
xchg r9, r15
lea rcx, [rsp + 0x30]
xchg rbx, rsi
mov r8, rbx
xchg rsi, rbx
mov edx, 0x682ea20
add edx, 0x3314ccfc
xor edx, 0x447051dc
xor edx, 0x1514ed29
sub edx, 0x56d5c5a0
add edx, 0x5656f6b9
sub edx, 0x68743d01
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1401760d1
cmp byte [rdi], 0
sete al
jmp 0x140176146
xor esi, esi
lea rdi, [rcx + 0x72]
mov ebp, esi
xchg rbx, rcx
mov rbx, rcx
xchg rbx, rcx
mov byte [rbx + 0x7c], 0x77
xor byte [rbx + 0x7c], 0x68
xor byte [rbx + 0x7c], 0x41
add byte [rbx + 0x7c], 0x14
xor byte [rbx + 0x7c], 0x1f
sub byte [rbx + 0x7c], 0x40
add byte [rbx + 0x7c], 0x3c
sub byte [rbx + 0x7c], 0x69
mov byte [rdi], 0xd
add byte [rdi], 9
add byte [rdi], 0x55
xor byte [rdi], 0x50
add byte [rdi], 3
xor byte [rdi], 0x4f
sub byte [rdi], 0xe
xor byte [rdi], 0x63
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
mov qword [rbx + 0x80], rsi
xchg rbp, rcx
mov rax, rcx
xchg rbp, rcx
mov rcx, qword [0x140217068]
mov rbp, qword [rsp + 0x70]
mov qword [rbx + 0x68], rsi
xchg r9, rsi
mov r9, qword [rsp + 0x78]
xchg rsi, r9
mov qword [rbx + 0x74], rcx
xchg rbx, r13
mov r13, qword [rsp + 0x68]
xchg r13, rbx
add rsp, 0x50
push rdx
push rdx
xchg qword [rsp + 0x10], rdi
pop rdx
pop rdx
add rsp, 8
nop
add rsp, 8
jmp qword [rsp - 8]