Function at 0x407eba
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [0x4196b0]
mov dword [esp], eax
call sub.USER32.dll_SetTimer
sub esp, 0x10
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x8001
mov eax, dword [0x4196b0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.DLL_WSAAsyncSelect
sub esp, 0x10
mov dword [esp + 8], 0x113
mov dword [esp + 4], 0x8001
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00409096
mov eax, dword [ebp - 0x38]
cmp eax, dword [0x4196b0]
je 0x407f44
jmp 0x407f1c
cmp dword [ebp - 0x34], 0x8001
jne 0x407fcb
mov dword [esp + 4], 2
mov eax, dword [0x4196b0]
mov dword [esp], eax
call sub.USER32.dll_KillTimer
sub esp, 8
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp + 0x18]
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0xc]
cmp dword [ebx], eax
jb 0x407f90
mov ebx, dword [ebp + 0x18]
call sub.KERNEL32.DLL_GetTickCount
mov edx, eax
sub edx, dword [ebp - 0xc]
mov eax, dword [ebx]
sub eax, edx
mov dword [ebp - 0x50], eax
jmp 0x407f97
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edx], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [0x4196b0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.DLL_WSAAsyncSelect
sub esp, 0x10
jmp 0x408031
cmp dword [ebp - 0x34], 0x113
jne 0x407f1c
cmp dword [ebp - 0x30], 2
je 0x407fe3
jmp 0x407f1c
mov dword [esp + 4], 2
mov eax, dword [0x4196b0]
mov dword [esp], eax
call sub.USER32.dll_KillTimer
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [0x4196b0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.DLL_WSAAsyncSelect
sub esp, 0x10
mov dword [ebp - 0x48], 0xffffffff
jmp 0x408128
mov dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x3c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.DLL_recvfrom
sub esp, 0x18
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jns 0x408082
mov dword [ebp - 0x48], 0xffffffff
jmp 0x408128
cmp dword [ebp - 0x40], 0x15
jg 0x40808d
jmp 0x407ef2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp byte [eax], 1
je 0x4080a0
jmp 0x407ef2
mov eax, dword [ebp + 8]
add eax, 0x38
mov edx, dword [ebp - 0x44]
add edx, 2
mov dword [esp + 8], 6
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4080c9
jmp 0x407ef2
mov edx, dword [ebp + 0x1c]
mov eax, edx
add eax, eax
add eax, edx
add eax, eax
add eax, dword [ebp + 8]
add eax, 8
mov edx, dword [ebp - 0x44]
add edx, 8
mov dword [esp + 8], 6
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4080fd
jmp 0x407ef2
mov eax, dword [ebp - 0x44]
movzx edx, word [eax + 0x10]
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0x48]
je 0x408111
jmp 0x407ef2
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax + 1]
cmp eax, dword [ebp + 0x14]
je 0x408122
jmp 0x407ef2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 4]
leave
ret