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

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x12c]
xor esi, esi
cmp bx, 7
mov dword [esp + 0x18], eax
jb 0x409659
mov eax, dword [ebp + 0x134]
push 0x43d4c8
push eax
call fcn.00415012
add esp, 8
test eax, eax
jne 0x409506
call fcn.00415134
mov ecx, dword [esp + 0x138]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 0x18], edx
mov eax, ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 1
push ecx
push esi
push esi
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x164]
shl edx, 3
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x2c]
inc eax
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x409659
mov eax, dword [ebp + 0x164]
push esi
mov esi, dword [esp + 0x12c]
and ebx, 0xffff
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 7
jl 0x409659
cmp byte [esi], 0xeb
jne 0x409659
cmp byte [esi + 1], 0x90
jne 0x409659
mov cl, byte [esi + 2]
mov dl, byte [esp + 0x130]
cmp cl, dl
jne 0x409659
mov dl, byte [esi + 3]
mov cl, byte [esp + 0x134]
cmp dl, cl
jne 0x409659
mov di, word [esi + 4]
add eax, 0xfffffff9
and edi, 0xffff
cmp edi, eax
jg 0x409659
lea eax, [edi + 6]
mov ecx, ebp
push eax
push esi
call fcn.00409390
cmp al, byte [edi + esi + 6]
jne 0x409659
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x114
ret 0x14
mov edi, dword [esp + 0x128]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, 0x138
call fcn.0040d020
test eax, eax
je 0x409606
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x13]
push edx
push 1
lea ecx, [eax + 0x138]
call fcn.0040d050
test si, si
jne 0x409554
cmp byte [esp + 0x13], 0xeb
jne 0x409511
mov byte [edi], 0xeb
mov esi, 1
jmp 0x409511
cmp si, 1
jne 0x409573
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x130]
cmp al, cl
jne 0x4095dc
mov byte [edi + 1], al
mov esi, 2
jmp 0x409511
cmp si, 2
jne 0x409595
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x134]
cmp al, cl
jne 0x4095dc
mov byte [edi + 2], al
mov esi, 3
jmp 0x409511
cmp si, 3
jne 0x4095ac
mov cl, byte [esp + 0x13]
mov esi, 4
mov byte [edi + 3], cl
jmp 0x409511
cmp si, 4
jne 0x4095e3
mov dl, byte [esp + 0x13]
mov eax, ebx
mov byte [edi + 4], dl
mov bp, word [edi + 3]
and eax, 0xffff
mov ecx, ebp
sub eax, 6
and ecx, 0xffff
cmp ecx, eax
mov esi, 5
jle 0x409511
xor esi, esi
jmp 0x409511
mov edx, ebp
mov eax, esi
and edx, 0xffff
and eax, 0xffff
add edx, 5
cmp eax, edx
jge 0x409622
mov cl, byte [esp + 0x13]
inc esi
mov byte [eax + edi], cl
jmp 0x409511
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x138]
sub eax, edx
cmp eax, ecx
ja 0x409659
jmp 0x409511
mov ecx, dword [esp + 0x14]
and ebp, 0xffff
add ebp, 5
push ebp
push edi
call fcn.00409390
mov cl, byte [esp + 0x13]
cmp al, cl
jne 0x409659
and esi, 0xffff
mov eax, 1
mov byte [esi + edi], cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret 0x14