Function at 0x14008d250
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 [0x1402a7978]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r12, r8
mov rsi, 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 [rsi + 0x198], 0
jne 0x14008d7ca
lea r15, [rsi + 0x148]
mov rax, qword [r15]
xor edi, edi
mov dword [rax], edi
mov qword [r15 + 0x10], 0xffffffffffffffff
mov rax, qword [rsi + 0x160]
mov dword [rax], edi
mov qword [rsi + 0x170], 0xffffffffffffffff
mov rax, qword [rsi + 0x178]
mov dword [rax], edi
mov qword [rsi + 0x188], 0xffffffffffffffff
mov rbx, qword [rsi + 0x58]
mov ecx, edi
mov r8, qword [r15]
mov edx, dword [r8]
test edx, edx
je 0x14008d30f
nop dword [rax + rax]
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14008d328
inc ecx
cmp ecx, edx
jb 0x14008d300
inc edx
mov rcx, r15
call fcn.14008c180
mov rcx, qword [r15]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [r15]
inc dword [rax]
mov rbx, qword [rsi + 0x190]
test rbx, rbx
je 0x14008d34a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14008d35f
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14008d334
xor al, al
nop dword [rax]
test al, al
jne 0x14008d363
cmp qword [rsi + 0x78], rdi
jne 0x14008d363
xor r14b, r14b
jmp 0x14008d366
mov al, 1
jmp 0x14008d350
mov r14b, 1
lea rdx, [rsi + 0x68]
mov rcx, r15
call fcn.14008bf90
mov rbx, qword [rsi + 0x158]
test rbx, rbx
cmove rbx, rdi
lea rdx, [rsi + 0x38]
test r14b, r14b
jne 0x14008d38f
cmp qword [rdx + 0x78], rdi
je 0x14008d392
mov r14b, 1
add rdx, 0x68
lea rcx, [rsi + 0x160]
call fcn.14008bf90
mov rax, qword [rsi + 0x170]
cmp rax, rbx
cmova rbx, rax
lea rdx, [rsi + 0x70]
add rdx, 0x68
lea rcx, [rsi + 0x178]
call fcn.14008bf90
mov rax, qword [rsi + 0x188]
cmp rax, rbx
cmova rbx, rax
lea rcx, [rsi + 0x160]
lea rdx, [rsi + 0x110]
call fcn.14008bf90
mov rax, qword [rsi + 0x170]
cmp rax, rbx
cmova rbx, rax
lea r14, [rsi + 0x178]
lea rdx, [rsi + 0x110]
mov rcx, r14
call fcn.14008bf90
mov rax, qword [rsi + 0x188]
cmp rax, rbx
cmovbe rax, rbx
mov qword [rsp + 0x50], rax
mov ecx, 0x11e1a300
mov rbx, qword [rsi + 0x190]
test rbx, rbx
je 0x14008d446
nop dword [rax]
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 0x14008d430
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], rdi
lea rax, [0x1402a9358]
mov qword [rbp - 0x68], rax
mov r9, qword [r14]
mov r8, qword [rsi + 0x160]
mov rdx, qword [r15]
test rdx, rdx
jne 0x14008d4d7
test r8, r8
jne 0x14008d4d7
test r9, r9
jne 0x14008d4d7
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 ebx, edi
jmp 0x14008d72f
cmp dword [rsp + 0x70], edi
jne 0x14008d4f7
mov ecx, dword [rsp + 0x74]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x74], ecx
mov rcx, qword [rsp + 0x50]
inc ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov dword [rsp + 0x50], eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x70]
call fcn.14005dde0
test ebx, ebx
jle 0x14008d72f
mov rdx, qword [r15]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14008d72f
lea rax, [rbp - 0x50]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x400
mov r15d, 4
mov rax, qword gs:[0x58]
add r15, qword [rax]
mov eax, 1
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x7c], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x78]
mov r8d, eax
lea rdx, [rbp - 0x60]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
mov ecx, dword [r15]
cmp dword [0x140308a4c], ecx
jle 0x14008d5d1
lea rcx, [0x140308a4c]
call fcn.1401568cc
cmp dword [0x140308a4c], 0xffffffff
jne 0x14008d5d1
lea rcx, [0x1401ae860]
call fcn.140156e18
lea rcx, [0x140308a4c]
call fcn.140156860
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x60], eax
lea rcx, [0x1402a9348]
mov qword [rsp + 0x68], rcx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
cmp eax, 0x40
jne 0x14008d606
mov edx, 0x2746
lea rcx, [rbp - 0x80]
call fcn.140062430
jmp 0x14008d62b
cmp eax, 0x4d2
jne 0x14008d61d
mov edx, 0x274d
lea rcx, [rbp - 0x80]
call fcn.140062430
jmp 0x14008d62b
cmp eax, 0x2738
je 0x14008d633
cmp eax, 0xea
je 0x14008d633
test ebx, ebx
jne 0x14008d802
mov dword [rbp - 0x80], edi
mov eax, dword [rsp + 0x78]
cmp eax, 0x400
je 0x14008d560
test eax, eax
jg 0x14008d724
je 0x14008d6f3
mov ecx, dword [0x140308a4c]
cmp ecx, dword [r15]
jle 0x14008d693
lea rcx, [0x140308a4c]
call fcn.1401568cc
mov ecx, dword [0x140308a4c]
cmp ecx, 0xffffffff
jne 0x14008d693
lea rcx, [0x1401ae860]
call fcn.140156e18
lea rcx, [0x140308a4c]
call fcn.140156860
mov ecx, dword [0x140308a4c]
mov rbx, qword [rbp - 0x78]
mov rax, qword [0x1402a9350]
cmp qword [rbx + 8], rax
jne 0x14008d6ac
cmp edi, 0x2733
je 0x14008d724
cmp ecx, dword [r15]
jle 0x14008d6de
lea rcx, [0x140308a4c]
call fcn.1401568cc
cmp dword [0x140308a4c], 0xffffffff
jne 0x14008d6de
lea rcx, [0x1401ae860]
call fcn.140156e18
lea rcx, [0x140308a4c]
call fcn.140156860
mov rax, qword [0x1402a9350]
cmp qword [rbx + 8], rax
jne 0x14008d6f3
cmp edi, 0x4d5
je 0x14008d724
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov byte [rsi + 0x198], 1
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [rsi + 0x1a8]
call fcn.14008b970
movzx r13d, byte [rsp + 0x48]
mov ebx, dword [rsp + 0x50]
dec ebx
test r13b, r13b
jne 0x14008d742
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13b, 1
mov byte [rsp + 0x48], r13b
test ebx, ebx
jle 0x14008d79b
mov r8, r12
lea rdx, [rsi + 0x110]
mov rcx, r14
call fcn.14008c070
mov r8, r12
lea rdx, [rsi + 0x110]
lea rcx, [rsi + 0x160]
call fcn.14008c070
mov ebx, 2
lea rdi, [rsi + 0xd8]
nop word [rax + rax]
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.14008c070
sub r14, 0x18
sub rdi, 0x38
sub ebx, 1
jns 0x14008d780
mov rbx, qword [rsi + 0x190]
test rbx, rbx
je 0x14008d7c5
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14008d7b0
mov rbx, qword [rsp + 0x40]
test r13b, r13b
je 0x14008d7d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140156510
mov rbx, qword [rsp + 0x508]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edi, dword [rbp - 0x80]
jmp 0x14008d653