Function at 0x140139850
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x220
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov r15, r9
mov r14d, r8d
movzx ebp, dl
mov rbx, rcx
mov rsi, qword [rsp + 0x270]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea r8, str.terminateConnection
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400531e0
nop
cmp qword [rbx + 0x290], 0xffffffffffffffff
je 0x140139b38
lea rdx, [rbx + 0xce]
cmp byte [rdx], 0
jne 0x140139b38
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rcx, [rsp + 0x38]
call fcn.140012380
nop
mov r12d, 1
test bpl, bpl
jne 0x1401398f7
mov ecx, r12d
call sub.KERNEL32.dll_Sleep
movzx edi, r12b
cmp byte [rbx + 0x289], 0
jne 0x140139a51
test bpl, bpl
jne 0x140139a51
cmp byte [rbx + 0x28a], bpl
jne 0x140139a51
mov edx, r12d
mov rcx, qword [rbx + 0x290]
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rbx + 0x28a], r12b
test eax, eax
je 0x140139973
mov rax, qword [rsi]
lea rdx, str.error_on_socket_shutdown.
mov rcx, rsi
call qword [rax + 0x28]
mov rdx, rsi
xor ecx, ecx
call fcn.140137e40
mov rcx, qword [rbx + 0x290]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x290], 0xffffffffffffffff
xor dil, dil
jmp 0x140139b23
cmp qword [rbx + 0x290], 0xffffffffffffffff
jne 0x140139985
xor dil, dil
jmp 0x140139a51
mov eax, 0x7530
mov ebp, eax
test r14d, r14d
cmovne ebp, r14d
cmp ebp, eax
cmova ebp, eax
xor edx, edx
mov r8d, 0x188
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.14007ce90
nop
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rbx + 0x290]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140139a2a
nop
cmp eax, 0xffffffff
jg 0x1401399f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140139afa
call sub.KERNEL32.dll_GetTickCount
cmp eax, edi
cmovb edi, eax
sub eax, edi
cmp eax, ebp
jae 0x140139afa
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rbx + 0x290]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1401399e0
cmp byte [rsi + 0x169], 0
je 0x140139a44
mov rax, qword [rsi]
lea rdx, str.TCP_connection_cleanly_closed_by_peer.
mov rcx, rsi
call qword [rax + 0x30]
nop
lea rcx, [rsp + 0x60]
call fcn.14007cf30
mov dil, 1
lea rcx, [rsi + 0x98]
lea rdx, str.AbortiveClose
call fcn.140033b20
test al, al
je 0x140139a95
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x80
mov rcx, qword [rbx + 0x290]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x290]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140139acb
mov rax, qword [rsi]
lea rdx, str.error_on_closesocket.
mov rcx, rsi
call qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rsi
xor edx, edx
mov ecx, eax
call fcn.1401378a0
xor dil, dil
mov qword [rbx + 0x290], 0xffffffffffffffff
cmp byte [rsi + 0x169], 0
je 0x140139b23
mov rax, qword [rsi]
mov rcx, rsi
cmp byte [rbx + 0x289], 0
je 0x140139b0c
lea rdx, str.Closed_listen_socket.
call qword [rax + 0x30]
jmp 0x140139b23
lea rcx, [rsp + 0x60]
call fcn.14007cf30
xor dil, dil
jmp 0x140139a51
test dil, dil
lea rdx, str.Cleanly_terminated_TCP_connection.
jne 0x140139b1f
lea rdx, str.Terminated_TCP_connection.
call qword [rax + 0x30]
nop
mov word [rbx + 0x288], 0
lea rcx, [rsp + 0x38]
call fcn.1400124a0
jmp 0x140139b3b
mov dil, 1
lea rcx, [rsp + 0x48]
call fcn.140053390
movzx eax, dil
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1401e12d0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret