Function at 0x40825a
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 [0x41a740]
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 [0x41a740]
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.00409482
mov eax, dword [ebp - 0x38]
cmp eax, dword [0x41a740]
je 0x4082e4
jmp 0x4082bc
cmp dword [ebp - 0x34], 0x8001
jne 0x40836b
mov dword [esp + 4], 2
mov eax, dword [0x41a740]
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 0x408330
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 0x408337
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 [0x41a740]
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 0x4083d1
cmp dword [ebp - 0x34], 0x113
jne 0x4082bc
cmp dword [ebp - 0x30], 2
je 0x408383
jmp 0x4082bc
mov dword [esp + 4], 2
mov eax, dword [0x41a740]
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 [0x41a740]
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 0x4084c8
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 0x408422
mov dword [ebp - 0x48], 0xffffffff
jmp 0x4084c8
cmp dword [ebp - 0x40], 0x15
jg 0x40842d
jmp 0x408292
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp byte [eax], 1
je 0x408440
jmp 0x408292
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 0x408469
jmp 0x408292
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 0x40849d
jmp 0x408292
mov eax, dword [ebp - 0x44]
movzx edx, word [eax + 0x10]
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0x48]
je 0x4084b1
jmp 0x408292
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax + 1]
cmp eax, dword [ebp + 0x14]
je 0x4084c2
jmp 0x408292
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 4]
leave
ret