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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0
ja 0x46ca7d
push 0
push 0
push 0x83
push 0x5bd570
call fcn.0043bc90
add esp, 0x10
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x10], 0
jne 0x46caa4
push 0
push 0
push 0x84
push 0x5bd570
call fcn.0043bc90
add esp, 0x10
mov eax, 0x80070057
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
jne 0x46cab5
push 0
push 0
push 0x85
jmp 0x46ca8c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
lea ebx, [edi + 0x24]
mov esi, dword [eax]
mov dword [ebp - 4], esi
cmp esi, eax
je 0x46cba6
mov edi, dword [esi + 0x14]
push edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp eax, 1
jne 0x46cb90
mov eax, dword [ebp + 8]
add eax, 0x4c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [edi]
push edi
mov dword [ebp - 0x10], edi
call dword [eax + 0x1c]
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x3c]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0046d080
add esp, 0xc
lea ecx, [edi + 0x44]
push eax
call fcn.0046cc30
push eax
add eax, 0x10
lea ecx, [edi + 0x44]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0046cea0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46cb66
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46cb73
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
call fcn.00468190
mov esi, dword [eax]
mov dword [ebp - 4], esi
jmp 0x46cb9e
lea ecx, [ebp - 4]
call fcn.00409c40
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
cmp esi, dword [ebx]
jne 0x46cad8
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [edi + 0x4c]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx]
mov dword [ebp + 8], edx
cmp edx, ecx
je 0x46cc0b
mov eax, dword [edx + 0x14]
add eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jbe 0x46cbf8
add ebx, dword [edx + 0x10]
lea eax, [ebp - 0xc]
push edx
push eax
lea ecx, [edi + 0x44]
call fcn.0046d7e0
mov edx, dword [eax]
mov dword [ebp + 8], edx
jmp 0x46cc06
add esi, dword [edx + 0x10]
lea ecx, [ebp + 8]
call fcn.00409c40
mov edx, dword [ebp + 8]
cmp edx, dword [edi + 0x44]
jne 0x46cbd6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10