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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x50cd89
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040575c
xor eax, eax
push ebp
push 0x50d46f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x50d410
push dword fs:[edx]
mov dword fs:[edx], esp
cmp ebx, 0x7fffffff
jne 0x50cf13
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x5c], 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0050227c
mov eax, dword [ebp - 0x34]
mov byte [ebp - 0x38], 0x2f
lea ecx, [ebp - 0x38]
lea edx, [ebp - 8]
call fcn.00479c78
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0040db90
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 8]
call fcn.00405374
cmp dword [ebp - 8], 0
je 0x50cf13
cmp dword [ebp - 0xc], 0
je 0x50cf13
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.0050e0a8
mov esi, eax
test esi, esi
je 0x50ce6a
cmp dword [esi + 4], 5
jl 0x50ce6a
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esi + 8]
cmp eax, 0x2bf20
jae 0x50ce6a
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 8], eax
mov ebx, 0xfffffffb
jmp 0x50d391
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x1c]
add eax, 0x79
mov cl, 0x10
call fcn.00403a88
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0xc]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x1c]
add eax, 0x8a
mov cl, 0xa
call fcn.00403a88
mov edx, dword [0x507da4]
mov eax, 0x14
call fcn.004061b4
mov esi, eax
mov word [esi], 0x64
mov dword [esi + 4], ebx
lea eax, [esi + 8]
call fcn.004052dc
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
push 0
lea eax, [esi + 0x10]
mov ecx, 1
mov edx, dword [0x507d84]
call fcn.004065d8
add esp, 4
mov eax, dword [0x523364]
mov eax, dword [eax]
mov edx, esi
call fcn.00502f94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d424
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, 0x79
call fcn.00405540
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
add edx, 0x8a
call fcn.00405540
test ebx, ebx
je 0x50cf64
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.0050e0a8
mov esi, eax
cmp ebx, 1
jne 0x50cf59
xor eax, eax
mov dword [esi + 4], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 8], eax
jmp 0x50cf64
inc dword [esi + 4]
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 8], eax
cmp ebx, 1
jne 0x50cf88
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.0050dfd8
test al, al
je 0x50cf88
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.0050e190
mov ebx, 0xfffffffd
cmp ebx, 1
jne 0x50d391
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00405330
call fcn.0047a634
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x38], 0
xor edx, edx
push ebp
push 0x50d045
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x5236e8]
mov eax, dword [eax]
call fcn.0042fc98
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2ac]
call fcn.00475ed8
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2b0]
call fcn.00475ed8
mov esi, eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
test ebx, ebx
jl 0x50d014
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2ac]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
test esi, esi
jl 0x50d02b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2b0]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d04c
mov eax, dword [0x5236e8]
mov eax, dword [eax]
call fcn.0042fca0
ret
push 0
push 0
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, ebx
mov ax, 0x1f7
call fcn.005021a4
lea eax, [ebp - 0x14]
call fcn.004052dc
cmp ebx, 0xfffffffb
jne 0x50d3c0
lea eax, [ebp - 0x14]
mov edx, 0x50d4fc
call fcn.00405374
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x30]
call fcn.005023b0
lea eax, [ebp - 0x180]
push eax
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 0x14]
call fcn.00502414
mov edx, dword [ebp - 0x184]
pop eax
call fcn.004055a8
mov ecx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
call fcn.0050de9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d476
lea eax, [ebp - 0x184]
mov edx, 5
call fcn.00405300
lea eax, [ebp - 0x160]
mov edx, 9
call fcn.00405300
lea eax, [ebp - 0x3c]
call fcn.004052dc
lea eax, [ebp - 0x34]
call fcn.004052dc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405300
ret