Function at 0x1800073e0
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 - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov qword [rsp + 0x70], r8
mov r15, rcx
mov qword [rsp + 0x58], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x78], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x80], 1
cmp byte [r15 + 0x198], 0
jne 0x180007b2a
lea r14, [r15 + 0x148]
mov rax, qword [r14]
xor r12d, r12d
mov dword [rax], r12d
mov qword [r14 + 0x10], 0xffffffffffffffff
mov rax, qword [r15 + 0x160]
mov dword [rax], r12d
mov qword [r15 + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], r12d
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rdi, qword [r15 + 0x58]
mov ecx, r12d
mov rbx, qword [r14]
mov edx, dword [rbx]
test edx, edx
je 0x1800074a6
mov eax, ecx
cmp qword [rbx + rax*8 + 8], rdi
je 0x18000751b
inc ecx
cmp ecx, edx
jb 0x180007493
inc edx
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x18000750f
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov esi, edx
lea rcx, [rdx*8 + 8]
call fcn.18004a198
mov rbx, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
mov r8d, r12d
mov rcx, qword [r14]
cmp dword [rcx], r12d
jbe 0x180007503
nop
mov ecx, r8d
lea rdx, [rcx*8]
mov rax, qword [r14]
mov rcx, qword [rdx + rax + 8]
mov qword [rdx + rbx + 8], rcx
inc r8d
mov rcx, qword [r14]
cmp r8d, dword [rcx]
jb 0x1800074e0
call fcn.18004a660
mov qword [r14], rbx
mov dword [r14 + 8], esi
mov eax, dword [rbx]
mov qword [rbx + rax*8 + 8], rdi
mov rax, qword [r14]
inc dword [rax]
mov rdi, r12
mov qword [rsp + 0x48], r12
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x180007546
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x180007546
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180007530
mov rsi, r14
lea r12, [r15 + 0x70]
mov r13d, 3
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r12]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18000760a
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r14, qword [rsi]
mov edx, dword [r14]
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x1800075ea
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.18004a198
mov r14, rax
mov rcx, qword [rsi]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov rcx, qword [rsi]
cmp dword [rcx], edx
jbe 0x1800075de
nop dword [rax]
nop word [rax + rax]
lea r8, [rdx*8]
mov rax, qword [rsi]
mov rcx, qword [r8 + rax + 8]
mov qword [r8 + r14 + 8], rcx
inc edx
mov rcx, qword [rsi]
cmp edx, dword [rcx]
jb 0x1800075c0
call fcn.18004a660
mov qword [rsi], r14
mov dword [rsi + 8], r15d
mov rcx, qword [rdi + 0x10]
mov eax, dword [r14]
mov qword [r14 + rax*8 + 8], rcx
mov rax, qword [rsi]
inc dword [rax]
cmp rbx, qword [r12]
jne 0x180007570
mov rdi, qword [rsp + 0x48]
cmp qword [rsi + 0x10], rdi
cmova rdi, qword [rsi + 0x10]
mov qword [rsp + 0x48], rdi
add r12, 0x38
add rsi, 0x18
sub r13, 1
jne 0x180007560
mov r12, qword [rsp + 0x58]
lea r15, [r12 + 0x160]
lea r13, [r12 + 0x110]
mov rcx, qword [r13 + 8]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x1800076ee
nop
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rsi, qword [r15]
mov edx, dword [rsi]
inc edx
mov ecx, dword [r15 + 8]
cmp edx, ecx
jbe 0x1800076cc
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r14d, edx
lea rcx, [rdx*8 + 8]
call fcn.18004a198
mov rsi, rax
mov rcx, qword [r15]
mov edx, dword [rcx]
mov dword [rax], edx
xor r8d, r8d
mov rcx, qword [r15]
cmp dword [rcx], r8d
jbe 0x1800076c0
nop word [rax + rax]
lea rdx, [r8*8]
mov rax, qword [r15]
mov rcx, qword [rax + rdx + 8]
mov qword [rdx + rsi + 8], rcx
inc r8d
mov rcx, qword [r15]
cmp r8d, dword [rcx]
jb 0x1800076a0
call fcn.18004a660
mov qword [r15], rsi
mov dword [r15 + 8], r14d
mov rcx, qword [rdi + 0x10]
mov eax, dword [rsi]
mov qword [rsi + rax*8 + 8], rcx
mov rax, qword [r15]
inc dword [rax]
mov rcx, qword [r13 + 8]
cmp rbx, rcx
jne 0x180007650
mov rdi, qword [rsp + 0x48]
mov rax, qword [r12 + 0x170]
cmp rax, rdi
cmova rdi, rax
mov qword [rsp + 0x48], rdi
lea rsi, [r12 + 0x178]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x1800077c1
nop word [rax + rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r14, qword [rsi]
mov edx, dword [r14]
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x18000779c
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.18004a198
mov r14, rax
mov rcx, qword [rsi]
mov edx, dword [rcx]
mov dword [rax], edx
xor r8d, r8d
mov rcx, qword [rsi]
cmp dword [rcx], r8d
jbe 0x180007790
nop word [rax + rax]
lea rdx, [r8*8]
mov rax, qword [rsi]
mov rcx, qword [rdx + rax + 8]
mov qword [rdx + r14 + 8], rcx
inc r8d
mov rcx, qword [rsi]
cmp r8d, dword [rcx]
jb 0x180007770
call fcn.18004a660
mov qword [rsi], r14
mov dword [rsi + 8], r12d
mov rcx, qword [rdi + 0x10]
mov eax, dword [r14]
mov qword [r14 + rax*8 + 8], rcx
mov rax, qword [rsi]
inc dword [rax]
cmp rbx, qword [r13 + 8]
jne 0x180007720
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov rax, qword [r12 + 0x188]
cmp rax, rdi
cmova rdi, rax
mov r14d, 1
mov ecx, r14d
mov rbx, qword [r12 + 0x190]
test rbx, rbx
je 0x180007806
nop word [rax + 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 0x1800077f0
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x50], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x54], ecx
lea rcx, [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9, qword [rsi]
mov r8, qword [r15]
mov rdx, qword [r12 + 0x148]
test rdx, rdx
jne 0x18000787d
test r8, r8
jne 0x18000787d
test r9, r9
jne 0x18000787d
mov eax, 0x10624dd3
imul dword [rsp + 0x54]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x50], 0x3e8
add ecx, eax
cmove ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x180007a95
cmp dword [rsp + 0x50], 0
jne 0x18000789e
mov ecx, dword [rsp + 0x54]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x54], ecx
lea ecx, [rdi + 1]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
mov ebx, eax
test eax, eax
jns 0x1800078c9
call fcn.180003050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180007a95
test edi, edi
jle 0x180007a95
mov rdx, qword [r12 + 0x148]
mov rcx, qword [r12 + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x180007a95
lea rax, [rbp - 0x30]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], 0x400
nop dword [rax + rax]
xor eax, eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8d, r14d
lea rdx, [rbp - 0x78]
mov rcx, qword [r12 + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov r14d, eax
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rbx
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x60], xmm0
cmp eax, 0x40
jne 0x180007978
call fcn.180003050
mov dword [rbp - 0x50], 0x2746
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x60], xmm0
jmp 0x1800079a9
cmp eax, 0x4d2
jne 0x18000799b
call fcn.180003050
mov dword [rbp - 0x40], 0x274d
mov qword [rbp - 0x38], rax
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rsp + 0x60], xmm0
jmp 0x1800079a9
cmp eax, 0x2738
je 0x1800079ae
cmp eax, 0xea
je 0x1800079ae
test r14d, r14d
jne 0x1800079c4
xor ebx, ebx
mov eax, dword [rsp + 0x58]
cmp eax, 0x400
jne 0x1800079ca
lea r14d, [rbx + 1]
jmp 0x180007900
mov ebx, dword [rsp + 0x60]
jmp 0x1800079d4
test eax, eax
jg 0x180007a92
je 0x180007a0f
call fcn.180003050
mov r14, qword [rsp + 0x68]
mov rax, qword [rax + 8]
cmp qword [r14 + 8], rax
jne 0x1800079f4
cmp ebx, 0x2733
je 0x180007a92
call fcn.180003050
mov rcx, qword [rax + 8]
cmp qword [r14 + 8], rcx
jne 0x180007a0f
cmp ebx, 0x4d5
je 0x180007a92
lea rcx, [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x80], 1
mov dword [rsp + 0x60], 0
lea rax, [0x18009ed88]
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x40], 2
mov rcx, qword [r12 + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x180007a54
lea r9, [rsp + 0x60]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.180006580
mov rcx, qword [r12 + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x180007a71
lea r9, [rsp + 0x60]
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.180006580
mov qword [r12 + 0x60], 0xffffffffffffffff
mov qword [r12 + 0x58], 0xffffffffffffffff
lea rcx, [r12 + 0x58]
call fcn.1800068d0
lea ebx, [rdi - 1]
jmp 0x180007aa4
lea ebx, [rdi - 1]
lea rcx, [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x80], 1
mov r14, qword [rsp + 0x70]
test ebx, ebx
jle 0x180007afb
mov r8, r14
mov rdx, r13
mov rcx, rsi
call fcn.180006450
mov r8, r14
mov rdx, r13
mov rcx, r15
call fcn.180006450
mov ebx, 2
lea rdi, [r12 + 0xd8]
nop word [rax + rax]
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.180006450
sub rsi, 0x18
sub rdi, 0x38
sub ebx, 1
jns 0x180007ae0
mov rbx, qword [r12 + 0x190]
test rbx, rbx
je 0x180007b25
nop dword [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 0x180007b10
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180049ee0
mov rbx, qword [rsp + 0x528]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret