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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dl, byte [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 0xffffffff
jne 0x101d870b
test dl, dl
je 0x101d8b2c
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x104], eax
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0xbe28]
xor eax, eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x100], eax
cmp dword [ecx + 0xb719], eax
jbe 0x101d8b2c
xor ebx, ebx
nop dword [eax + eax]
cmp dword [ebx + ecx + 0xa835], edi
je 0x101d8761
test dl, dl
je 0x101d8b13
mov eax, dword [ebp - 0x104]
xorps xmm0, xmm0
mov edx, dword [esi + 0x10b4]
movups xmmword [ebp - 0xfc], xmm0
mov dword [ebp - 0xec], 0
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xbe2c]
mov eax, dword [eax + 0x11cc]
and dword [ebp - 0xf8], 0xfffffffe
mov dword [ebp - 0xfc], eax
mov eax, dword [ecx + 0xa82d]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0xa829]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x80]
movlpd qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], 0
movlpd qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], 0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x80], 0x4e564441
mov dword [ebp - 0x7c], 0x10002
mov dword [ebp - 0x78], 0x40
mov dword [ebp - 0x74], 0x4e564458
mov dword [ebp - 0x70], 0x100007e
mov dword [ebp - 0x60], 0
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], 0x40
test edx, edx
je 0x101d88bb
mov eax, dword [esi]
test eax, eax
je 0x101d88bb
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x101d88bb
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x101d88bb
cmp dword [eax + 0xd45c], 1
jne 0x101d88a7
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esi + 0x10b4]
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x110]
movlpd qword [ebp - 0x110], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x110]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x10c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101d88b3
lea eax, [ebp - 0xfc]
push eax
push ecx
call edx
mov edi, eax
test edi, edi
js 0x101d8b2c
mov eax, dword [ebp - 0x44]
xor edi, edi
mov edx, dword [esi + 0x10b4]
xorps xmm0, xmm0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0x3c], 0x4e564441
mov dword [ebp - 0x38], 0x10002
mov dword [ebp - 0x34], 0x38
mov dword [ebp - 0x30], 0x4e564458
mov dword [ebp - 0x2c], 0x7000143
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], 0x38
test edx, edx
je 0x101d89d2
mov eax, dword [esi]
test eax, eax
je 0x101d89d2
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x101d89d2
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x101d89d2
cmp dword [eax + 0xd45c], 1
jne 0x101d89bb
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esi + 0x10b4]
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x118]
movlpd qword [ebp - 0x118], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x118]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x114]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101d89c7
lea eax, [ebp - 0xfc]
push eax
push ecx
call edx
mov edi, eax
test edi, edi
js 0x101d8b2c
mov edi, dword [ebp - 8]
push 0x64
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.10425c00
mov edx, dword [esi + 0x10b4]
lea eax, [ebp - 0xe8]
add esp, 0xc
mov dword [ebp - 0xe8], 0x4e564441
mov dword [ebp - 0xe4], 0x10002
mov dword [ebp - 0xe0], 0x64
mov dword [ebp - 0xdc], 0x4e564458
mov dword [ebp - 0xd8], 0x70001bd
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], 0x64
test edx, edx
je 0x101d8af8
mov eax, dword [esi]
test eax, eax
je 0x101d8af8
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x101d8af8
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x101d8af8
cmp dword [eax + 0xd45c], 1
jne 0x101d8ae8
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esi + 0x10b4]
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x120]
movlpd qword [ebp - 0x120], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x120]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x11c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101d8af4
lea eax, [ebp - 0xfc]
push eax
push ecx
call edx
mov edi, eax
test edi, edi
js 0x101d8b2c
cmp byte [ebp - 0xac], 0
jne 0x101d8b41
mov eax, dword [ebp - 0x100]
mov dl, byte [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x108]
inc eax
add ebx, 0xf0
mov dword [ebp - 0x100], eax
cmp eax, dword [ecx + 0xb719]
jb 0x101d8750
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8