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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6095f1
mov eax, dword fs:[0]
push eax
mov eax, 0x2098
call fcn.005c1bc0
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 0x205c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20a4], ecx
mov dword [ebp - 0x2030], 0x3e7
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf3e58
mov eax, dword [ebp - 0x20a4]
mov dword [eax + 0x70], 0
cmp dword [0x69aaa4], 0
jg 0x4ecab1
push 0x1004
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x10
call fcn.004eb7a0
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x20a4]
call fcn.00415930
push eax
push str.Thread_id_d__started__mc_d_fs_d
push 0xe1
push 0x61621c
push 0
call fcn.00401310
add esp, 0x1c
mov edx, dword [ebp - 0x20a4]
add edx, 0x30
push edx
lea ecx, [ebp - 0x2034]
call fcn.00404090
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20a4]
cmp dword [eax + 0x70], 0
jne 0x4ecda0
mov ecx, dword [ebp - 0x20a4]
mov dword [ecx + 0x74], 1
lea edx, [ebp - 0x202c]
push edx
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x20a4]
call fcn.004ece90
mov dword [ebp - 0x2040], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x203c], eax
mov ecx, dword [ebp - 0x203c]
push ecx
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x48
call fcn.004ebbb0
mov dword [ebp - 0x2044], eax
cmp dword [ebp - 0x2044], 0x3e7
jbe 0x4ecb46
mov dword [ebp - 0x2044], 0x3e7
mov edx, dword [ebp - 0x2044]
imul edx, edx, 0x3e8
mov dword [ebp - 0x101c], edx
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x30
call fcn.00401060
lea eax, [ebp - 0x1020]
push eax
push 0
mov ecx, dword [ebp - 0x2040]
and ecx, 2
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x202c]
and ecx, edx
push ecx
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x1018]
add ecx, 1
push ecx
call sub.WS2_32.dll_select
mov dword [ebp - 0x2038], eax
mov edx, dword [ebp - 0x20a4]
mov dword [edx + 0x74], 0
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x30
call fcn.00401050
cmp dword [ebp - 0x2038], 0
jle 0x4ecd9b
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x20
call fcn.004cf040
mov dword [ebp - 0x2048], eax
mov eax, dword [ebp - 0x2048]
sub eax, 1
mov dword [ebp - 0x204c], eax
jmp 0x4ecbfd
mov ecx, dword [ebp - 0x204c]
sub ecx, 1
mov dword [ebp - 0x204c], ecx
cmp dword [ebp - 0x204c], 0
jl 0x4ecd9b
mov edx, dword [ebp - 0x204c]
push edx
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x20
call fcn.004ed520
mov eax, dword [eax]
mov dword [ebp - 0x2050], eax
mov ecx, dword [ebp - 0x2050]
call fcn.0050bfe0
mov dword [ebp - 0x2054], eax
mov ecx, dword [ebp - 0x2050]
call fcn.00501d30
mov dword [ebp - 0x2058], eax
cmp dword [ebp - 0x2058], 0
jne 0x4eccb2
mov ecx, dword [ebp - 0x2050]
push ecx
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x48
call fcn.004ebb30
mov edx, dword [ebp - 0x204c]
push edx
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x20
call fcn.004ed4c0
mov eax, dword [ebp - 0x2050]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2050]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x2050]
lea ecx, [ecx + eax + 8]
mov eax, dword [ebp - 0x2050]
mov edx, dword [eax + edx + 8]
mov eax, dword [edx + 4]
call eax
jmp 0x4ecd5b
mov ecx, dword [ebp - 0x2050]
call fcn.004ed2e0
test eax, eax
je 0x4eccf0
lea ecx, [ebp - 0x1014]
push ecx
mov edx, dword [ebp - 0x2054]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4eccf0
push 0
mov ecx, dword [ebp - 0x2050]
call fcn.004e9cc0
mov ecx, dword [ebp - 0x2050]
call fcn.004ed220
mov ecx, dword [ebp - 0x2050]
call fcn.004ed300
test eax, eax
je 0x4ecd5b
lea eax, [ebp - 0x202c]
push eax
mov ecx, dword [ebp - 0x2054]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ecd5b
push 0
mov ecx, dword [ebp - 0x2050]
call fcn.004e9cf0
cmp dword [ebp - 0x2058], 1
jne 0x4ecd50
push 1
mov ecx, dword [ebp - 0x2050]
call fcn.004e9cc0
push 0
mov edx, dword [ebp - 0x2050]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2050]
mov edx, dword [eax + 0x28]
call edx
jmp 0x4ecd5b
mov ecx, dword [ebp - 0x2050]
call fcn.004ed280
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x20a4]
mov edx, dword [ecx + 0x78]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ecd96
push 0
push 0x40
lea eax, [ebp - 0x209c]
push eax
mov ecx, dword [ebp - 0x20a4]
mov edx, dword [ecx + 0x78]
push edx
call sub.WS2_32.dll_recv
cmp eax, 0x40
jne 0x4ecd96
jmp 0x4ecd75
jmp 0x4ecbee
jmp 0x4ecacd
mov ecx, dword [ebp - 0x20a4]
call fcn.004ed060
cmp dword [0x69aaa4], 0
jg 0x4ecdd9
mov ecx, dword [ebp - 0x20a4]
call fcn.00415930
push eax
push str.ThreadIO::thread__u_exit
push 0x187
push 0x61625c
push 0
call fcn.00401310
add esp, 0x14
mov dword [ebp - 0x20a0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.004040b0
mov eax, dword [ebp - 0x20a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x205c]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret