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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
mov esi, ecx
push edi
add dword [esi + 0xc], 0xffffffff
jne 0x100d98d7
lea eax, [ebp - 0x3c]
push eax
call ebx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x3c]
and eax, 7
sub ecx, dword [esi + 0x10]
lea edx, [esi + eax*8]
mov eax, dword [ebp - 0x38]
sbb eax, dword [esi + 0x14]
add dword [edx + 0x18], ecx
adc dword [edx + 0x1c], eax
lea eax, [ebp - 0x44]
mov dword [esi + 0xc], 0
push eax
call ebx
mov eax, dword [esi]
lea ecx, [esi + 0x58]
and eax, 7
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x30], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov edx, dword [esi + eax*8 + 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + eax*8 + 0x18]
inc dword [esi]
inc dword [esi + 0xc]
cmp dword [esi + 0xc], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
jne 0x100d9936
lea eax, [ebp - 0x3c]
push eax
call ebx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 8]
cmp dword [esi + 4], 2
xorps xmm0, xmm0
mov ebx, 1
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x18], ebx
jb 0x100d9c0d
dec eax
and eax, 7
mov ebx, dword [esi + eax*8 + 0x58]
mov eax, dword [esi + eax*8 + 0x5c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
cmp edx, eax
jb 0x100d9977
ja 0x100d9971
cmp ecx, ebx
jbe 0x100d9977
sub ecx, ebx
sbb edx, eax
jmp 0x100d9982
movlpd qword [ebp - 0x3c], xmm0
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [0x11d21bfc]
mov edi, dword [0x11d21bf8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
cmp edx, eax
ja 0x100d99a5
jb 0x100d999d
cmp ecx, edi
jae 0x100d99a5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edx
jmp 0x100d99ab
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi + 0x9c]
mov ebx, dword [esi + 4]
add ebx, ebx
push 0
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov dword [ebp - 0x28], edx
lea ecx, [ebx + 1]
mov dword [ebp - 0x38], eax
mul ecx
push ebx
mov edi, eax
mov eax, dword [ebp - 0x28]
mul ecx
add edi, edx
push edi
push eax
call fcn.10451340
mov ebx, dword [ebp - 0x24]
mov ecx, edx
cmp ebx, ecx
jb 0x100d99f9
ja 0x100d99f3
mov edx, dword [ebp - 0x1c]
cmp edx, eax
jb 0x100d99fc
mov edx, eax
mov ebx, ecx
jmp 0x100d99fc
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x11d21bfc]
mov ecx, dword [0x11d21bf8]
shrd ecx, eax, 7
shr eax, 7
cmp ebx, eax
ja 0x100d9a1c
jb 0x100d9a18
cmp edx, ecx
ja 0x100d9a1c
mov edx, ecx
mov ebx, eax
cmp ebx, dword [ebp - 0x38]
jb 0x100d9a4c
ja 0x100d9a28
cmp edx, dword [ebp - 0x28]
jb 0x100d9a4c
mov eax, dword [esi + 0xa4]
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
jmp 0x100d9af7
mov eax, dword [esi + 0x98]
inc eax
cmp eax, dword [esi + 0xa0]
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x98], ecx
mov eax, dword [esi + 0xa4]
mov dword [eax + ecx*8], edx
mov dword [eax + ecx*8 + 4], ebx
mov ecx, dword [esi + 0x9c]
cmp dword [esi + 0x98], ecx
jne 0x100d9af7
mov edx, dword [esi + 0xa4]
lea eax, [ecx + 1]
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
sbb edi, edi
and edi, eax
mov dword [esi + 0x9c], edi
lea eax, [edi + 1]
cmp eax, ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [edx + ecx*8 + 4]
mov ebx, edi
cmp eax, dword [edx + edi*8 + 4]
jb 0x100d9ac2
ja 0x100d9ab8
mov eax, dword [edx + ecx*8]
cmp eax, dword [edx + edi*8]
jb 0x100d9ac2
mov edi, ecx
mov dword [esi + 0x9c], ecx
mov ebx, ecx
lea eax, [ecx + 1]
cmp eax, dword [esi + 0xa0]
sbb ecx, ecx
and ecx, eax
cmp ecx, dword [esi + 0x98]
jne 0x100d9aa2
mov ecx, dword [esi + 0x98]
mov eax, dword [edx + ecx*8 + 4]
cmp eax, dword [edx + ebx*8 + 4]
jb 0x100d9af7
ja 0x100d9af1
mov eax, dword [edx + ecx*8]
cmp eax, dword [edx + ebx*8]
jb 0x100d9af7
mov dword [esi + 0x9c], ecx
cmp dword [esi], 8
jbe 0x100d9c08
mov eax, dword [ebp - 0x10]
mov edi, 1
mov ebx, dword [ebp - 8]
add eax, ebx
mov ecx, dword [ebp - 0x14]
adc ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp edx, edi
jbe 0x100d9b5f
mov edx, edi
mov ebx, eax
mov ecx, dword [ebp - 0x30]
sub ecx, edi
and ecx, 7
mov eax, dword [esi + ecx*8 + 0x58]
or eax, dword [esi + ecx*8 + 0x5c]
jne 0x100d9b39
and edx, 0xfffffffe
add ebx, dword [esi + ecx*8 + 0x18]
mov eax, dword [ebp - 0x14]
adc eax, dword [esi + ecx*8 + 0x1c]
inc edi
mov dword [ebp - 0x14], eax
cmp edi, dword [esi + 4]
jb 0x100d9b24
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 4]
push 0
push edx
push ecx
push eax
call fcn.10451340
mov edi, eax
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
cmp eax, ecx
jb 0x100d9b8e
ja 0x100d9b86
cmp ebx, edi
jb 0x100d9b8e
mov ebx, dword [ebp - 0x18]
or ebx, 2
jmp 0x100d9b91
mov ebx, dword [ebp - 0x18]
test dword [esi + 8], ebx
jne 0x100d9c03
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x3c]
mov edi, ecx
sub edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
mov edx, eax
sbb edx, dword [ebp - 0x40]
add dword [ebp - 8], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0xc]
adc ecx, edx
add dword [eax], edi
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
adc dword [edi + 4], edx
cmp ecx, dword [ebp - 0x1c]
jb 0x100d9bdd
ja 0x100d9bda
cmp eax, dword [ebp - 0x30]
jb 0x100d9bdd
or ebx, 2
mov edx, dword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
cmp ecx, dword [edi + edx*8 + 4]
jb 0x100d9bf9
ja 0x100d9bf6
cmp eax, dword [edi + edx*8]
jb 0x100d9bf9
or ebx, 4
test dword [esi + 8], ebx
je 0x100d9b96
mov edi, dword [ebp - 0x30]
jmp 0x100d9c22
or ebx, 1
jmp 0x100d9c22
mov ebx, 1
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
and eax, 7
mov dword [esi + eax*8 + 0x18], 0
mov dword [esi + eax*8 + 0x1c], 0
mov esi, dword [ebp + 8]
test esi, esi
je 0x100d9cf6
mov eax, dword [ebp - 0x20]
mov edx, dword [esi + 0x58]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
test edx, 0x22000
jne 0x100d9c65
test byte [esi + 0x54], 4
je 0x100d9cf6
mov ecx, dword [esi + 0xc4]
test ecx, ecx
je 0x100d9c85
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x100d9c85
cmp eax, dword [esi + 0xc8]
ja 0x100d9c85
mov al, 1
jmp 0x100d9c87
xor al, al
test edx, 0x1000
jne 0x100d9c9a
mov ecx, esi
call fcn.100d8a90
mov esi, eax
jmp 0x100d9caf
test al, al
je 0x100d9cf6
mov eax, dword [esi + 0xcc]
lea esi, [ecx - 0x50]
lea eax, [eax + eax*4]
shl eax, 4
add esi, eax
test esi, esi
je 0x100d9cf6
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
sub ecx, dword [edx + 0x48]
sbb eax, dword [edx + 0x4c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4