Function at 0x14000cb30
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov qword [rsp + 0x50], r8
mov rdi, rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13b, 1
mov byte [rsp + 0x48], r13b
cmp byte [rdi + 0x198], 0
jne 0x14000d0fa
lea r14, [rdi + 0x148]
mov rax, qword [r14]
xor esi, esi
mov dword [rax], esi
mov qword [r14 + 0x10], 0xffffffffffffffff
mov rax, qword [rdi + 0x160]
mov dword [rax], esi
mov qword [rdi + 0x170], 0xffffffffffffffff
mov rax, qword [rdi + 0x178]
mov dword [rax], esi
mov qword [rdi + 0x188], 0xffffffffffffffff
mov r15, qword [rdi + 0x58]
mov ecx, esi
mov rbx, qword [r14]
mov edx, dword [rbx]
test edx, edx
je 0x14000cbf3
nop dword [rax]
mov eax, ecx
cmp qword [rbx + rax*8 + 8], r15
je 0x14000cc69
inc ecx
cmp ecx, edx
jb 0x14000cbe0
inc edx
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x14000cc5d
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r12d, edx
lea rcx, [rdx*8 + 8]
call fcn.14005ce18
mov rbx, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r14]
cmp dword [r8], esi
jbe 0x14000cc4e
nop dword [rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [rcx + r8 + 8]
mov qword [rcx + rbx + 8], rax
inc edx
mov r8, qword [r14]
cmp edx, dword [r8]
jb 0x14000cc30
mov rcx, r8
call fcn.14005d174
mov qword [r14], rbx
mov dword [r14 + 8], r12d
mov eax, dword [rbx]
mov qword [rbx + rax*8 + 8], r15
mov rax, qword [r14]
inc dword [rax]
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x14000cc8b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14000cc9b
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000cc75
xor al, al
test al, al
jne 0x14000cc9f
cmp qword [rdi + 0x78], rsi
jne 0x14000cc9f
xor bl, bl
jmp 0x14000cca1
mov al, 1
jmp 0x14000cc8d
mov bl, 1
lea rdx, [rdi + 0x68]
mov rcx, r14
call fcn.14000b630
mov r12, qword [rdi + 0x158]
test r12, r12
cmove r12, rsi
lea rdx, [rdi + 0x38]
test bl, bl
jne 0x14000ccc9
cmp qword [rdx + 0x78], rsi
je 0x14000cccb
mov bl, 1
add rdx, 0x68
lea rcx, [rdi + 0x160]
call fcn.14000b630
mov rax, qword [rdi + 0x170]
cmp rax, r12
cmova r12, rax
lea rdx, [rdi + 0x70]
add rdx, 0x68
lea rcx, [rdi + 0x178]
call fcn.14000b630
mov rax, qword [rdi + 0x188]
cmp rax, r12
cmova r12, rax
lea rcx, [rdi + 0x160]
lea rdx, [rdi + 0x110]
call fcn.14000b630
mov rax, qword [rdi + 0x170]
cmp rax, r12
cmova r12, rax
lea r15, [rdi + 0x178]
lea rdx, [rdi + 0x110]
mov rcx, r15
call fcn.14000b630
mov rax, qword [rdi + 0x188]
cmp rax, r12
cmova r12, rax
mov ecx, 0x11e1a300
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x14000cd77
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000cd61
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x70], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x74], ecx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r13b, r13b
mov byte [rsp + 0x48], r13b
mov qword [rbp - 0x70], rsi
lea rax, [0x14007c068]
mov qword [rbp - 0x68], rax
mov r9, qword [r15]
mov r8, qword [rdi + 0x160]
mov rdx, qword [r14]
test rdx, rdx
jne 0x14000ce09
test r8, r8
jne 0x14000ce09
test r9, r9
jne 0x14000ce09
mov eax, 0x10624dd3
imul dword [rsp + 0x74]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x70], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r12d, esi
jmp 0x14000d05a
cmp dword [rsp + 0x70], esi
jne 0x14000ce29
mov ecx, dword [rsp + 0x74]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x74], ecx
lea ecx, [r12 + 1]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov r12d, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x70]
call fcn.14000b820
test r12d, r12d
jle 0x14000d05a
mov rdx, qword [r14]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000d05a
lea rax, [rbp - 0x50]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x400
mov r14d, 4
mov rax, qword gs:[0x58]
add r14, qword [rax]
mov eax, 1
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x7c], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x78]
mov r8d, eax
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
mov ecx, dword [r14]
cmp dword [0x140080d58], ecx
jle 0x14000ceff
lea rcx, [0x140080d58]
call fcn.14005cb04
cmp dword [0x140080d58], 0xffffffff
jne 0x14000ceff
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x60], eax
lea rcx, [0x14007c058]
mov qword [rsp + 0x68], rcx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
cmp eax, 0x40
jne 0x14000cf34
mov edx, 0x2746
lea rcx, [rbp - 0x80]
call fcn.1400224f0
jmp 0x14000cf59
cmp eax, 0x4d2
jne 0x14000cf4b
mov edx, 0x274d
lea rcx, [rbp - 0x80]
call fcn.1400224f0
jmp 0x14000cf59
cmp eax, 0x2738
je 0x14000cf61
cmp eax, 0xea
je 0x14000cf61
test ebx, ebx
jne 0x14000d132
mov dword [rbp - 0x80], esi
mov eax, dword [rsp + 0x78]
cmp eax, 0x400
je 0x14000ce8e
test eax, eax
jg 0x14000d052
je 0x14000d021
mov ecx, dword [0x140080d58]
cmp ecx, dword [r14]
jle 0x14000cfc1
lea rcx, [0x140080d58]
call fcn.14005cb04
mov ecx, dword [0x140080d58]
cmp ecx, 0xffffffff
jne 0x14000cfc1
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
mov ecx, dword [0x140080d58]
mov rbx, qword [rbp - 0x78]
mov rax, qword [0x14007c060]
cmp qword [rbx + 8], rax
jne 0x14000cfda
cmp esi, 0x2733
je 0x14000d052
cmp ecx, dword [r14]
jle 0x14000d00c
lea rcx, [0x140080d58]
call fcn.14005cb04
cmp dword [0x140080d58], 0xffffffff
jne 0x14000d00c
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
mov rax, qword [0x14007c060]
cmp qword [rbx + 8], rax
jne 0x14000d021
cmp esi, 0x4d5
je 0x14000d052
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov byte [rdi + 0x198], 1
mov rcx, qword [rdi + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [rdi + 0x1a8]
call fcn.14000ac90
movzx r13d, byte [rsp + 0x48]
dec r12d
test r13b, r13b
jne 0x14000d06d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13b, 1
mov byte [rsp + 0x48], r13b
mov r14, qword [rsp + 0x50]
test r12d, r12d
jle 0x14000d0cb
mov r8, r14
lea rdx, [rdi + 0x110]
mov rcx, r15
call fcn.14000b710
mov r8, r14
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x160]
call fcn.14000b710
mov ebx, 2
lea rsi, [rdi + 0xd8]
nop dword [rax + rax]
mov r8, r14
mov rdx, rsi
mov rcx, r15
call fcn.14000b710
sub r15, 0x18
sub rsi, 0x38
sub ebx, 1
jns 0x14000d0b0
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x14000d0f5
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000d0e0
mov rbx, qword [rsp + 0x40]
test r13b, r13b
je 0x14000d108
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14005ca70
mov rbx, qword [rsp + 0x508]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov esi, dword [rbp - 0x80]
jmp 0x14000cf81