Function at 0x616680
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
sub esp, 0x44
mov eax, dword [0x684540]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x50], eax
jne 0x6166a1
mov ebp, 0x683838
jmp 0x6166b2
push 0x108
call fcn.006291e4
add esp, 4
mov dword [esi], eax
mov ebp, eax
call sub.KERNEL32.dll_GetTickCount
push eax
call fcn.00624312
mov eax, dword [esp + 0x68]
lea edx, [ebp + 4]
add esp, 4
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6166d0
mov eax, dword [esp + 0x68]
lea edx, [ebp + 0x44]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6166e3
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x6c]
mov dword [ebp + 0xb8], eax
mov eax, dword [esp + 0x74]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x78]
mov dword [ebp + 0x104], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x88], eax
mov eax, dword [esp + 0x80]
mov dword [ebp + 0x8c], ecx
mov ecx, dword [esp + 0x84]
mov dword [ebp + 0x90], edx
mov edx, dword [esp + 0x88]
mov dword [ebp + 0x94], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 0xa8], edi
mov dword [ebp + 0xac], edi
mov dword [ebp + 0xb0], 1
mov dword [ebp + 0x98], ecx
mov dword [ebp + 0x9c], edx
mov dword [ebp + 0xa0], edi
mov dword [ebp + 0xa4], edi
mov dword [ebp + 0xd4], edi
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0xbc], edi
mov dword [ebp + 0xc0], eax
xor esi, esi
call fcn.0062431f
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 4
mov byte [esi + ebp + 0x83], dl
jl 0x616794
mov eax, dword [0x6a2720]
or esi, 0xffffffff
cmp eax, edi
mov dword [ebp + 0xd8], esi
mov dword [ebp + 0xdc], esi
mov dword [ebp + 0xe0], esi
mov dword [ebp + 0xe4], esi
mov dword [ebp + 0xe8], esi
mov dword [ebp + 0xec], esi
mov dword [ebp + 0xf0], esi
mov dword [ebp + 0xf4], esi
mov dword [ebp + 0xf8], esi
mov dword [ebp + 0xfc], esi
mov dword [ebp + 0x100], edi
jne 0x61682f
call fcn.0061d680
cmp eax, edi
je 0x61682f
xor ecx, ecx
mov dword [0x6a2720], ecx
lea ecx, [ecx]
mov edx, dword [eax + 0xc]
mov edx, dword [edx + ecx*4]
cmp edx, edi
je 0x616829
mov edx, dword [edx]
mov dword [ecx*4 + 0x6a2608], edx
inc ecx
cmp ecx, 5
jl 0x616810
mov dword [0x6a2720], ecx
cmp ebx, edi
je 0x6168c7
movsx eax, byte [0x723560]
cmp eax, edi
jne 0x616883
mov eax, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x14]
push str._s.master.gamespy.com
push ecx
call fcn.006238e3
add esp, 0xc
lea ebx, [esp + 0x10]
push 0x6cfc
mov word [ebp + 0xc4], 2
call sub.WSOCK32.dll_htons
cmp ebx, edi
mov word [ebp + 0xc6], ax
jne 0x61688a
mov dword [ebp + 0xc8], edi
jmp 0x616896
mov ebx, 0x723560
jmp 0x61685d
push ebx
call sub.WS2_32.dll_inet_addr
mov dword [ebp + 0xc8], eax
cmp dword [ebp + 0xc8], esi
jne 0x6168c7
mov edi, str.255.255.255.255
mov esi, ebx
mov ecx, 0x10
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x6168c7
push ebx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x6168da
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp + 0xc8], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
call fcn.006293e9
add esp, 0x44
ret
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
call fcn.006293e9
add esp, 0x44
ret