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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001cd8b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x1001e7e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x80], ebx
mov eax, dword [ebx + 0x314]
cmp dword [eax + 4], 0
je 0x1000de27
cmp byte [eax + 8], 0
je 0x1000de27
cmp dword [ebx + 0x324], 0
je 0x1000de27
push 4
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
cmp byte [0x10021f71], 0
mov dword [ebp - 0xc8], 0x10001248
mov dword [ebp - 0xc0], 0xb
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xbc], 0
jne 0x1000daa1
xor eax, eax
mov byte [0x10021f71], 1
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1000daa1
mov eax, dword [ebp - 0xb0]
mov dword [0x10021f68], eax
mov eax, dword [ebp - 0xac]
mov dword [0x10021f6c], eax
lea eax, [ebp - 0xb8]
push eax
mov byte [0x10021f70], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x1000dac5
cmp byte [0x10021f70], 0
je 0x1000dab9
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x1000dac5
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 4], 0
lea edx, [ebx + 0xac]
cmp dword [edx], 0
mov edi, dword [ebx + 0x310]
je 0x1000dae7
cmp dword [edi + 4], 0
mov byte [ebp - 0x69], 1
jne 0x1000daeb
mov byte [ebp - 0x69], 0
mov ecx, dword [ebx + 0x314]
mov eax, dword [ebx + 0x324]
mov esi, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x78], esi
mov eax, dword [eax + esi*4]
shl eax, 2
add ecx, eax
mov dword [ebp - 0xa4], ecx
mov ecx, dword [edi + 4]
add ecx, eax
cmp byte [ebp - 0x69], 0
mov dword [ebp - 0xa8], ecx
je 0x1000db3e
xor ecx, ecx
mov edi, eax
mov eax, dword [edx]
test eax, eax
je 0x1000db3a
add eax, edi
add edx, 0x1c
mov dword [ebp + ecx*4 - 0x68], eax
inc ecx
cmp ecx, 0x16
jl 0x1000db23
jmp 0x1000db3e
mov byte [ebp - 0x69], 0
mov dword [ebp - 0x8c], 0
jmp 0x1000db50
cmp esi, dword [ebx + 0xc]
je 0x1000dd56
xor eax, eax
mov dword [ebp - 0x88], eax
cmp dword [ebx + 8], eax
jle 0x1000dd3a
lea ebx, [ebx]
mov edi, dword [ebx + 0x68]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], esi
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x7c], edi
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x1002331c]
mov ecx, edi
call esi
mov ebx, dword [ebp - 0x70]
cmp ebx, dword [edi + 8]
jb 0x1000dbaf
cmp byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x88]
jne 0x1000dbac
mov ebx, dword [edi + 0x4c]
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
cmp edi, dword [eax + 0xc]
jb 0x1000dbcb
cmp byte [eax + 0x4a], 0
mov edi, esi
jne 0x1000dbc8
mov edi, dword [eax + 0x50]
mov dword [ebp - 0x74], edi
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 0x6c]
mov dword [ebp - 0x84], eax
test eax, eax
je 0x1000dc43
mov eax, dword [eax]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x1002331c]
mov ecx, dword [ebp - 0x84]
call esi
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [eax + 8]
jb 0x1000dc14
cmp byte [eax + 0x4a], 0
mov ecx, ebx
jne 0x1000dc11
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x74]
cmp edx, dword [eax + 0xc]
jb 0x1000dc27
cmp byte [eax + 0x4a], 0
mov edx, edi
jne 0x1000dc27
mov edx, dword [eax + 0x50]
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x78]
lea ebx, [ecx + ebx]
mov ecx, dword [ebp - 0x80]
sar ebx, 1
lea edi, [edx + esi]
sar edi, 1
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], edi
mov eax, dword [ecx + 0x324]
mov edx, dword [ebp - 0xa4]
mov eax, dword [eax + edi*4]
add eax, ebx
mov dword [edx], eax
add edx, 4
cmp byte [ebp - 0x69], 0
mov dword [ebp - 0xa4], edx
je 0x1000dd21
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 8]
mov eax, dword [edx]
add edx, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xa8], edx
test ecx, ecx
jg 0x1000dc88
xor esi, esi
jmp 0x1000dc90
cdq
idiv ecx
mov eax, dword [ebp - 0x7c]
mov esi, edx
xor edx, edx
mov dword [ebp - 0x84], esi
div ecx
mov edx, eax
mov eax, ecx
sub eax, esi
mov dword [ebp - 0x94], edx
add eax, ebx
sub ecx, edx
mov ebx, dword [ebp - 0x80]
add ecx, edi
mov dword [ebp - 0x9c], eax
xor edi, edi
mov dword [ebp - 0xcc], ecx
lea eax, [ebx + 0x328]
mov dword [ebp - 0x7c], eax
jmp 0x1000dcd0
mov ecx, dword [eax]
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp + edi*4 - 0x68]
movsx edx, word [ecx + eax*2]
mov eax, dword [ebx + 0x324]
add edx, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x9c]
mov eax, dword [eax + edx*4]
movsx ecx, word [ecx + ebx*2]
mov ebx, dword [ebp - 0x80]
add eax, ecx
add eax, dword [ebp - 0x84]
mov dword [esi], eax
lea eax, [esi + 4]
mov dword [ebp + edi*4 - 0x68], eax
inc edi
mov eax, dword [ebp - 0x7c]
add eax, 4
mov dword [ebp - 0x7c], eax
cmp edi, 0x16
jl 0x1000dcd0
mov esi, dword [ebp - 0x78]
jmp 0x1000dd24
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
cmp eax, dword [ebx + 8]
jl 0x1000db70
mov eax, dword [ebp - 0x8c]
inc esi
inc eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x8c], eax
cmp eax, 3
jl 0x1000db50
jmp 0x1000dd60
mov eax, dword [ebx + 0x314]
mov byte [eax + 8], 0
cmp byte [0x10021f70], 0
mov eax, dword [ebx + 0x314]
mov dword [eax + 0xc], esi
mov dword [ebp - 0xc8], 0x10001248
je 0x1000ddfb
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x9c]
shl esi, 4
sub ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x98], ecx
sbb eax, dword [ebp - 0xb4]
mov dword [ebp - 0x94], eax
fild qword [ebp - 0x98]
fstp qword [ebp - 0x98]
fld qword [ebp - 0x98]
fild qword [0x10021f68]
fstp qword [ebp - 0x98]
fdiv qword [ebp - 0x98]
fmul qword [0x10003750]
fmul qword [0x10003730]
call fcn.10010cac
jmp 0x1000de13
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xc0]
imul eax, eax, 0x64
shl esi, 4
add dword [esi + 0x1001e008], eax
inc dword [esi + 0x1001e00c]
push 4
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001bdd0
mov esp, ebp
pop ebp
ret