Function at 0x14009fe40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x210
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x240], r14d
mov rdx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, 0xe
jb 0x1400a04f0
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14009fe8e
mov r9, qword [rbx]
mov qword [rsp + 0x30], reloc.WS2_32.dll_ntohl
lea rax, str..tmp._________
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov r8, rbx
movzx edx, byte [rsp + 0x238]
lea rcx, [rsp + 0x60]
call fcn.14000bbb0
nop
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], 7
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
xor r9d, r9d
lea r8, [rsp + 0x80]
call qword [sym.imp.boost_filesystem_vc142_mt_x64_1_84.dll_void___cdecl_boost::filesystem::detail::path_traits::convert_char_const____ptr64__char_const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64__class_std::codecvt_wchar_t__char__struct__Mbstatet__const____ptr64_]
nop
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.boost_filesystem_vc142_mt_x64_1_84.dll_class_boost::filesystem::path___cdecl_boost::filesystem::detail::unique_path_class_boost::filesystem::path_const____ptr64__class_boost::system::error_code____ptr64_]
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
jb 0x14009ff84
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ff7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009ff7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140163960
movdqa xmm0, xmmword [0x14017efe0]
movdqu xmmword [rsp + 0x90], xmm0
mov word [rsp + 0x80], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14009ffde
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ffd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009ffd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140163960
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], 7
mov rdx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400a0012
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x1400a0018
add rdx, rbx
mov rcx, rbx
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
xor r9d, r9d
lea r8, [rsp + 0x40]
call qword [sym.imp.boost_filesystem_vc142_mt_x64_1_84.dll_void___cdecl_boost::filesystem::detail::path_traits::convert_char_const____ptr64__char_const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64__class_std::codecvt_wchar_t__char__struct__Mbstatet__const____ptr64_]
nop
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x240]
call qword [sym.imp.boost_filesystem_vc142_mt_x64_1_84.dll_class_boost::filesystem::file_status___cdecl_boost::filesystem::detail::status_class_boost::filesystem::path_const____ptr64__class_boost::system::error_code____ptr64_]
cmp dword [rax], 1
seta dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400a0094
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a008f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a008f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140163960
test dil, dil
je 0x1400a013a
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], 7
mov rdx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400a00be
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x1400a00c4
add rdx, rbx
mov rcx, rbx
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
xor r9d, r9d
lea r8, [rsp + 0x40]
call qword [sym.imp.boost_filesystem_vc142_mt_x64_1_84.dll_void___cdecl_boost::filesystem::detail::path_traits::convert_char_const____ptr64__char_const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64__class_std::codecvt_wchar_t__char__struct__Mbstatet__const____ptr64_]
nop
xor r8d, r8d
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.boost_filesystem_vc142_mt_x64_1_84.dll_void___cdecl_boost::filesystem::detail::rename_class_boost::filesystem::path_const____ptr64__class_boost::filesystem::path_const____ptr64__class_boost::system::error_code____ptr64_]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400a013a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a0135
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a0135
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140163960
lea rax, [0x14017c6b0]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x148]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x240], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rdi
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x9c], edx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x248], rax
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xa8], rax
mov byte [rsp + 0x124], 0
mov byte [rsp + 0x119], 0
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x128], r14
mov rax, qword [0x14020e148]
mov qword [rsp + 0x11c], rax
mov qword [rsp + 0x110], r14
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.14009f510
nop
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8, [rsp + 0xa0]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400a0660
cmp dword [rsp + 0x60], 0
jne 0x1400a04f6
cmp qword [rsp + 0x128], 0
je 0x1400a03eb
mov rax, qword [rsp + 0xc0]
lea rcx, [rsp + 0x118]
cmp qword [rax], rcx
jne 0x1400a02a6
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov qword [rax], rcx
mov rax, qword [rsp + 0xe0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0xf8]
mov dword [rax], edx
cmp qword [rsp + 0x110], 0
je 0x1400a032b
cmp byte [rsp + 0x119], 0
je 0x1400a032b
mov rax, qword [rsp + 0xa8]
mov edx, 0xffffffff
lea rcx, [rsp + 0xa8]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400a02dc
xor al, al
jmp 0x1400a032d
lea rax, [rsp + 0x238]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x11c]
mov rcx, qword [rsp + 0x110]
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 0x1400a039a
sub eax, 1
je 0x1400a03a2
cmp eax, 2
je 0x1400a0323
xor al, al
jmp 0x1400a032d
mov byte [rsp + 0x119], 0
mov al, 1
lea rbx, [rsp + 0xa8]
test al, al
cmove rbx, r14
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r14
mov byte [rsp + 0x124], 0
mov byte [rsp + 0x119], 0
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x128], r14
mov rax, qword [0x14020e148]
mov qword [rsp + 0x11c], rax
mov qword [rsp + 0x110], r14
test rbx, rbx
jne 0x1400a044c
jmp 0x1400a0428
mov byte [rsp + 0x119], 0
lea rax, [rsp + 0x40]
mov rbx, qword [rsp + 0x238]
sub rbx, rax
je 0x1400a03db
mov r9, qword [rsp + 0x128]
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x1400a03db
xor al, al
jmp 0x1400a032d
cmp byte [rsp + 0x119], 0
sete al
jmp 0x1400a032d
mov byte [rsp + 0x124], 0
mov byte [rsp + 0x119], 0
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x128], r14
mov rax, qword [0x14020e148]
mov qword [rsp + 0x11c], rax
mov qword [rsp + 0x110], r14
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x1d0], xmm0
mov qword [rsp + 0x1e0], r14
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.boost_filesystem_vc142_mt_x64_1_84.dll_bool___cdecl_boost::filesystem::detail::remove_class_boost::filesystem::path_const____ptr64__class_boost::system::error_code____ptr64_]
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0xa0], rdi
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xa8]
call fcn.140010570
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x148]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1b0]
call fcn.140014ff0
mov al, 1
mov rbx, qword [rsp + 0x230]
add rsp, 0x210
pop r14
pop rdi
pop rsi
ret
call fcn.140015130
nop
lea rcx, [rsp + 0xa0]
call fcn.14009f4b0
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400040d0
nop
lea rcx, [rsp + 0x40]
call fcn.14009fbf0
nop
lea rcx, [rsp + 0x40]
call fcn.140010650
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400040d0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1b0]
call fcn.14009fc20
nop
lea rcx, [rsp + 0x40]
call fcn.140010650
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1e8]
call fcn.14009f3f0
lea rdx, [0x1401fb520]
lea rcx, [rsp + 0x1e8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3