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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf777
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov dword [ebp - 0x10], ecx
push str.GCS_LOCK::Lock
lea ecx, [ebp - 0x84]
call fcn.00404f76
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x428a3b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004050e2
jmp 0x428bfd
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x428a68
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004050e2
jmp 0x428bfd
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x428a85
mov eax, dword [ebp - 0x10]
and dword [eax + 8], 0
jmp 0x428be2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
cmp dword [eax + 0x20], 0
je 0x428be2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
cmp ecx, dword [eax + 0x20]
jbe 0x428be2
push 0
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x64]
push eax
call fcn.00407505
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x49]
push eax
push str._ms__the_owning_thread_id_was
lea eax, [ebp - 0x5b]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
lea eax, [ebp - 0x52]
push eax
call fcn.00407505
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x2c]
push str.EnterCriticalSection_took
lea eax, [ebp - 0x6d]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
call fcn.00405cc1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
call fcn.00405bb0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28]
call fcn.00405b2a
push eax
push str.GCS_LOCK
push 0x11a
push str.D:projectsUTIL_srcglock.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x49]
call fcn.004055b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5b]
call fcn.004055b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6d]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x52]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004055b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004050e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4