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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x80
lea eax, [ebp - 0x128]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x188], edi
call fcn.10425c00
add esp, 0xc
lea eax, [ebp - 0x54]
push 0x4c
push 0
push eax
call fcn.10425c00
mov ecx, dword [0x11d0c5b8]
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
add esp, 0xc
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x48], 0x5000024
mov dword [ebp - 0x58], 0x4e564441
mov dword [ebp - 0x54], 0x10002
mov esi, dword [eax + ecx*4]
mov dword [ebp - 0x4c], 0x4e564458
mov dword [ebp - 0x50], 0x50
mov dword [ebp - 0x28], 0
cmp byte [esi + 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x201
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x184], esi
jne 0x1001d80c
call fcn.10450c0b
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11cc]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], 0x50
mov eax, dword [ecx + 0x7a68]
mov eax, dword [eax + 8]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10b4]
test edx, edx
je 0x1001d900
mov eax, dword [esi]
test eax, eax
je 0x1001d900
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x1001d900
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1001d900
cmp dword [eax + 0xd45c], 1
jne 0x1001d8ee
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esi + 0x10b4]
lea eax, [ebp - 0x180]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov dword [ebp - 0x154], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x160]
movlpd qword [ebp - 0x160], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x160]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x15c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
mov eax, dword [ebp - 0x154]
jmp 0x1001d8f8
lea eax, [ebp - 0x180]
push eax
push ecx
call edx
test eax, eax
js 0x1001db4b
xor ecx, ecx
xor eax, eax
cmp dword [ebp + eax*4 - 0x128], 0xffffffff
je 0x1001d944
cmp dword [ebp + eax*4 - 0x124], 0xffffffff
je 0x1001d943
cmp dword [ebp + eax*4 - 0x120], 0xffffffff
je 0x1001d93e
cmp dword [ebp + eax*4 - 0x11c], 0xffffffff
je 0x1001d939
add eax, 4
add ecx, 4
cmp eax, 0x20
jb 0x1001d904
jmp 0x1001d944
add ecx, 3
jmp 0x1001d944
add ecx, 2
jmp 0x1001d944
inc ecx
mov dword [edi + 0x15b8], ecx
xor edi, edi
nop dword [eax]
mov eax, dword [ebp + edi*4 - 0x128]
cmp eax, 0xffffffff
je 0x1001db36
xorps xmm0, xmm0
movups xmmword [ebp - 0x150], xmm0
push 0x4c
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0xa4]
push 0
push eax
movups xmmword [ebp - 0x140], xmm0
movq qword [ebp - 0x130], xmm0
call fcn.10425c00
mov esi, dword [ebp - 0x184]
lea eax, [ebp - 0x150]
add esp, 0xc
mov dword [ebp - 0x98], 0x5000024
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0x4e564441
mov dword [ebp - 0xa4], 0x10002
cmp byte [esi + 8], 0
mov dword [ebp - 0x9c], 0x4e564458
mov dword [ebp - 0xa0], 0x50
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0x202
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x28
movaps xmmword [ebp - 0x180], xmm0
mov dword [ebp - 0x170], 0
jne 0x1001da18
call fcn.10450c0b
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11cc]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], 0x50
mov eax, dword [ecx + 0x7a68]
mov eax, dword [eax + 8]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10b4]
test edx, edx
je 0x1001db0b
mov eax, dword [esi]
test eax, eax
je 0x1001db0b
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x1001db0b
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1001db0b
cmp dword [eax + 0xd45c], 1
jne 0x1001dafd
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esi + 0x10b4]
lea eax, [ebp - 0x180]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov dword [ebp - 0x154], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x160]
movlpd qword [ebp - 0x160], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x160]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x15c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
mov eax, dword [ebp - 0x154]
jmp 0x1001db07
lea eax, [ebp - 0x180]
push eax
push ecx
call edx
test eax, eax
js 0x1001db4b
mov edx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x148]
cmp ecx, dword [edx + 0x15b8]
ja 0x1001db4b
mov eax, dword [ebp - 0x150]
inc edi
mov dword [edx + ecx*4 + 0x1538], eax
cmp edi, 0x20
jb 0x1001d950
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.1045066c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret