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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
jbe 0x1027ee7b
mov dword [ebp - 0x12c], 0x28
nop
mov esi, dword [ebp - 0x108]
lea eax, [ebp - 0x128]
push 0x120
push 0
push eax
call fcn.10425c00
mov eax, dword [ebx]
add esp, 0xc
mov edx, dword [edi + 0x10b4]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0xf4], eax
mov eax, dword [edi + 0x11cc]
mov dword [ebp - 0x108], esi
xor esi, esi
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x4e564441
mov dword [ebp - 0x124], 0x10002
mov dword [ebp - 0x120], 0x120
mov dword [ebp - 0x11c], 0x4e564458
mov dword [ebp - 0x118], 0x1000083
mov dword [ebp - 0xf8], 1
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], 0x1d
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0x120
test edx, edx
je 0x1027ed3e
mov eax, dword [edi]
test eax, eax
je 0x1027ed3e
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x1027ed3e
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1027ed3e
cmp dword [eax + 0xd45c], 1
jne 0x1027ed32
lea eax, [edi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [edi + 0x10b4]
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov esi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x138]
movlpd qword [ebp - 0x138], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x138]
sub ecx, dword [edi + 0x1428]
mov eax, dword [ebp - 0x134]
sbb eax, dword [edi + 0x142c]
add dword [edi + 0x1420], ecx
adc dword [edi + 0x1424], eax
jmp 0x1027ed3e
lea eax, [ebp - 0x14c]
push eax
push ecx
call edx
mov esi, eax
test esi, esi
js 0x1027ed6a
cmp dword [ebp - 0x30], 0
jne 0x1027ed7f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x12c]
mov ecx, eax
dec eax
mov dword [ebp - 0x12c], eax
test ecx, ecx
jne 0x1027ebe0
mov eax, esi
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 esi, dword [ebp - 0x108]
lea eax, [ebp - 0x128]
push 0x120
push 0
push eax
call fcn.10425c00
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebx + 4]
mov dword [ebp - 0xf4], eax
mov eax, dword [edi + 0x11cc]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x108], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xf0], ecx
mov ecx, edi
push eax
mov dword [ebp - 0x128], 0x4e564441
mov dword [ebp - 0x124], 0x10002
mov dword [ebp - 0x120], 0x120
mov dword [ebp - 0x11c], 0x4e564458
mov dword [ebp - 0x118], 0x1000083
mov dword [ebp - 0xf8], 1
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xec], 7
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0x120
call fcn.101d20e0
test eax, eax
js 0x1027eff1
test byte [ebp - 0x90], 0x20
mov dword [ebx + 0xc], esi
je 0x1027ee61
mov dword [ebx + 0x14], esi
jmp 0x1027efea
mov dword [ebx + 0x14], 0
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 esi, dword [ebp - 0x108]
lea eax, [ebp - 0x128]
push 0x120
push 0
push eax
call fcn.10425c00
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebx + 4]
mov dword [ebp - 0xf4], eax
mov eax, dword [edi + 0x11cc]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x108], esi
mov esi, dword [edi + 0x10b4]
mov dword [ebp - 0x144], eax
xor eax, eax
mov dword [ebp - 0x128], 0x4e564441
mov dword [ebp - 0x124], 0x10002
mov dword [ebp - 0x120], 0x120
mov dword [ebp - 0x11c], 0x4e564458
mov dword [ebp - 0x118], 0x1000083
mov dword [ebp - 0xf8], 1
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], 8
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0x120
test esi, esi
je 0x1027efe3
mov ecx, dword [edi]
test ecx, ecx
je 0x1027efe3
mov edx, dword [ecx + 0xbe28]
test edx, edx
je 0x1027efe3
mov edx, dword [edx + 0x14]
test edx, edx
je 0x1027efe3
cmp dword [ecx + 0xd45c], 1
jne 0x1027efd5
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [edi + 0x1428]
push eax
call esi
mov ecx, dword [edi + 0x10b4]
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov dword [ebp - 0x12c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x138]
movlpd qword [ebp - 0x138], xmm0
push eax
call esi
mov ecx, dword [ebp - 0x138]
sub ecx, dword [edi + 0x1428]
mov eax, dword [ebp - 0x134]
sbb eax, dword [edi + 0x142c]
add dword [edi + 0x1420], ecx
adc dword [edi + 0x1424], eax
mov eax, dword [ebp - 0x12c]
jmp 0x1027efdf
lea eax, [ebp - 0x14c]
push eax
push edx
call esi
test eax, eax
js 0x1027eff1
mov dword [ebx + 0x14], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8