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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x90], eax
push edi
mov eax, dword [ecx]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x94], ecx
movlpd qword [ebp - 0xa0], xmm0
cmp dword [ebp + 0xc], eax
je 0x101d4fdb
mov ecx, dword [edi + 0x14]
and ecx, 4
mov dword [ebp - 0x7c], eax
or eax, ecx
mov dword [ebp - 0x78], 0x80000000
je 0x101d4e48
mov eax, dword [edi + 0x9a]
mov ebx, dword [edi + 0xa2]
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 0x9e]
mov dword [ebp - 0x7c], eax
mov eax, dword [edi + 0xa6]
jmp 0x101d4e54
mov eax, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xa0]
push 0x68
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10425c00
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov ecx, dword [edi + 0xce]
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0xca]
shrd eax, ecx, 0xc
movlpd qword [ebp - 0x4c], xmm0
shr ecx, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
and eax, 8
or eax, 0
jne 0x101d4eb0
mov eax, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x68], ecx
cmp eax, 0xff
jb 0x101d4eed
ja 0x101d4ee5
cmp ebx, 0xffffffff
jbe 0x101d4eed
or ebx, 0xffffffff
mov eax, 0xff
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
mov dword [ebp - 0x5c], ebx
cmp dword [eax + 0xd45c], 1
jne 0x101d4f73
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x1428]
push eax
call ebx
mov eax, dword [esi + 0x1134]
lea ecx, [ebp - 0x74]
push ecx
push dword [esi + 0x11cc]
call eax
cmp eax, 0x8000000a
je 0x101d4f2e
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x8c]
movlpd qword [ebp - 0x8c], xmm0
push eax
call ebx
mov ecx, dword [ebp - 0x8c]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x88]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101d4f9f
mov eax, dword [esi + 0x1134]
lea ecx, [ebp - 0x74]
push ecx
push dword [esi + 0x11cc]
call eax
cmp eax, 0x8000000a
je 0x101d4f94
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov edi, eax
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [edx], eax
mov dword [edx + 4], ecx
cmp edi, 0x8000000a
jne 0x101d4fd9
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x94]
push dword [ebp - 0x14]
add ecx, 0x10
call fcn.101c0440
mov ecx, dword [ebp - 0x98]
xor edi, edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0x34