Function at 0x180159e60
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x210
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x248], rbx
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r15, r9
mov r14d, r8d
movzx ebp, dl
mov rdi, rcx
mov rsi, qword [rsp + 0x260]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
lea r8, str.terminateConnection
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180105b50
nop
cmp qword [rdi + 0x298], 0xffffffffffffffff
je 0x18015a0d8
lea rdx, [rdi + 0xd6]
cmp byte [rdx], 0
jne 0x18015a0d8
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rcx, [rsp + 0x28]
call fcn.180103090
nop
test bpl, bpl
jne 0x180159f0a
mov ecx, 1
call fcn.180104b90
mov bl, 1
cmp byte [rdi + 0x291], 0
jne 0x18015a045
test bpl, bpl
jne 0x18015a045
cmp byte [rdi + 0x292], bpl
jne 0x18015a045
mov edx, 1
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rdi + 0x292], bl
test eax, eax
je 0x180159f84
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.180158450
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x298], 0xffffffffffffffff
xor bl, bl
jmp 0x18015a0c3
cmp qword [rdi + 0x298], 0xffffffffffffffff
jne 0x180159f95
xor bl, bl
jmp 0x18015a045
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 + 0x50]
call fcn.180211600
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.180175940
nop
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x18015a01f
cmp eax, 0xffffffff
jg 0x18015a001
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18015a011
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
cmovb ebx, eax
sub eax, ebx
cmp eax, ebp
jb 0x180159fcf
lea rcx, [rsp + 0x50]
call fcn.1801759e0
xor bl, bl
jmp 0x18015a045
cmp byte [rsi + 0x161], 0
je 0x18015a039
mov rax, qword [rsi]
lea rdx, str.TCP_connection_cleanly_closed_by_peer.
mov rcx, rsi
call qword [rax + 0x30]
nop
lea rcx, [rsp + 0x50]
call fcn.1801759e0
mov bl, 1
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x18015a07a
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.180157eb0
xor bl, bl
mov qword [rdi + 0x298], 0xffffffffffffffff
cmp byte [rsi + 0x161], 0
je 0x18015a0c3
mov rax, qword [rsi]
mov rcx, rsi
cmp byte [rdi + 0x291], 0
je 0x18015a0a9
lea rdx, str.Closed_listen_socket.
call qword [rax + 0x30]
jmp 0x18015a0c3
mov r8, qword [rax + 0x30]
test bl, bl
lea rdx, str.Cleanly_terminated_TCP_connection.
jne 0x18015a0bf
lea rdx, str.Terminated_TCP_connection.
call r8
nop
mov word [rdi + 0x290], 0
lea rcx, [rsp + 0x28]
call fcn.1801031c0
jmp 0x18015a0da
mov bl, 1
lea rcx, [rsp + 0x38]
call fcn.180105c80
movzx eax, bl
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.18007b140
mov rbx, qword [rsp + 0x248]
add rsp, 0x210
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret