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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x5a61b0]
xor eax, ebp
mov dword [ebp - 8], eax
movdqu xmm0, xmmword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x508], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x4fc], ebx
mov dword [ebp - 0x500], eax
movdqu xmmword [ebp - 0x4bc], xmm0
call fcn.00409800
push 0x3ff
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x48b]
push 0
push eax
mov byte [ebp - 0x48c], 0
call fcn.0052cef0
add esp, 0xc
mov byte [ebp - 0x8c], 0
lea eax, [ebp - 0x8b]
push 0x7f
push 0
push eax
call fcn.0052cef0
add esp, 0xc
mov dword [ebp - 0x4ec], 0
push 0
push 0x64
push 0
lea esi, [ebx + 8]
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x40936c
lea eax, [ebp - 0x4e8]
push eax
push dword [esi]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x4e8], 1
je 0x40936c
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0x2710
push dword [ebp - 0x514]
push dword [ebp - 0x518]
call fcn.00530930
cmp dword [0x5c4168], 0
mov esi, eax
mov edi, edx
jne 0x4092c6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5c4168], eax
mov ecx, dword [0x5c4170]
or ecx, dword [0x5c4174]
jne 0x4092e0
mov dword [0x5c4170], esi
mov dword [0x5c4174], edi
lea eax, [ebp - 0x504]
mov dword [ebp - 0x504], 0x10
push eax
lea eax, [ebp - 0x4bc]
push eax
push 0
push 0x400
lea eax, [ebp - 0x48c]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x40936c
mov ax, word [ebp - 0x48c]
cmp ax, word [ebx + 0xc]
jne 0x40936c
push dword [ebp - 0x48a]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
call esi
mov ecx, 0xfb7f
and ax, cx
mov ecx, 0x8100
cmp ax, cx
jne 0x40936c
push dword [ebp - 0x488]
call esi
push dword [ebp - 0x486]
movzx eax, ax
mov dword [ebp - 0x4f8], eax
call esi
movzx eax, ax
mov dword [ebp - 0x4f0], eax
test ax, ax
jne 0x409406
lea eax, [ebp - 0x4ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x4ac]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0x2710
push dword [ebp - 0x50c]
push dword [ebp - 0x510]
call fcn.00530930
mov esi, eax
mov edi, edx
mov eax, dword [0x5c4168]
test eax, eax
jne 0x4093bd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5c4168], eax
mov edx, dword [0x5c4170]
mov ecx, edx
or ecx, dword [0x5c4174]
jne 0x4093db
mov edx, esi
mov dword [0x5c4174], edi
mov dword [0x5c4170], edx
sub esi, edx
sub esi, dword [ebp - 0x4f4]
add esi, eax
cmp esi, 0x1388
jbe 0x409239
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x4f8]
lea esi, [ebp - 0x480]
movzx eax, ax
xor edi, edi
test eax, eax
je 0x40945b
jmp 0x409420
push 0
push 0x80
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x4ec]
push eax
push esi
call fcn.004096d0
test eax, eax
je 0x4093f1
movzx eax, word [ebp - 0x4ec]
inc edi
mov ecx, dword [ebp - 0x4f8]
add eax, 4
add esi, eax
movzx eax, cx
cmp edi, eax
jne 0x409420
mov eax, dword [ebp - 0x4f0]
xor ebx, ebx
movzx eax, ax
mov dword [ebp - 0x4f4], eax
test eax, eax
je 0x409534
jmp 0x409480
mov ecx, dword [ebp - 0x4fc]
lea eax, [ebp - 0x48c]
push eax
push 0x80
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4ec]
push eax
push esi
call fcn.004096d0
test eax, eax
je 0x4093f1
movzx eax, word [ebp - 0x4ec]
add esi, eax
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
add esi, 0xa
mov dword [ebp - 0x4f0], eax
cmp edi, 1
jne 0x40954c
mov edx, dword [ebp - 0x508]
test edx, edx
je 0x4095bc
mov ecx, dword [esi]
mov eax, ecx
shr eax, 0x18
push eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
push eax
mov eax, ecx
shr eax, 8
and eax, 0xff
push eax
movzx eax, cl
push eax
push 0x58804c
push 0x11
push edx
call fcn.0052bcf8
add esp, 0x1c
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 0x1c
cmp edi, 5
jne 0x4095bc
mov edi, dword [ebp - 0x500]
test edi, edi
je 0x4095bc
mov ecx, dword [ebp - 0x4fc]
lea eax, [ebp - 0x48c]
push eax
push 0x80
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4ec]
push eax
push esi
call fcn.004096d0
test eax, eax
je 0x4093f1
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x8c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409597
sub eax, edx
inc eax
push eax
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x8c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x4f0]
movzx eax, ax
inc ebx
add esi, eax
cmp ebx, dword [ebp - 0x4f4]
jne 0x409480
jmp 0x409534