Function at 0x4a684c
Capabilities:
Check for time delay via gettickcount
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040403c
xor eax, eax
push ebp
push 0x4a6cca
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 0
xor edx, edx
push ebp
push 0x4a6ca2
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x4a68d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x374], 0
je 0x4a68b3
mov eax, dword [ebp - 4]
add eax, 0x374
call fcn.004a3b38
push 0x20
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.00413e44
mov edx, dword [ebp - 4]
mov dword [edx + 0x374], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6930
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.004a416c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
cmp eax, 0x1800
jle 0x4a6964
mov edx, eax
add edx, edx
mov eax, dword [ebp - 4]
call fcn.004a4050
mov word [ebp - 0x16], 0
mov word [ebp - 0x14], 0x64
push 4
lea eax, [ebp - 0x16]
push eax
push 0x80
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
push eax
call sub.wsock32.dll_setsockopt
lea eax, [ebp - 0x1c]
push eax
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a8af0
mov eax, dword [ebp - 4]
mov byte [eax + 0x349], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2d4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
call fcn.00413894
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0x380], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x384], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0xb8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xbc], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0xb0], 0
mov dword [eax + 0xb4], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
call fcn.004138a8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], edx
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb4], 0
jne 0x4a6a3e
cmp dword [eax + 0xb0], 0
jbe 0x4a6a93
jmp 0x4a6a40
jle 0x4a6a93
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xfc]
mov eax, dword [eax + 0xf8]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0xb4]
jne 0x4a6a64
cmp eax, dword [ecx + 0xb0]
jbe 0x4a6a93
jmp 0x4a6a66
jle 0x4a6a93
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xfc]
mov eax, dword [eax + 0xf8]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0xb0]
sbb edx, dword [ecx + 0xb4]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], edx
mov eax, dword [ebp - 4]
push eax
push 0
push 0x467
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
push eax
call sub.user32.dll_PostMessageA
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a7540
jmp 0x4a6bab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp word [eax + 0x6e], 0
je 0x4a6ad4
mov esi, eax
lea edx, [ebp - 0x11]
mov eax, dword [esi + 0x70]
call dword [esi + 0x6c]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x323], 0
je 0x4a6aee
mov dx, 2
mov eax, dword [ebp - 4]
call fcn.004a90bc
jmp 0x4a6afa
mov eax, dword [0x581ca8]
mov eax, dword [eax]
call fcn.0043b294
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4a6b4b
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [eax + 0xb0]
cmp edx, dword [ebp - 0xc]
jne 0x4a6b26
cmp eax, dword [ebp - 0x10]
je 0x4a6b4b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xb0]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0xb4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
call fcn.004aa4a8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x323], 0
je 0x4a6bab
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x32c]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov ecx, eax
test ecx, ecx
jne 0x4a6b79
mov ecx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
xor edx, edx
div ecx
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x328]
jae 0x4a6bab
mov eax, dword [ebp - 4]
push eax
push 0
push 0x467
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4a6bfe
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d4], 0
jne 0x4a6bfe
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4a6bfe
mov eax, dword [ebp - 4]
cmp dword [eax + 0xfc], 0
jne 0x4a6be6
cmp dword [eax + 0xf8], 0
jbe 0x4a6bfe
jmp 0x4a6be8
jle 0x4a6bfe
mov eax, dword [ebp - 4]
cmp byte [eax + 0x349], 0
je 0x4a6bfe
cmp byte [ebp - 0x11], 0
je 0x4a6abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6cac
mov eax, dword [ebp - 4]
mov dword [eax + 0xb8], 0
mov dword [eax + 0xbc], 0
cmp byte [ebp - 0x11], 0
jne 0x4a6c37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x2f0], 0
je 0x4a6c41
mov eax, dword [ebp - 4]
mov byte [eax + 0x335], 1
mov eax, dword [ebp - 4]
call fcn.004a7590
mov eax, dword [ebp - 4]
cmp dword [eax + 0x374], 0
je 0x4a6c62
mov eax, dword [ebp - 4]
add eax, 0x374
call fcn.004a3b38
mov eax, dword [ebp - 4]
mov byte [eax + 0x349], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
je 0x4a6ca1
cmp byte [ebp - 0x12], 0
jne 0x4a6c88
mov eax, dword [ebp - 4]
mov byte [eax + 0x335], 0
mov ecx, dword [0x581dd8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4a3628]
call fcn.0040bb58
call fcn.00403680
ret