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

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, qword [rbp + 0x240]
mov r11, r9
mov qword [rsp + 0x78], r9
mov r10, r8
mov qword [rsp + 0x70], r8
mov rdi, rcx
mov byte [rsp + 0x40], dl
mov qword [rsp + 0x68], rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400042da
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400204f8], eax
jle 0x1400042b7
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], edi
jne 0x1400042b7
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
lea r15, [0x14001f0c8]
mov dword [rsp + 0x58], 0x2719
mov qword [rsp + 0x60], r15
xor eax, eax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
jmp 0x14000467a
mov qword [rsp + 0x318], rsi
mov qword [rsp + 0x2e0], r12
movzx r12d, dl
and r12b, 0x10
cmp byte [rbp + 0x238], 0
je 0x14000430b
test r12b, r12b
je 0x14000430b
xor esi, esi
mov dword [rbx], esi
xor eax, eax
jmp 0x14000466a
mov rax, qword gs:[0x58]
lea r15, [0x14001f0c8]
mov qword [rsp + 0x2d8], r13
xor esi, esi
mov qword [rsp + 0x2d0], r14
mov r14d, 4
mov r13, qword [rax]
lea rax, [r14 + r13]
mov qword [rsp + 0x58], rax
nop
mov qword [rsp + 0x30], rsi
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x28], rsi
lea r9, [rbp - 0x60]
mov r8d, r11d
mov qword [rsp + 0x20], rax
mov rdx, r10
mov dword [rbp - 0x60], esi
mov rcx, rdi
mov dword [rbp - 0x5c], esi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [r14 + r13]
mov edi, eax
cmp dword [0x1400204f8], ecx
jle 0x1400043a7
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x1400043a7
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], r15
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rbx], xmm0
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x14000440f
mov eax, dword [r14 + r13]
cmp dword [0x1400204f8], eax
jle 0x1400043fb
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x1400043fb
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov dword [rbp - 0x70], 0x2746
mov qword [rbp - 0x68], r15
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx], xmm0
jmp 0x140004474
cmp eax, 0x4d2
jne 0x140004466
mov eax, dword [r14 + r13]
cmp dword [0x1400204f8], eax
jle 0x14000444f
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x14000444f
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov dword [rsp + 0x48], 0x274d
mov qword [rsp + 0x50], r15
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
jmp 0x140004474
cmp eax, 0x2738
je 0x14000447f
cmp eax, 0xea
je 0x14000447f
test edi, edi
je 0x14000447f
mov eax, 0xffffffff
jmp 0x140004484
mov eax, dword [rbp - 0x60]
mov dword [rbx], esi
test r12b, r12b
je 0x140004491
test eax, eax
je 0x140004598
test eax, eax
jns 0x140004658
test byte [rsp + 0x40], 1
jne 0x140004654
mov edx, dword [0x1400204f8]
mov r8, r14
cmp edx, dword [r14 + r13]
jle 0x1400044ee
lea rcx, [0x1400204f8]
call fcn.14001386c
mov edx, dword [0x1400204f8]
mov r8, r14
cmp edx, 0xffffffff
jne 0x1400044ee
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov edx, dword [0x1400204f8]
mov r8, r14
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rcx + 8], rax
jne 0x140004507
cmp dword [rbx], 0x2733
je 0x14000455b
cmp edx, dword [r8 + r13]
jle 0x14000453a
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x14000453a
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rcx + 8], rax
jne 0x140004654
cmp dword [rbx], 0x4d5
jne 0x140004654
mov rdi, qword [rsp + 0x68]
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov qword [rbp - 0x48], rdi
xor r8d, r8d
mov dword [rbp - 0x50], 1
mov qword [rsp + 0x20], rsi
lea ecx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140004601
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x78]
mov dword [rbx], esi
jmp 0x140004340
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400204f4], eax
jle 0x1400045e1
lea rcx, [0x1400204f4]
call fcn.14001386c
cmp dword [0x1400204f4], 0xffffffff
jne 0x1400045e1
lea rcx, [0x1400154d0]
call fcn.140013b48
lea rcx, [0x1400204f4]
call fcn.140013800
lea rax, [0x14001f0e8]
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x50], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
jmp 0x14000465a
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
cmp dword [0x1400204f8], eax
jle 0x14000463d
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x14000463d
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], r15
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x14000465a
cdqe
mov r13, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x318]
mov r12, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400137e0
add rsp, 0x2e8
pop r15
pop rdi
pop rbx
pop rbp
ret