Function at 0x1400a4ce0
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 [0x140391620]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r14, r8
mov r13, rcx
mov qword [rsp + 0x60], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x50], rbx
mov qword [rbp - 0x50], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x48], 1
cmp byte [r13 + 0x198], 0
jne 0x1400a532d
lea rdi, [r13 + 0x148]
mov rax, qword [rdi]
xor esi, esi
mov dword [rax], esi
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rax, qword [r13 + 0x160]
mov dword [rax], esi
mov qword [r13 + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], esi
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rbx, qword [r13 + 0x58]
mov ecx, esi
mov r8, qword [rdi]
mov edx, dword [r8]
test edx, edx
je 0x1400a4da0
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x1400a4db9
inc ecx
cmp ecx, edx
jb 0x1400a4d91
inc edx
mov rcx, rdi
call fcn.1400a3330
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rdi]
inc dword [rax]
mov r15, rsi
mov qword [rsp + 0x58], rsi
mov rbx, qword [r13 + 0x190]
test rbx, rbx
je 0x1400a4de6
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
test al, al
je 0x1400a4de6
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400a4dd0
mov rsi, rdi
add r13, 0x70
mov ecx, 3
mov qword [rsp + 0x48], rcx
nop word [rax + rax]
mov rax, qword [r13]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a4eb1
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r15, qword [rsi]
mov edx, dword [r15]
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x1400a4e8c
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.140255070
mov r15, 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 0x1400a4e80
nop word [rax + rax]
lea rdx, [r8*8]
mov rax, qword [rsi]
mov rcx, qword [rax + rdx + 8]
mov qword [rdx + r15 + 8], rcx
inc r8d
mov rcx, qword [rsi]
cmp r8d, dword [rcx]
jb 0x1400a4e60
call fcn.1400eadb0
mov qword [rsi], r15
mov dword [rsi + 8], r12d
mov ecx, dword [r15]
mov rax, qword [rdi + 0x10]
mov qword [r15 + rcx*8 + 8], rax
mov rax, qword [rsi]
inc dword [rax]
cmp rbx, qword [r13]
jne 0x1400a4e10
mov r15, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
cmp qword [rsi + 0x10], r15
cmova r15, qword [rsi + 0x10]
mov qword [rsp + 0x58], r15
add r13, 0x38
add rsi, 0x18
sub rcx, 1
mov qword [rsp + 0x48], rcx
jne 0x1400a4e00
mov rbx, qword [rsp + 0x60]
lea r12, [rbx + 0x110]
lea r13, [rbx + 0x160]
mov rdx, r12
mov rcx, r13
call fcn.1400a3130
mov rax, qword [rbx + 0x170]
cmp rax, r15
cmova r15, rax
lea rsi, [rbx + 0x178]
mov qword [rsp + 0x68], rsi
mov rdx, r12
mov rcx, rsi
call fcn.1400a3130
mov rdi, qword [rbx + 0x188]
cmp rdi, r15
cmovbe rdi, r15
mov r15d, 1
mov ecx, r15d
mov rbx, qword [rbx + 0x190]
test rbx, rbx
je 0x1400a4f56
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 0x1400a4f40
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x40], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x44], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9, qword [rsi]
mov r8, qword [r13]
mov rbx, qword [rsp + 0x60]
mov rdx, qword [rbx + 0x148]
test rdx, rdx
jne 0x1400a4fd2
test r8, r8
jne 0x1400a4fd2
test r9, r9
jne 0x1400a4fd2
mov eax, 0x10624dd3
imul dword [rsp + 0x44]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x40], 0x3e8
add ecx, eax
cmove ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x1400a51ba
cmp dword [rsp + 0x40], 0
jne 0x1400a4ff3
mov ecx, dword [rsp + 0x44]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x44], ecx
lea ecx, [rdi + 1]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
js 0x1400a51b4
test eax, eax
jle 0x1400a51ba
mov rdx, qword [rbx + 0x148]
lea r15, [rbx + 0x58]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400a51ba
lea rax, [rbp - 0x30]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x40], 0x400
nop dword [rax]
nop word [rax + rax]
xor esi, esi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8d, [rsi + 1]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15]
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, [0x140339bc0]
mov qword [rbp - 0x78], rcx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm0
cmp eax, 0x40
jne 0x1400a50ca
mov dword [rbp - 0x70], 0x2746
mov byte [rbp - 0x6c], 1
mov qword [rbp - 0x68], rcx
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rsp + 0x70], xmm0
jmp 0x1400a50fa
cmp eax, 0x4d2
jne 0x1400a50ec
mov dword [rbp - 0x60], 0x274d
mov byte [rbp - 0x5c], 1
mov qword [rbp - 0x58], rcx
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x70], xmm0
jmp 0x1400a50fa
cmp eax, 0x2738
je 0x1400a50fe
cmp eax, 0xea
je 0x1400a50fe
test ebx, ebx
jne 0x1400a5147
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx + 8]
movabs rcx, 0x8fafd21e25c5e09b
cmp rax, rcx
je 0x1400a5130
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a5130
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov eax, dword [rsp + 0x48]
cmp eax, 0x400
je 0x1400a5050
test eax, eax
jle 0x1400a5152
dec edi
jmp 0x1400a51ba
mov rbx, qword [rsp + 0x78]
mov esi, dword [rsp + 0x70]
jmp 0x1400a5154
je 0x1400a5182
movabs rax, 0x8fafd21e25c5e09b
cmp esi, 0x2733
jne 0x1400a5170
cmp qword [rbx + 8], rax
jne 0x1400a5170
dec edi
jmp 0x1400a51ba
cmp esi, 0x4d5
jne 0x1400a5182
cmp qword [rbx + 8], rax
jne 0x1400a5182
dec edi
jmp 0x1400a51ba
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x48], 1
mov rcx, r15
call fcn.1400a46c0
mov qword [r15 + 8], 0xffffffffffffffff
mov qword [r15], 0xffffffffffffffff
mov rcx, r15
call fcn.1400a3f00
dec edi
jmp 0x1400a51c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x48], 1
test edi, edi
jle 0x1400a5302
mov r8, r14
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call fcn.1400a3200
mov r8, r14
mov rdx, r12
mov rcx, r13
call fcn.1400a3200
mov r13d, 2
mov r15, qword [rsp + 0x60]
add r15, 0xe0
mov r12, qword [rsp + 0x68]
nop word [rax + rax]
xor esi, esi
mov rcx, qword [r12]
cmp dword [rcx], esi
jbe 0x1400a52f0
nop
mov r8, qword [rcx + rsi*8 + 8]
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x1400a52e2
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 0x1400a52e2
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rdi, rcx
je 0x1400a52e2
cmp qword [rdi + 0x10], r8
je 0x1400a5275
mov rax, qword [rdi]
mov rdi, rax
cmp rax, rcx
jne 0x1400a5262
jmp 0x1400a52e2
cmp rdi, r9
je 0x1400a52e2
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1400a52d6
mov rcx, rbx
call qword [rbx + 0x50]
test eax, eax
je 0x1400a52e2
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400a52af
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400a52a7
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [r14 + 8]
test rax, rax
je 0x1400a52c6
mov qword [rax + 0x20], rbx
jmp 0x1400a52c9
mov qword [r14], rbx
mov qword [r14 + 8], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x1400a5283
lea rcx, [r15 - 8]
mov rdx, rdi
call fcn.1400b5490
inc esi
mov rcx, qword [r12]
cmp esi, dword [rcx]
jb 0x1400a5220
sub r15, 0x38
sub r12, 0x18
sub r13, 1
jns 0x1400a5210
mov rax, qword [rsp + 0x60]
mov rbx, qword [rax + 0x190]
test rbx, rbx
je 0x1400a5328
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400a5313
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140255050
mov rbx, qword [rsp + 0x528]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret