Function at 0x140067a80
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 - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, r8
mov r15, rcx
mov qword [rsp + 0x58], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x60], rbx
mov qword [rbp - 0x80], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x78], 1
cmp byte [r15 + 0x198], 0
jne 0x14006806a
lea r14, [r15 + 0x148]
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 0x140067b40
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x140067b59
inc ecx
cmp ecx, edx
jb 0x140067b31
inc edx
mov rcx, r14
call fcn.140066290
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 + 0x50], rdi
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x140067b86
nop word [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x140067b86
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140067b70
lea r13, [r15 + 0x70]
mov ecx, 3
mov qword [rsp + 0x40], rcx
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r13]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140067c51
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 0x140067c2c
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.1401ec268
mov r15, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
xor r8d, r8d
mov rcx, qword [r14]
cmp dword [rcx], r8d
jbe 0x140067c20
nop word [rax + rax]
lea rdx, [r8*8]
mov rax, qword [r14]
mov rcx, qword [rdx + rax + 8]
mov qword [rdx + r15 + 8], rcx
inc r8d
mov rcx, qword [r14]
cmp r8d, dword [rcx]
jb 0x140067c00
call fcn.1401ec5c4
mov qword [r14], r15
mov dword [r14 + 8], r12d
mov rcx, qword [rdi + 0x10]
mov eax, dword [r15]
mov qword [r15 + rax*8 + 8], rcx
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [r13]
jne 0x140067bb0
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp qword [r14 + 0x10], rdi
cmova rdi, qword [r14 + 0x10]
mov qword [rsp + 0x50], rdi
add r13, 0x38
add r14, 0x18
sub rcx, 1
mov qword [rsp + 0x40], rcx
jne 0x140067ba0
mov rbx, qword [rsp + 0x58]
lea r13, [rbx + 0x160]
lea r12, [rbx + 0x110]
mov rdx, r12
mov rcx, r13
call fcn.140066090
mov rax, qword [rbx + 0x170]
cmp rax, rdi
cmova rdi, rax
lea r14, [rbx + 0x178]
mov qword [rsp + 0x68], r14
mov rdx, r12
mov rcx, r14
call fcn.140066090
mov r15, qword [rbx + 0x188]
cmp r15, rdi
cmovbe r15, rdi
mov ecx, 1
mov rbx, qword [rbx + 0x190]
test rbx, rbx
je 0x140067cf6
nop dword [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 0x140067ce0
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
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [r14]
mov rdi, qword [r13]
mov r14, qword [rsp + 0x58]
mov r14, qword [r14 + 0x148]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test r14, r14
jne 0x140067d8d
test rdi, rdi
jne 0x140067d8d
test rbx, rbx
jne 0x140067d8d
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 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 [rbp - 0x78], 1
jmp 0x140068037
cmp dword [rsp + 0x48], 0
jne 0x140067dac
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
mov edx, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, edx
mov dword [rsp + 0x4c], ecx
lea ecx, [r15 + 1]
lea rax, [rsp + 0x48]
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 qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [rsp + 0x58]
test edi, edi
jle 0x140067eed
mov rdx, qword [r14 + 0x148]
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140067eed
lea rax, [rbp - 0x70]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 0x400
mov rbx, qword [r14 + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8d, [r15 + 1]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x140067e6a
cmp eax, 0xea
je 0x140067e6a
test ebx, ebx
jne 0x140067eeb
cmp dword [rsp + 0x40], 0x400
jne 0x140067eeb
mov r13d, 1
nop word [rax + rax]
mov rbx, qword [r14 + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x140067eda
cmp eax, 0xea
je 0x140067eda
test ebx, ebx
jne 0x140067ee4
cmp dword [rsp + 0x40], 0x400
je 0x140067e80
lea r13, [r14 + 0x160]
dec edi
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x78], 1
test edi, edi
jle 0x140068037
mov r8, rsi
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call fcn.140066160
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.140066160
mov r13d, 2
lea r15, [r14 + 0xe0]
mov r12, qword [rsp + 0x68]
nop dword [rax]
nop word [rax + rax]
xor r14d, r14d
mov rcx, qword [r12]
cmp dword [rcx], r14d
jbe 0x140068025
mov r8, qword [rcx + r14*8 + 8]
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x140068015
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [r15 + 0x20]
mov rdi, qword [rax + rdx*8]
mov r9, qword [r15]
cmp rdi, r9
je 0x140068015
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rdi, rcx
je 0x140068015
cmp qword [rdi + 0x10], r8
je 0x140067fa5
mov rax, qword [rdi]
mov rdi, rax
cmp rax, rcx
jne 0x140067f92
jmp 0x140068015
cmp rdi, r9
je 0x140068015
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140068009
mov rax, qword [rbx + 0x50]
mov rcx, rbx
call rax
test eax, eax
je 0x140068015
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140067fe2
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140067fda
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x140067ff9
mov qword [rax + 0x20], rbx
jmp 0x140067ffc
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x140067fb3
lea rcx, [r15 - 8]
mov rdx, rdi
call fcn.140032370
inc r14d
mov rcx, qword [r12]
cmp r14d, dword [rcx]
jb 0x140067f50
sub r12, 0x18
sub r15, 0x38
sub r13, 1
jns 0x140067f40
mov rax, qword [rsp + 0x58]
mov rbx, qword [rax + 0x190]
test rbx, rbx
je 0x140068065
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 0x140068050
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1401ebfb0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret