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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x11d0c744], 0
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa4], esi
mov ebx, dword [esi]
je 0x1022ecc5
cmp dword [ebx + 4], 0x58544e43
jne 0x1022ecc5
mov eax, dword fs:[0x2c]
mov ecx, dword [0x11d0c5b8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebx]
mov dword [ecx + 0x10], eax
mov dword [ebx + 8], 0
jmp 0x1022ecc7
xor ebx, ebx
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.10425c00
mov esi, dword [esi + 0x541c]
add esp, 0xc
xor edx, edx
test esi, esi
je 0x1022ed25
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp + 8]
add eax, 0x542c
cmp dword [eax], ecx
je 0x1022ed05
inc edx
add eax, 0x60
cmp edx, esi
jb 0x1022ecf7
jmp 0x1022ed25
mov ecx, dword [ebp - 0xa4]
lea eax, [edx + edx*2]
shl eax, 5
add ecx, eax
mov eax, dword [ecx + 0x5428]
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + 0x5424]
mov dword [ebp - 0x6c], eax
cmp edx, esi
je 0x1022eec2
test edi, edi
je 0x1022ed54
cmp byte [edi + 0x10], 0
je 0x1022ed54
mov eax, dword [edi]
mov dword [ebp - 0x63], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x5f], eax
mov eax, dword [edi + 8]
mov byte [ebp - 0x64], 1
test eax, eax
je 0x1022ed54
mov byte [ebp - 0x5b], 1
mov dword [ebp - 0x5a], eax
xor ecx, ecx
mov eax, 4
mov dword [ebp - 0xbc], ecx
mov word [ebp - 0x66], ax
mov dword [ebp - 0xb0], ecx
and ecx, 0xfffffffe
mov eax, dword [ebx + 0x11cc]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], 0x9c
mov dword [ebp - 0x90], 0x10000a4
mov dword [ebp - 0xa0], 0x4e564441
mov dword [ebp - 0x9c], 0x10002
mov dword [ebp - 0x94], 0x4e564458
mov dword [ebp - 0x98], 0x9c
mov edx, dword [ebx + 0x10b4]
test edx, edx
je 0x1022ee67
mov eax, dword [ebx]
test eax, eax
je 0x1022ee67
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x1022ee67
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1022ee67
cmp dword [eax + 0xd45c], 1
jne 0x1022ee5d
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebx + 0x1428]
push eax
call esi
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
mov eax, dword [ebx + 0x10b4]
call eax
lea eax, [ebp - 0xac]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0xac], xmm0
call esi
mov ecx, dword [ebp - 0xac]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0xa8]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
jmp 0x1022ee67
lea eax, [ebp - 0xc0]
push eax
push ecx
call edx
mov si, word [ebp - 0x4e]
test si, si
je 0x1022eec2
xor eax, eax
xor edx, edx
cmp ax, si
jae 0x1022eec2
lea ecx, [ebp - 0x4c]
nop dword [eax]
cmp dword [ecx + 0xe], 2
jne 0x1022eeb7
test edi, edi
je 0x1022ef67
cmp byte [edi + 0x10], 0
jne 0x1022eef0
cmp byte [edi + 0x11], 0
je 0x1022ef53
movzx eax, word [ecx]
cmp dword [edi], eax
jne 0x1022eed7
movzx eax, word [ecx + 2]
cmp dword [edi + 4], eax
jne 0x1022eed7
movzx eax, word [ecx + 0xc]
cmp dword [edi + 8], eax
jne 0x1022eed7
inc edx
movzx eax, si
add ecx, 0x12
cmp edx, eax
jl 0x1022ee80
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8
lea ecx, [edx + edx*8]
movzx eax, word [ebp + ecx*2 - 0x4c]
mov dword [edi], eax
movzx eax, word [ebp + ecx*2 - 0x4a]
mov dword [edi + 4], eax
movzx eax, word [ebp + ecx*2 - 0x40]
jmp 0x1022ef50
mov ebx, dword [ebp - 0xa4]
lea ecx, [edx + edx*8]
lea eax, [edx + edx*8]
movzx eax, word [ebp + eax*2 - 0x46]
mov word [ebx + 0xd0], ax
movzx eax, word [ebp + ecx*2 - 0x4a]
mov word [ebx + 0xd2], ax
movzx eax, word [ebp + ecx*2 - 0x48]
mov word [ebx + 0xd4], ax
movzx eax, word [ebp + ecx*2 - 0x4c]
mov word [ebx + 0xd6], ax
movzx eax, word [ebp + ecx*2 - 0x44]
mov word [ebx + 0xd8], ax
movzx eax, word [ebp + ecx*2 - 0x42]
mov word [ebx + 0xda], ax
movzx eax, word [ebp + ecx*2 - 0x40]
mov word [ebx + 0xdc], ax
mov dword [edi + 8], eax
cmp dword [ebp - 0x56], 1
sete al
cmp dword [ebp - 0x52], 1
mov byte [edi + 0x12], al
sete al
mov byte [edi + 0x13], al
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