Function at 0x140009e40
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3b8
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r12, qword [rsp + 0x420]
mov rdi, rcx
xor ecx, ecx
movsxd rbp, r9d
mov r13d, r8d
mov r14, rdx
mov r15b, 1
call fcn.14019a0f4
mov esi, r13d
add rbp, rax
nop word [rax + rax]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
cmp ebx, 0xffffffff
jne 0x140009f80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2728
je 0x140009fb4
sub ecx, 0xb
je 0x140009fb4
cmp ecx, 0x14
je 0x140009fb4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Msg_Send_send_returns__d
lea rcx, [rsp + 0x260]
mov r8d, eax
call fcn.140197aa8
mov rcx, qword [0x14027d2e8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x14027d1c0], 0
je 0x140009f6b
call fcn.1400093c0
lea rcx, [0x140227eec]
lea rdx, [0x140227ef0]
test al, al
cmovne rdx, rcx
lea rcx, [0x14027d1c0]
call fcn.140197a78
mov rbx, rax
test rax, rax
je 0x140009f6b
lea rcx, [rsp + 0x2a0]
call fcn.14000c3a0
lea r9, [rsp + 0x260]
lea r8, [rsp + 0x2a0]
lea rdx, str._n_s__s_n
mov rcx, rbx
call fcn.14019c35c
mov rcx, rbx
call fcn.14019c0f4
mov rcx, qword [0x14027d2e8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
or eax, 0xffffffff
jmp 0x14000a163
cmp dword [0x14027d0a0], 0
je 0x140009faf
movzx r9d, r15b
mov r8d, ebx
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], rdi
call fcn.14000bd10
movzx r15d, r15b
test ebx, ebx
mov eax, 0
cmovg r15d, eax
add r14, rbx
sub esi, ebx
test esi, esi
jle 0x14000a160
nop dword [rax]
xor ecx, ecx
call fcn.14019a0f4
mov ecx, ebp
mov qword [rsp + 0x58], rdi
sub ecx, eax
xor eax, eax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], ecx
test ecx, ecx
jle 0x14000a019
xor edx, edx
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14000a13d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140009fc0
mov ecx, 0x274c
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, qword [0x14027d2e8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x14027d1c0], 0
je 0x140009f6b
call fcn.1400093c0
lea rcx, [0x140227eec]
lea rdx, [0x140227ef0]
test al, al
cmovne rdx, rcx
lea rcx, [0x14027d1c0]
call fcn.140197a78
mov rdi, rax
test rax, rax
je 0x140009f6b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call sub.KERNEL32.dll_GetCurrentProcessId
lea rdx, str.Process_ID:__d___Thread_ID:__ld
lea rcx, [rsp + 0x2a0]
mov r9d, ebx
mov r8d, eax
call fcn.140197aa8
lea rcx, [rsp + 0x38]
call fcn.14019d81c
lea rcx, [rsp + 0x38]
call fcn.14019d9b8
lea rcx, [rsp + 0x2a0]
mov r9, rax
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14000a0c0
lea rcx, [rsp + 0x2a0]
lea r8, str.__m__d__Y__H:_M:_S
mov edx, 0x3c
add rcx, rax
call fcn.140199dc0
movzx r8d, word [rsp + 0x40]
lea rcx, [rsp + 0x2a0]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14000a0f7
lea rcx, [rsp + 0x2a0]
lea rdx, str.._3.3hu
add rcx, rax
call fcn.140197aa8
lea r9, str.Msg_Send_send_timed_out
lea r8, [rsp + 0x2a0]
lea rdx, str._n_s__s_n
mov rcx, rdi
call fcn.14019c35c
mov rcx, rdi
jmp 0x140009f66
test eax, eax
jle 0x14000a019
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140009e90
jmp 0x14000a019
mov eax, r13d
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.14019ac00
add rsp, 0x3b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret