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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov ecx, ebx
call fcn.00457bc0
test al, al
jne 0x43fe5f
mov dword [ebp - 4], 0
cmp byte [ebx + 0x68], al
je 0x43fcc2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
lea ecx, [ebx + 0x6c]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
jmp 0x43fccb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x74], eax
cmp byte [ebx - 0xd0], 0
lea edi, [ebx - 0xf4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
je 0x43fcee
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 4], 0
je 0x43fcfe
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x50]
mov esi, 1
mov eax, dword [ebp - 0x18]
mov dword [eax + ecx*8 + 0x58], 0
inc dword [edi + 0x50]
test esi, esi
je 0x43fd2d
dec esi
cmp byte [edi + 4], 0
je 0x43fd29
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x43fd18
mov esi, 1
mov dword [ebp - 0x1c], esi
lea ecx, [ebx - 0xf4]
call fcn.0043f460
test eax, eax
je 0x43fd82
mov edx, dword [eax]
mov ecx, eax
mov byte [ebp - 4], 2
call dword [edx + 0x18]
mov dword [ebp - 4], 1
jmp 0x43fd35
test esi, esi
je 0x43fdd3
dec esi
mov dword [ebp - 0x1c], esi
jne 0x43fdc0
mov edi, dword [ebp - 0x18]
cmp byte [edi + 4], 0
je 0x43fd9f
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0x50]
mov esi, 1
test esi, esi
je 0x43fdc0
dec esi
cmp byte [edi + 4], 0
je 0x43fdbc
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x43fdab
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x24], 0
je 0x43fdd3
add eax, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx + 0x68], 0
je 0x43fe1b
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebx + 0x70]
push 0
push dword [0x4e3070]
push eax
push ecx
call fcn.00468f90
jmp 0x43fe24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x74]
mov esi, eax
mov dword [ebx + 0x78], eax
push esi
lea ecx, [ebx - 0xf4]
call fcn.0043ec70
cmp esi, 0x3e8
jge 0x43fe4b
mov eax, 0x3e8
sub eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x1c]
call fcn.00424d20
mov dword [ebp - 4], 0xffffffff
jmp 0x43fc80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret