Function at 0x140070140
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x1400e6210]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r14, qword [0x1400e6b50]
lea rax, str.4_32_1_3__Ch_48_8_5__Dest_64_32_4__Str_80_8_4__Src
mov qword [rsp + 0x40], 0x41b58ab3
mov r15d, edx
mov qword [rsp + 0x48], rax
mov rdi, rcx
lea rax, [method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_24]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
shr rax, 3
add rax, r14
mov dword [rax], 0xf1f1f1f1
mov dword [rax + 4], 0xf200f201
mov dword [rax + 8], 0
mov dword [rax + 0xc], 0xf2f2f2f2
mov dword [rax + 0x10], 0xf3f3f300
mov byte [rax + 0x14], 0xf3
cmp edx, 0xffffffff
jne 0x1400701eb
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0x45e0360e
shr rcx, 3
lea edx, [r15 + 0x16]
add rcx, r14
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
xor eax, eax
jmp 0x1400704a4
mov qword [rsp + 0x140], rbx
add rcx, 0x40
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0xf0], r13
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rbx, qword [rdi + 0x40]
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rsi, qword [rbx]
test rsi, rsi
je 0x1400702b4
lea rcx, [rdi + 0x58]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rbx, qword [rdi + 0x58]
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load4
movsxd r13, dword [rbx]
lea rax, [rsi + r13]
cmp rsi, rax
jae 0x1400702b4
mov rcx, rbx
dec r13d
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_store4
lea rcx, [rdi + 0x40]
mov dword [rbx], r13d
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rdi, qword [rdi + 0x40]
mov rcx, rdi
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rsi, qword [rdi]
mov rcx, rdi
lea rbx, [rsi + 1]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_store8
mov rcx, rsi
mov qword [rdi], rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_store1
lea rcx, [rsp + 0x40]
mov byte [rsi], r15b
shr rcx, 3
mov edx, socket
add rcx, r14
mov qword [rsp + 0x40], 0x45e0360e
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
mov eax, r15d
jmp 0x140070484
lea rsi, [rdi + 0x80]
mov rcx, rsi
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
cmp qword [rsi], 0
je 0x140070460
mov rcx, rdi
call fcn.140070d80
lea rcx, [rdi + 0x68]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rbx, qword [rdi + 0x68]
test rbx, rbx
jne 0x14007032d
mov rcx, rsi
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rdx, qword [rsi]
movsx ecx, r15b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ebx, 0xffffffff
mov qword [rsp + 0x40], 0x45e0360e
cmp eax, ebx
lea rcx, [rsp + 0x40]
mov edx, socket
cmovne ebx, r15d
shr rcx, 3
add rcx, r14
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
mov eax, ebx
jmp 0x140070484
lea rcx, [rsp + 0x60]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_store1
lea rax, [rsp + 0x70]
mov byte [rsp + 0x60], r15b
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 0x60]
mov rcx, rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x61]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], 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 0x1400703db
sub eax, 1
je 0x1400703db
cmp eax, 2
jne 0x140070460
mov rcx, rsi
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
lea rcx, [rsp + 0x60]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load1
movsx ecx, byte [rsp + 0x60]
mov rdx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ebx, 0xffffffff
mov qword [rsp + 0x40], 0x45e0360e
cmp eax, ebx
lea rcx, [rsp + 0x40]
mov edx, socket
cmovne ebx, r15d
shr rcx, 3
add rcx, r14
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
mov eax, ebx
jmp 0x140070484
lea rcx, [rsp + 0x70]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov rbx, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
sub rbx, rax
je 0x140070415
mov rcx, rsi
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
mov r9, qword [rsi]
lea rcx, [rbp - 0x80]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140070460
lea rcx, [rdi + 0x71]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_store1
lea rcx, [rbp - 0x40]
mov byte [rdi + 0x71], 1
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_load8
lea rax, [rsp + 0x60]
mov ebx, 0xffffffff
cmp qword [rbp - 0x40], rax
lea rcx, [rsp + 0x40]
mov edx, socket
mov qword [rsp + 0x40], 0x45e0360e
cmovne ebx, r15d
shr rcx, 3
add rcx, r14
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
mov eax, ebx
jmp 0x140070484
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0x45e0360e
shr rcx, 3
mov edx, socket
add rcx, r14
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
mov eax, 0xffffffff
mov r12, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x140]
mov r13, qword [rsp + 0xf0]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140084bc0
add rsp, 0x108
pop r15
pop r14
pop rdi
pop rbp
ret