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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd88
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xd14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xd18], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xd84], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, 1
shl eax, cl
push 0xc70
mov dword [ebp - 0xd80], eax
lea eax, [ebp - 0xcfc]
push 0
push eax
movlpd qword [ebp - 0xd70], xmm0
movlpd qword [ebp - 0xd68], xmm0
movlpd qword [ebp - 0xd60], xmm0
movlpd qword [ebp - 0xd58], xmm0
mov dword [ebp - 0xd50], 0
mov dword [ebp - 0xd7c], 0x10
mov dword [ebp - 0xd0c], 0x4e564441
mov dword [ebp - 0xd08], 0x10000
mov dword [ebp - 0xd04], 0xc80
mov dword [ebp - 0xd00], 0x4e564458
call fcn.10425c00
lea eax, [ebp - 0xd0c]
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0xd78], eax
add esp, 0xc
test byte [0x11cd362c], 1
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xcfc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xc0], 0xffffffff
mov dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 0xb8], 0xffffffff
mov dword [ebp - 0xd74], 0xc80
mov dword [ebp - 0xcf8], eax
mov dword [ebp - 0xcf4], 2
mov dword [ebp - 0xd10], 0
je 0x101c4314
cmp dword [0x11cd3624], 0
jne 0x101c42e3
mov ecx, 0x11cd3610
call fcn.100f5b00
test al, al
je 0x101c4314
mov edx, dword [0x11cd3618]
xor eax, eax
mov esi, dword [0x11cd3614]
test edx, edx
je 0x101c4314
lea ecx, [esi + 4]
nop dword [eax + eax]
cmp dword [ecx], 0x10f9dc84
je 0x101c446f
inc eax
add ecx, 0x10
cmp eax, edx
jb 0x101c4300
xor cl, cl
xor eax, eax
test cl, cl
mov ecx, dword [0x11d0c5b8]
cmovne eax, dword [ebp - 0xd10]
shr eax, 0x1a
and eax, 1
mov dword [ebp - 0x94], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
xor eax, eax
mov dword [ebp - 0xd10], esi
mov edx, dword [esi + 0x10]
cmp dword [edx + 0xd2f4], 1
sete al
mov dword [ebp - 0xc8], eax
mov eax, dword [edx + 0xf888]
and eax, 0xf00
cmp eax, 0x200
jbe 0x101c43ea
test dword [edx + 0x190], 0x3fff00
je 0x101c43ea
test byte [0x11cd362c], 1
je 0x101c43c0
cmp dword [0x11cd3624], 0
jne 0x101c4398
mov ecx, 0x11cd3610
call fcn.100f5b00
test al, al
je 0x101c43c0
mov edx, dword [0x11cd3618]
xor ecx, ecx
mov eax, dword [0x11cd3614]
test edx, edx
je 0x101c43c0
add eax, 4
nop dword [eax]
cmp dword [eax], 0x1057eb71
je 0x101c43ea
inc ecx
add eax, 0x10
cmp ecx, edx
jb 0x101c43b0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc8], 1
mov eax, dword [eax + 0xf888]
shr eax, 8
and eax, 0xf
push eax
push 0x1046cdf0
call fcn.101093c0
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x101c43f7
or dword [ebp - 0x98], 4
lea eax, [ebp - 0xcf0]
push eax
push dword [edi]
call fcn.101c3640
lea eax, [ebp - 0xd84]
mov ecx, edi
push eax
call fcn.101c3490
test eax, eax
js 0x101c45eb
mov eax, dword [ebp - 0xd14]
mov esi, dword [ebp - 0xd70]
push 0x6c
push 0
mov dword [eax], esi
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x8c], 0x4e564441
mov dword [ebp - 0x88], 0x10000
mov dword [ebp - 0x84], 0x7c
mov dword [ebp - 0x80], 0x4e564458
call fcn.10425c00
mov eax, dword [edi + 8]
add esp, 0xc
cmp eax, 1
je 0x101c4482
cmp eax, 0x16
je 0x101c4482
xor eax, eax
jmp 0x101c4487
add eax, eax
mov cl, 1
mov eax, dword [esi + eax*8 + 0xc]
mov dword [ebp - 0xd10], eax
jmp 0x101c4316
mov eax, 0x100
mov edi, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x78], 0x1000
movlpd qword [ebp - 0xd3c], xmm0
movlpd qword [ebp - 0xd34], xmm0
movlpd qword [ebp - 0xd2c], xmm0
mov dword [ebp - 0xd4c], esi
mov dword [ebp - 0xd48], 0
mov dword [ebp - 0xd40], eax
mov dword [ebp - 0xd44], 0x7c
mov eax, dword [edi]
cmp dword [eax + 0xd45c], 1
jne 0x101c4552
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [edi + 0x1428]
push eax
call esi
mov eax, dword [edi + 0x1174]
lea ecx, [ebp - 0xd4c]
push ecx
push dword [edi + 0x11cc]
call eax
push eax
push ecx
mov ecx, edi
call fcn.101c9e10
mov dword [ebp - 0xd14], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xd24]
movlpd qword [ebp - 0xd24], xmm0
push eax
call esi
mov ecx, dword [ebp - 0xd24]
sub ecx, dword [edi + 0x1428]
mov eax, dword [ebp - 0xd20]
sbb eax, dword [edi + 0x142c]
add dword [edi + 0x1420], ecx
adc dword [edi + 0x1424], eax
mov eax, dword [ebp - 0xd14]
jmp 0x101c4570
mov eax, dword [edi + 0x1174]
lea ecx, [ebp - 0xd4c]
push ecx
push dword [edi + 0x11cc]
call eax
push eax
push ecx
mov ecx, edi
call fcn.101c9e10
test eax, eax
js 0x101c45eb
mov eax, dword [ebp - 0xd3c]
mov ecx, dword [ebp - 0xd28]
mov dword [ebx], eax
mov eax, dword [ebp - 0xd38]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xd34]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xd2c]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xd10]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xbe28]
test dword [eax + 0x3c89], 0x200000
je 0x101c45e9
mov edx, dword [ebp - 0xd18]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0x1c