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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x14c], edi
mov ecx, 0
mov dword [edi + 0x1404], 0
mov esi, dword [edi + 0x11ac]
and esi, 0x1fffffff
jbe 0x101d0f95
mov ebx, dword [edi + 0x11b8]
mov edx, dword [edi + 0x11a8]
mov eax, dword [edx]
mov dword [ebp - 0x13c], eax
cmp dword [eax], ebx
jne 0x101d0f8d
mov ebx, dword [edi + 0x11bc]
cmp dword [eax + 4], ebx
mov ebx, dword [edi + 0x11b8]
je 0x101d0f9d
inc ecx
add edx, 4
cmp ecx, esi
jl 0x101d0f70
xor eax, eax
mov dword [ebp - 0x13c], eax
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
push 0
push ecx
push 0
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x148], eax
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e4d30
mov eax, dword [edi + 0x11d8]
mov byte [ebp - 0x12e], 0
mov byte [ebp - 0x12d], 0
test byte [eax + 0x605], 2
je 0x101d0ff2
mov ebx, 0x88760868
jmp 0x101d17d6
mov ecx, dword [edi + 0x13f0]
mov eax, ecx
cmp byte [ecx + 0x20], 0
jne 0x101d1151
mov edx, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], ebx
cmp dword [ecx + 4], ebx
jbe 0x101d1151
nop dword [eax]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x101d113b
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + 0x18c]
mov esi, dword [eax + 8]
test esi, esi
je 0x101d10f2
add esi, 8
je 0x101d10f2
cmp dword [esi], 0
je 0x101d10f2
mov eax, dword [esi + 0xc0]
test eax, eax
mov ecx, dword [edi + 0x107c]
cmovne esi, eax
mov dword [ebp - 0x144], ecx
mov eax, dword [edi + 0x11d4]
cmp byte [ecx + 0x21], 0
mov ebx, dword [eax + 4]
je 0x101d10ec
mov ecx, dword [ecx + ebx*4 + 0x830]
cmp dword [esi + ebx*4 + 0x9cc], ecx
je 0x101d10ae
mov eax, dword [esi + 0xa50]
btr eax, ebx
mov dword [esi + 0xa50], eax
mov dword [esi + ebx*4 + 0x9cc], ecx
cmp dword [esi + 0xa4c], ecx
jae 0x101d10ae
mov dword [esi + 0xa4c], ecx
mov edx, dword [esi + 0x9c0]
mov eax, 1
mov ecx, ebx
shl eax, cl
test eax, edx
jne 0x101d10ec
mov ecx, dword [ebp - 0x144]
push 0
push ebx
push esi
call fcn.10287930
mov ecx, eax
test ecx, ecx
jns 0x101d10ec
mov eax, dword [ebp - 0x144]
mov dword [eax + ebx*4 + 0x17c4], ecx
mov eax, dword [eax + 0x17c0]
mov dword [eax + 8], ecx
mov ebx, dword [ebp - 0x134]
mov eax, dword [edi + 0x107c]
mov edx, dword [ebp - 0x138]
cmp byte [eax + 0x21], 0
je 0x101d113b
mov eax, dword [edx + ebx*4]
mov byte [ebp - 0x12e], 1
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + 0x18c]
mov ecx, dword [eax + 8]
lea eax, [ecx + 8]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx + 0xc0]
test eax, eax
cmovne ecx, eax
mov dword [ecx + 0xa54], 1
mov eax, dword [edi + 0x13f0]
inc ebx
mov dword [ebp - 0x134], ebx
cmp ebx, dword [eax + 4]
jb 0x101d1020
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x101d13d3
cmp dword [ecx], 0x73655243
mov edx, dword [eax + 0x18]
jne 0x101d13d3
mov eax, dword [ecx + 0x18]
shr eax, 4
cmp edx, eax
jae 0x101d13d3
cmp dword [ecx + 0x14], 0
je 0x101d13d3
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x10]
add eax, eax
sar eax, 0x1c
cmp eax, 1
je 0x101d119e
test eax, eax
je 0x101d119e
xor al, al
jmp 0x101d11a0
mov al, 1
xor ebx, ebx
test al, al
cmovne ebx, ecx
test ebx, ebx
je 0x101d13d3
mov eax, dword [ebx + 0x20c]
mov eax, dword [eax + 0x18c]
mov esi, dword [eax + 8]
test esi, esi
je 0x101d129b
add esi, 8
je 0x101d129b
cmp dword [esi], 0
je 0x101d129b
mov eax, dword [esi + 0xc0]
test eax, eax
mov edx, dword [edi + 0x107c]
cmovne esi, eax
mov dword [ebp - 0x138], edx
mov eax, dword [edi + 0x11d4]
cmp byte [edx + 0x21], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x144], ecx
je 0x101d1283
mov edx, dword [edx + ecx*4 + 0x830]
cmp dword [esi + ecx*4 + 0x9cc], edx
je 0x101d1238
mov eax, dword [esi + 0xa50]
btr eax, ecx
mov dword [esi + 0xa50], eax
mov dword [esi + ecx*4 + 0x9cc], edx
cmp dword [esi + 0xa4c], edx
jae 0x101d1238
mov dword [esi + 0xa4c], edx
or byte [esi + 0xb1], 0x20
mov eax, 1
mov edx, dword [esi + 0x9c0]
shl eax, cl
test eax, edx
jne 0x101d1283
push 1
push ecx
mov ecx, dword [ebp - 0x138]
push esi
call fcn.10287930
mov edx, eax
test edx, edx
jns 0x101d1283
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x144]
mov dword [eax + ecx*4 + 0x17c4], edx
mov eax, dword [eax + 0x17c0]
mov dword [eax + 8], edx
jmp 0x101d129b
mov eax, dword [edi + 0x11d4]
mov ecx, dword [esi + 0xa50]
mov eax, dword [eax + 4]
bts ecx, eax
mov dword [esi + 0xa50], ecx
mov eax, dword [edi + 0x107c]
cmp byte [eax + 0x21], 0
je 0x101d12db
mov eax, dword [ebx + 0x20c]
mov byte [ebp - 0x12d], 1
mov eax, dword [eax + 0x18c]
mov ecx, dword [eax + 8]
lea eax, [ecx + 8]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx + 0xc0]
test eax, eax
cmovne ecx, eax
mov dword [ecx + 0xa54], 1
mov eax, dword [edi + 0x11d4]
test byte [eax + 0x605], 4
je 0x101d13d3
mov eax, dword [ebx + 0x20c]
test byte [eax + 0x72], 2
jne 0x101d1307
test byte [ebx + 0xef], 1
je 0x101d13d3
mov esi, dword [edi]
mov ecx, dword [esi + 0xf93c]
mov eax, dword [esi + 0xf880]
and ecx, 0xf
mov edx, dword [esi + 0xf884]
shl ecx, 3
call fcn.10451430
mov ecx, dword [esi + 0xf944]
mov edx, eax
mov esi, dword [ebx + 0x20c]
mov eax, 1
shl eax, cl
dec eax
and edx, eax
mov esi, dword [esi + 0x18c]
movzx ecx, dl
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x134], ecx
mov ecx, dword [esi + 0x80]
mov edx, dword [edx + 0x10]
test dword [edx + 0x162c], 0x100000
jne 0x101d13b2
mov edx, dword [edx + 0xf7d4]
test edx, edx
je 0x101d13b2
cmp ecx, 0xffffffff
je 0x101d13b2
mov eax, 1
shl eax, cl
test dword [edx + 0x340], eax
je 0x101d13b2
test dword [esi + 0x58], 0x8000
je 0x101d13d3
mov eax, dword [esi + 0x48]
mov cl, 0x36
mov edx, dword [esi + 0x4c]
call fcn.10451430
test al, 1
je 0x101d13d3
mov eax, dword [ebp - 0x134]
test eax, 0xfffffffe
je 0x101d13d3
jmp 0x101d13b8
mov eax, dword [ebp - 0x134]
mov edx, dword [esi + 8]
mov ecx, dword [edi + 0x11d4]
push 0
push eax
lea eax, [edx + 8]
neg edx
sbb edx, edx
and edx, eax
push edx
call fcn.101d3420
mov eax, dword [edi]
xor esi, esi
cmp dword [eax + 0xf944], esi
jbe 0x101d146f
xor ebx, ebx
mov eax, dword [edi + 0x11d4]
mov ecx, edi
push dword [eax + 4]
call fcn.101d4c00
mov dword [ebp - 0x138], eax
test eax, eax
js 0x101d167a
mov ecx, dword [edi + 0x107c]
test ecx, ecx
je 0x101d145d
cmp byte [ecx + 0x21], 0
je 0x101d145d
mov edx, dword [edi + 0x1054]
test edx, edx
je 0x101d145d
mov eax, dword [edi + 0x11d4]
mov edx, dword [ebx + edx + 4]
mov dword [ebp - 0x138], edx
mov eax, dword [eax + 4]
cmp dword [ecx + eax*4 + 0x17c4], 0
lea edx, [ecx + eax*4]
jl 0x101d1635
push esi
push eax
push eax
push dword [ebp - 0x138]
call fcn.10289380
mov dword [ebp - 0x138], eax
test eax, eax
js 0x101d1646
mov eax, dword [edi]
inc esi
add ebx, 0x20
cmp esi, dword [eax + 0xf944]
jb 0x101d13e5
mov ebx, dword [ebp - 0x13c]
test ebx, ebx
je 0x101d1735
mov ecx, dword [ebp - 0x140]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x13c], eax
test eax, eax
jne 0x101d1498
mov eax, dword [ecx]
mov dword [ebp - 0x13c], eax
cmp dword [ebx + 0x10], 0
lea eax, [ebx + 8]
mov dword [ebp - 0x134], eax
jne 0x101d14b0
cmp dword [eax], 0
je 0x101d1726
mov esi, dword [ebp - 0x10c]
lea eax, [ebp - 0x12c]
push 0x120
push 0
push eax
call fcn.10425c00
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 0x10b4]
mov dword [ebp - 0xf8], eax
mov eax, 1
mov dword [ebp - 0xf4], ecx
mov ecx, dword [ebx + 0x18]
shl eax, cl
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x11cc]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x4e564441
mov dword [ebp - 0x128], 0x10002
mov dword [ebp - 0x124], 0x120
mov dword [ebp - 0x120], 0x4e564458
mov dword [ebp - 0x11c], 0x1000083
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0xfc], 1
mov dword [ebp - 0xf0], 6
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], 0x120
test edx, edx
je 0x101d16ba
mov eax, dword [edi]
test eax, eax
je 0x101d16ba
mov ecx, dword [eax + 0xbe28]
test ecx, ecx
je 0x101d16ba
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x101d16ba
cmp dword [eax + 0xd45c], 1
jne 0x101d16ac
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [edi + 0x1428]
push eax
call esi
mov ecx, dword [edi + 0x10b4]
lea eax, [ebp - 0x170]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov dword [ebp - 0x13c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x15c]
movlpd qword [ebp - 0x15c], xmm0
push eax
call esi
mov ecx, dword [ebp - 0x15c]
sub ecx, dword [edi + 0x1428]
mov eax, dword [ebp - 0x158]
sbb eax, dword [edi + 0x142c]
add dword [edi + 0x1420], ecx
adc dword [edi + 0x1424], eax
mov eax, dword [ebp - 0x13c]
jmp 0x101d16b6
mov dword [edx + 0x17c4], 0
mov esi, 0x88760868
jmp 0x101d164c
mov esi, dword [ebp - 0x138]
mov ecx, dword [edi + 0x13f0]
lea eax, [ebp - 0x12d]
push eax
lea eax, [ebp - 0x12e]
push eax
call fcn.101f18b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x13f0]
lea eax, [ebp - 0x12d]
push eax
lea eax, [ebp - 0x12e]
push eax
call fcn.101f18b0
mov eax, dword [ebp - 0x138]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x170]
push eax
push ecx
call edx
test eax, eax
js 0x101d1726
test byte [ebp - 0x94], 0x10
je 0x101d16ec
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x101d16d9
mov eax, dword [ebp - 0x134]
mov dword [ebx + 0x10], 0
mov dword [eax], ecx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x101d1712
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], 0
jmp 0x101d1712
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
test ecx, ecx
je 0x101d1701
mov dword [ebx + 0x10], ecx
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x101d1712
mov dword [ebx + 0x14], eax
mov dword [ebx + 0xc], 0
mov eax, dword [edi + 0x1018]
test eax, eax
je 0x101d1726
mov dword [eax + 0x484], 0xffffffff
push dword [ebp - 0x140]
mov ecx, edi
call fcn.101d1810
jmp 0x101d1742
push dword [ebp - 0x140]
mov ecx, edi
call fcn.101d0b60
mov ebx, eax
mov eax, dword [edi]
cmp dword [eax + 0x2d0], 0x2300
jb 0x101d17b5
mov eax, dword [edi + 0x13f0]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x101d17b5
mov eax, dword [eax]
mov edx, dword [eax + ecx*4 - 4]
test byte [edx + 0x1ae], 0x20
je 0x101d17b5
mov edx, dword [edx + 0x114]
mov esi, dword [edi + 0x13f4]
cmp edx, 4
jae 0x101d17b5
mov ecx, dword [esi + 8]
mov eax, ecx
mov edi, dword [ebp - 0x140]
and eax, 0xf
and ecx, 0xfffffff0
cmp byte [edi + 0x120], 0
jne 0x101d17a1
bts eax, edx
and eax, 0xf
jmp 0x101d17a4
btr eax, edx
mov edi, dword [ebp - 0x14c]
or eax, ecx
mov dword [esi + 8], eax
mov eax, dword [esi]
mov dword [esi + edx*4 + 0xc], eax
mov eax, dword [edi + 0x13f4]
inc dword [eax]
lea eax, [ebp - 0x12d]
mov ecx, dword [edi + 0x13f0]
push eax
lea eax, [ebp - 0x12e]
push eax
call fcn.101f18b0
mov eax, dword [ebp - 0x148]
push 0
push ecx
push 1
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e4d30
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4