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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push edi
push 0xe
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0xb3]
mov byte [ebp - 0xb4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x284]
push eax
push 0x202
call dword [fcn.004421c0]
test eax, eax
je 0x406f34
xor eax, eax
jmp 0x407227
push 1
pop edi
push edi
push ebx
push ebx
push 0xff
push 3
push 2
call dword [0x4422ec]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x40721f
push esi
lea ecx, [ebp - 0x40]
push 4
push ecx
push 2
push ebx
push eax
mov dword [ebp - 0x40], edi
call dword [0x442228]
cmp eax, 0xffffffff
je 0x407215
push dword [ebp + 0x14]
mov word [ebp - 0x58], 2
call dword [fcn.00442248]
mov esi, dword [ebp + 8]
push 0x28
mov word [ebp - 0x56], ax
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x34], 0x45
call dword [fcn.00442248]
push dword [ebp + 0x14]
mov word [ebp - 0x32], ax
mov word [ebp - 0x30], di
mov word [ebp - 0x2e], bx
mov byte [ebp - 0x2c], 0x80
mov byte [ebp - 0x2b], 6
mov word [ebp - 0x2a], bx
mov dword [ebp - 0x24], esi
call dword [fcn.00442248]
mov word [ebp - 0x12], ax
call fcn.004191ca
movzx eax, ax
cdq
mov ecx, 0x401
idiv ecx
push edx
call dword [fcn.00442248]
push 0x12345678
mov word [ebp - 0x14], ax
call dword [fcn.00442244]
push 0x42bce0
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
call fcn.00419c00
pop ecx
test eax, eax
pop ecx
jne 0x407004
mov dword [ebp - 0xc], ebx
mov byte [ebp - 7], 2
jmp 0x407058
push 0x42bcd4
push dword [ebp + 0x10]
call fcn.00419c00
pop ecx
test eax, eax
pop ecx
jne 0x407020
mov dword [ebp - 0xc], ebx
mov byte [ebp - 7], 0x10
jmp 0x407058
push 0x42bcc8
push dword [ebp + 0x10]
call fcn.00419c00
pop ecx
test eax, eax
pop ecx
jne 0x407058
call fcn.004191ca
push 3
cdq
pop ecx
idiv ecx
mov dword [ebp - 0xc], edx
call fcn.004191ca
push 2
cdq
pop ecx
idiv ecx
neg edx
sbb dl, dl
and dl, 0xe
add dl, cl
mov byte [ebp - 7], dl
push 0x4000
mov byte [ebp - 8], 0x50
call dword [fcn.00442248]
mov word [ebp - 6], ax
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 2], bx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0x44]
mov eax, dword [ebp + 0x18]
cdq
push dword [ebp - 0x48]
push edx
push eax
call fcn.0041a590
add eax, dword [ebp - 0x1c]
push 0x14
pop esi
adc edx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov word [ebp - 4], bx
call fcn.004191ca
cdq
mov ecx, 0x3e9
idiv ecx
add edx, 0x3e8
push edx
call dword [fcn.00442248]
mov word [ebp - 0x14], ax
call fcn.004191ca
mov edi, eax
shl edi, 0x10
call fcn.004191ca
or edi, eax
push edi
call dword [fcn.00442248]
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
call dword [fcn.00442244]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
push esi
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], 6
call dword [fcn.00442248]
mov word [ebp - 0x6e], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push 0x20
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00418a50
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00418a50
lea eax, [ebp - 0xb4]
push 0x34
push eax
call fcn.0040cf6b
mov word [ebp - 4], ax
lea eax, [ebp - 0x34]
push esi
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00418a50
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00418a50
push 4
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.004189f0
add esp, 0x44
lea eax, [ebp - 0xb4]
push 0x28
push eax
call fcn.0040cf6b
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x34]
push esi
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00418a50
add esp, 0x14
lea eax, [ebp - 0x58]
push 0x10
push eax
push ebx
lea eax, [ebp - 0xb4]
push 0x28
push eax
push dword [ebp - 0x20]
call dword [fcn.004422ac]
cmp eax, 0xffffffff
je 0x4071e9
add dword [ebp + 0x10], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x38]
jg 0x407212
jl 0x4070a6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3c]
jae 0x407212
jmp 0x4070a6
call dword [fcn.004421dc]
push eax
lea eax, [ebp - 0xf4]
push 0x42bcac
push eax
call fcn.00418f47
lea eax, [ebp - 0xf4]
push eax
call fcn.00405616
add esp, 0x10
jmp 0x407215
mov ebx, dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [fcn.004422e0]
pop esi
call dword [fcn.004421a8]
mov eax, ebx
pop edi
pop ebx
leave
ret