Function at 0x140004200
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 [0x14001e040]
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 0x1400042ba
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140004297
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], edi
jne 0x140004297
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
lea r15, [0x14001e0c8]
mov dword [rsp + 0x58], 0x2719
mov qword [rsp + 0x60], r15
xor eax, eax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
jmp 0x14000465a
mov qword [rsp + 0x318], rsi
mov qword [rsp + 0x2e0], r12
movzx r12d, dl
and r12b, 0x10
cmp byte [rbp + 0x238], 0
je 0x1400042eb
test r12b, r12b
je 0x1400042eb
xor esi, esi
mov dword [rbx], esi
xor eax, eax
jmp 0x14000464a
mov rax, qword gs:[0x58]
lea r15, [0x14001e0c8]
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 [0x14001f4b4], ecx
jle 0x140004387
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140004387
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
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 0x1400043ef
mov eax, dword [r14 + r13]
cmp dword [0x14001f4b4], eax
jle 0x1400043db
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x1400043db
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov dword [rbp - 0x70], 0x2746
mov qword [rbp - 0x68], r15
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx], xmm0
jmp 0x140004454
cmp eax, 0x4d2
jne 0x140004446
mov eax, dword [r14 + r13]
cmp dword [0x14001f4b4], eax
jle 0x14000442f
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x14000442f
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov dword [rsp + 0x48], 0x274d
mov qword [rsp + 0x50], r15
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
jmp 0x140004454
cmp eax, 0x2738
je 0x14000445f
cmp eax, 0xea
je 0x14000445f
test edi, edi
je 0x14000445f
mov eax, 0xffffffff
jmp 0x140004464
mov eax, dword [rbp - 0x60]
mov dword [rbx], esi
test r12b, r12b
je 0x140004471
test eax, eax
je 0x140004578
test eax, eax
jns 0x140004638
test byte [rsp + 0x40], 1
jne 0x140004634
mov edx, dword [0x14001f4b4]
mov r8, r14
cmp edx, dword [r14 + r13]
jle 0x1400044ce
lea rcx, [0x14001f4b4]
call fcn.14001277c
mov edx, dword [0x14001f4b4]
mov r8, r14
cmp edx, 0xffffffff
jne 0x1400044ce
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov edx, dword [0x14001f4b4]
mov r8, r14
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rcx + 8], rax
jne 0x1400044e7
cmp dword [rbx], 0x2733
je 0x14000453b
cmp edx, dword [r8 + r13]
jle 0x14000451a
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x14000451a
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rcx + 8], rax
jne 0x140004634
cmp dword [rbx], 0x4d5
jne 0x140004634
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 0x1400045e1
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x78]
mov dword [rbx], esi
jmp 0x140004320
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14001f4b0], eax
jle 0x1400045c1
lea rcx, [0x14001f4b0]
call fcn.14001277c
cmp dword [0x14001f4b0], 0xffffffff
jne 0x1400045c1
lea rcx, [0x140014360]
call fcn.140012a58
lea rcx, [0x14001f4b0]
call fcn.140012710
lea rax, [0x14001e0e8]
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x50], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
jmp 0x14000463a
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
cmp dword [0x14001f4b4], eax
jle 0x14000461d
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x14000461d
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
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 0x14000463a
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.1400126f0
add rsp, 0x2e8
pop r15
pop rdi
pop rbx
pop rbp
ret