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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x20044], 0
push esi
push edi
je 0x20067e9d
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x20067e9d
cmp dword [ebx + 0x20038], 0
je 0x20067e9d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [ebx + 0x20050]
cmp eax, 0x3e8
jb 0x20067e9d
call edi
sub eax, dword [esi + 0x88]
cmp eax, 0x186a0
ja 0x20067e9d
mov eax, dword [ebx + 0x20038]
cmp byte [eax + 0xcd], 0
jne 0x20067e9d
mov eax, dword [ebx + 0x20054]
cmp eax, dword [esi + 0x18]
jne 0x20067cfb
mov ecx, esi
call fcn.2001a4f4
cmp eax, dword [ebx + 0x20050]
jae 0x20067cfb
call edi
sub eax, dword [ebx + 0x20050]
cmp eax, 0x1770
jb 0x20067e9d
mov edi, dword [ebp + 8]
push esi
push edi
mov ecx, ebx
call fcn.20067089
test eax, eax
jne 0x20067e98
cmp byte [esi + 0x21], al
mov byte [ebp + 0xc], al
je 0x20067d1b
mov byte [ebp + 0xc], 0x80
mov ecx, dword [ebx + 0x20044]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.2003aeb9
mov ecx, dword [ebx + 0x20044]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.2003c6df
mov eax, dword [esi + 8]
inc dword [eax + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3a
mov ecx, edi
call fcn.2000133b
push 2
mov ecx, edi
call fcn.20001294
mov eax, dword [edi + 8]
push dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.20001294
push dword [esi + 0x18]
mov ecx, edi
call fcn.2000133b
push dword [esi + 0x10]
mov ecx, edi
call fcn.2000133b
push dword [esi + 0xc]
mov ecx, edi
call fcn.2000133b
mov eax, dword [ebx + 0x20044]
push dword [eax + 0x10f8c]
mov ecx, edi
call fcn.2000133b
push 0x10
lea eax, [esi + 0x44]
push eax
mov ecx, edi
call fcn.20001383
mov eax, dword [ebp - 4]
shr eax, 0xa
push eax
mov ecx, edi
call fcn.200012d7
mov eax, dword [ebp - 8]
shr eax, 0xa
push eax
mov ecx, edi
call fcn.200012d7
push 0
push 0x400
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.2007c9c0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
fild qword [ebp - 0x24]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.2000133b
push 0
push 0x400
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.2007c9c0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
fild qword [ebp - 0x24]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.2000133b
push dword [ebp - 0xc]
mov ecx, edi
call fcn.20001294
push dword [ebp - 0x10]
mov ecx, edi
call fcn.20001294
push dword [ebp - 0x14]
mov ecx, edi
call fcn.20001294
xor eax, eax
mov al, byte [esi + 0x78]
mov ecx, edi
push eax
call fcn.20001294
mov eax, dword [edi + 8]
sub eax, dword [ebp + 8]
push 0x18
push eax
push dword [ebp + 8]
call fcn.2001762c
add esp, 0xc
push eax
mov ecx, edi
call fcn.2000133b
push dword [esi + 0xb0]
mov ecx, edi
call fcn.2000133b
mov edi, dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x20050], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x20054], eax
xor eax, eax
inc eax
jmp 0x20067e9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8