Function at 0x423b90
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x493e80]
mov ecx, dword [0x493e58]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
call fcn.00423ea0
mov edx, dword [0x493e58]
mov eax, dword [0x493e80]
push edx
push eax
push edi
mov esi, 1
push edi
push edi
mov dword [0x493e44], esi
call fcn.00422cb0
mov edx, dword [0x494eb8]
lea ecx, [ebp - 0x38]
push 0x10
push ecx
push edx
push edi
push edi
call fcn.00423ed0
mov eax, dword [0x494eb8]
add esp, 0x28
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x34]
cmp eax, 0x8876021c
jne 0x423c16
mov eax, dword [0x494eb8]
push 2
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
cmp eax, 0x8876021c
je 0x423c02
mov eax, dword [sym.imp.M2DXFX.dll_struct_tagDX_dd_DXDraw::dd]
mov edx, dword [sym.imp.M2DXFX.dll_struct_tagDX_APP_DX::app]
mov ecx, dword [eax + 0xf40]
xor eax, eax
and cl, 0x10
cmp cl, 0x10
sete al
mov dword [0x493e94], eax
mov ecx, dword [edx + 0x150]
cmp ecx, edi
jne 0x423c49
mov dword [0x493e94], esi
jmp 0x423c67
cmp eax, edi
jne 0x423c67
mov eax, dword [0x493e58]
mov ecx, dword [0x493e80]
push eax
push ecx
call fcn.004111d0
add esp, 8
mov dword [0x493e78], eax
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x493e44], esi
call ebx
mov dword [ebp - 4], edi
mov esi, 0xc
mov eax, dword [ebp - 4]
cmp eax, esi
jae 0x423cbc
mov eax, dword [0x494eb8]
lea edx, [ebp - 0x38]
push 0x10
push edx
push eax
push edi
push edi
call fcn.00423ed0
mov edx, dword [0x494eb8]
lea ecx, [ebp - 0x38]
push 0x11
push ecx
push edx
push edi
push edi
call fcn.00423ed0
add esp, 0x28
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jb 0x423c84
mov eax, dword [0x494eb8]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp eax, 0x8876021c
jne 0x423ce4
mov eax, dword [0x494eb8]
push 2
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
cmp eax, 0x8876021c
je 0x423cd0
call ebx
mov dword [0x493e44], edi
call ebx
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
cmp eax, esi
jae 0x423d30
mov ecx, dword [0x494eb8]
lea eax, [ebp - 0x38]
push 0x10
push eax
push ecx
push edi
push edi
call fcn.00423ed0
mov eax, dword [0x494eb8]
lea edx, [ebp - 0x38]
push 0x11
push edx
push eax
push edi
push edi
call fcn.00423ed0
add esp, 0x28
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp eax, esi
jb 0x423cf8
call ebx
mov dword [0x493e44], 1
push eax
push ebx
push ecx
push edx
push esi
push edi
mov ebx, 0x20202020
xor eax, eax
mov dword [0x4966f8], ebx
mov dword [0x4966fc], ebx
mov dword [0x496700], ebx
mov dword [0x496704], eax
mov dword [0x496708], eax
pushfd
pop eax
mov ebx, eax
xor eax, 0x200000
push eax
popfd
pushfd
pop eax
cmp eax, ebx
je 0x423da1
mov eax, 0
cpuid
mov dword [0x4966f8], ebx
mov dword [0x4966fc], edx
mov dword [0x496700], ecx
mov eax, 1
cpuid
mov dword [0x496704], eax
mov dword [0x496708], edx
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [0x496708]
mov edx, eax
shr edx, 0x17
and edx, 1
test al, 0x10
mov dword [0x493e8c], edx
je 0x423e73
lea eax, [ebp - 0x10]
mov dword [0x493e2c], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x423e7d
rdtsc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x20]
push ecx
call ebx
lea edx, [ebp - 0x18]
push edx
call ebx
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
sub edi, edx
sbb esi, ecx
mov ecx, dword [ebp - 0x10]
push 0
push 5
push eax
push ecx
call fcn.00447cc0
cmp esi, edx
jl 0x423df2
jg 0x423e23
cmp edi, eax
jb 0x423df2
rdtsc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x24]
sub edx, eax
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
sbb eax, ebx
push ecx
push eax
push edx
call fcn.00447c80
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
sub ecx, ebx
sbb esi, edi
push esi
push ecx
push edx
push eax
call fcn.00447cc0
push 0
push 0xf4240
push edx
push eax
call fcn.00447cc0
jmp 0x423e7f
mov dword [0x493e2c], 0
xor eax, eax
push eax
push 0x4654e4
push 0x496718
mov dword [0x496720], eax
call fcn.004474db
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret