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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x188]
mov edx, dword [0x40aa6c]
call fcn.004059a4
lea eax, [ebp - 0x1c8]
mov edx, dword [0x4c7350]
call fcn.004059a4
xor eax, eax
push ebp
push 0x4c8115
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov dl, 1
mov eax, dword [0x41ea8c]
call fcn.00403fc4
mov dword [ebp - 0x10], eax
mov byte [ebp - 7], 1
mov byte [ebp - 0xa], 1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x34]
call fcn.00404f6c
xor eax, eax
mov dword [ebp - 0x1d8], eax
xor eax, eax
mov dword [ebp - 0x1d4], eax
xor eax, eax
mov dword [ebp - 0x1d0], eax
xor eax, eax
mov dword [ebp - 0x1cc], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 7], 1
jne 0x4c8099
mov byte [ebp - 8], 1
cmp byte [ebp - 0xa], 0
jne 0x4c7df9
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4c7de2
mov byte [ebp - 7], 0
jmp 0x4c7df9
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp byte [ebp - 7], 1
jne 0x4c808f
mov eax, dword [ebp - 4]
cmp word [eax + 0x4a], 0
setne al
cmp al, 1
jne 0x4c7e1e
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x4c]
call dword [ebx + 0x48]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4c7e35
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp byte [eax + edx - 1], 0x5c
je 0x4c7e4f
lea eax, [ebp - 0x14]
mov edx, 0x4c812c
call fcn.004051a0
lea eax, [ebp - 0x18]
mov ecx, 0x4c8138
mov edx, dword [ebp - 0x14]
call fcn.004051ec
lea ecx, [ebp - 0x188]
mov edx, 0x3f
mov eax, dword [ebp - 0x18]
call fcn.0040c538
test eax, eax
jne 0x4c8083
mov byte [ebp - 9], 0
jmp 0x4c8067
mov eax, dword [ebp - 0x174]
mov edx, 0x4c8144
call fcn.004052fc
je 0x4c8054
mov eax, dword [ebp - 0x174]
mov edx, 0x4c8150
call fcn.004052fc
je 0x4c8054
test byte [ebp - 0x178], 0x10
je 0x4c7ee3
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 1
jne 0x4c7ee3
lea eax, [ebp - 0x1dc]
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x14]
call fcn.004051ec
mov edx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x188]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004c7568
mov byte [ebp - 0x1d], 0
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 4]
call fcn.004c76ac
cmp al, 1
jne 0x4c7f15
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa], 1
jne 0x4c7f2b
test byte [ebp - 0x178], 0x10
jne 0x4c7f2b
mov byte [ebp - 0x1d], 1
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 4]
call fcn.004c775c
test al, al
jne 0x4c7f41
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x28]
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 4]
call fcn.004c7abc
test al, al
jne 0x4c7f5d
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 4]
call fcn.004c7c50
cmp al, 1
jne 0x4c7f79
mov byte [ebp - 0x1d], 0
test byte [ebp - 0x178], 0x10
je 0x4c7fa6
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.004c7b60
test al, al
jne 0x4c7fbc
mov eax, dword [ebp - 4]
call fcn.004c7c18
test al, al
jne 0x4c7fbc
mov byte [ebp - 0x1d], 0
jmp 0x4c7fbc
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.004c7b60
test al, al
jne 0x4c7fbc
mov byte [ebp - 0x1d], 0
cmp byte [ebp - 0x1d], 1
jne 0x4c8054
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x5a], 0
setne al
cmp al, 1
jne 0x4c7feb
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x1c8]
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov byte [ebp - 6], al
cmp byte [ebp - 6], 1
jne 0x4c8054
test byte [ebp - 0x178], 0x10
je 0x4c8020
inc dword [ebp - 0x1d0]
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
setne al
cmp al, 1
jne 0x4c8054
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x1c8]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
jmp 0x4c8054
inc dword [ebp - 0x1d8]
cmp byte [ebp - 8], 1
jne 0x4c8036
mov byte [ebp - 8], 0
inc dword [ebp - 0x1d4]
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
setne al
cmp al, 1
jne 0x4c8054
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x1c8]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
lea eax, [ebp - 0x188]
call fcn.0040c588
test eax, eax
je 0x4c8067
mov byte [ebp - 9], 1
cmp byte [ebp - 9], 0
sete al
cmp al, 1
je 0x4c7e83
lea eax, [ebp - 0x188]
call fcn.0040c5ac
jmp 0x4c808b
mov byte [ebp - 7], 0
mov byte [ebp - 5], 0
mov byte [ebp - 0xa], 0
cmp byte [ebp - 7], 1
je 0x4c7dc6
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x52], 0
setne al
cmp al, 1
jne 0x4c80c5
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x1d8]
mov eax, dword [ebx + 0x54]
call dword [ebx + 0x50]
mov eax, dword [ebp - 0x10]
call fcn.00403ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c811c
lea eax, [ebp - 0x1dc]
call fcn.00404ed4
lea eax, [ebp - 0x1c8]
mov edx, dword [0x4c7350]
call fcn.00405a74
lea eax, [ebp - 0x188]
mov edx, dword [0x40aa6c]
call fcn.00405a74
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404ef8
ret