Function at 0x140176760
Capabilities:
Write file on windows

Disassembly:
xchg rdx, rbx
mov qword [rsp + 0x10], rdx
xchg rbx, rdx
mov qword [rsp + 0x18], rbp
xchg rsi, r9
mov qword [rsp + 0x20], r9
xchg r9, rsi
nop
push r10
mov qword [rsp], rdi
sub rsp, 0x50
cmp qword [rcx + 0x80], 0
xchg rcx, rbx
mov rcx, rbx
xchg rcx, rbx
je 0x14017695c
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 0x1401767e2
xchg rsi, rdx
mov rsi, qword [rbx + 0x88]
xchg rsi, rdx
xchg rcx, rbx
mov rbx, rcx
xchg rcx, rbx
xchg r9, rdi
mov rdi, qword [rbx + 0x90]
xchg r9, rdi
xchg rdx, r8
mov rdx, r8
xchg r8, rdx
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 0x1401768a8
cmp byte [rdi], 0
je 0x1401768a8
xchg r8, rax
mov r8, qword [rbx]
xchg r8, rax
mov esi, 0x71914755
sub esi, 0x5a0a22af
add esi, 0x3af4451a
add esi, 0x1cf01183
sub esi, 0x590a1add
add esi, 0x97e28c5
add esi, 0x1e288ad8
sub esi, 0x336f643e
sub esi, 0xa97afc6
mov edx, esi
xchg rbx, rdi
mov rcx, rdi
xchg rbx, rdi
call qword [rax + 0x18]
cmp si, ax
jne 0x140176854
xor al, al
jmp 0x1401768b4
xchg rcx, rdi
mov rdi, qword [rbx + 0x68]
xchg rcx, rdi
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], 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 0x1401768dc
sub eax, 1
je 0x1401768f1
cmp eax, 2
jne 0x14017684d
mov byte [rdi], 0x2d
sub byte [rdi], 0x27
xor byte [rdi], 0x2a
xor byte [rdi], 0x3a
xor byte [rdi], 0x13
xor byte [rdi], 5
mov al, 0x7c
sub al, 0x25
sub al, 0x4e
add al, 0xa
add al, 0x45
sub al, 0x57
xchg rcx, rdx
mov rdx, qword [rbx + 0x80]
xchg rdx, rcx
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 0x140176964
mov byte [rdi], 0x52
sub byte [rdi], 0x33
add byte [rdi], 0x51
add byte [rdi], 0xa
xor byte [rdi], 0x61
add byte [rdi], 0x42
sub byte [rdi], 0x5d
xchg r8, rsi
mov r8, qword [rsp + 0x60]
xchg rsi, r8
lea rax, [rsp + 0x30]
sub rsi, rax
je 0x140176951
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
xchg rdi, rsi
mov r8, rdi
xchg rsi, rdi
mov edx, 0x25879ece
add edx, 0x4fb9fc32
add edx, 0x5e59fc0
sub edx, 0x8ef815e
sub edx, 0xd256feb
xor edx, 0x65124976
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14017684d
cmp byte [rdi], 0
sete al
jmp 0x1401768b4
xor esi, esi
lea rdi, [rcx + 0x72]
mov ebp, esi
xchg rcx, rbx
mov rbx, rcx
xchg rbx, rcx
mov byte [rbx + 0x7c], 0x45
sub byte [rbx + 0x7c], 0x40
add byte [rbx + 0x7c], 0x64
sub byte [rbx + 0x7c], 0x1c
sub byte [rbx + 0x7c], 0xf
xor byte [rbx + 0x7c], 0x17
xor byte [rbx + 0x7c], 0x54
sub byte [rbx + 0x7c], 0x7d
add byte [rbx + 0x7c], 0
mov byte [rdi], 0x33
sub byte [rdi], 0x18
xor byte [rdi], 0x13
add byte [rdi], 0x39
xor byte [rdi], 0x1c
sub byte [rdi], 0x5d
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
xchg r11, rsi
mov qword [rbx + 0x80], r11
xchg rsi, r11
xchg rbx, rbp
mov rax, rbx
xchg rbp, rbx
mov rcx, qword [0x140217068]
mov rbp, qword [rsp + 0x70]
mov qword [rbx + 0x68], rsi
mov rsi, qword [rsp + 0x78]
xchg rcx, r13
mov qword [rbx + 0x74], r13
xchg rcx, r13
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
nop
add rsp, 8
xchg qword [rsp - 8], rdi
nop
add rsp, 8
jmp qword [rsp - 8]