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

Disassembly:
push ebp
sub esp, 0x60
push 0xb4
mov eax, 0x5bdc89
call fcn.00518b46
mov esi, ecx
mov eax, dword [ebp + 0x6c]
xor ebx, ebx
lea edi, [esi + 0x168]
cmp dword [edi], 0xffffffff
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x5c], edi
jne 0x4e1ad0
lea eax, [esi + 0x254]
push eax
lea ecx, [ebp + 0x50]
call fcn.00411378
mov dword [ebp - 4], ebx
push ebx
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
lea ecx, [ebp + 0x2c]
push ecx
push 0x8004667e
push eax
mov dword [edi], eax
mov dword [ebp + 0x2c], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp dword [edi], 0xffffffff
jne 0x4e1abf
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push ebx
push str.ncSocket::readData__:__m_signalsockINVALID_SOCKET
call fcn.0049eefc
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
mov ecx, 0x6ed748
call fcn.0043008c
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x54], bl
je 0x4e1ad0
mov ecx, dword [ebp + 0x50]
call fcn.0040dc30
cmp dword [ebp + 0x7c], ebx
jne 0x4e1ade
mov eax, dword [esi + 0x21c]
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x70], ebx
mov eax, dword [ebp + 0x74]
jne 0x4e1b03
cmp eax, ebx
je 0x4e1aec
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
cmp eax, ebx
je 0x4e1b09
mov dword [eax], ebx
cmp dword [ebp + 0x78], ebx
jne 0x4e1b17
mov eax, dword [esi + 0x160]
mov dword [ebp + 0x78], eax
mov edi, 0x104
push edi
call fcn.00511d1d
pop ecx
push eax
lea ecx, [ebp + 0x48]
call fcn.004db094
mov dword [ebp - 4], 2
push edi
call fcn.00511d1d
pop ecx
push eax
lea ecx, [ebp + 0x34]
call fcn.004db094
mov byte [ebp - 4], 3
cmp dword [ebp + 0x70], ebx
jbe 0x4e1ccc
cmp dword [ebp + 0x40], ebx
jne 0x4e1cbb
cmp byte [esi + 0x248], bl
jne 0x4e1cbb
mov eax, dword [ebp + 0x48]
mov dword [eax], ebx
mov ecx, dword [ebp + 0x48]
xor eax, eax
cmp dword [ecx], ebx
jbe 0x4e1b85
lea edx, [ecx + 4]
mov edi, dword [edx]
cmp edi, dword [ebp + 0x78]
je 0x4e1b85
inc eax
add edx, 4
cmp eax, dword [ecx]
jb 0x4e1b76
mov edx, dword [ecx]
cmp eax, edx
jne 0x4e1b9c
cmp edx, 0x40
jae 0x4e1b9c
mov edx, dword [ebp + 0x78]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp + 0x48]
inc dword [eax]
mov eax, dword [ebp + 0x34]
mov dword [eax], ebx
mov eax, dword [ebp + 0x34]
mov edx, dword [eax]
cmp edx, ebx
mov dword [ebp + 0x60], ebx
jbe 0x4e1bc4
lea ecx, [eax + 4]
mov edi, dword [ebp + 0x5c]
mov edi, dword [edi]
cmp dword [ecx], edi
je 0x4e1bc4
inc dword [ebp + 0x60]
add ecx, 4
cmp dword [ebp + 0x60], edx
jb 0x4e1bb0
mov ecx, dword [ebp + 0x60]
cmp ecx, edx
jne 0x4e1be1
cmp edx, 0x40
jae 0x4e1be1
mov edx, dword [ebp + 0x5c]
mov edx, dword [edx]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp + 0x34]
inc dword [eax]
mov eax, dword [ebp + 0x34]
lea ecx, [ebp + 0x24]
push ecx
push eax
push ebx
push dword [ebp + 0x48]
xor edi, edi
inc edi
push ebx
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], ebx
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x4e1e9b
cmp eax, ebx
je 0x4e1c94
push dword [ebp + 0x34]
mov eax, dword [ebp + 0x5c]
push dword [eax]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4e1c2f
push dword [ebp + 0x48]
push dword [ebp + 0x78]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4e1e3c
push dword [ebp + 0x48]
push dword [ebp + 0x78]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4e1e72
push ebx
push dword [ebp + 0x6c]
push dword [ebp + 0x44]
push dword [ebp + 0x78]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, ebx
mov dword [ebp + 0x3c], eax
jg 0x4e1c66
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [ebp + 0x3c]
jmp 0x4e1c68
xor edi, edi
cmp eax, ebx
jle 0x4e1d03
sub dword [ebp + 0x6c], eax
mov ecx, dword [ebp + 0x6c]
cmp ecx, dword [ebp + 0x70]
jae 0x4e1c88
mov ecx, 0x2bf20
cmp dword [ebp + 0x7c], ecx
jae 0x4e1c88
mov dword [ebp + 0x7c], ecx
mov ecx, dword [ebp + 0x74]
add dword [ebp + 0x44], eax
cmp ecx, ebx
je 0x4e1c94
add dword [ecx], eax
push dword [ebp + 0x7c]
xor eax, eax
cmp dword [ebp + 0x6c], ebx
mov ecx, esi
sete al
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.004de110
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x6c], ebx
ja 0x4e1b50
cmp dword [ebp + 0x3c], ebx
jle 0x4e1ccc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x250], eax
add esi, 0x254
push esi
lea ecx, [ebp + 0x50]
call fcn.00411378
mov byte [ebp - 4], 0x11
push ebx
push dword [ebp + 0x5c]
call fcn.004b2e00
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp byte [ebp + 0x54], bl
je 0x4e1cfb
mov ecx, dword [ebp + 0x50]
call fcn.0040dc30
mov esi, dword [ebp + 0x60]
jmp 0x4e1f0c
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x6c], ebx
call dword [sym.imp.WSOCK32.dll_shutdown]
cmp byte [esi + 0x248], bl
jne 0x4e1e33
cmp edi, ebx
jne 0x4e1d6e
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push ebx
push str.readData.Error.PartnerDisconnect
call fcn.0049eefc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004de02a
push esi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push ebx
push str.__NC.Read.Failed4
call fcn.0049eefc
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 3
mov ecx, 0x6ed748
call fcn.004c25fd
jmp 0x4e1e33
push ebx
push str.readData.Error.
lea ecx, [ebp - 0x54]
call fcn.0049eefc
mov byte [ebp - 4], 0xb
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.0049ec37
mov byte [ebp - 4], 0xc
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push eax
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.004de02a
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.0049ebaa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.0049ebaa
push ebx
push str.__NC.Read.Failed5_EC
lea ecx, [ebp - 0x30]
call fcn.0049eefc
mov byte [ebp - 4], 0xe
push esi
push ebx
push ebx
push edi
lea ecx, [ebp - 0x9c]
call fcn.0049ec37
mov byte [ebp - 4], 0xf
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push eax
lea eax, [ebp - 0x30]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xf
mov ecx, 0x6ed748
call fcn.004c25fd
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x9c]
call fcn.0049ebaa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0049ebaa
or dword [ebp + 0x60], 0xffffffff
jmp 0x4e1cb2
add esi, 0x254
push esi
lea ecx, [ebp + 0x50]
call fcn.00411378
mov byte [ebp - 4], 7
push ebx
push dword [ebp + 0x5c]
call fcn.004b2e00
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp byte [ebp + 0x54], bl
je 0x4e1e6b
mov ecx, dword [ebp + 0x50]
call fcn.0040dc30
mov esi, edi
jmp 0x4e1f0c
push esi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x78], esp
push ebx
push str.__NC.Read.Failed2
call fcn.0049eefc
mov byte [ebp - 4], 8
mov byte [ebp - 4], 3
mov ecx, 0x6ed730
call fcn.004b4cba
jmp 0x4e1f09
push ebx
push str.ncSocket::readData__.select_SOCKET_ERROR_EC
lea ecx, [ebp]
call fcn.0049eefc
mov byte [ebp - 4], 4
push esi
push ebx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push ebx
push eax
lea ecx, [ebp - 0xc0]
call fcn.0049ec37
mov byte [ebp - 4], 5
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x78], esp
push eax
lea eax, [ebp]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, 0x6ed748
call fcn.004c85e4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc0]
call fcn.0049ebaa
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.0049ebaa
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x34]
call fcn.004da9e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.004da9e8
mov eax, esi
jmp 0x4e1aee