Function at 0x140061880
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rsi, rcx
mov r12, r8
mov ecx, 8
mov rbx, rdx
call fcn.140011b08
mov edx, 2
mov qword [rsp + 0x30], rax
mov ecx, edx
xor r8d, r8d
mov r15, rax
mov qword [rax], 0xffffffffffffffff
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [r15], rax
cmp rax, 0xffffffffffffffff
je 0x14006190b
mov rdx, rbx
mov rcx, r15
call fcn.140061250
test eax, eax
jne 0x14006191c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [r15], 0xffffffffffffffff
mov ebx, eax
je 0x1400618f6
mov qword [r15], 0xffffffffffffffff
mov edx, 8
mov rcx, r15
call fcn.140011b00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x2d0
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret
xorps xmm0, xmm0
mov qword [rsp + 0x300], rdi
movups xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x30]
mov byte [rbp - 0x70], 0x1b
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call fcn.140061d20
mov rdi, rax
mov rcx, qword [rax]
shr rcx, 0x20
call qword [sym.imp.WSOCK32.dll_htonl]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.WSOCK32.dll_htonl]
mov rcx, qword [r15]
lea rdx, [rbp - 0x70]
xor r9d, r9d
mov dword [rbp - 0x48], ebx
mov dword [rbp - 0x44], eax
lea r8d, [r9 + 0x30]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x1400619ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [r15], 0xffffffffffffffff
mov ebx, eax
je 0x14006198f
mov qword [r15], 0xffffffffffffffff
mov edx, 8
mov rcx, r15
call fcn.140011b00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140061a85
mov ecx, dword [rsi]
mov eax, 0x10624dd3
mul ecx
xor r9d, r9d
mov dword [rbp - 0x40], 1
shr edx, 6
xor r8d, r8d
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
lea rdx, [rbp - 0x40]
sub ecx, eax
mov rax, qword [r15]
mov qword [rbp - 0x38], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], ecx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x140061bb3
test eax, eax
je 0x140061bb3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x308], r13
call fcn.140061d20
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov rax, qword [rax]
mov qword [r12 + 0x20], rax
xor eax, eax
mov rcx, qword [r15]
movups xmmword [rsp + 0x40], xmm0
mov dword [rbp - 0x80], eax
lea r8d, [rax + 0x44]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jne 0x140061a9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [r15], 0xffffffffffffffff
mov ebx, eax
je 0x140061a66
mov qword [r15], 0xffffffffffffffff
mov edx, 8
mov rcx, r15
call fcn.140011b00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov r13, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x300]
add rsp, 0x2d0
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret
movzx eax, byte [rsp + 0x41]
mov ecx, dword [rsp + 0x5c]
mov dword [r12 + 4], eax
movzx eax, byte [rsp + 0x40]
shr eax, 6
mov dword [r12], eax
mov qword [rsp + 0x310], r14
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, eax
shl rcx, 0x20
add rcx, rbx
mov qword [r12 + 8], rcx
mov ecx, dword [rsp + 0x64]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, eax
shl rcx, 0x20
add rcx, rbx
mov qword [r12 + 0x10], rcx
mov ecx, dword [rsp + 0x6c]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov r8d, eax
lea rdx, [r12 + 8]
shl r8, 0x20
lea rcx, [r12 + 0x20]
add r8, rbx
mov qword [r12 + 0x18], r8
call fcn.1400614f0
lea rcx, [r12 + 0x10]
movaps xmm2, xmm0
lea rdx, [r12 + 0x18]
call fcn.1400614f0
subsd xmm2, xmm0
lea rdx, [r12 + 8]
lea rcx, [r12 + 0x10]
movsd qword [r12 + 0x28], xmm2
call fcn.1400614f0
lea rcx, [r12 + 0x18]
movaps xmm2, xmm0
lea rdx, [r12 + 0x20]
call fcn.1400614f0
mov r14, qword [rsp + 0x310]
addsd xmm2, xmm0
mulsd xmm2, qword [0x14007f5a8]
movsd qword [r12 + 0x30], xmm2
cmp qword [r15], 0xffffffffffffffff
je 0x140061b9c
mov qword [r15], 0xffffffffffffffff
mov edx, 8
mov rcx, r15
call fcn.140011b00
mov eax, 1
jmp 0x140061a7d
cmp qword [r15], 0xffffffffffffffff
je 0x140061bc0
mov qword [r15], 0xffffffffffffffff
mov edx, 8
mov rcx, r15
call fcn.140011b00
mov ecx, 0x274c
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140061a85