Function at 0x1401b9c50
Capabilities:
Write file on windows

Disassembly:
push rbx
mov qword [rsp], rbx
sub rsp, 0x50
xchg r13, rcx
mov rbx, r13
xchg r13, rcx
lea rax, [0x140004258]
xchg r11, rax
mov qword [rcx], r11
xchg r11, rax
cmp qword [rcx + 0x80], 0
je 0x1401b9cb7
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rdx, [rbx + 0x70]
cmp rax, rdx
jne 0x1401b9cb7
xchg rdx, r12
mov r12, qword [rbx + 0x88]
xchg rdx, r12
mov r9, qword [rbx + 0x90]
xchg rdx, r11
mov r8, r11
xchg rdx, r11
mov rcx, rbx
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]
cmp byte [rbx + 0x7c], 0
je 0x1401b9eec
cmp qword [rbx + 0x80], 0
je 0x1401b9e7d
xchg rcx, r12
mov r12, rbx
xchg r12, 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, [rbx + 0x70]
cmp rax, rcx
jne 0x1401b9d17
xchg rdx, r11
mov r11, qword [rbx + 0x88]
xchg r11, rdx
mov r9, qword [rbx + 0x90]
xchg r8, rdx
mov rdx, r8
xchg r8, rdx
xchg rbx, rcx
mov rbx, rcx
xchg rcx, rbx
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]
cmp qword [rbx + 0x68], 0
je 0x1401b9e6a
cmp byte [rbx + 0x71], 0
je 0x1401b9e6a
mov rax, qword [rbx]
xchg r14, r8
mov r14, qword [rax + 0x18]
xchg r8, r14
lea rax, [fcn.1401be370]
mov edx, 0x5f4f2fda
xor edx, 0x53f85b53
add edx, 0x7264e9c2
xor edx, 0x6ebe529f
xor edx, 0x7cfe0489
xor edx, 0x77a871cf
sub edx, 0xfc18ec2
add edx, 0x3f6cd82b
add edx, 0xb5603d04
xchg rbx, rcx
mov rbx, rcx
xchg rbx, rcx
cmp r8, rax
jne 0x1401b9d91
call fcn.1401be370
jmp 0x1401b9d94
call r8
cmp eax, 0xffffffff
je 0x1401b9e6a
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x60]
xchg r13, rax
mov qword [rsp + 0x20], r13
xchg r13, rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1401b9dfe
sub eax, 1
je 0x1401b9e16
cmp eax, 2
jne 0x1401b9e6a
mov byte [rbx + 0x71], 0x13
add byte [rbx + 0x71], 9
add byte [rbx + 0x71], 0x51
sub byte [rbx + 0x71], 3
xor byte [rbx + 0x71], 0x53
xor byte [rbx + 0x71], 0x59
xor byte [rbx + 0x71], 0x60
jmp 0x1401b9e6a
mov byte [rbx + 0x71], 0
add byte [rbx + 0x71], 0x1f
xor byte [rbx + 0x71], 0x46
add byte [rbx + 0x71], 0x15
xor byte [rbx + 0x71], 0x77
xor byte [rbx + 0x71], 0x19
lea rax, [rsp + 0x30]
xchg r12, r8
mov r12, qword [rsp + 0x60]
xchg r12, r8
sub r8, rax
je 0x1401b9e6a
xchg r9, rcx
mov rcx, qword [rbx + 0x80]
xchg r9, rcx
mov edx, 0x7ee60fd6
sub edx, 0x4ff89581
xor edx, 0x252275b1
add edx, 0x365338bf
sub edx, 0x316fddb9
sub edx, 0x10b26ae9
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xchg r8, rcx
mov r8, qword [rbx + 0x80]
xchg r8, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + 0x7c], 0x61
sub byte [rbx + 0x7c], 0x37
sub byte [rbx + 0x7c], 0x1e
xor byte [rbx + 0x7c], 8
add byte [rbx + 0x7c], 0x13
xor byte [rbx + 0x7c], 0x6d
sub byte [rbx + 0x7c], 5
xor byte [rbx + 0x7c], 0x66
sub byte [rbx + 0x7c], 0x13
mov byte [rbx + 0x71], 0x6b
xor byte [rbx + 0x71], 0x47
xor byte [rbx + 0x71], 0xf
add byte [rbx + 0x71], 0x15
add byte [rbx + 0x71], 5
add byte [rbx + 0x71], 0x33
xor byte [rbx + 0x71], 0x15
sub byte [rbx + 0x71], 0x65
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor ecx, ecx
mov qword [rbx + 0x80], rcx
mov rax, qword [0x140217130]
xchg rdi, rax
mov qword [rbx + 0x74], rdi
xchg rdi, rax
xchg r15, rcx
mov qword [rbx + 0x68], r15
xchg rcx, r15
xchg rdi, rbx
mov rcx, rdi
xchg rdi, rbx
add rsp, 0x50
nop
add rsp, 8
mov rbx, qword [rsp - 8]
jmp qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]