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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push esi
push edi
push 0x6c
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x88], 0x4e564441
mov dword [ebp - 0x84], 0x10000
mov dword [ebp - 0x80], 0x7c
mov dword [ebp - 0x7c], 0x4e564458
call fcn.10425c00
mov eax, dword [edi + 8]
add esp, 0xc
cmp eax, 1
je 0x101c48b3
cmp eax, 0x16
je 0x101c48b3
xor eax, eax
mov ecx, 0x800
jmp 0x101c48bd
mov eax, 0x100
mov ecx, 0x900
test byte [edi + 0x605], 0x10
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0x1000
je 0x101c495d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], ecx
mov edx, dword [eax + 8]
xor eax, eax
test edx, edx
lea ecx, [edx + 8]
cmove ecx, eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [edx + 0x7c]
mov dword [ebp - 0x68], eax
je 0x101c4900
mov eax, dword [edx + 8]
jmp 0x101c4902
xor eax, eax
test byte [0x11cd362c], 1
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
je 0x101c4955
cmp dword [0x11cd3624], 0
jne 0x101c492c
mov ecx, 0x11cd3610
call fcn.100f5b00
test al, al
je 0x101c4955
mov edx, dword [0x11cd3618]
xor eax, eax
mov esi, dword [0x11cd3614]
test edx, edx
je 0x101c4955
lea ecx, [esi + 4]
cmp dword [ecx], 0xfac520
je 0x101c4a1e
inc eax
add ecx, 0x10
cmp eax, edx
jb 0x101c4941
mov eax, 0x1000
mov dword [ebp - 0x74], eax
mov dword [ebp - 0xc0], ebx
lea eax, [ebp - 0x88]
mov ebx, dword [edi]
xorps xmm0, xmm0
movlpd qword [ebp - 0xb0], xmm0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], 0x7c
mov eax, dword [ebx]
cmp dword [eax + 0xd45c], 1
jne 0x101c4a29
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebx + 0x1428]
push eax
call esi
mov eax, dword [ebx + 0x1174]
lea ecx, [ebp - 0xc0]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov dword [ebp - 0x8c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x98]
movlpd qword [ebp - 0x98], xmm0
push eax
call esi
mov ecx, dword [ebp - 0x98]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0x94]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
mov ebx, dword [ebp - 0x8c]
jmp 0x101c4a49
add eax, eax
mov eax, dword [esi + eax*8 + 0xc]
jmp 0x101c495a
mov eax, dword [ebx + 0x1174]
lea ecx, [ebp - 0xc0]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov ebx, eax
test ebx, ebx
js 0x101c4b58
mov ecx, dword [edi + 0x254]
mov eax, dword [ebp - 0xb0]
shl ecx, 5
mov dword [ecx + edi + 0x278], eax
mov ecx, dword [edi + 0x254]
mov edx, ecx
mov eax, dword [ebp - 0xac]
add ecx, 0x14
shl edx, 5
add edx, edi
shl ecx, 5
mov dword [edx + 0x27c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ecx + edi], eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
mov dword [edx + 0x288], eax
mov eax, dword fs:[0x2c]
mov dword [edx + 0x28c], ecx
mov ecx, dword [0x11d0c5b8]
mov dword [edx + 0x290], 0
mov dword [edx + 0x294], 0
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0xbe28]
test dword [eax + 0x3c89], 0x200000
je 0x101c4b06
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x378], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x37c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x380], eax
mov dword [edi + 0x384], ecx
mov eax, dword [ebp - 0x54]
push dword [edi + 8]
mov dword [edi + 0x5e8], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x644], eax
mov ecx, dword [edx + 0x10]
call fcn.101d8c60
mov cl, byte [edi + 0x604]
xor al, 1
or al, 2
and cl, 0xf7
shl al, 3
or al, cl
test byte [edi + 0x605], 0x10
mov byte [edi + 0x604], al
je 0x101c4b58
and al, 0xf7
mov byte [edi + 0x604], al
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x644], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8