Function at 0x1400a1d80
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 [0x1403b8550]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov qword [rsp + 0x70], r8
mov r15, rcx
mov qword [rsp + 0x60], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x50], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x48], 1
cmp byte [r15 + 0x198], 0
jne 0x1400a23dc
lea rdi, [r15 + 0x148]
mov rax, qword [rdi]
xor esi, esi
mov dword [rax], esi
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rax, qword [r15 + 0x160]
mov dword [rax], esi
mov qword [r15 + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], esi
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rbx, qword [r15 + 0x58]
mov ecx, esi
mov r8, qword [rdi]
mov edx, dword [r8]
test edx, edx
je 0x1400a1e42
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x1400a1e5b
inc ecx
cmp ecx, edx
jb 0x1400a1e33
inc edx
mov rcx, rdi
call fcn.1400a03c0
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rdi]
inc dword [rax]
mov r13, rsi
mov qword [rsp + 0x40], rsi
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x1400a1e8a
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x1400a2076
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400a1e70
xor r14b, r14b
mov rsi, rdi
lea r12, [r15 + 0x70]
mov qword [rsp + 0x50], 3
nop dword [rax]
test r14b, r14b
jne 0x1400a1ead
cmp qword [r12 + 8], 0
je 0x1400a1eb0
mov r14b, 1
mov rax, qword [r12]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a1f5c
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 0x1400a1f3c
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r13d, edx
lea rcx, [rdx*8 + 8]
call fcn.140250dd4
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 0x1400a1f30
nop word [rax + rax]
lea rdx, [r8*8]
mov rax, qword [rsi]
mov rcx, qword [rdx + rax + 8]
mov qword [rdx + r15 + 8], rcx
inc r8d
mov rcx, qword [rsi]
cmp r8d, dword [rcx]
jb 0x1400a1f10
call fcn.1400e9a90
mov qword [rsi], r15
mov dword [rsi + 8], r13d
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 [r12]
jne 0x1400a1ec0
mov r13, qword [rsp + 0x40]
cmp qword [rsi + 0x10], r13
cmova r13, qword [rsi + 0x10]
mov qword [rsp + 0x40], r13
add r12, 0x38
add rsi, 0x18
sub qword [rsp + 0x50], 1
jne 0x1400a1ea0
mov rbx, qword [rsp + 0x60]
lea r15, [rbx + 0x110]
lea r12, [rbx + 0x160]
mov rdx, r15
mov rcx, r12
call fcn.1400a01c0
mov rax, qword [rbx + 0x170]
cmp rax, r13
cmova r13, rax
lea rsi, [rbx + 0x178]
mov rdx, r15
mov rcx, rsi
call fcn.1400a01c0
mov rdi, qword [rbx + 0x188]
cmp rdi, r13
cmovbe rdi, r13
mov r13d, 1
mov ecx, r13d
mov rbx, qword [rbx + 0x190]
test rbx, rbx
mov r14, qword [rsp + 0x70]
je 0x1400a1ffa
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 0x1400a1fe4
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 + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9, qword [rsi]
mov r8, qword [r12]
mov rbx, qword [rsp + 0x60]
mov rdx, qword [rbx + 0x148]
test rdx, rdx
jne 0x1400a207e
test r8, r8
jne 0x1400a207e
test r9, r9
jne 0x1400a207e
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
cmove ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x1400a225c
mov r14b, 1
jmp 0x1400a1e8d
cmp dword [rsp + 0x48], 0
jne 0x1400a209f
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x4c], ecx
lea ecx, [rdi + 1]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
js 0x1400a2256
test eax, eax
jle 0x1400a225c
mov rdx, qword [rbx + 0x148]
lea r13, [rbx + 0x58]
mov rcx, qword [r13]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400a225c
lea rax, [rbp - 0x30]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x40], 0x400
xor esi, esi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8d, [rsi + 1]
lea rdx, [rbp - 0x40]
mov rcx, qword [r13]
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, [0x14035ccc8]
mov qword [rbp - 0x78], rcx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm0
cmp eax, 0x40
jne 0x1400a216b
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 0x1400a219b
cmp eax, 0x4d2
jne 0x1400a218d
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 0x1400a219b
cmp eax, 0x2738
je 0x1400a219f
cmp eax, 0xea
je 0x1400a219f
test ebx, ebx
jne 0x1400a21e8
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx + 8]
movabs rcx, 0x8fafd21e25c5e09b
cmp rax, rcx
je 0x1400a21d1
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a21d1
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov eax, dword [rsp + 0x50]
cmp eax, 0x400
je 0x1400a20f0
test eax, eax
jle 0x1400a21f3
dec edi
jmp 0x1400a225c
mov rbx, qword [rsp + 0x78]
mov esi, dword [rsp + 0x70]
jmp 0x1400a21f5
je 0x1400a2223
movabs rax, 0x8fafd21e25c5e09b
cmp esi, 0x2733
jne 0x1400a2211
cmp qword [rbx + 8], rax
jne 0x1400a2211
dec edi
jmp 0x1400a225c
cmp esi, 0x4d5
jne 0x1400a2223
cmp qword [rbx + 8], rax
jne 0x1400a2223
dec edi
jmp 0x1400a225c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x48], 1
mov rcx, r13
call fcn.1400a1770
mov qword [r13 + 8], 0xffffffffffffffff
mov qword [r13], 0xffffffffffffffff
mov rcx, r13
call fcn.1400a0fb0
dec edi
jmp 0x1400a226b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x48], 1
test edi, edi
jle 0x1400a23b1
mov r8, r14
mov rdx, r15
mov rbx, qword [rsp + 0x60]
lea r13, [rbx + 0x178]
mov rcx, r13
call fcn.1400a0290
mov r8, r14
mov rdx, r15
mov rcx, r12
call fcn.1400a0290
mov eax, 2
mov qword [rsp + 0x40], rax
lea r12, [rbx + 0xe0]
nop dword [rax]
xor r15d, r15d
mov rcx, qword [r13]
cmp dword [rcx], r15d
jbe 0x1400a2398
mov r8, qword [rcx + r15*8 + 8]
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x1400a2383
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [r12 + 0x20]
mov rdi, qword [rax + rdx*8]
mov rcx, qword [r12]
cmp rdi, rcx
je 0x1400a2383
mov rax, qword [rax + rdx*8 + 8]
mov rax, qword [rax]
cmp rdi, rax
je 0x1400a2383
cmp qword [rdi + 0x10], r8
je 0x1400a2315
mov rdi, qword [rdi]
cmp rdi, rax
jne 0x1400a2305
jmp 0x1400a2383
cmp rdi, rcx
je 0x1400a2383
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1400a2376
mov rcx, rbx
call qword [rbx + 0x50]
test eax, eax
je 0x1400a2383
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400a234f
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400a2347
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [r14 + 8]
test rax, rax
je 0x1400a2366
mov qword [rax + 0x20], rbx
jmp 0x1400a2369
mov qword [r14], rbx
mov qword [r14 + 8], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x1400a2323
lea rcx, [r12 - 8]
mov rdx, rdi
call fcn.1400b2f80
inc r15d
mov rcx, qword [r13]
cmp r15d, dword [rcx]
jb 0x1400a22c0
mov rax, qword [rsp + 0x40]
dec rax
mov qword [rsp + 0x40], rax
sub r12, 0x38
sub r13, 0x18
test rax, rax
jns 0x1400a22b0
mov rbx, qword [rsp + 0x60]
mov rbx, qword [rbx + 0x190]
test rbx, rbx
je 0x1400a23d7
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400a23c2
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140250db0
mov rbx, qword [rsp + 0x528]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret