Function at 0x1400937f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov rdi, r9
mov rcx, qword [rcx + 0x230]
mov rbp, r8
mov r14, rdx
call fcn.140080930
test al, al
jne 0x140093836
mov ecx, 0x40f
call fcn.1400a32b0
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test byte [rbx + 0x240], 8
jne 0x1400938a9
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x14009388c
mov r9, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [r9 + htons]
cmp eax, 2
jl 0x14009388c
mov rcx, qword [rbx + 0x220]
lea r9, str.id_p_handle_p:_cannot_write_to_because_it_is_not_connected
mov r10, qword [rdi]
mov edx, 2
mov qword [rsp + 0x28], rcx
mov r8d, 0x402
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [r10]
mov ecx, 0x41c
call fcn.1400a32b0
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbx]
mov edx, 1
mov r8d, 0xb0
mov qword [rsp + 0x60], rsi
call fcn.1400a2dd0
mov rsi, rax
test rax, rax
jne 0x1400938dc
mov edx, 0x200
lea eax, [rsi - 1]
mov dword [rbx + 0x240], edx
jmp 0x140093a86
mov qword [rax + 0xa0], rbp
lea rdx, [0x1400950a0]
mov qword [rax + 0xa8], rdi
lea rcx, [rsi + 0x10]
mov rax, qword [r14]
mov r8, rsi
mov qword [rsi + 0x98], rax
mov rax, qword [rbx]
mov qword [rsi], rax
mov qword [rsp + 0x68], r15
mov byte [rsi + 0x90], 1
mov qword [rsi + 8], rbx
call fcn.14008fad0
mov rcx, qword [rbx + 0x270]
lea r15, [rsi + 0x40]
add rcx, 0x150
mov qword [r15], rcx
mov rax, qword [rcx + 8]
mov qword [r15 + 8], rax
mov rax, qword [rcx + 8]
mov qword [rax], r15
mov qword [rcx + 8], r15
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x14009399a
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 6
jl 0x14009399a
mov rdx, qword [r14]
lea r9, str.id_p_handle_p:_queueing_write_of__llu_bytes
mov rax, qword [rbx + 0x220]
mov r8d, 0x402
mov r10, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x30], rdx
mov edx, 6
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [r10]
lea rcx, [rsi + 0x10]
call fcn.140008090
mov r8d, dword [r14]
xor r9d, r9d
mov rdx, qword [r14 + 8]
mov rcx, qword [rbx + 0x220]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140093a7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x3e5
je 0x140093a7f
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x140093a2b
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 2
jl 0x140093a2b
mov rcx, qword [rbx + 0x220]
lea r9, str.id_p_handle_p:_WriteFile___failed_with_error__d
mov r10, qword [rdi]
mov edx, 2
mov dword [rsp + 0x30], ebp
mov r8d, 0x402
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [r10]
mov rcx, qword [r15 + 8]
xorps xmm0, xmm0
mov rax, qword [r15]
mov rdx, rsi
mov qword [rcx], rax
mov rcx, qword [r15]
mov rax, qword [r15 + 8]
mov qword [rcx + 8], rax
movups xmmword [r15], xmm0
mov rcx, qword [rbx]
call fcn.1400a30d0
mov ecx, ebp
call fcn.140093d60
cmp eax, 0x41b
mov ecx, 0x100
mov edx, 0x200
cmovne ecx, edx
mov dword [rbx + 0x240], ecx
mov ecx, eax
call fcn.1400a32b0
mov eax, 0xffffffff
jmp 0x140093a81
xor eax, eax
mov r15, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret