Function at 0x454170
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
push edi
test esi, esi
je 0x454b3c
mov eax, dword [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x4541ae
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4541c5
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4541dc
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4541f3
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], 0
test eax, eax
je 0x454211
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 0x1c], 0
mov ebx, dword [esi + 0x20]
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x454555
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45428c
push dword [eax + 4]
call ecx
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x454285
push dword [eax + 4]
call edi
mov edi, dword [ebx + 0x30]
test edi, edi
je 0x454285
mov eax, dword [edi + 4]
test eax, eax
je 0x454267
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 4]
call fcn.006e60fe
add esp, 4
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x45427c
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi], 0
push edi
call fcn.006e60fe
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, dword [ebx]
test eax, eax
je 0x4542a1
push eax
call fcn.006e60fe
add esp, 4
mov dword [ebx], 0
mov edi, dword [ebx + 0x28]
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4543b2
mov eax, dword [edi + 0x14]
test eax, eax
je 0x45432c
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x454325
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
je 0x454325
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x454303
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x10]
push dword [eax + 4]
call fcn.006e60fe
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 4], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x45431c
push ecx
call fcn.006e60fe
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax], 0
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi + 0x14], 0
mov eax, dword [edi]
test eax, eax
je 0x454341
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi], 0
mov edi, dword [edi + 8]
test edi, edi
je 0x45437e
mov esi, dword [esp + 0x1c]
nop dword [eax]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], edi
test eax, eax
je 0x454367
mov ecx, dword [edi]
test ecx, ecx
je 0x454367
push ecx
call eax
add esp, 4
push dword [esp + 0x10]
mov edi, dword [edi + 8]
call fcn.006e60fe
add esp, 4
test edi, edi
jne 0x454350
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push eax
mov byte [eax + 0x10], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x18], 0
call fcn.006e60fe
add esp, 4
mov dword [ebx + 0x28], 0
cmp dword [ebx + 0x2c], 0
je 0x4544fa
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [ebx + 4], eax
jbe 0x4544e8
nop dword [eax + eax]
lea ecx, [eax*4]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x20], ecx
mov edi, dword [ecx + eax]
test edi, edi
je 0x4544d2
mov eax, dword [edi + 0x14]
test eax, eax
je 0x454455
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x45444e
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x14]
test esi, esi
je 0x45444e
mov eax, dword [esi + 4]
test eax, eax
je 0x454430
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi + 4]
call fcn.006e60fe
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x454445
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi], 0
push esi
call fcn.006e60fe
add esp, 4
mov dword [edi + 0x14], 0
mov eax, dword [edi]
test eax, eax
je 0x45446a
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi], 0
mov esi, dword [edi + 8]
test esi, esi
je 0x45449b
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x10], esi
test ecx, ecx
je 0x454488
mov eax, dword [esi]
test eax, eax
je 0x454488
push eax
call ecx
add esp, 4
push dword [esp + 0x10]
mov esi, dword [esi + 8]
call fcn.006e60fe
add esp, 4
test esi, esi
jne 0x454471
push edi
mov byte [edi + 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
call fcn.006e60fe
mov eax, dword [ebx + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [ecx + eax], 0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 4]
jb 0x4543d0
mov esi, dword [esp + 0xc]
push dword [ebx + 0x2c]
call fcn.006e60fe
add esp, 4
mov dword [ebx + 0x2c], 0
push ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0x4b4800
call fcn.006e60fe
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 4
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x20], 0
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x454879
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4545c4
push dword [eax + 4]
call ecx
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4545bd
push dword [eax + 4]
call edi
mov edi, dword [ebx + 0x30]
test edi, edi
je 0x4545bd
mov eax, dword [edi + 4]
test eax, eax
je 0x45459f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 4]
call fcn.006e60fe
add esp, 4
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x4545b4
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi], 0
push edi
call fcn.006e60fe
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, dword [ebx]
test eax, eax
je 0x4545d9
push eax
call fcn.006e60fe
add esp, 4
mov dword [ebx], 0
mov edi, dword [ebx + 0x28]
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4546e6
mov eax, dword [edi + 0x14]
test eax, eax
je 0x454664
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x45465d
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
je 0x45465d
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x45463b
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x10]
push dword [eax + 4]
call fcn.006e60fe
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 4], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x454654
push ecx
call fcn.006e60fe
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax], 0
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi + 0x14], 0
mov eax, dword [edi]
test eax, eax
je 0x454679
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi], 0
mov edi, dword [edi + 8]
test edi, edi
je 0x4546b2
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], edi
test eax, eax
je 0x45469b
mov ecx, dword [edi]
test ecx, ecx
je 0x45469b
push ecx
call eax
add esp, 4
push dword [esp + 0x20]
mov edi, dword [edi + 8]
call fcn.006e60fe
add esp, 4
test edi, edi
jne 0x454684
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push eax
mov byte [eax + 0x10], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x18], 0
call fcn.006e60fe
add esp, 4
mov dword [ebx + 0x28], 0
cmp dword [ebx + 0x2c], 0
je 0x45482a
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [ebx + 4], eax
jbe 0x454818
nop
lea ecx, [eax*4]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov edi, dword [ecx + eax]
test edi, edi
je 0x454802
mov eax, dword [edi + 0x14]
test eax, eax
je 0x454785
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x45477e
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x14]
test esi, esi
je 0x45477e
mov eax, dword [esi + 4]
test eax, eax
je 0x454760
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi + 4]
call fcn.006e60fe
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x454775
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi], 0
push esi
call fcn.006e60fe
add esp, 4
mov dword [edi + 0x14], 0
mov eax, dword [edi]
test eax, eax
je 0x45479a
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi], 0
mov esi, dword [edi + 8]
test esi, esi
je 0x4547cb
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x4547b8
mov eax, dword [esi]
test eax, eax
je 0x4547b8
push eax
call ecx
add esp, 4
push dword [esp + 0x20]
mov esi, dword [esi + 8]
call fcn.006e60fe
add esp, 4
test esi, esi
jne 0x4547a1
push edi
mov byte [edi + 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
call fcn.006e60fe
mov eax, dword [ebx + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [ecx + eax], 0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 4]
jb 0x454700
mov esi, dword [esp + 0xc]
push dword [ebx + 0x2c]
call fcn.006e60fe
add esp, 4
mov dword [ebx + 0x2c], 0
push ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0x4b4800
call fcn.006e60fe
add esp, 4
mov dword [esi + 0x24], 0
mov ecx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x10], xmm0
test eax, eax
je 0x454979
cmp dword [0x7efe40], 0
jne 0x4548b9
cmp dword [0x7efe44], 0
je 0x454979
lea eax, [esp + 0x20]
push eax
call ecx
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x7efe48]
mov ebx, dword [esp + 0x24]
mov eax, ebx
sbb eax, dword [0x7efe4c]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
add eax, dword [0x7efe38]
push 0
adc edx, dword [0x7efe3c]
push 0x3b9aca00
push edx
push eax
call fcn.006dc0b0
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0
push 0x3b9aca00
mov dword [eax], esi
mov dword [eax + 4], edx
mov eax, dword [esp + 0x28]
sub eax, dword [0x7efe48]
sbb ebx, dword [0x7efe4c]
push ebx
push eax
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
imul ecx, esi, 0x3b9aca00
mov esi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, dword [0x7efe38]
mov dword [ecx + 8], eax
mov ecx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x10], xmm0
test eax, eax
je 0x454a61
cmp dword [0x7efe40], 0
jne 0x4549ad
cmp dword [0x7efe44], 0
je 0x454a61
lea eax, [esp + 0x20]
push eax
call ecx
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x7efe48]
mov ebx, dword [esp + 0x24]
mov eax, ebx
sbb eax, dword [0x7efe4c]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
add eax, dword [0x7efe38]
push 0
adc edx, dword [0x7efe3c]
push 0x3b9aca00
push edx
push eax
call fcn.006dc0b0
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0
push 0x3b9aca00
mov dword [eax], esi
mov dword [eax + 4], edx
mov eax, dword [esp + 0x28]
sub eax, dword [0x7efe48]
sbb ebx, dword [0x7efe4c]
push ebx
push eax
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
imul ecx, esi, 0x3b9aca00
mov esi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, dword [0x7efe38]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x58]
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [esi + 0x54], 0
test eax, eax
je 0x454a91
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 0x58], 0
mov eax, dword [esi + 0x68]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
test eax, eax
je 0x454abd
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 0x68], 0
lea ecx, [esi + 0x78]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
call fcn.00471220
mov eax, dword [0x7ec6e0]
mov ecx, dword [0x7ec6e4]
mov dword [esi + 0xa0], eax
add eax, 1
mov dword [esi + 0xa4], ecx
mov dword [0x7ec6e0], eax
adc ecx, 0
mov eax, dword [esi + 0xa8]
mov dword [0x7ec6e4], ecx
test eax, eax
je 0x454b1f
push eax
call fcn.00531240
add esp, 4
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0xac]
test eax, eax
je 0x454b3c
push eax
call fcn.006e60fe
add esp, 4
mov dword [esi + 0xac], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret