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

Disassembly:
push ebp
sub esp, 0x60
push 0xb4
mov eax, 0x5da4e2
call fcn.005234b0
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 0x4ee1d3
lea eax, [esi + 0x254]
push eax
lea ecx, [ebp + 0x50]
call fcn.00411742
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 0x4ee1c2
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push ebx
push str.ncSocket::readData__:__m_signalsockINVALID_SOCKET
call fcn.004ac9bc
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
mov ecx, 0x721f30
call fcn.00430cd8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x54], bl
je 0x4ee1d3
mov ecx, dword [ebp + 0x50]
call fcn.0040df8b
cmp dword [ebp + 0x7c], ebx
jne 0x4ee1e1
mov eax, dword [esi + 0x21c]
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x70], ebx
mov eax, dword [ebp + 0x74]
jne 0x4ee206
cmp eax, ebx
je 0x4ee1ef
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 0x4ee20c
mov dword [eax], ebx
cmp dword [ebp + 0x78], ebx
jne 0x4ee21a
mov eax, dword [esi + 0x160]
mov dword [ebp + 0x78], eax
mov edi, 0x104
push edi
call fcn.0051d97d
pop ecx
push eax
lea ecx, [ebp + 0x48]
call fcn.004eab6f
mov dword [ebp - 4], 2
push edi
call fcn.0051d97d
pop ecx
push eax
lea ecx, [ebp + 0x34]
call fcn.004eab6f
mov byte [ebp - 4], 3
cmp dword [ebp + 0x70], ebx
jbe 0x4ee3cf
cmp dword [ebp + 0x40], ebx
jne 0x4ee3be
cmp byte [esi + 0x248], bl
jne 0x4ee3be
mov eax, dword [ebp + 0x48]
mov dword [eax], ebx
mov ecx, dword [ebp + 0x48]
xor eax, eax
cmp dword [ecx], ebx
jbe 0x4ee288
lea edx, [ecx + 4]
mov edi, dword [edx]
cmp edi, dword [ebp + 0x78]
je 0x4ee288
inc eax
add edx, 4
cmp eax, dword [ecx]
jb 0x4ee279
mov edx, dword [ecx]
cmp eax, edx
jne 0x4ee29f
cmp edx, 0x40
jae 0x4ee29f
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 0x4ee2c7
lea ecx, [eax + 4]
mov edi, dword [ebp + 0x5c]
mov edi, dword [edi]
cmp dword [ecx], edi
je 0x4ee2c7
inc dword [ebp + 0x60]
add ecx, 4
cmp dword [ebp + 0x60], edx
jb 0x4ee2b3
mov ecx, dword [ebp + 0x60]
cmp ecx, edx
jne 0x4ee2e4
cmp edx, 0x40
jae 0x4ee2e4
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 0x4ee59e
cmp eax, ebx
je 0x4ee397
push dword [ebp + 0x34]
mov eax, dword [ebp + 0x5c]
push dword [eax]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4ee332
push dword [ebp + 0x48]
push dword [ebp + 0x78]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4ee53f
push dword [ebp + 0x48]
push dword [ebp + 0x78]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4ee575
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 0x4ee369
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [ebp + 0x3c]
jmp 0x4ee36b
xor edi, edi
cmp eax, ebx
jle 0x4ee406
sub dword [ebp + 0x6c], eax
mov ecx, dword [ebp + 0x6c]
cmp ecx, dword [ebp + 0x70]
jae 0x4ee38b
mov ecx, 0x2bf20
cmp dword [ebp + 0x7c], ecx
jae 0x4ee38b
mov dword [ebp + 0x7c], ecx
mov ecx, dword [ebp + 0x74]
add dword [ebp + 0x44], eax
cmp ecx, ebx
je 0x4ee397
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.004ea646
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x6c], ebx
ja 0x4ee253
cmp dword [ebp + 0x3c], ebx
jle 0x4ee3cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x250], eax
add esi, 0x254
push esi
lea ecx, [ebp + 0x50]
call fcn.00411742
mov byte [ebp - 4], 0x11
push ebx
push dword [ebp + 0x5c]
call fcn.004c153b
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp byte [ebp + 0x54], bl
je 0x4ee3fe
mov ecx, dword [ebp + 0x50]
call fcn.0040df8b
mov esi, dword [ebp + 0x60]
jmp 0x4ee60f
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x6c], ebx
call dword [sym.imp.WSOCK32.dll_shutdown]
cmp byte [esi + 0x248], bl
jne 0x4ee536
cmp edi, ebx
jne 0x4ee471
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push ebx
push str.readData.Error.PartnerDisconnect
call fcn.004ac9bc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004ea560
push esi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push ebx
push str.__NC.Read.Failed4
call fcn.004ac9bc
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 3
mov ecx, 0x721f30
call fcn.004cc5c3
jmp 0x4ee536
push ebx
push str.readData.Error.
lea ecx, [ebp - 0x54]
call fcn.004ac9bc
mov byte [ebp - 4], 0xb
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.004ac6f7
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.004adc57
add esp, 0xc
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.004ea560
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004ac66a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004ac66a
push ebx
push str.__NC.Read.Failed5_EC
lea ecx, [ebp - 0x30]
call fcn.004ac9bc
mov byte [ebp - 4], 0xe
push esi
push ebx
push ebx
push edi
lea ecx, [ebp - 0x9c]
call fcn.004ac6f7
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.004adc57
add esp, 0xc
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xf
mov ecx, 0x721f30
call fcn.004cc5c3
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x9c]
call fcn.004ac66a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.004ac66a
or dword [ebp + 0x60], 0xffffffff
jmp 0x4ee3b5
add esi, 0x254
push esi
lea ecx, [ebp + 0x50]
call fcn.00411742
mov byte [ebp - 4], 7
push ebx
push dword [ebp + 0x5c]
call fcn.004c153b
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp byte [ebp + 0x54], bl
je 0x4ee56e
mov ecx, dword [ebp + 0x50]
call fcn.0040df8b
mov esi, edi
jmp 0x4ee60f
push esi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x78], esp
push ebx
push str.__NC.Read.Failed2
call fcn.004ac9bc
mov byte [ebp - 4], 8
mov byte [ebp - 4], 3
mov ecx, 0x721f18
call fcn.004bc4ff
jmp 0x4ee60c
push ebx
push str.ncSocket::readData__.select_SOCKET_ERROR_EC
lea ecx, [ebp]
call fcn.004ac9bc
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.004ac6f7
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.004adc57
add esp, 0xc
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, 0x721f30
call fcn.004d6f56
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc0]
call fcn.004ac66a
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.004ac66a
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x34]
call fcn.004fc03d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.004fc03d
mov eax, esi
jmp 0x4ee1f1