Function at 0x14001d040
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 - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1401bf0a0]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14, r8
mov r15, rcx
mov qword [rsp + 0x68], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x70], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x78], 1
cmp byte [r15 + 0x1d8], 0
jne 0x14001d59d
lea r12, [r15 + 0x188]
mov rax, qword [r12]
xor edi, edi
mov dword [rax], edi
mov qword [r12 + 0x10], 0xffffffffffffffff
mov rax, qword [r15 + 0x1a0]
mov dword [rax], edi
mov qword [r15 + 0x1b0], 0xffffffffffffffff
mov rax, qword [rbx + 0x188]
mov dword [rax], edi
mov qword [rbx + 0x198], 0xffffffffffffffff
mov rbx, qword [r15 + 0x58]
mov ecx, edi
mov r8, qword [r12]
mov edx, dword [r8]
test edx, edx
je 0x14001d100
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14001d11b
inc ecx
cmp ecx, edx
jb 0x14001d0f1
inc edx
mov rcx, r12
call fcn.14001c1f0
mov rcx, qword [r12]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [r12]
inc dword [rax]
mov rbx, qword [r15 + 0x1d0]
test rbx, rbx
je 0x14001d13d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14001d13d
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14001d127
lea rsi, [r15 + 0x198]
add r15, 0x68
mov r13d, 3
nop
mov rbx, rdi
mov rdx, r15
mov rcx, r12
call fcn.14001bff0
mov rdi, qword [rsi]
cmp rdi, rbx
cmovbe rdi, rbx
add r12, 0x18
add r15, 0x48
lea rsi, [rsi + 0x18]
sub r13, 1
jne 0x14001d150
mov r13, qword [rsp + 0x68]
lea rdx, [r13 + 0x140]
lea rcx, [r13 + 0x1a0]
call fcn.14001bff0
mov rbx, qword [r13 + 0x1b0]
cmp rbx, rdi
cmovbe rbx, rdi
lea rdi, [r13 + 0x1b8]
lea rdx, [r13 + 0x140]
mov rcx, rdi
call fcn.14001bff0
mov rsi, qword [r13 + 0x1c8]
cmp rsi, rbx
cmovbe rsi, rbx
mov ecx, 1
mov rbx, qword [r13 + 0x1d0]
test rbx, rbx
je 0x14001d1eb
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 0x14001d1d5
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x48], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x4c], ecx
lea rcx, [r13 + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov byte [rsp + 0x54], bl
lea rax, [0x140195cb8]
mov qword [rsp + 0x58], rax
mov r9, qword [rdi]
mov r8, qword [r13 + 0x1a0]
mov rdx, qword [r13 + 0x188]
test rdx, rdx
jne 0x14001d27e
test r8, r8
jne 0x14001d27e
test r9, r9
jne 0x14001d27e
mov eax, 0x10624dd3
imul dword [rsp + 0x4c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x48], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov esi, ebx
jmp 0x14001d4b2
cmp dword [rsp + 0x48], ebx
jne 0x14001d29e
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x4c], ecx
lea ecx, [rsi + 1]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
test eax, eax
sets dl
lea rcx, [rsp + 0x50]
call fcn.14001c280
test esi, esi
jle 0x14001d4b2
mov rdx, qword [r13 + 0x188]
mov rcx, qword [r13 + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001d4b2
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x50], 0x400
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, 1
lea rdx, [rbp - 0x50]
mov rcx, qword [r13 + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x80], eax
test eax, eax
setne byte [rbp - 0x7c]
lea rcx, [0x140195cb8]
mov qword [rbp - 0x78], rcx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm0
cmp eax, 0x40
jne 0x14001d36d
mov dword [rbp - 0x70], 0x2746
mov byte [rbp - 0x6c], 1
mov qword [rbp - 0x68], rcx
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rsp + 0x50], xmm0
jmp 0x14001d39d
cmp eax, 0x4d2
jne 0x14001d38f
mov dword [rbp - 0x60], 0x274d
mov byte [rbp - 0x5c], 1
mov qword [rbp - 0x58], rcx
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x50], xmm0
jmp 0x14001d39d
cmp eax, 0x2738
je 0x14001d3a1
cmp eax, 0xea
je 0x14001d3a1
test ebx, ebx
jne 0x14001d3e8
xor r15d, r15d
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 8]
movabs rcx, 0x8fafd21e25c5e09b
cmp rax, rcx
je 0x14001d3d6
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x14001d3d6
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov eax, dword [rsp + 0x60]
cmp eax, 0x400
jne 0x14001d3f4
xor ebx, ebx
jmp 0x14001d2f2
mov rbx, qword [rsp + 0x58]
mov r15d, dword [rsp + 0x50]
jmp 0x14001d3fe
test eax, eax
jg 0x14001d4b0
je 0x14001d42e
movabs rax, 0x8fafd21e25c5e09b
cmp r15d, 0x2733
jne 0x14001d41b
cmp qword [rbx + 8], rax
je 0x14001d4b0
cmp r15d, 0x4d5
jne 0x14001d42e
cmp qword [rbx + 8], rax
je 0x14001d4b0
lea rcx, [r13 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x78], 1
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x54], 0
lea rax, [0x140195cb8]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x40], 2
mov rcx, qword [r13 + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14001d477
lea r9, [rsp + 0x50]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.14001c320
mov rcx, qword [r13 + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x14001d493
lea r9, [rsp + 0x50]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.14001c320
mov qword [r13 + 0x60], 0xffffffffffffffff
mov qword [r13 + 0x58], 0xffffffffffffffff
lea rcx, [r13 + 0x58]
call fcn.14001c6e0
dec esi
jmp 0x14001d4c1
dec esi
lea rcx, [r13 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x78], 1
test esi, esi
jle 0x14001d577
xor ebx, ebx
mov rax, qword [rdi]
cmp dword [rax], ebx
jbe 0x14001d4fd
nop dword [rax]
nop word [rax + rax]
mov r8, r14
mov rdx, qword [rax + rbx*8 + 8]
lea rcx, [r13 + 0x140]
call fcn.140031e40
inc ebx
mov rax, qword [rdi]
cmp ebx, dword [rax]
jb 0x14001d4e0
xor ebx, ebx
mov rax, qword [r13 + 0x1a0]
cmp dword [rax], ebx
jbe 0x14001d531
nop word [rax + rax]
mov r8, r14
mov rdx, qword [rax + rbx*8 + 8]
lea rcx, [r13 + 0x140]
call fcn.140031e40
inc ebx
mov rax, qword [r13 + 0x1a0]
cmp ebx, dword [rax]
jb 0x14001d510
mov r15d, 2
lea rsi, [r13 + 0xf8]
nop
xor ebx, ebx
mov rax, qword [rdi]
cmp dword [rax], ebx
jbe 0x14001d569
nop dword [rax]
mov r8, r14
mov rdx, qword [rax + rbx*8 + 8]
mov rcx, rsi
call fcn.140031e40
inc ebx
mov rax, qword [rdi]
cmp ebx, dword [rax]
jb 0x14001d550
sub rsi, 0x48
sub rdi, 0x18
sub r15d, 1
jns 0x14001d540
mov rbx, qword [r13 + 0x1d0]
test rbx, rbx
je 0x14001d598
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14001d583
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400ba210
mov rbx, qword [rsp + 0x518]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret