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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x11ad127c]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x80004005
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
cmp dword [edi + 0x5e0], 0
je 0x101c5de5
test byte [edi + 0x605], 8
jne 0x101c5bec
mov eax, dword [edi + 0x250]
xor edx, edx
mov eax, dword [eax + 0x30]
cmp dword [eax + 0xc], 0x10
lea ecx, [eax + 0x10]
cmovne edx, ecx
test edx, edx
je 0x101c5bec
mov dword [edx + 0x24], esi
mov ecx, dword [edi + 0x5e0]
mov eax, dword [ecx + 0x20]
cmp eax, dword [ecx + 0x1c]
je 0x101c5c07
cmp dword [ecx + 0x18], eax
jne 0x101c5c26
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x10]
je 0x101c5c26
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push 1
call fcn.1001e7f0
mov dword [eax], 0
lea ecx, [eax + 4]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [edi + 0x5e0]
push 1
push 1
call fcn.101e43f0
mov esi, eax
test esi, esi
jns 0x101c5c62
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101c5c4a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
test byte [edi + 0x605], 8
je 0x101c5dc3
push 0x40
xorps xmm0, xmm0
lea eax, [esp + 0x5c]
push 0
push eax
movaps xmmword [esp + 0x3c], xmm0
movaps xmmword [esp + 0x4c], xmm0
call fcn.10425c00
mov eax, dword [edi + 0x254]
add esp, 0xc
xor edx, edx
test eax, eax
je 0x101c5ceb
mov al, byte [edi + 0x604]
and al, 2
xor esi, esi
mov byte [esp + 0xf], al
test al, al
je 0x101c5cb4
mov eax, dword [esi + edi + 0x38c]
jmp 0x101c5cbb
mov eax, dword [esi + edi + 0x27c]
mov ecx, dword [edi + esi + 0x294]
mov dword [esp + edx*4 + 0x30], eax
mov eax, dword [edi + esi + 0x290]
add esi, 0x20
mov dword [esp + edx*8 + 0x58], eax
mov al, byte [esp + 0xf]
mov dword [esp + edx*8 + 0x5c], ecx
inc edx
cmp edx, dword [edi + 0x254]
jb 0x101c5ca7
mov eax, dword [edi + 0x254]
mov edi, dword [edi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov eax, dword [edi]
cmp dword [eax + 0xd45c], 1
jne 0x101c5d8f
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [edi + 0x1428]
push eax
call esi
mov eax, dword [edi + 0x110c]
lea ecx, [esp + 0x1c]
push ecx
push dword [edi + 0x11cc]
call eax
push eax
push ecx
mov ecx, edi
call fcn.101c9e10
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x14], xmm0
call esi
mov ecx, dword [esp + 0x10]
sub ecx, dword [edi + 0x1428]
mov eax, dword [esp + 0x14]
sbb eax, dword [edi + 0x142c]
add dword [edi + 0x1420], ecx
adc dword [edi + 0x1424], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x110c]
lea ecx, [esp + 0x1c]
push ecx
push dword [edi + 0x11cc]
call eax
push eax
push ecx
mov ecx, edi
call fcn.101c9e10
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x250]
xor edx, edx
mov eax, dword [eax + 0x30]
cmp dword [eax + 0xc], 0x10
lea ecx, [eax + 0x10]
cmovne edx, ecx
test edx, edx
je 0x101c5de3
mov dword [edx + 0x24], 0
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4