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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x58]
cmp byte [ebx], 0
push ebp
push esi
push edi
je 0x401ac0
mov ax, word [0x4f367c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
lea ebp, [ebx + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4f367c]
mov esi, dword [0x4f3648]
mov edi, dword [0x4f364c]
mov byte [ebx], 1
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4f3640]
and eax, 0x7fffffff
cmp eax, 0xc8
ja 0x401b18
cmp byte [ebx], 0
je 0x401b06
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebx], 0
mov ax, word [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, esi
or edx, edi
lea eax, [esp + 0x18]
jne 0x401c04
push ebx
lea esi, [esp + 0x2c]
lea edi, [esp + 0x24]
call fcn.004019a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov dword [0x4f3648], ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x4f364c], edx
mov edx, dword [esp + 0x20]
mov dword [0x4f3650], eax
mov eax, dword [esp + 0x24]
mov dword [0x4f3654], ecx
mov ecx, dword [esp + 0x28]
mov dword [0x4f3658], edx
mov edx, dword [esp + 0x2c]
mov dword [0x4f365c], eax
mov eax, dword [esp + 0x40]
mov dword [0x4f3660], ecx
mov ecx, dword [esp + 0x44]
mov dword [0x4f3664], edx
mov edx, dword [esp + 0x30]
mov dword [0x4f3668], eax
mov eax, dword [esp + 0x34]
mov dword [0x4f366c], ecx
mov dword [0x4f3670], edx
mov dword [0x4f3674], eax
mov dword [0x4f367c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [ebx], 0
mov dword [0x4f3640], eax
je 0x401bf5
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x64]
sub ebx, esi
sbb ebp, edi
push ecx
lea esi, [esp + 0x2c]
lea edi, [esp + 0x24]
call fcn.004019a0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov esi, dword [esp + 0x20]
sub esi, dword [0x4f3660]
mov edi, dword [esp + 0x24]
sbb edi, dword [0x4f3664]
sub esi, dword [0x4f3658]
sbb edi, dword [0x4f365c]
add esi, dword [esp + 0x28]
adc edi, dword [esp + 0x2c]
mov eax, esi
or eax, edi
je 0x401ca3
mov ecx, dword [0x4f3650]
sub ecx, dword [esp + 0x18]
mov edx, dword [0x4f3654]
sbb edx, dword [esp + 0x1c]
push 0
add ecx, esi
push 0x64
adc edx, edi
push edx
push ecx
call fcn.00485870
push edi
push esi
push edx
push eax
call fcn.00491cc0
mov dword [esp + 0x10], eax
jmp 0x401cab
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov eax, esi
sub eax, dword [0x4f3670]
mov ecx, edi
sbb ecx, dword [0x4f3674]
sub eax, dword [0x4f3668]
push 0
sbb ecx, dword [0x4f366c]
add eax, dword [esp + 0x34]
push 0x64
adc ecx, dword [esp + 0x3c]
push ecx
push eax
call fcn.00485870
push ebp
push ebx
push edx
push eax
call fcn.00491cc0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [0x4f364c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x4f3648], edx
mov edx, dword [esp + 0x18]
mov dword [0x4f3654], ecx
mov ecx, dword [esp + 0x24]
mov dword [0x4f3650], edx
mov edx, dword [esp + 0x20]
mov dword [0x4f365c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [0x4f3658], edx
mov edx, dword [esp + 0x28]
mov dword [0x4f3664], ecx
mov ecx, dword [esp + 0x34]
mov dword [0x4f3660], edx
mov edx, dword [esp + 0x30]
mov dword [0x4f3674], ecx
mov ecx, dword [0x4f3678]
mov dword [ecx*4 + 0x4f3694], eax
mov dword [0x4f3670], edx
mov edx, dword [esp + 0x10]
mov dword [ecx*4 + 0x4f3680], edx
inc ecx
mov eax, 0x99999999
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, eax
lea edx, [ecx + eax*4]
mov ecx, dword [0x4f3644]
inc ecx
cmp ecx, 5
mov dword [0x4f3668], esi
mov dword [0x4f366c], edi
mov dword [0x4f3678], edx
mov dword [0x4f3644], ecx
jle 0x401dac
mov ecx, 5
mov dword [0x4f3644], ecx
xor edx, edx
xor esi, esi
xor ebx, ebx
xor eax, eax
cmp ecx, 2
jl 0x401dd5
lea edi, [ecx - 1]
lea esp, [esp]
add edx, dword [eax*4 + 0x4f3694]
add esi, dword [eax*4 + 0x4f3698]
add eax, 2
cmp eax, edi
jl 0x401dc0
cmp eax, ecx
jge 0x401de0
mov ebx, dword [eax*4 + 0x4f3694]
lea eax, [esi + edx]
add eax, ebx
cdq
idiv ecx
mov dword [0x4f367c], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x64]
cmp byte [edi], 0
mov dword [0x4f3640], eax
je 0x401e0d
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [edi], 0
pop edi
mov ax, si
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4