Function at 0x414220
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 0x58]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xffffffff
je 0x414257
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
jmp 0x41425f
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x34], ecx
add ecx, 1
cmp ebx, 0xffffffff
mov dword [esp + 0x30], 1
je 0x4142b5
mov eax, 0x10624dd3
mul ebx
shr edx, 6
mov dword [esp + 0x28], edx
imul edx, edx, 0x3e8
mov eax, ebx
sub eax, edx
lea edx, [esp + 0x28]
push edx
push 0
mov dword [esp + 0x34], eax
push 0
lea eax, [esp + 0x3c]
push eax
jmp 0x4142c0
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
je 0x4143d1
test edi, edi
je 0x4143b5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x28]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x41435f
cmp edi, 1
jne 0x4142fe
test esi, esi
je 0x41435f
cmp dword [ebp + 0x14], 0
jne 0x414420
mov edi, dword [esp + 0x10]
add dword [ebp + 8], esi
sub dword [ebp + 0xc], esi
add edi, esi
cmp edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
je 0x4143f5
cmp ebx, 0xffffffff
je 0x41426e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
je 0x41426e
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jb 0x414345
sub eax, ecx
jmp 0x41434a
sub eax, ecx
sub eax, 1
cmp eax, ebx
jb 0x41426e
mov eax, dword [esp + 0x14]
mov dword [eax + 0xc], 0xffffffff
jmp 0x4143b5
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x41440f
cmp ebx, 0xffffffff
je 0x41426e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
je 0x41426e
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jb 0x41439d
sub eax, ecx
jmp 0x4143a2
sub eax, ecx
sub eax, 1
cmp eax, ebx
jb 0x41426e
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xc], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4143c4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4143e9
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414404
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call esi
mov esi, dword [esp + 0x10]
test esi, esi
mov edx, dword [esp + 0x14]
mov dword [edx + 0xc], eax
je 0x4143da
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41442f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10