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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rsi, r8
mov qword [rbp - 0x80], r8
mov dword [rsp + 0x50], edx
mov r15, rcx
mov qword [rsp + 0x48], rcx
lea rdi, [rcx + 0x30]
mov qword [rsp + 0x60], rdi
mov qword [rbp - 0x70], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [rbp - 0x68], al
cmp byte [r15 + 0x198], 0
jne 0x18008891a
lea r13, [r15 + 0x148]
mov rax, qword [r13]
xor edx, edx
mov dword [rax], edx
mov qword [r13 + 0x10], 0xffffffffffffffff
lea r14, [r15 + 0x160]
mov qword [rsp + 0x70], r14
mov rax, qword [r14]
mov dword [rax], edx
mov qword [r14 + 0x10], 0xffffffffffffffff
lea rcx, [r15 + 0x178]
mov qword [rsp + 0x68], rcx
mov rax, qword [rcx]
mov dword [rax], edx
mov qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, qword [r15 + 0x58]
mov ecx, edx
mov r8, qword [r13]
mov edx, dword [r8]
test edx, edx
je 0x180087fa5
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x180087fc0
inc ecx
cmp ecx, edx
jb 0x180087f96
inc edx
mov rcx, r13
call fcn.180086a50
mov rcx, qword [r13]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [r13]
inc dword [rax]
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x180087fe6
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x180087ff2
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180087fd0
cmp qword [r15 + 0x78], 0
jne 0x180087ff2
xor r12b, r12b
jmp 0x180087ff5
mov r12b, 1
mov rax, qword [r15 + 0x70]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1800880b5
nop word [rax + rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r14, qword [r13]
mov eax, dword [r14]
lea edx, [rax + 1]
mov ecx, dword [r13 + 8]
cmp edx, ecx
jbe 0x180088095
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r15d, edx
lea rcx, [rdx*8 + 8]
call fcn.180097470
mov r14, rax
mov rcx, qword [r13]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [r13]
cmp dword [r8], edx
jbe 0x18008807d
nop dword [rax]
lea rcx, [rdx*8]
mov rax, qword [r8 + rcx + 8]
mov qword [rcx + r14 + 8], rax
inc edx
mov r8, qword [r13]
cmp edx, dword [r8]
jb 0x180088060
mov rcx, r8
call fcn.180098084
mov qword [r13], r14
mov dword [r13 + 8], r15d
mov eax, dword [r14]
mov r15, qword [rsp + 0x48]
mov ecx, eax
mov rax, qword [rdi + 0x10]
mov qword [r14 + rcx*8 + 8], rax
mov rax, qword [r13]
inc dword [rax]
cmp rbx, qword [r15 + 0x70]
jne 0x180088010
mov r14, qword [rsp + 0x70]
mov r13, qword [r15 + 0x158]
test r13, r13
mov eax, 0
cmove r13, rax
test r12b, r12b
jne 0x1800880d6
cmp qword [r15 + 0xb0], rax
je 0x1800880d9
mov r12b, 1
mov rax, qword [r15 + 0xa8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18008819e
xor esi, esi
nop
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rax, qword [r14]
mov edx, dword [rax]
inc edx
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x18008817a
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r15d, edx
lea rcx, [rdx*8 + 8]
call fcn.180097470
mov r14, rax
mov r9, qword [rsp + 0x70]
mov rcx, qword [r9]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r9]
cmp dword [r8], esi
jbe 0x18008815e
nop dword [rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [r8 + rcx + 8]
mov qword [r14 + rcx + 8], rax
inc edx
mov r8, qword [r9]
cmp edx, dword [r8]
jb 0x180088140
mov rcx, r8
call fcn.180098084
mov rcx, qword [rsp + 0x70]
mov qword [rcx], r14
mov r14, rcx
mov dword [rcx + 8], r15d
mov r15, qword [rsp + 0x48]
mov rdx, qword [r14]
mov ecx, dword [rdx]
mov rax, qword [rdi + 0x10]
mov qword [rdx + rcx*8 + 8], rax
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [r15 + 0xa8]
jne 0x1800880f0
mov rsi, qword [rbp - 0x80]
mov rax, qword [r15 + 0x170]
cmp rax, r13
cmova r13, rax
test r12b, r12b
jne 0x1800881bb
cmp qword [r15 + 0xe8], 0
je 0x1800881be
mov r12b, 1
mov rax, qword [r15 + 0xe0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18008828b
mov r8, qword [rsp + 0x68]
xor esi, esi
nop dword [rax + rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rax, qword [r8]
mov edx, dword [rax]
inc edx
mov ecx, dword [r8 + 8]
cmp edx, ecx
jbe 0x180088267
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r15d, edx
lea rcx, [rdx*8 + 8]
call fcn.180097470
mov r14, rax
mov r9, qword [rsp + 0x68]
mov rcx, qword [r9]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r9]
cmp dword [r8], esi
jbe 0x18008824e
nop dword [rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [r8 + rcx + 8]
mov qword [r14 + rcx + 8], rax
inc edx
mov r8, qword [r9]
cmp edx, dword [r8]
jb 0x180088230
mov rcx, r8
call fcn.180098084
mov r8, qword [rsp + 0x68]
mov qword [r8], r14
mov dword [r8 + 8], r15d
mov r15, qword [rsp + 0x48]
mov rdx, qword [r8]
mov ecx, dword [rdx]
mov rax, qword [rdi + 0x10]
mov qword [rdx + rcx*8 + 8], rax
mov rax, qword [r8]
inc dword [rax]
cmp rbx, qword [r15 + 0xe0]
jne 0x1800881e0
mov rsi, qword [rbp - 0x80]
mov rax, qword [r15 + 0x188]
cmp rax, r13
cmova r13, rax
test r12b, r12b
jne 0x1800882ac
cmp qword [r15 + 0x120], 0
jne 0x1800882ac
xor bl, bl
jmp 0x1800882ae
mov bl, 1
lea r12, [r15 + 0x110]
mov r8, rsi
mov rdx, r12
mov r14, qword [rsp + 0x70]
mov rcx, r14
call fcn.18008a3b0
mov rax, qword [r15 + 0x170]
cmp rax, r13
cmova r13, rax
mov r8, rsi
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call fcn.18008a3b0
mov rdi, qword [r15 + 0x188]
cmp rdi, r13
cmovbe rdi, r13
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x180088304
test bl, bl
je 0x180088913
xor ebx, ebx
mov qword [rsp + 0x58], rbx
test ecx, ecx
je 0x18008835e
mov eax, 0x11e1a300
cmp ecx, eax
cmova ecx, eax
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x18008833b
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 0x180088325
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
xor ebx, ebx
lea rcx, [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov byte [rsp + 0x40], al
mov byte [rbp - 0x68], al
mov r13, qword [rsp + 0x68]
mov r9, qword [r13]
mov r8, qword [r14]
mov rdx, qword [r15 + 0x148]
test rdx, rdx
jne 0x1800883d2
test r8, r8
jne 0x1800883d2
test r9, r9
jne 0x1800883d2
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 r15d, 1
cmove ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14d, ebx
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x60]
jmp 0x1800885ae
cmp dword [rsp + 0x58], 0
jne 0x1800883f3
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x5c], ecx
lea ecx, [rdi + 1]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
test eax, eax
jns 0x180088418
call fcn.180046bf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r14d, r14d
jle 0x1800885aa
mov rdx, qword [r15 + 0x148]
mov rcx, qword [r15 + 0x58]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800885aa
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x400
mov r15d, 1
nop
mov dword [rsp + 0x50], 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 + 0x50]
mov r8d, r15d
lea rdx, [rbp - 0x60]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.180046bf0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x80], xmm0
cmp eax, 0x40
jne 0x1800884c7
call fcn.180046bf0
mov dword [rbp - 0x40], 0x2746
mov qword [rbp - 0x38], rax
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x1800884f7
cmp eax, 0x4d2
jne 0x1800884e9
call fcn.180046bf0
mov dword [rbp - 0x30], 0x274d
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x1800884f7
cmp eax, 0x2738
je 0x1800884fb
cmp eax, 0xea
je 0x1800884fb
test edi, edi
jne 0x18008850f
xor eax, eax
mov ebx, eax
mov eax, dword [rsp + 0x50]
cmp eax, 0x400
jne 0x180088517
jmp 0x180088450
mov eax, 0xffffffff
mov ebx, dword [rbp - 0x80]
test eax, eax
jg 0x180088592
je 0x18008854f
call fcn.180046bf0
mov rdi, qword [rbp - 0x78]
mov rax, qword [rax + 8]
cmp qword [rdi + 8], rax
jne 0x180088538
cmp ebx, 0x2733
je 0x180088592
call fcn.180046bf0
mov rdx, qword [rax + 8]
cmp qword [rdi + 8], rdx
jne 0x18008854f
cmp ebx, 0x4d5
je 0x180088592
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x68], r15b
mov r15, qword [rsp + 0x48]
mov byte [r15 + 0x198], 1
mov rcx, qword [r15 + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [r15 + 0x1a8]
call fcn.18004cd50
movzx eax, byte [rbp - 0x68]
mov byte [rsp + 0x40], al
mov rdi, qword [rbp - 0x70]
mov qword [rsp + 0x60], rdi
jmp 0x1800885a1
mov r15, qword [rsp + 0x48]
movzx eax, byte [rsp + 0x40]
mov rdi, qword [rsp + 0x60]
dec r14d
test al, al
jne 0x1800885c0
jmp 0x1800885ae
lea rdi, [r15 + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [rsp + 0x40], al
mov byte [rbp - 0x68], al
test r14d, r14d
jle 0x18008890c
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.18007f1d0
mov r8, rsi
mov rdx, r12
mov rcx, qword [rsp + 0x70]
call fcn.18007f1d0
lea r14, [r15 + 0xd8]
xor r12d, r12d
mov r15d, r12d
mov rcx, qword [r13]
cmp dword [rcx], r12d
jbe 0x1800886c6
mov eax, r15d
mov rcx, qword [rcx + rax*8 + 8]
mov r8, qword [r14 + 0x30]
test r8, r8
je 0x1800886b6
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r14 + 0x28]
mov rbx, qword [rax + rdx*8]
cmp rbx, qword [r14 + 8]
je 0x1800886b6
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x1800886b6
cmp qword [rbx + 0x10], rcx
je 0x180088650
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x180088640
jmp 0x1800886b6
cmp rbx, qword [r14 + 8]
je 0x1800886b6
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x1800886ab
nop
mov rcx, rdi
call qword [rdi + 0x58]
test eax, eax
je 0x1800886b6
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180088688
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x180088684
mov qword [rbx + 0x20], r12
mov qword [rcx + 0x20], r12
mov qword [rdi + 0x20], r12
mov rax, qword [rsi + 8]
test rax, rax
je 0x18008869b
mov qword [rax + 0x20], rdi
jmp 0x18008869e
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdi, qword [rbx + 0x18]
test rdi, rdi
jne 0x180088660
mov rdx, rbx
mov rcx, r14
call fcn.18006d120
inc r15d
mov rcx, qword [r13]
cmp r15d, dword [rcx]
jb 0x180088601
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x70]
mov rcx, qword [r13]
cmp dword [rcx], r12d
jbe 0x1800887cc
nop dword [rax]
mov eax, r12d
mov rcx, qword [rcx + rax*8 + 8]
mov r8, qword [r15 + 0xd0]
test r8, r8
je 0x1800887bc
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r15 + 0xc8]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r15 + 0xa8]
je 0x1800887bc
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x1800887bc
nop dword [rax]
cmp qword [rdi + 0x10], rcx
je 0x180088740
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x180088730
jmp 0x1800887bc
cmp rdi, qword [r15 + 0xa8]
je 0x1800887bc
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1800887ad
mov rcx, rbx
call qword [rbx + 0x58]
test eax, eax
je 0x1800887bc
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x180088784
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x18008877c
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], rax
jmp 0x180088786
xor eax, eax
mov qword [rcx + 0x20], rax
jmp 0x180088786
xor eax, eax
mov qword [rbx + 0x20], rax
mov rax, qword [rsi + 8]
test rax, rax
je 0x18008879d
mov qword [rax + 0x20], rbx
mov qword [rsi + 8], rbx
jmp 0x1800887a4
mov qword [rsi + 8], rbx
mov qword [rsi], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x180088752
mov rdx, rdi
lea rcx, [r15 + 0xa0]
call fcn.18006d120
inc r12d
mov rcx, qword [r13]
cmp r12d, dword [rcx]
jb 0x1800886e0
mov r13, r15
xor eax, eax
mov r12d, eax
mov rcx, qword [r15 + 0x148]
cmp dword [rcx], eax
jbe 0x1800888da
nop dword [rax]
nop word [rax + rax]
mov eax, r12d
mov rcx, qword [rcx + rax*8 + 8]
mov r8, qword [r15 + 0x98]
test r8, r8
je 0x1800888c7
xor edx, edx
mov rax, rcx
div r8
add rdx, rdx
mov rax, qword [r15 + 0x90]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r15 + 0x70]
je 0x1800888c7
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x1800888c7
nop dword [rax]
cmp qword [rdi + 0x10], rcx
je 0x180088850
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x180088840
jmp 0x1800888c7
cmp rdi, qword [r15 + 0x70]
je 0x1800888c7
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1800888bb
nop
mov rcx, rbx
call qword [rbx + 0x58]
test eax, eax
je 0x1800888c7
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x180088892
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x18008888a
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], rax
jmp 0x180088894
xor eax, eax
mov qword [rcx + 0x20], rax
jmp 0x180088894
xor eax, eax
mov qword [rbx + 0x20], rax
mov rax, qword [rsi + 8]
test rax, rax
je 0x1800888ab
mov qword [rax + 0x20], rbx
mov qword [rsi + 8], rbx
jmp 0x1800888b2
mov qword [rsi + 8], rbx
mov qword [rsi], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x180088860
mov rdx, rdi
lea rcx, [r15 + 0x68]
call fcn.18006d120
inc r12d
mov rcx, qword [r15 + 0x148]
cmp r12d, dword [rcx]
jb 0x1800887f0
mov rdi, qword [rsp + 0x60]
mov rbx, qword [r13 + 0x190]
test rbx, rbx
je 0x180088905
nop dword [rax + rax]
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800888f0
movzx eax, byte [rsp + 0x40]
jmp 0x18008891a
mov r13, qword [rsp + 0x48]
jmp 0x1800888df
mov al, 1
mov rdi, qword [rsp + 0x60]
test al, al
je 0x180088927
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.180097330
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret