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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x527678
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x88]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x41b4fb
mov eax, dword [edi]
cmp eax, ebx
je 0x41b4fb
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x40], ebx
je 0x41b62c
mov eax, dword [ebp + 8]
add dword [esi + 0x64], eax
mov ecx, dword [ebp + 0xc]
adc dword [esi + 0x68], ecx
cmp dword [esi + 0x74], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x41b534
call ebx
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
mov dword [esi + 0x74], eax
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], edx
call ebx
mov edi, eax
sub edi, dword [esi + 0x74]
cmp edi, 0x3e8
jb 0x41b66c
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x68]
sbb ecx, dword [esi + 0x80]
push 0
push 0x3e8
push ecx
push eax
call fcn.004f4500
push 0
push edi
push edx
push eax
call fcn.004f4540
mov dword [esi + 0x70], eax
call ebx
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
mov dword [esi + 0x80], ecx
mov ecx, dword [esi - 0xdc]
test ecx, ecx
mov dword [esi + 0x74], eax
mov dword [esi + 0x7c], edx
je 0x41b5b7
mov edx, dword [esi - 0xf0]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x70]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
je 0x41b5b7
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 6
call eax
mov edi, dword [esi + 0x5c]
sub edi, dword [esi + 0x64]
mov edx, dword [esi - 0xf4]
mov ebx, dword [esi + 0x60]
mov eax, dword [edx + 0x10]
sbb ebx, dword [esi + 0x68]
lea ecx, [esi - 0xf4]
mov dword [esp + 0x30], 0xffffffff
call eax
fmul qword [0x54ebb0]
mov eax, dword [esi + 0x70]
lea ecx, [eax + eax*2]
add ecx, ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
faddp st(1)
or eax, 0xc00
mov dword [esp + 0x1c], eax
fdiv qword [0x54eba8]
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
test eax, eax
fldcw word [esp + 0x14]
je 0x41b63d
push 0
push eax
push ebx
push edi
call fcn.00501e50
jmp 0x41b641
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], eax
mov dword [esi + 0x74], ebx
jmp 0x41b670
mov eax, dword [esp + 0x30]
mov ecx, dword [esi - 0xdc]
test ecx, ecx
je 0x41b66c
mov ecx, dword [ecx]
test ecx, ecx
mov edx, dword [esi - 0xf0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
je 0x41b66c
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0xa
call eax
mov edi, dword [esp + 0x18]
mov eax, dword [esi - 0xdc]
test eax, eax
je 0x41b6a5
mov ecx, dword [esi - 0xf0]
mov edx, dword [esi + 0x64]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x24], edx
je 0x41b6a5
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x1c]
push eax
push 5
call edx
test edi, edi
je 0x41b6b6
mov edi, dword [edi]
test edi, edi
je 0x41b6b6
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc