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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c8]
sub rsp, 0x4c8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r15d, r8d
mov rbx, rdx
mov qword [rsp + 0x40], rdx
mov rdi, rcx
xor esi, esi
test rdx, rdx
jne 0x1801334fa
mov qword [rsp + 0x68], SafeArrayLock
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], sil
lea r8d, [rdx + 0x2f]
lea rdx, str._Connector::DoRecv__Input_parameters_incorrect_n
lea rcx, [rsp + 0x50]
call fcn.180006768
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x18013349e
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
call fcn.180006868
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180133be4
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180133bdf
test cl, 0x1f
je 0x1801334cc
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801334db
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801334ea
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180133bdc
call fcn.180154658
int3
cmp qword [rcx + 0x30], 0
jne 0x1801335b2
mov qword [rsp + 0x68], SafeArrayLock
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], sil
mov r8d, 0x22
lea rdx, str._Connector::DoRecv__No_connection_n
lea rcx, [rsp + 0x50]
call fcn.180006768
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x180133556
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
call fcn.180006868
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180133be4
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180133bdf
test cl, 0x1f
je 0x180133584
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180133593
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801335a2
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180133bdc
call fcn.180154658
int3
mov dword [rsp + 0x34], r8d
mov dword [rsp + 0x3c], esi
mov dword [rsp + 0x38], r9d
mov r12d, esi
mov r14d, 0xa
movzx r13d, byte [rbp + 0x430]
mov rax, qword [rdi + 0x30]
mov qword [rbp + 0x1a8], rax
mov dword [rbp + 0x1a0], 1
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x70], 1
lea ecx, [rax + 1]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x180133acc
test eax, eax
je 0x1801339b8
lea rdx, [rbp - 0x70]
mov rcx, qword [rdi + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
mov rcx, qword [rdi + 0x30]
test eax, eax
jne 0x1801338e9
lea rdx, [rbp + 0x1a0]
call sub.WS2_32.dll___WSAFDIsSet
mov rcx, qword [rdi + 0x30]
test eax, eax
je 0x180133857
mov edx, r12d
add rdx, rbx
xor r9d, r9d
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1801336a6
cmp eax, 0xffffffff
jne 0x180133681
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp ebx, 0x2733
jne 0x1801336cb
test r14d, r14d
je 0x1801336cb
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
dec r14d
mov rbx, qword [rsp + 0x40]
jmp 0x1801335d1
je 0x18013377c
sub r15d, eax
je 0x180133848
test r13b, r13b
jne 0x180133be6
add r12d, eax
mov rbx, qword [rsp + 0x40]
jmp 0x1801335d1
mov rcx, rdi
call fcn.1801330d0
lea eax, [rbx - 0x2745]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
cmp eax, 1
ja 0x180133732
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Recv_buffer_failed___connection_aborted_:_wsaerror
lea rcx, [rsp + 0x70]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffb
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x180133722
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rsp + 0x70]
call fcn.18000653c
nop
jmp 0x18013383e
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Recv_buffer_failed_:_wsaerror
lea rcx, [rsp + 0x70]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x18013376c
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rsp + 0x70]
call fcn.18000653c
nop
jmp 0x18013383e
mov rcx, rdi
call fcn.1801330d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rsp + 0x30], eax
add eax, 0xffffd8bb
cmp eax, 1
jbe 0x1801337ef
test ecx, ecx
je 0x1801337ef
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Nothing_was_recv_:_wsaerror
lea rcx, [rsp + 0x70]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x1801337e2
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rsp + 0x70]
call fcn.18000653c
nop
jmp 0x18013383e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Nothing_was_recv___connection_aborted_:_wsaerror
lea rcx, [rsp + 0x70]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffb
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x180133833
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rsp + 0x70]
call fcn.18000653c
nop
lea rcx, [rsp + 0x50]
call fcn.18000653c
test r15d, r15d
cmove esi, dword [rsp + 0x34]
mov eax, esi
jmp 0x180133be6
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov rcx, rdi
call fcn.1801330d0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Fd_is_not_set_read_:_wsaerror
lea rcx, [rsp + 0x70]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x1801338cf
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rsp + 0x70]
call fcn.18000653c
nop
lea rcx, [rsp + 0x50]
call fcn.18000653c
jmp 0x180133be4
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov rcx, rdi
call fcn.1801330d0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Fd_is_set_exception:_wsaerror
lea rcx, [rsp + 0x50]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x180133961
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18013397f
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800060dc
mov qword [rsp + 0x68], SafeArrayLock
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180133be4
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x70]
call fcn.1800060dc
jmp 0x180133be4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__timeout_for_recv_is_out_:_wsaerror
lea rcx, [rsp + 0x50]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffc
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x180133a06
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180133a5e
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180133a59
test cl, 0x1f
je 0x180133a2c
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180133a3b
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x180133a4a
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180133a56
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rsp + 0x68], SafeArrayLock
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x180133be4
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x180133bdf
test cl, 0x1f
je 0x180133a9e
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180133aad
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x180133abc
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180133bdc
call fcn.180154658
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rcx, rdi
call fcn.1801330d0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Select_timeout_failed_:_wsaerror
lea rcx, [rsp + 0x50]
call fcn.18000e4c0
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x180133b22
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180133b7a
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180133b75
test cl, 0x1f
je 0x180133b48
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180133b57
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x180133b66
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180133b72
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rsp + 0x68], SafeArrayLock
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x180133be4
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x180133bdf
test cl, 0x1f
je 0x180133bb2
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180133bc1
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x180133bd0
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180133bdc
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
xor eax, eax
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.180131f30
add rsp, 0x4c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret