Function at 0x1801f0da0
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 - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rsi, r8
mov qword [rbp - 0x80], r8
mov r15, rcx
mov qword [rsp + 0x50], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x78], 1
cmp byte [r15 + 0x198], 0
jne 0x1801f158d
lea r14, [r15 + 0x148]
mov qword [rsp + 0x68], r14
mov rax, qword [r14]
xor edi, edi
mov dword [rax], edi
mov qword [r14 + 0x10], 0xffffffffffffffff
mov rax, qword [r15 + 0x160]
mov dword [rax], edi
mov qword [r15 + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], edi
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rbx, qword [r15 + 0x58]
mov ecx, edi
mov r8, qword [r14]
mov edx, dword [r8]
test edx, edx
je 0x1801f0e6f
nop dword [rax]
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x1801f0e88
inc ecx
cmp ecx, edx
jb 0x1801f0e60
inc edx
mov rcx, r14
call fcn.1801ef780
mov rcx, qword [r14]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [r14]
inc dword [rax]
mov qword [rsp + 0x40], rdi
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x1801f0eb6
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x1801f0eb6
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1801f0ea0
lea r13, [r15 + 0x70]
mov ecx, 3
mov qword [rsp + 0x48], rcx
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r13]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1801f0f80
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r15, qword [r14]
mov edx, dword [r15]
inc edx
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x1801f0f5b
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.18027f030
mov r15, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [r14]
cmp dword [r8], edx
jbe 0x1801f0f4c
nop word [rax + rax]
lea rcx, [rdx*8]
mov rax, qword [rcx + r8 + 8]
mov qword [rcx + r15 + 8], rax
inc edx
mov r8, qword [r14]
cmp edx, dword [r8]
jb 0x1801f0f30
mov rcx, r8
call fcn.18027f3dc
mov qword [r14], r15
mov dword [r14 + 8], r12d
mov ecx, dword [r15]
mov rax, qword [rdi + 0x10]
mov qword [r15 + rcx*8 + 8], rax
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [r13]
jne 0x1801f0ee0
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
cmp qword [r14 + 0x10], rdi
cmova rdi, qword [r14 + 0x10]
mov qword [rsp + 0x40], rdi
add r13, 0x38
add r14, 0x18
sub rcx, 1
mov qword [rsp + 0x48], rcx
jne 0x1801f0ed0
mov rbx, qword [rsp + 0x50]
lea r15, [rbx + 0x110]
lea r12, [rbx + 0x160]
mov rdx, r15
mov rcx, r12
call fcn.1801ef570
mov rax, qword [rbx + 0x170]
cmp rax, rdi
cmova rdi, rax
lea r13, [rbx + 0x178]
mov rdx, r15
mov rcx, r13
call fcn.1801ef570
mov rax, qword [rbx + 0x188]
cmp rax, rdi
cmova rdi, rax
mov qword [rsp + 0x40], rdi
mov ecx, 1
mov rbx, qword [rbx + 0x190]
test rbx, rbx
je 0x1801f1026
mov qword [rsp + 0x40], rdi
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 0x1801f1010
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x58], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x5c], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x78], 0
mov rbx, qword [r13]
mov rdi, qword [r12]
mov r14, qword [rsp + 0x68]
mov r14, qword [r14]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test r14, r14
jne 0x1801f10c0
test rdi, rdi
jne 0x1801f10c0
test rbx, rbx
jne 0x1801f10c0
mov eax, 0x10624dd3
imul dword [rsp + 0x5c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x58], 0x3e8
add ecx, eax
mov r8d, 1
cmove ecx, r8d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x78], 1
jmp 0x1801f1562
cmp dword [rsp + 0x58], 0
jne 0x1801f10df
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx - 1]
mov edx, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, edx
mov dword [rsp + 0x5c], ecx
mov rcx, qword [rsp + 0x40]
inc ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
call fcn.1801e1d10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jle 0x1801f1234
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1801f1234
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], 0x400
mov rbx, qword [rbx + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.1801e1d10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1801f119d
cmp eax, 0x4d2
jne 0x1801f11a2
call fcn.1801e1d10
mov r14d, edi
test ebx, ebx
jne 0x1801f1230
cmp dword [rsp + 0x48], 0x400
jne 0x1801f1230
mov rdi, qword [rsp + 0x50]
mov esi, 1
mov rbx, qword [rdi + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, esi
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.1801e1d10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1801f1219
cmp eax, 0x4d2
jne 0x1801f121e
call fcn.1801e1d10
test ebx, ebx
jne 0x1801f122c
cmp dword [rsp + 0x48], 0x400
je 0x1801f11c1
mov rsi, qword [rbp - 0x80]
lea edi, [r14 - 1]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x78], 1
test edi, edi
jle 0x1801f1562
mov r8, rsi
mov rdx, r15
mov rcx, r13
call fcn.1801ef650
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.1801ef650
mov r13, qword [rsp + 0x50]
lea r15, [r13 + 0xd8]
xor r12d, r12d
mov rcx, qword [rbx + 0x148]
cmp dword [rcx], r12d
jbe 0x1801f1366
mov r13, rbx
nop dword [rax]
mov rcx, qword [rcx + r12*8 + 8]
mov r8, qword [r15 + 0x30]
test r8, r8
je 0x1801f134e
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r15 + 0x28]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r15 + 8]
je 0x1801f134e
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x1801f134e
cmp qword [rdi + 0x10], rcx
je 0x1801f12e0
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x1801f12d0
jmp 0x1801f134e
cmp rdi, qword [r15 + 8]
je 0x1801f134e
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1801f1343
nop
mov rcx, rbx
call qword [rbx + 0x50]
test eax, eax
je 0x1801f134e
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1801f131c
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1801f1314
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x1801f1333
mov qword [rax + 0x20], rbx
jmp 0x1801f1336
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x1801f12f0
mov rdx, rdi
mov rcx, r15
call fcn.1801fab00
inc r12d
mov rcx, qword [r13 + 0x148]
cmp r12d, dword [rcx]
jb 0x1801f1290
mov r13, qword [rsp + 0x50]
xor r12d, r12d
mov rcx, qword [r13 + 0x160]
cmp dword [rcx], r12d
jbe 0x1801f146b
nop dword [rax]
mov rcx, qword [rcx + r12*8 + 8]
mov r8, qword [r13 + 0xd0]
test r8, r8
je 0x1801f1458
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r13 + 0xc8]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r13 + 0xa8]
je 0x1801f1458
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x1801f1458
nop dword [rax]
cmp qword [rdi + 0x10], rcx
je 0x1801f13e0
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x1801f13d0
jmp 0x1801f1458
cmp rdi, qword [r13 + 0xa8]
je 0x1801f1458
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1801f1449
mov rcx, rbx
call qword [rbx + 0x50]
test eax, eax
je 0x1801f1458
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1801f141e
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1801f1416
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x1801f1439
mov qword [rax + 0x20], rbx
mov qword [rsi + 8], rbx
jmp 0x1801f1440
mov qword [rsi + 8], rbx
mov qword [rsi], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x1801f13f2
mov rdx, rdi
lea rcx, [r13 + 0xa0]
call fcn.1801fab00
inc r12d
mov rcx, qword [r13 + 0x160]
cmp r12d, dword [rcx]
jb 0x1801f1380
lea r15, [r13 + 0x68]
xor r12d, r12d
mov rcx, qword [r13 + 0x148]
cmp dword [rcx], r12d
jbe 0x1801f1567
mov r13, qword [rsp + 0x68]
nop word [rax + rax]
mov rcx, qword [rcx + r12*8 + 8]
mov r8, qword [r15 + 0x30]
test r8, r8
je 0x1801f1552
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r15 + 0x28]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r15 + 8]
je 0x1801f1552
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x1801f1552
cmp qword [rdi + 0x10], rcx
je 0x1801f14e0
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x1801f14d0
jmp 0x1801f1552
cmp rdi, qword [r15 + 8]
je 0x1801f1552
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1801f1547
nop
mov rcx, rbx
call qword [rbx + 0x50]
test eax, eax
je 0x1801f1552
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1801f151c
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1801f1514
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x1801f1537
mov qword [rax + 0x20], rbx
mov qword [rsi + 8], rbx
jmp 0x1801f153e
mov qword [rsi + 8], rbx
mov qword [rsi], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x1801f14f0
mov rdx, rdi
mov rcx, r15
call fcn.1801fab00
inc r12d
mov rcx, qword [r13]
cmp r12d, dword [rcx]
jb 0x1801f1490
mov r13, qword [rsp + 0x50]
mov rbx, qword [r13 + 0x190]
test rbx, rbx
je 0x1801f1588
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1801f1573
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.18027f010
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret