Function at 0x46c733
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push 0x10c
mov eax, 0x50f7d9
call fcn.004f41e2
mov ebx, ecx
mov edi, dword [ebp + 8]
cmp edi, 0x578
jne 0x46c81f
call fcn.004244be
test al, al
je 0x46caa8
cmp dword [0x5a2c8c], 0
je 0x46caa8
xor esi, esi
push esi
push 0x3e8
push dword [ebx + 0x1210c]
push dword [ebx + 0x12108]
call fcn.004f4a40
push edx
push eax
lea eax, [ebp - 0x50]
push str.___I64i_
push eax
call fcn.00401104
add esp, 0x10
lea ecx, [ebp - 0x108]
call fcn.004e25a1
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x50]
mov dword [ebp - 4], esi
push eax
push str.Performance_counters
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.00450d44
add esp, 0xc
lea ecx, [ebp - 0xac]
push eax
call fcn.004e2531
push 0x21
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0046aac4
test eax, eax
je 0x46c7e7
mov esi, dword [eax + 0x20]
lea ecx, [ebp - 0xac]
call fcn.0044612f
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
mov ecx, ebx
call fcn.0046cab0
lea ecx, [ebp - 0xac]
call fcn.004e25e0
lea ecx, [ebp - 0x108]
call fcn.004e25e0
jmp 0x46caa8
cmp edi, 6
jae 0x46caa8
xorps xmm0, xmm0
movlpd qword [ebp - 0x110], xmm0
test edi, edi
jne 0x46c889
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebx + 0x12910]
xor esi, esi
mov eax, dword [ebp - 0x110]
mov dword [ebx + ecx*8 + 0x12110], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebx + ecx*8 + 0x12114], eax
inc dword [ebx + 0x12910]
cmp dword [ebx + 0x12910], 0x100
jl 0x46c87e
mov dword [ebx + 0x12910], esi
cmp dword [0x5a2c8c], esi
jmp 0x46ca9e
cmp edi, 4
jne 0x46c8d7
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebx + 0x12d18]
xor esi, esi
mov eax, dword [ebp - 0x110]
mov dword [ebx + ecx*8 + 0x12918], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebx + ecx*8 + 0x1291c], eax
inc dword [ebx + 0x12d18]
cmp dword [ebx + 0x12d18], 0x80
jl 0x46c87e
mov dword [ebx + 0x12d18], esi
jmp 0x46c87e
cmp edi, 5
jne 0x46c9d2
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [ebp + 0xc], 0xffffffff
jne 0x46c906
xor esi, esi
mov dword [ebx + 0x12d98], esi
mov dword [ebx + 0x12d9c], esi
jmp 0x46caa8
cmp dword [ebp + 0xc], 0
mov esi, dword [ebx + 0x12d98]
mov edi, dword [ebx + 0x12d9c]
jne 0x46c93d
or esi, edi
jne 0x46caa8
mov eax, dword [ebp - 0x110]
mov dword [ebx + 0x12d98], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebx + 0x12d9c], eax
jmp 0x46caa8
mov eax, esi
or eax, edi
je 0x46caa8
mov eax, dword [ebx + 0x12108]
or eax, dword [ebx + 0x1210c]
je 0x46caa8
mov ecx, dword [ebp - 0x110]
xor edx, edx
mov eax, dword [ebp - 0x10c]
sub ecx, esi
push edx
push 0x3e8
sbb eax, edi
mov dword [ebx + 0x12d98], edx
push eax
push ecx
mov dword [ebx + 0x12d9c], edx
call fcn.004f42c0
push dword [ebx + 0x1210c]
push dword [ebx + 0x12108]
push edx
push eax
call fcn.004f4a40
mov esi, eax
mov edi, edx
lea eax, [ebx + 0x12ea0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1f
pop ecx
and eax, ecx
mov dword [ebx + eax*8 + 0x12da0], esi
xor esi, esi
mov dword [ebx + eax*8 + 0x12da4], edi
lea eax, [ebx + 0x12ea0]
cmp dword [eax], esi
jge 0x46caa8
mov dword [eax], ecx
jmp 0x46caa8
cmp dword [ebp + 0xc], 0
lea ecx, [edi + 0x25a4]
lea ecx, [ebx + ecx*8]
jne 0x46c9ed
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x46caa8
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x46caa8
mov eax, dword [ebx + 0x12108]
or eax, dword [ebx + 0x1210c]
je 0x46caa8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x110]
sub eax, dword [ebx + edi*8 + 0x12d20]
mov ecx, dword [ebp - 0x10c]
sbb ecx, dword [ebx + edi*8 + 0x12d24]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
js 0x46caa8
push 0
pop esi
jg 0x46ca48
cmp eax, esi
jb 0x46caa8
cmp dword [ebx + edi*8 + 0x12d54], ecx
jl 0x46ca7c
jg 0x46ca5c
cmp dword [ebx + edi*8 + 0x12d50], eax
jb 0x46ca7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + edi*4 + 0x12d80]
cmp eax, 0x1388
jbe 0x46caa8
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x118]
mov dword [ebx + edi*8 + 0x12d50], eax
mov dword [ebx + edi*8 + 0x12d54], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + edi*4 + 0x12d80], eax
cmp dword [0x5a2c8c], 0
je 0x46caa8
push esi
mov ecx, ebx
call fcn.0046cab0
call fcn.004f418c
ret 8