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

Disassembly:
push 0x20
mov eax, 0x57567d
call fcn.005635e5
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
lea esi, [ebx + 0x300]
inc ecx
mov dword [ebp - 0x1c], esi
test eax, eax
cmove eax, ecx
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.0053a750
and dword [ebp - 4], 0
mov ecx, ebx
call fcn.00482523
mov ecx, ebx
call fcn.00482976
mov ecx, ebx
call fcn.0048361f
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0053a760
mov eax, dword [ebx + 0x388]
xor ecx, ecx
inc ecx
mov byte [ebx + 0x167], cl
test eax, eax
je 0x4802c2
push dword [ebx + 0x38c]
call eax
pop ecx
xor edi, edi
mov dword [ebp - 0x14], edi
cmp byte [ebx + 0x168], 0
push 7
pop esi
je 0x48040f
mov ecx, ebx
call fcn.00480bda
mov eax, edi
cdq
idiv esi
neg edx
sbb dl, dl
inc dl
mov byte [ebp - 0x20], dl
je 0x4802f2
inc edi
mov dword [ebp - 0x14], edi
push dword [ebp - 0x20]
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.004804d4
jmp 0x480311
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.00483226
mov ecx, ebx
call fcn.00480b22
lea ecx, [ebp - 0x2c]
call fcn.00441a43
test al, al
je 0x480384
inc edi
mov dword [ebp - 4], 3
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.00481b21
jmp 0x48034f
lea ecx, [ebx + 0x238]
mov dword [ebp - 4], 5
call fcn.004855d8
jmp 0x48036f
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
test eax, eax
pop ecx
cmove eax, ecx
mov dword [ebp - 0x2c], eax
lea esi, [ebx + 0x330]
mov ecx, esi
call fcn.0053a750
mov eax, dword [ebx + 0x29c]
mov ecx, 0x90
sub eax, dword [ebx + 0x298]
cdq
idiv ecx
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.0053a760
cmp dword [ebx + 0x31c], 0
jg 0x4803d6
cmp dword [ebx + 0x318], 0
jg 0x4803d6
cmp dword [ebp - 0x1c], 0
jne 0x4803f8
push 0x32
push 0
lea esi, [ebx + 0x2fc]
push esi
push 1
jmp 0x4803ea
cmp dword [ebp - 0x1c], 0
jne 0x4803f8
xor eax, eax
lea esi, [ebx + 0x2fc]
inc eax
push eax
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
lea ecx, [ebx + 0x434]
call fcn.004953dd
mov ecx, ebx
call fcn.004835b3
jmp 0x4802c7
lea edi, [ebx + 0x300]
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.0053a750
mov dword [ebp - 4], esi
mov esi, dword [ebx + 0x2c4]
cmp esi, dword [ebx + 0x2c8]
je 0x48046e
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x32c], 6
je 0x480450
push 1
mov ecx, eax
call fcn.004992d8
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.00497be0
push dword [ebp - 0x1c]
call edi
add esi, 4
pop ecx
cmp esi, dword [ebx + 0x2c8]
jne 0x480436
lea edi, [ebx + 0x300]
mov eax, dword [ebx + 0x2c4]
mov dword [ebx + 0x2c8], eax
mov esi, dword [ebx + 0x2dc]
cmp esi, dword [ebx + 0x2e0]
je 0x4804b5
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4804a4
mov ecx, eax
call fcn.00497be0
push dword [ebp - 0x20]
call edi
pop ecx
add esi, 4
cmp esi, dword [ebx + 0x2e0]
jne 0x48048e
lea edi, [ebx + 0x300]
mov eax, dword [ebx + 0x2dc]
mov ecx, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x2e0], eax
call fcn.0053a760
xor eax, eax
call fcn.0056354a
ret