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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffe0
sub esp, 0xc00
call 0x100020b4
pop eax
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x4a0], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100068e3
mov esi, dword [esp + 0x4a0]
mov edi, dword [esp + 0x4a4]
movq xmm0, qword [0x100837f8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x10002163
lea eax, [esp + 0x4a0]
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x4a0], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100068e3
mov edx, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x4a4]
movq xmm0, qword [esp + 0x4a0]
mov eax, edx
movq qword [0x100837f8], xmm0
or eax, ecx
je 0x10006bd1
mov dword [esp + 4], ecx
push ecx
push edx
push edi
push esi
mov ebx, edx
mov dword [esp + 0x18], edx
call fcn.10016650
mov dword [esp + 0x10], edi
mov edi, edx
mov ecx, eax
mov dword [esp + 0x90], esi
mul ebx
imul esi, edi, 0x3b9aca00
imul edi, ebx
mov ebx, dword [esp + 0x90]
add edi, edx
mov edx, ecx
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x10]
imul edx, dword [esp + 4]
add edi, edx
sub ebx, eax
mov edx, 0x3b9aca00
mov eax, ecx
sbb esi, edi
mul edx
mov edi, edx
mov dword [esp + 0x10], eax
mov eax, ebx
mov edx, 0x3b9aca00
imul ecx, esi, 0x3b9aca00
add edi, dword [esp + 0x60]
mul edx
add edx, ecx
push dword [esp + 4]
push dword [esp + 0xc]
push edx
push eax
call fcn.10016650
add eax, dword [esp + 0x10]
adc edx, edi
push 0
push 0x3b9aca00
push edx
mov dword [esp + 0x14], eax
push eax
call fcn.10016650
mov ebx, eax
mov dword [esp + 0x60], edx
push 0x1f0003
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerExW]
test eax, eax
je 0x10002265
mov esi, eax
mov dword [esp + 0x4a4], 0xffffffff
mov dword [esp + 0x4a0], 0xeb236c80
push 0
push 0
push 0
push 0
lea eax, [esp + 0x4b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x1000225f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
push esi
call sub.KERNEL32.dll_CloseHandle
cmp edi, 0xffffffff
jne 0x10002270
jmp 0x10002265
push esi
call sub.KERNEL32.dll_CloseHandle
push 0x88b8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x4a0]
mov dword [esp + 4], ebx
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x4a0], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100068e3
mov esi, dword [esp + 0x4a0]
mov edi, dword [esp + 0x4a4]
movq xmm0, qword [0x100837f8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x1000231e
lea eax, [esp + 0x4a0]
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x4a0], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100068e3
mov edx, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x4a4]
movq xmm0, qword [esp + 0x4a0]
mov eax, edx
movq qword [0x100837f8], xmm0
or eax, ecx
je 0x10006bd1
mov dword [esp + 0x10], ecx
push ecx
push edx
push edi
push esi
mov ebx, edx
mov dword [esp + 0xa0], edx
call fcn.10016650
mov dword [esp + 0xc], edi
mov edi, edx
mov ecx, eax
mov dword [esp + 0xa0], esi
mul ebx
imul esi, edi, 0x3b9aca00
imul edi, ebx
mov ebx, dword [esp + 0xa0]
add edi, edx
mov edx, ecx
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0xc]
imul edx, dword [esp + 0x10]
add edi, edx
sub ebx, eax
mov edx, 0x3b9aca00
mov eax, ecx
sbb esi, edi
mul edx
mov edi, edx
mov dword [esp + 0xc], eax
mov eax, ebx
mov edx, 0x3b9aca00
imul ecx, esi, 0x3b9aca00
add edi, dword [esp + 0x80]
mul edx
add edx, ecx
push dword [esp + 0x10]
push dword [esp + 0x94]
push edx
push eax
call fcn.10016650
mov ebx, eax
add ebx, dword [esp + 0xc]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push ebx
call fcn.10016650
mov dword [esp + 0x10], edx
mov esi, eax
movq xmm0, qword [0x100837f8]
movd ecx, xmm0
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
mov eax, ecx
or eax, edx
mov eax, dword [esp + 4]
jne 0x1000243c
lea eax, [esp + 0x4a0]
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x4a0], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100068e3
mov ecx, dword [esp + 0x4a0]
movq xmm0, qword [esp + 0x4a0]
mov edx, dword [esp + 0x4a4]
mov eax, ecx
movq qword [0x100837f8], xmm0
or eax, edx
mov eax, dword [esp + 4]
je 0x10006bd1
imul eax, eax, 0x3b9aca00
mov dword [esp + 0x90], edx
sub dword [esp + 8], eax
imul eax, esi, 0x3b9aca00
sub ebx, eax
mov dword [esp + 0xc], ebx
push edx
push ecx
push 0
push 0x3b9aca00
mov ebx, ecx
call fcn.10016650
mov edx, 1
xor ecx, ecx
lea edi, [eax - 0x3b9aca00]
mov dword [esp + 0x80], ebx
cmp edx, ebx
mov ebx, dword [esp + 0x60]
sbb ecx, dword [esp + 0x90]
cmovb edi, eax
mov eax, esi
xor ecx, ecx
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0x10]
xor eax, dword [esp + 4]
mov edx, edi
xor edx, ebx
or edx, eax
mov edx, ebx
mov ebx, esi
setne cl
cmp dword [esp + 4], esi
mov eax, edx
sbb eax, edi
mov eax, 0xff
cmovae eax, ecx
mov ecx, dword [esp + 8]
test al, al
jne 0x100024ce
cmp dword [esp + 0xc], ecx
setne al
ja 0x10002549
cmp al, 1
jne 0x10002549
cmp dword [esp + 4], ebx
mov esi, dword [esp + 0x10]
mov dword [esp + 0xb0], ebx
mov ebx, dword [esp + 0xc]
mov eax, edx
sbb eax, esi
jb 0x10006bd1
mov eax, dword [esp + 4]
mov edi, edx
sub eax, dword [esp + 0xb0]
sbb edi, esi
cmp ebx, ecx
jbe 0x1000251a
mov edx, eax
or eax, edi
je 0x10006bd1
add edx, 0xffffffff
lea ecx, [ecx + 0x3b9aca00]
adc edi, 0xffffffff
mov eax, edx
mov edx, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x30], edi
sub edx, ebx
cmp edx, 0x3b9aca00
mov dword [esp + 0xd0], edx
jae 0x10002568
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x78]
jmp 0x100025ae
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x10]
mov ecx, ebx
cmp ebx, edi
mov ebx, dword [esp + 0xc]
mov eax, esi
sbb eax, edx
jae 0x10002621
jmp 0x100068ea
mov ecx, dword [esp + 0x78]
mov eax, edx
mov edx, 0x44b83
shr eax, 9
mul edx
shr edx, 7
mov eax, ecx
add eax, edx
mov eax, edi
adc eax, 0
jb 0x10006bd1
imul eax, edx, 0x3b9aca00
sub dword [esp + 0xd0], eax
add ecx, edx
mov eax, dword [esp + 0x80]
mov edi, ecx
mov ecx, dword [esp + 0x90]
adc dword [esp + 0x30], 0
cmp eax, 2
mov edx, dword [esp + 0x30]
sbb ecx, 0
mov ecx, edi
setb al
movzx eax, al
xor ecx, eax
mov dword [esp + 0x90], eax
xor eax, eax
or ecx, edx
setne al
cmp edi, dword [esp + 0x90]
mov edi, dword [esp + 0xd0]
sbb edx, 0
mov edx, 0xff
cmovb eax, edx
xor ecx, ecx
cmp edi, dword [esp + 0xa0]
mov edi, dword [esp + 4]
setne cl
cmovb ecx, edx
test al, al
mov edx, dword [esp + 0x60]
cmovne ecx, eax
cmp cl, 1
mov ecx, dword [esp + 0xb0]
jne 0x100068ea
cmp ecx, edi
mov eax, esi
sbb eax, edx
jb 0x100068ea
mov eax, dword [esp + 8]
sub ecx, edi
sbb esi, edx
cmp ebx, eax
jae 0x10002647
mov eax, ecx
or eax, esi
je 0x100068ea
mov eax, dword [esp + 8]
add ecx, 0xffffffff
adc esi, 0xffffffff
add ebx, 0x3b9aca00
sub ebx, eax
cmp ebx, 0x3b9aca00
jb 0x10002678
shr ebx, 9
mov edi, ecx
mov ecx, 0x44b83
mov eax, ebx
mul ecx
mov eax, edi
shr edx, 7
add eax, edx
mov eax, esi
adc eax, 0
jb 0x10006bd1
mov ecx, edi
add ecx, edx
adc esi, 0
cmp ecx, 0x19
sbb esi, 0
jb 0x100068ea
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x200
xor esi, esi
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 2
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x60], 2
cmp eax, 0x201
jb 0x100026e1
jmp 0x10002700
mov esi, dword [esp + 4]
jbe 0x100027a2
cmp eax, 0x201
jae 0x10002700
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0x200
lea ebx, [esp + 0x4a0]
mov esi, eax
jmp 0x10002717
sub eax, esi
jne 0x10002775
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x10], esi
mov dword [esp + 4], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov dword [esp + 0xc], ebx
push ebx
push 0
call edi
test eax, eax
jne 0x10002746
mov ebx, eax
call sub.KERNEL32.dll_GetLastError
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
mov eax, ebx
test ecx, ecx
jne 0x100027ea
cmp eax, esi
jne 0x100026d0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10006bd1
lea eax, [esi + esi]
test esi, esi
mov esi, dword [esp + 4]
mov ecx, 0xffffffff
cmovs eax, ecx
cmp eax, 0x201
jae 0x10002700
jmp 0x100026e1
lea ecx, [esp + 0x1a0]
mov edx, esi
push 2
push 2
push eax
call fcn.10020c90
add esp, 0xc
mov eax, dword [esp + 0x1a4]
mov esi, dword [esp + 0x1a0]
mov dword [esp + 0x60], eax
jmp 0x10002704
cmp eax, dword [esp + 0x10]
ja 0x10006bd1
mov edx, dword [esp + 8]
lea ecx, [esp + 0x8a0]
push eax
call fcn.10014210
add esp, 4
cmp dword [esp + 0x1a0], 0
je 0x100027e1
mov esi, dword [esp + 0x1a4]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x8a0]
jmp 0x1000282f
call sub.KERNEL32.dll_GetLastError
cmp dword [esp + 0x1a0], 0
mov byte [esp + 0x8a4], 0
mov dword [esp + 0x8a8], eax
mov dword [esp + 0x8a0], 0x80000000
je 0x1000282a
mov esi, dword [esp + 0x1a4]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 0x80000000
lea eax, [0x1006dbf6]
mov dword [esp + 0x4a0], eax
lea eax, [esp + 0x4a0]
lea eax, [esp + 0x4a0]
mov ecx, dword [esp + 0x4a0]
mov dword [esp + 0x4a0], 0xd965c36e
mov edx, dword [esp + 0x4a0]
call fcn.10001dd0
mov ecx, dword [eax]
mov ecx, dword [eax + 4]
movzx eax, byte [eax + 8]
mov eax, esi
mov dword [esp + 0x2bc], esi
neg eax
jo 0x10006bd1
mov ebx, dword [esp + 0x8a4]
mov edi, dword [esp + 0x8a8]
lea ecx, [esp + 0x4a0]
mov edx, ebx
push edi
call fcn.10014440
add esp, 4
movzx esi, byte [esp + 0x4a0]
mov eax, dword [esp + 0x4a8]
mov edx, dword [esp + 0x4b0]
mov dword [esp + 0xc], ebx
mov ecx, dword [esi*4 + 0x10006dbc]
mov dword [esp + 4], eax
mov eax, 6
mov esi, edi
add ecx, dword [esp + 0x2c]
jmp ecx
call sub.KERNEL32.dll_GetLastError
ud2
call fcn.100165c0
lea eax, [0x1007533d]
mov dword [esp + 0x4a0], eax
lea eax, [esp + 0x4a0]
lea eax, [esp + 0x4a0]
mov ecx, dword [esp + 0x4a0]
mov dword [esp + 0x4a0], 0xf6c66d5d
mov edx, dword [esp + 0x4a0]
call fcn.10001db0
mov ecx, 0xd2a2fde3
lea edx, [esp + 0x8a0]
xor ecx, dword [eax]
movzx eax, word [eax + 4]
mov dword [esp + 0x4a0], 0x100225ac
mov dword [esp + 0x4a4], 2
mov dword [esp + 0x4b0], 0
mov dword [esp + 0x1a0], edx
mov dword [esp + 0x1a4], 0x100010a0
mov dword [esp + 0x118], ecx
lea ecx, [esp + 0x118]
xor al, 0xec
xor ah, 0xb6
mov byte [esp + 0x11c], al
mov dword [esp + 0x8a0], ecx
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x11d], ah
mov dword [esp + 0x8a4], 6
mov dword [esp + 0x4a8], ecx
lea ecx, [esp + 0x4a0]
mov dword [esp + 0x4ac], 1
call fcn.10016240
call fcn.100165c0
test edi, edi
je 0x10006ab7
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
jmp 0x10006aae
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, str.MvUh_
mov dword [esp + 0x4a0], eax
lea eax, [esp + 0x4a0]
lea eax, [esp + 0x4a0]
mov ecx, dword [esp + 0x4a0]
mov dword [esp + 0x4a0], 0xd679947
mov edx, dword [esp + 0x4a0]
call fcn.10001e90
mov ecx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
ud2
ud2