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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov edx, ecx
push ebx
push esi
push edi
cmp dword [edx + 0xbe2c], 0
mov dword [ebp - 4], edx
je 0x100fd158
mov edi, dword [edx + 0xf7d8]
test edi, edi
je 0x100fc85e
push 1
mov ecx, edi
mov dword [edi], 0x1122b204
call fcn.101f8d90
lea esi, [edi + 4]
mov ebx, 2
mov ecx, dword [esi]
test ecx, ecx
je 0x100fc781
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x100fc770
mov eax, dword [0x11d0c5b8]
mov ecx, dword fs:[0x2c]
mov dword [edi + 0x324], ebx
mov dword [edi + 0x328], ebx
mov dword [edi + 0x32c], ebx
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0xbe2c]
mov eax, dword [edi + 0x330]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fc822
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x1428]
push eax
call ebx
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
call ebx
mov ecx, dword [ebp - 0x30]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x2c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x100fc83d
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
push 0x40c
push edi
mov dword [edi], fcn.10024eb0
call fcn.1045088a
mov edx, dword [ebp - 4]
add esp, 8
mov dword [edx + 0xf7d8], 0
mov eax, dword [edx + 0xf7d4]
test eax, eax
je 0x100fc889
push 0x460
push eax
mov dword [eax], fcn.10024eb0
call fcn.1045088a
mov edx, dword [ebp - 4]
add esp, 8
mov dword [edx + 0xf7d4], 0
mov eax, dword [edx + 0xf658]
test eax, eax
je 0x100fc8ac
mov ecx, dword [edx + 0xbe2c]
push eax
call fcn.101d2ce0
mov edx, dword [ebp - 4]
mov dword [edx + 0xf658], 0
lea edi, [edx + 0xf604]
mov ebx, 0xe
nop word [eax + eax]
mov eax, dword [edi]
test eax, eax
je 0x100fc95c
mov esi, dword [edx + 0xbe2c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fc938
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x2c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x100fc953
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov edx, dword [ebp - 4]
mov dword [edi], 0
add edi, 4
sub ebx, 1
jne 0x100fc8c0
mov esi, dword [edx + 0xf64c]
test esi, esi
je 0x100fca14
mov eax, dword [edx + 0xf650]
test eax, eax
je 0x100fca14
mov dword [ebp - 0xc], eax
mov dword [edx + 0xf650], ebx
mov esi, dword [esi + 0xbe2c]
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fc9f6
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x1428]
push eax
call ebx
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
call ebx
mov ecx, dword [ebp - 0x30]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x2c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x100fca11
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov edx, dword [ebp - 4]
mov eax, dword [0x11d0c5b8]
xor ebx, ebx
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x24], eax
mov eax, dword [eax + 0x10]
cmp dword [eax + 0xf944], ebx
jbe 0x100fcb83
lea edi, [edx + 0xf680]
mov esi, dword [edx + 0xbe2c]
mov eax, dword [edi - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fcab1
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x2c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x100fcacc
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov esi, dword [ebp - 4]
mov eax, dword [edi]
mov dword [edi - 0x20], 0
mov dword [ebp - 0xc], eax
mov esi, dword [esi + 0xbe2c]
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fcb46
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x1c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x100fcb61
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov eax, dword [ebp - 0x24]
inc ebx
mov edx, dword [ebp - 4]
mov dword [edi], 0
add edi, 4
mov eax, dword [eax + 0x10]
cmp ebx, dword [eax + 0xf944]
jb 0x100fca40
mov ebx, dword [ebp - 4]
xor edi, edi
mov ecx, dword [ebx + 0xf944]
lea eax, [ecx - 1]
test eax, eax
je 0x100fcbe3
lea esi, [ebx + 0xf6a0]
nop dword [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x100fcbd2
xor ecx, ecx
cmp dword [esi + 4], ecx
jbe 0x100fcbc3
nop dword [eax]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x100fcbbd
mov byte [edx + 8], 0
mov eax, dword [esi]
inc ecx
cmp ecx, dword [esi + 4]
jb 0x100fcbb0
push eax
call fcn.10450877
add esp, 4
mov dword [esi], 0
mov ecx, dword [ebx + 0xf944]
inc edi
add esi, 0x1c
lea eax, [ecx - 1]
cmp edi, eax
jb 0x100fcba0
test ecx, ecx
je 0x100fcfd3
mov edx, 1
lea eax, [ebx + 0xf5a8]
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
nop
mov dword [ebp - 0x2c], edx
lea eax, [edi + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], eax
cmp edx, ecx
jae 0x100fcf0a
lea eax, [edx + edi]
lea eax, [eax + eax*2]
lea eax, [eax + 0x3caa]
lea esi, [ebx + eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
lea edi, [eax*2 + 0x3ca7]
add edi, eax
lea edi, [ebx + edi*4]
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [esi - 0x304]
test ebx, ebx
je 0x100fccef
mov eax, dword [esi - 0x300]
test eax, eax
je 0x100fccef
mov dword [ebp - 0x10], eax
mov dword [esi - 0x300], 0
mov ebx, dword [ebx + 0xbe2c]
mov eax, dword [ebx]
cmp dword [eax + 0xd45c], 1
jne 0x100fccd4
lea eax, [ebx + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0x34]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
jmp 0x100fccef
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov ebx, dword [edi - 0x304]
test ebx, ebx
je 0x100fcd9e
mov eax, dword [edi - 0x300]
test eax, eax
je 0x100fcd9e
mov dword [ebp - 0x10], eax
mov dword [edi - 0x300], 0
mov ebx, dword [ebx + 0xbe2c]
mov eax, dword [ebx]
cmp dword [eax + 0xd45c], 1
jne 0x100fcd83
lea eax, [ebx + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0x34]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
jmp 0x100fcd9e
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov ebx, dword [esi - 4]
test ebx, ebx
je 0x100fce42
mov eax, dword [esi]
test eax, eax
je 0x100fce42
mov dword [ebp - 0x10], eax
mov dword [esi], 0
mov ebx, dword [ebx + 0xbe2c]
mov eax, dword [ebx]
cmp dword [eax + 0xd45c], 1
jne 0x100fce27
lea eax, [ebx + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0x34]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
jmp 0x100fce42
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov ebx, dword [edi - 4]
test ebx, ebx
je 0x100fcee6
mov eax, dword [edi]
test eax, eax
je 0x100fcee6
mov dword [ebp - 0x10], eax
mov dword [edi], 0
mov ebx, dword [ebx + 0xbe2c]
mov eax, dword [ebx]
cmp dword [eax + 0xd45c], 1
jne 0x100fcecb
lea eax, [ebx + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0x34]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
jmp 0x100fcee6
mov eax, dword [ebx + 0x10d4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov edx, dword [ebp - 0x14]
add esi, 0xc
mov ebx, dword [ebp - 4]
inc edx
add edi, 0x60
mov dword [ebp - 0x14], edx
cmp edx, dword [ebx + 0xf944]
jb 0x100fcc40
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
jmp 0x100fcf0c
mov edi, eax
mov ecx, dword [ebp - 0xc]
mov esi, dword [ecx - 4]
test esi, esi
je 0x100fcfba
mov eax, dword [ecx]
test eax, eax
je 0x100fcfba
mov dword [ebp - 0x1c], eax
mov dword [ecx], 0
mov esi, dword [esi + 0xbe2c]
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fcf99
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x1428]
push eax
call ebx
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0x1c]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x38], xmm0
call ebx
mov ecx, dword [ebp - 0x38]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x34]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
mov ebx, dword [ebp - 4]
adc dword [esi + 0x1424], eax
jmp 0x100fcfb4
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0x1c]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add ecx, 0xc
inc edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0xf944]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x2c], ecx
jb 0x100fcc00
mov ecx, dword [ebx + 0xf764]
test ecx, ecx
je 0x100fd0c8
xor edx, edx
mov dword [ebp - 0xc], edx
nop word [eax + eax]
lea eax, [ecx + edx]
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], eax
nop dword [eax]
mov ebx, eax
mov eax, 2
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
mov edi, dword [ebx]
cmp edi, 0xffffffff
je 0x100fd076
mov eax, dword [ebp - 0x24]
push 0x11d0c72c
mov esi, dword [eax + 0x10]
mov esi, dword [esi + 0x7a70]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, dword [esi + 4]
jae 0x100fd068
mov eax, dword [esi]
lea edx, [edi + edi*2]
cmp byte [eax + edx*8], 0
je 0x100fd068
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4], edi
mov eax, dword [esi]
inc dword [esi + 8]
mov byte [eax + edx*8], 0
mov eax, dword [esi]
mov ecx, dword [eax + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x100fd068
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0xffffffff
push 0x11d0c72c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
add ebx, 4
sub eax, 1
mov dword [ebp - 0x1c], eax
jne 0x100fd010
mov eax, dword [ebp - 0x14]
add eax, 0x18
sub dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
jne 0x100fd000
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add edx, 0xc8
mov dword [ebp - 0xc], edx
mov ecx, dword [ebx + 0xf764]
cmp edx, 0x3200
jb 0x100fcff0
push ecx
call fcn.10450877
add esp, 4
mov dword [ebx + 0xf764], 0
lea ecx, [ebx + 0xec34]
call fcn.10102340
lea ecx, [ebx + 0xf768]
call fcn.10108920
mov eax, dword [ebx + 0xf7bc]
test eax, eax
je 0x100fd11b
test dword [ebx + 0xf7c4], 0x40000000
je 0x100fd0fd
push eax
call fcn.10450877
add esp, 4
and dword [ebx + 0xf7c4], 0xe0000000
and dword [ebx + 0xf7c0], 0xe0000000
mov dword [ebx + 0xf7bc], 0
mov eax, dword [ebx + 0xf7c8]
test eax, eax
je 0x100fd158
test dword [ebx + 0xf7d0], 0x40000000
je 0x100fd13a
push eax
call fcn.10450877
add esp, 4
and dword [ebx + 0xf7d0], 0xe0000000
and dword [ebx + 0xf7cc], 0xe0000000
mov dword [ebx + 0xf7c8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret