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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rbx, qword [0x14000c430]
xor edi, edi
mov rsi, rdx
test rdx, rdx
je 0x1400055fd
mov rcx, rbx
mov dword [rdx], edi
mov qword [rdx + 8], rdi
mov qword [rdx + 0x18], rdi
call fcn.140002af0
cmp eax, 0xffffffff
je 0x14000591b
cmp eax, 1
je 0x1400058d5
call qword [sym.imp.WINMM.dll_timeGetTime]
mov r15d, eax
sub r15d, dword [0x14000b6b0]
mov dword [rsp + 0x50], r15d
mov edx, r15d
mov dword [rbx + 0x40], r15d
nop dword [rax]
mov ecx, dword [rbx + 0x18]
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x3e8
jb 0x140005641
mov rcx, rbx
call fcn.1400013d0
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call fcn.140004fe0
cmp eax, 0xffffffff
je 0x14000591b
cmp eax, 1
je 0x1400058d5
xor eax, eax
lea rdi, [rbx + 0x2ab8]
test rdi, rdi
lea r12, [rsp + 0x70]
lea r13, [rbp - 0x80]
mov r14d, eax
cmove r12, rax
lea r15, [rbx + 0xab8]
cmove r13, rax
nop dword [rax + rax]
mov rcx, qword [rbx]
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov r8d, 1
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], 0x1000
mov dword [rsp + 0x70], select
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x140005855
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2733
je 0x140005710
sub ecx, 5
je 0x1400058f1
cmp ecx, 0xe
jne 0x14000591b
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call fcn.140004fe0
cmp eax, 0xffffffff
je 0x14000591b
cmp eax, 1
je 0x1400058d5
test rsi, rsi
je 0x140005755
mov rdx, rsi
mov rcx, rbx
call fcn.140002af0
cmp eax, 0xffffffff
je 0x14000591b
cmp eax, 1
je 0x1400058d5
mov eax, dword [rbx + 0x40]
mov r15d, dword [rsp + 0x50]
sub eax, r15d
cmp eax, 0x5265c00
jb 0x140005917
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
sub ecx, dword [0x14000b6b0]
mov r8d, ecx
mov dword [rbx + 0x40], ecx
sub r8d, r15d
cmp r8d, 0x5265c00
jb 0x140005917
mov r14, qword [rbx]
mov eax, r15d
sub eax, ecx
mov qword [rbp - 0x68], r14
cmp eax, 0x5265c00
mov dword [rbp - 0x70], 1
cmovb r8d, eax
lea ecx, [r14 + 1]
mov eax, 0x10624dd3
xor edi, edi
mul r8d
xor r9d, r9d
mov dword [rbp + 0x1a0], edi
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x78], edx
lea rdx, [rbp - 0x70]
sub r8d, eax
imul eax, r8d, 0x3e8
lea r8, [rbp + 0x1a0]
mov dword [rsp + 0x7c], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14000591b
je 0x140005908
lea rdx, [rbp + 0x1a0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea rdx, [rbp - 0x70]
mov rcx, r14
test eax, eax
setne dil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
mov eax, 2
cmovne edi, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov edx, eax
sub edx, dword [0x14000b6b0]
mov dword [rbx + 0x40], edx
test dil, 2
jne 0x140005620
xor eax, eax
jmp 0x140005920
test dword [rsp + 0x68], 0x8000
jne 0x1400058f1
test rdi, rdi
je 0x14000587b
mov eax, dword [rbp - 0x7c]
movzx ecx, word [rbp - 0x7e]
mov dword [rdi], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi + 4], ax
movsxd rcx, dword [rsp + 0x6c]
cmp ecx, 0xfffffffe
je 0x1400058f1
test ecx, ecx
js 0x14000591b
je 0x140005710
add dword [rbx + 0x2ad8], ecx
inc dword [rbx + 0x2adc]
mov rax, qword [rbx + 0x2ae0]
mov qword [rbx + 0x2ac0], r15
mov qword [rbx + 0x2ac8], rcx
test rax, rax
je 0x1400058dc
mov rdx, rsi
mov rcx, rbx
call rax
cmp eax, 0xffffffff
je 0x14000591b
cmp eax, 1
jne 0x1400058dc
test rsi, rsi
je 0x1400058f1
cmp dword [rsi], 0
je 0x1400058f1
mov eax, 1
jmp 0x140005920
mov rdx, rsi
mov rcx, rbx
call fcn.140003e40
cmp eax, 0xffffffff
je 0x14000591b
cmp eax, 1
je 0x1400058d5
inc r14d
cmp r14d, 0x100
jge 0x140005710
xor eax, eax
jmp 0x140005690
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x14000b6b0]
mov dword [rbx + 0x40], eax
xor eax, eax
jmp 0x140005920
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400076c0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret