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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x50cff1
mov eax, dword [ebp - 4]
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x201c], ebx
mov ebx, ecx
xor eax, eax
push ebp
push 0x50d2f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jle 0x50d2d8
xor eax, eax
push ebp
push 0x50d29d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x50d216
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.0041fbfc
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, edi
mov ecx, 4
call fcn.004031fc
mov esi, edi
add esi, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2000
jl 0x50d16a
cmp dword [ebp - 0x14], 0
jle 0x50d0ab
lea edx, [ebp - 0x2018]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
call fcn.004e1114
inc eax
je 0x50d228
inc dword [ebx + 0x64]
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0x2000
jle 0x50d0de
mov edx, esi
mov eax, dword [ebx]
mov ecx, 0x2000
call fcn.004e1114
inc eax
je 0x50d0fb
add esi, 0x2000
sub dword [ebp - 0x18], 0x2000
inc dword [ebx + 0x64]
add dword [ebx + 0x5c], 0x2000
jmp 0x50d0ab
mov edx, esi
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
call fcn.004e1114
inc eax
je 0x50d0fb
inc dword [ebx + 0x64]
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x50d117
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.0041faa0
mov eax, edi
call fcn.00402fb0
jmp 0x50d216
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jge 0x50d228
mov eax, dword [ebp - 0x18]
add eax, 4
call fcn.00402f94
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
mov ecx, 4
call fcn.004031fc
mov eax, dword [ebp - 0xc]
lea edx, [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0x18]
call fcn.004031fc
mov eax, edi
call fcn.00402fb0
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.0041fd58
jmp 0x50d228
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp eax, 0x2000
jle 0x50d1d3
cmp dword [ebp - 0x14], 0
jle 0x50d228
lea edx, [ebp - 0x2018]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
call fcn.004e1114
inc eax
je 0x50d228
inc dword [ebx + 0x64]
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp + eax - 0x2018]
mov eax, esi
mov ecx, dword [ebp - 0x18]
call fcn.004031fc
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.0041faa0
mov eax, edi
call fcn.00402fb0
jmp 0x50d1fe
mov eax, dword [ebp - 0x14]
lea edx, [ebp + eax - 0x2018]
mov eax, esi
mov ecx, dword [ebp - 0x18]
call fcn.004031fc
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.0041faa0
mov eax, edi
call fcn.00402fb0
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
mov edx, dword [0x6c0a30]
cmp eax, dword [edx]
jbe 0x50d216
mov byte [ebp - 1], 0
jmp 0x50d228
cmp dword [ebx], 0
je 0x50d228
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jg 0x50d04d
cmp dword [ebp - 0x14], 0
jle 0x50d293
lea edx, [ebp - 0x2018]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
call fcn.004e1114
inc eax
jne 0x50d28a
mov eax, dword [ebp - 0x14]
add eax, 4
call fcn.00402f94
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov ecx, 4
call fcn.004031fc
mov eax, dword [ebp - 0xc]
lea edx, [eax + 4]
lea eax, [ebp - 0x2018]
mov ecx, dword [ebp - 0x14]
call fcn.004031fc
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.0041fc88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d2d8
inc dword [ebx + 0x64]
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d2d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d2f8
lea eax, [ebp - 0x201c]
call fcn.00405394
ret