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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4ca196
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56761c]
mov byte [eax], 0
mov eax, dword [0x5673b0]
cmp dword [eax], 0
je 0x4ca180
mov eax, dword [0x567128]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [0x566ba4]
cmp eax, dword [edx]
jne 0x4ca180
mov eax, dword [0x567690]
cmp byte [eax], 0
ja 0x4ca180
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.00532b38
mov edx, dword [0x567468]
mov byte [edx], al
mov eax, dword [0x566f40]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.0053293c
mov edi, eax
mov eax, dword [0x566f40]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
je 0x4ca010
mov eax, dword [0x566f40]
xor edx, edx
mov dword [eax], edx
test edi, edi
je 0x4ca052
cmp dword [edi + 8], 0
jne 0x4ca049
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 0x250]
cmp eax, 0x2710
jbe 0x4ca049
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x250], eax
mov eax, dword [edi + 0x14]
push eax
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 8]
call fcn.004cf9f4
mov eax, dword [0x567520]
mov dword [eax], edi
jmp 0x4ca05b
mov eax, dword [0x567520]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 4]
push eax
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.00532c28
mov edx, dword [0x567a50]
mov dword [edx], eax
mov eax, dword [0x567a50]
cmp dword [eax], 0
je 0x4ca0d5
mov eax, dword [0x567274]
mov byte [eax], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x567a50]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [0x567a50]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [0x566ba4]
mov eax, dword [eax]
call fcn.00532438
mov eax, dword [ebp - 4]
push eax
push 0xffffff
push 1
mov ecx, dword [ebp - 0x14]
sub ecx, 0xa
mov edx, dword [ebp - 0x10]
sub edx, 0x14
mov eax, dword [0x567128]
mov eax, dword [eax]
call fcn.00553460
jmp 0x4ca0ff
mov eax, dword [0x567274]
cmp byte [eax], 0
jne 0x4ca0f3
mov eax, dword [0x567274]
mov byte [eax], 1
mov eax, dword [0x567128]
mov eax, dword [eax]
call fcn.00553c4c
mov eax, dword [0x567128]
mov eax, dword [eax]
call fcn.00553c4c
mov eax, dword [0x5671c8]
push eax
mov eax, dword [0x56707c]
push eax
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.005325d8
mov eax, dword [0x567a00]
mov dword [eax], ebx
mov eax, dword [0x567880]
mov dword [eax], esi
mov eax, dword [0x567874]
mov byte [eax], 0
mov eax, dword [0x5679a0]
mov byte [eax], 0
mov eax, dword [0x567b28]
mov byte [eax], 0
mov eax, dword [0x567834]
mov byte [eax], 0
test byte [ebp - 0xa], 8
jne 0x4ca155
test byte [ebp - 0xa], 0x10
je 0x4ca180
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
sub eax, dword [edx + 0x3f4]
cmp eax, 0x12c
jbe 0x4ca180
movzx eax, byte [ebp - 0xa]
push eax
push ebx
push esi
movzx ecx, byte [ebp - 9]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
call fcn.004cbab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca19d
lea eax, [ebp - 4]
call fcn.00405544
ret