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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x760403
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0x14], 0
mov eax, 0
setg al
test eax, eax
je 0x582784
fild dword [ebp + 0x14]
fstp qword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
jmp 0x58278e
mov edx, 0x42374876
mov eax, 0xe8000000
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fld qword [ebp - 0x38]
call fcn.004c58cd
mov dword [ebp - 4], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [ebp - 8], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 8]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fild dword [ebp - 4]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x38]
fsub qword [ebp - 0x40]
fcomp qword [0x7604ee]
fnstsw ax
test ah, 1
je 0x5829b2
push dword [ebp + 8]
call fcn.004d97d4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x58298f
push reloc.wsock32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x582825
mov eax, 0x760402
push eax
push 1
mov ebx, 0x130
call fcn.006015a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x582975
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0xc]
call fcn.005829e0
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x582873
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x58296d
mov ebx, dword [ebp - 0x14]
call fcn.004c6a80
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x5828b0
push 4
call fcn.005fffca
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x5828c3
push 1
call fcn.005fffca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
push dword [ebx]
call fcn.004da099
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5828ec
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.wsock32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.wsock32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x582917
mov eax, 0x760402
push eax
push reloc.wsock32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x58292b
mov eax, 0x760402
push eax
push 4
mov ebx, 0x148
call fcn.00604050
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x582953
mov eax, dword [ebp - 0xc]
jmp 0x5829bc
push 0
mov ebx, 0x350
call fcn.00604120
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x582885
add esp, 0xc
jmp 0x58297d
mov eax, dword [ebp - 0xc]
jmp 0x5829bc
push 0
mov ebx, 0x350
call fcn.00604120
add esp, 4
push 0x80000301
push 0
push 0xfa
push 1
mov ebx, 0x67c
call fcn.00603bf0
add esp, 0x10
jmp 0x5827b4
mov eax, 0
jmp 0x5829bc
push eax
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5829d9
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14