Function at 0x491700
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x5cecc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4bc
mov eax, dword [0x64aa84]
push ebx
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0x4c4], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
push 0
mov dword [esp + 0x18], esi
call fcn.0057bbd0
add esp, 4
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00491690
mov ebp, dword [0x6613bc]
mov eax, dword [ebp + 0x1bc]
test eax, eax
je 0x49177c
mov ecx, dword [0x661414]
mov ecx, dword [ecx + 0x30]
cmp esi, ecx
jb 0x491ec3
sub esi, ecx
cmp esi, eax
jb 0x491ec3
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, 0xf
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 8]
mov eax, dword [edi]
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x4917f9
mov esi, dword [eax + 0x10]
lea ecx, [esp + 0x1c]
call fcn.00502510
mov eax, dword [esi + 0x794]
cmp eax, 7
jne 0x4917e0
cmp dword [esi + 0x7bc], 1
jne 0x4917f1
mov edx, dword [esp + 0x20]
sub edx, dword [esi + 0x30]
cmp edx, 0x1f40
jbe 0x4917f1
mov esi, dword [esi + 0x790]
lea eax, [esi + esi*2]
lea eax, [esp + eax*4 + 0x44]
jmp 0x4917ef
jge 0x4917f1
mov esi, dword [esi + 0x790]
lea eax, [esi + esi*2]
lea eax, [esp + eax*4 + 0x40]
inc dword [eax]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x4917a2
mov eax, dword [ebp + 0x1f4]
test eax, eax
mov dword [esp + 0x98], 1
je 0x49181b
mov eax, dword [ebp + 0x1fc]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x294]
test eax, eax
je 0x491830
mov dword [esp + 0xb0], 0
mov esi, 4
mov dword [esp + 0x1c], esi
jmp 0x491843
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x64]
lea eax, [esi + esi*2]
shl eax, 2
mov ecx, dword [esp + eax + 0x44]
test ecx, ecx
jle 0x491861
mov edx, dword [esp + 0x20]
mov dword [ebx + esi*4 + 0x30], edx
mov eax, dword [esp + eax + 0x80]
cmp ecx, eax
mov dword [esp + 0x10], eax
jge 0x491d85
mov ecx, dword [0x6613d8]
push esi
call fcn.00490d50
cmp esi, 3
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
jne 0x4918ba
mov eax, dword [0x6613bc]
mov ecx, dword [eax + 0x1f8]
test ecx, ecx
je 0x4918ea
mov ecx, dword [0x661414]
push edi
call fcn.004928b0
test eax, eax
je 0x4918ea
mov dword [esp + 0x14], 2
jmp 0x4918f2
cmp esi, 4
jne 0x4918f2
mov ecx, dword [0x6613bc]
mov eax, dword [ecx + 0x1f8]
test eax, eax
je 0x4918ea
mov ecx, dword [0x661414]
push edi
call fcn.004928b0
test eax, eax
je 0x4918ea
mov edi, 2
mov dword [esp + 0x14], edi
jmp 0x4918f6
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
mov edx, dword [0x6613bc]
mov eax, dword [edx + 0x488]
add eax, 0xfffffffe
cmp edi, eax
jl 0x49190f
mov edi, eax
mov dword [esp + 0x14], edi
cmp esi, 3
jne 0x491a24
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x10]
test esi, esi
mov ebx, dword [esp + 0x20]
je 0x49196d
cmp ebp, edi
jge 0x49196d
cmp dword [esi + 0x1c], 1
jne 0x491966
push ebx
mov ecx, esi
call fcn.0047ced0
test eax, eax
je 0x491966
push 1
mov ecx, esi
call fcn.0047ce00
test eax, eax
je 0x491966
mov dword [esi + 0x68], ebx
mov ecx, dword [0x6613bc]
mov eax, dword [ecx + 0x1bc]
inc ebp
test eax, eax
mov dword [esp + 0x64], ebp
jne 0x491e53
mov esi, dword [esi + 4]
test esi, esi
jne 0x491927
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x10]
test esi, esi
je 0x4919be
cmp ebp, edi
jge 0x4919be
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4919b7
push ebx
mov ecx, esi
call fcn.0047ced0
test eax, eax
je 0x4919b7
push 1
mov ecx, esi
call fcn.0047ce00
test eax, eax
je 0x4919b7
mov dword [esi + 0x68], ebx
mov eax, dword [0x6613bc]
mov ecx, dword [eax + 0x1bc]
inc ebp
test ecx, ecx
mov dword [esp + 0x64], ebp
jne 0x491e53
mov esi, dword [esi + 4]
test esi, esi
jne 0x491978
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x491e3f
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x64], ebx
jge 0x491e3f
mov edi, dword [esp + 0x20]
push edi
mov ecx, esi
call fcn.0047ced0
test eax, eax
je 0x491a18
push 1
mov ecx, esi
call fcn.0047ce00
test eax, eax
je 0x491a18
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x68], edi
mov edx, dword [0x6613bc]
mov eax, dword [edx + 0x1bc]
inc ecx
test eax, eax
mov dword [esp + 0x64], ecx
jne 0x491e53
mov esi, dword [esi + 4]
test esi, esi
jne 0x4919d1
jmp 0x491e3f
cmp esi, 4
jne 0x491ad0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
xor esi, esi
test eax, eax
je 0x491a57
lea ebx, [ebx]
cmp esi, 0x100
jge 0x491a57
mov dword [esp + esi*4 + 0xb8], eax
mov eax, dword [eax + 4]
inc esi
test eax, eax
jne 0x491a40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0057a74d
add esp, 4
call fcn.0057a75a
xor ebp, ebp
test esi, esi
mov ebx, eax
jle 0x491e3f
lea eax, [ebx + ebp]
cdq
idiv esi
mov ecx, dword [esp + 0x20]
push ecx
mov edi, dword [esp + edx*4 + 0xbc]
mov ecx, edi
call fcn.0047ced0
test eax, eax
je 0x491ac6
push 1
mov ecx, edi
call fcn.0047ce00
test eax, eax
je 0x491ac6
mov ecx, dword [esp + 0x70]
mov edx, dword [0x6613bc]
mov eax, dword [edx + 0x490]
inc ecx
test eax, eax
mov dword [esp + 0x70], ecx
je 0x491ac6
mov eax, dword [0x6613c0]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x2c], ecx
inc ebp
cmp ebp, esi
jl 0x491a77
jmp 0x491e3f
cmp esi, 2
jne 0x491e3f
mov eax, dword [0x6613bc]
mov edx, dword [eax + 0x2c4]
mov ecx, dword [edx - 0xc]
xor ebx, ebx
cmp ecx, ebx
jne 0x491c7b
lea ecx, [esp + 0x24]
call fcn.00490e80
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4d4], ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x10]
cmp ebp, ebx
mov dword [esp + 0x10], ebp
je 0x491b9b
mov edi, edi
mov ecx, dword [0x6613c8]
mov edx, dword [ecx + 4]
add ecx, 4
call dword [edx + 0x14]
mov ecx, ebp
call fcn.0047d220
mov ecx, dword [0x6613c8]
mov eax, dword [ecx + 4]
add ecx, 4
push 0xffffffffffffffff
call dword [eax + 0xc]
mov edi, dword [esi]
cmp edi, esi
je 0x491b62
mov eax, dword [ebp + 0x28]
mov ecx, dword [edi + 8]
cmp eax, dword [ecx + 0x28]
jb 0x491c53
mov edi, dword [edi]
cmp edi, esi
jne 0x491b50
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 4]
push edx
push esi
lea ecx, [esp + 0x30]
call fcn.00490f10
push 1
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00491220
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov ebp, dword [ebp + 4]
test ebp, ebp
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
jne 0x491b20
mov ebp, dword [esi]
cmp ebp, esi
je 0x491c0d
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x14]
jge 0x491c0d
mov edi, dword [ebp + 8]
push ebx
mov ecx, edi
call fcn.0047ced0
test eax, eax
je 0x491c06
mov eax, dword [edi + 0x74]
test eax, eax
je 0x491bd9
push 0
call fcn.0057bbd0
mov ecx, dword [edi + 0x74]
add ecx, 0x3c
add esp, 4
cmp eax, ecx
jbe 0x491c06
push 1
mov ecx, edi
call fcn.0047ce00
test eax, eax
je 0x491c06
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x68], ebx
mov edx, dword [0x6613bc]
mov eax, dword [edx + 0x1bc]
inc ecx
test eax, eax
mov dword [esp + 0x58], ecx
jne 0x491e6b
mov ebp, dword [ebp]
cmp ebp, esi
jne 0x491ba5
mov dword [esp + 0x4d4], 0xffffffff
mov eax, dword [esi]
xor ebx, ebx
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esp + 0x2c], ebx
je 0x491c41
lea esp, [esp]
mov edi, dword [eax]
push eax
call fcn.005abee6
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x491c30
push esi
call fcn.005abee6
add esp, 4
mov dword [esp + 0x28], ebx
jmp 0x491e3f
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
push edx
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.00490f10
push 1
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00491220
mov dword [edi + 4], esi
jmp 0x491b87
mov eax, dword [eax + 0x2c4]
push 1
lea ecx, [esp + 0x4bc]
push ecx
mov ecx, dword [0x661414]
push ebx
push eax
call fcn.00492e80
mov edx, dword [esp + 0x4ba]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x6613c8]
mov esi, dword [0x6613f4]
add ecx, 4
push 1
push ecx
mov edi, eax
lea eax, [esp + 0x4c4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.005789d4
mov dword [esp + 0x4d4], 1
mov edx, dword [esp + 0x10]
push edi
push edx
mov ecx, esi
call fcn.00490000
test eax, eax
je 0x491d03
mov dword [esp + 0x4d4], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0057897a
jmp 0x491e3f
mov ecx, dword [0x661414]
push 1
lea eax, [esp + 0x14]
push eax
call fcn.00492970
test eax, eax
jne 0x491cea
mov ecx, dword [0x661414]
push ebx
call fcn.00493200
test eax, eax
je 0x491cea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x89c
call fcn.005abebb
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x4d4], 5
cmp eax, ebx
je 0x491d57
mov ecx, eax
call fcn.00494dc0
mov esi, eax
jmp 0x491d59
xor esi, esi
mov byte [esp + 0x4d4], 1
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
push edi
push eax
mov ecx, esi
call dword [edx + 0x5c]
test eax, eax
jne 0x491cea
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
jmp 0x491cea
jle 0x491e3f
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 8]
mov edx, dword [edi]
xor ecx, ecx
cmp edx, edi
je 0x491e3f
mov ebp, dword [esp + 0x1c]
mov ebx, 1
mov al, byte [edx + 0x15]
test al, al
mov esi, dword [edx + 0x10]
jne 0x491df2
mov eax, dword [edx + 8]
cmp byte [eax + 0x15], 0
jne 0x491dd0
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x15], 0
jne 0x491df2
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x15], 0
je 0x491dc4
jmp 0x491df2
mov eax, dword [edx + 4]
cmp byte [eax + 0x15], 0
jne 0x491df0
lea esp, [esp]
cmp edx, dword [eax + 8]
jne 0x491df0
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x491de0
mov edx, eax
cmp dword [esi + 0x7bc], ebx
jne 0x491e29
cmp dword [esi + 0x790], ebp
jne 0x491e29
mov eax, dword [esi + 0x7b0]
test eax, eax
jne 0x491e1b
mov eax, dword [esi + 0x28]
test eax, eax
je 0x491e1b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x491e29
test ecx, ecx
je 0x491e27
mov eax, dword [esi + 0x30]
cmp eax, dword [ecx + 0x30]
jbe 0x491e29
mov ecx, esi
cmp edx, edi
jne 0x491da7
test ecx, ecx
je 0x491e3f
mov edx, dword [ecx]
push 0x3f06
call dword [edx + 0x58]
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 1
mov dword [esp + 0x1c], eax
jg 0x49183b
jmp 0x491ec2
mov ecx, dword [0x661414]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x30], eax
mov edx, dword [0x6613c0]
mov dword [edx + 0x2c], eax
jmp 0x491ec2
mov ecx, dword [0x661414]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x30], eax
mov edx, dword [0x6613c0]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x4d4], 0xffffffff
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esp + 0x2c], 0
je 0x491eb1
nop
mov edi, dword [eax]
push eax
call fcn.005abee6
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x491ea0
push esi
call fcn.005abee6
add esp, 4
mov dword [esp + 0x28], 0
pop edi
mov ecx, dword [esp + 0x4c8]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4bc]
pop ebx
call fcn.0057981f
add esp, 0x4c8
ret