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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50bf6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050bd34
xor eax, eax
push ebp
push 0x50bf4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x50bdb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
je 0x50bdb1
mov eax, dword [esi + 4]
call fcn.0050bff0
dec ebx
cmp ebx, 0xffffffff
jne 0x50bd96
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
je 0x50be1f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x10]
cmp eax, 0x1388
jbe 0x50be1f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x50be14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
cmp byte [esi + 0x28], 2
jne 0x50be0e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, esi
call fcn.00404340
dec ebx
cmp ebx, 0xffffffff
jne 0x50bde5
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50be99
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 0x1e
jge 0x50be99
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
cmp byte [esi + 0x28], 0
jne 0x50be93
mov eax, esi
mov edx, dword [eax]
call dword [edx]
test al, al
je 0x50be93
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
pop edx
mov esi, dword [eax]
call dword [esi + 0x3c]
inc ebx
dec dword [ebp - 8]
jne 0x50be35
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xc]
cmp eax, 0x7d0
jbe 0x50bf34
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50bf34
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 0x1e
jge 0x50bf34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
cmp byte [esi + 0x28], 4
jne 0x50bf2e
mov eax, esi
mov edx, dword [eax]
call dword [edx]
test al, al
je 0x50bf2e
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
pop edx
mov esi, dword [eax]
call dword [esi + 0x3c]
inc ebx
dec dword [ebp - 8]
jne 0x50bed0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bf51
mov eax, dword [ebp - 4]
call fcn.0050bd40
ret