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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x101ac60]
mov ecx, dword [0x101a20c]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [0x101a208]
xor esi, esi
inc esi
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x80], 1
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x25], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
call fcn.0100b23e
test eax, eax
je 0x1013bf9
push 0x101a4a0
call dword [sym.imp.ntdll.dll_RtlNumberGenericTableElementsAvl]
push eax
push 0x1004338
push 2
push 0xe1c
push 0x4e
call fcn.0100b327
add esp, 0x14
mov eax, dword [0x1025834]
mov dword [0x1025824], 2
mov dword [ebp - 0x84], eax
call fcn.01011f81
push 8
xor eax, eax
cmp dword [0x101a84c], 3
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
jne 0x1013c3d
push ebx
push ebx
push 0x10
push dword [0x10257dc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
jmp 0x10142fa
cmp dword [ebp + 0x14], ebx
je 0x1013d23
mov ecx, dword [0x101a2c0]
mov edx, dword [0x101a2bc]
mov eax, dword [0x101a2b8]
mov esi, dword [0x101a2c4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [0x101a40c]
cmp edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], esi
jg 0x1013ca7
mov edi, dword [0x101a408]
jl 0x1013c7f
cmp eax, edi
jae 0x1013ca7
mov edx, dword [0x101a404]
cmp esi, edx
jl 0x1013ca7
mov eax, dword [0x101a400]
jg 0x1013c95
cmp dword [ebp - 0x38], eax
jbe 0x1013ca7
cmp dword [ebp - 0x2c], edx
jg 0x1013cf8
jl 0x1013ca1
cmp dword [ebp - 0x30], eax
jae 0x1013cf8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov edi, dword [ebp - 0x34]
push 1
push 1
push edi
push dword [ebp - 0x38]
mov esi, 0x101a510
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push esi
call fcn.01009838
cmp eax, ebx
jne 0x1013d58
call fcn.01011ef2
call fcn.0100b23e
test eax, eax
je 0x1013cf1
push 0x10042f8
push 2
push 0xe50
push 0x4e
call fcn.0100b327
add esp, 0x10
xor eax, eax
jmp 0x10142fa
cmp dword [ebp - 0x34], ecx
jg 0x1013d1b
jl 0x1013d04
cmp dword [ebp - 0x38], edi
ja 0x1013d1b
call fcn.0100b23e
test eax, eax
je 0x1013cf1
push 0x10042a8
push 2
push 0xe38
jmp 0x1013ce7
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ecx
jmp 0x1013ca7
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01012070
test eax, eax
jne 0x1013ca7
call fcn.0100b23e
test eax, eax
je 0x1013cf1
push 0x1004260
push 2
push 0xe44
jmp 0x1013ce7
mov eax, dword [ebp - 0x38]
push esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edi
call fcn.01008340
mov esi, eax
call fcn.0100b23e
test eax, eax
je 0x1013d8e
push dword [esi + 0xc]
push dword [esi + 8]
push 0x1004240
push 2
push 0xe57
push 0x4e
call fcn.0100b327
add esp, 0x18
mov eax, dword [ebp - 0x38]
or dword [ebp - 0x1c], 0xffffffff
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1013dd7
cmp dword [ebp - 0x64], ebx
jne 0x1013dc9
cmp dword [ebp - 0x60], ebx
je 0x1013dd7
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1013e06
call fcn.0100b23e
test eax, eax
je 0x1013df6
push 0x1003f48
push 2
push 0xe65
push 0x4e
call fcn.0100b327
add esp, 0x10
mov dword [ebp - 0x7c], ebx
jmp 0x1013e06
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x101a84c], 2
je 0x1013dfb
cmp dword [0x101a84c], 3
je 0x10142b5
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], ebx
cmp dword [ebp - 0x7c], ebx
je 0x1013f01
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1013f01
cmp dword [ebp - 0x44], ebx
ja 0x1013e4d
cmp dword [ebp - 0x48], 1
jbe 0x1013f69
mov edi, dword [ebp - 0x50]
sub edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x4c]
sbb esi, dword [ebp - 0x68]
push ebx
push 4
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.01017fa0
cmp esi, edx
jl 0x1013f69
jg 0x1013e79
cmp edi, eax
jbe 0x1013f69
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x2c]
sbb ecx, dword [ebp - 0x58]
push ebx
push dword [ebp + 0x18]
push ecx
push eax
call fcn.01017fa0
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
sbb esi, dword [ebp - 0x2c]
push esi
push ecx
push edx
push eax
call fcn.01018000
add eax, dword [ebp - 0x84]
mov ecx, dword [0x1025830]
add ecx, eax
mov dword [0x1025834], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x4c]
mov dword [0x1025828], ecx
mov dword [ebp - 0x68], eax
call fcn.01011f81
mov edi, dword [ebp - 0x50]
sub edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x4c]
sbb esi, dword [ebp - 0x70]
push ebx
push 0x40
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.01017fa0
cmp esi, edx
jl 0x1013f69
jg 0x1013ef3
cmp edi, eax
jbe 0x1013f69
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], eax
jmp 0x1013f5f
mov eax, dword [ebp - 0x48]
and eax, 0x1f
or eax, ebx
je 0x1013f69
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x2c]
sbb ecx, dword [ebp - 0x58]
push ebx
push dword [ebp + 0x18]
push ecx
push eax
call fcn.01017fa0
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
sbb esi, dword [ebp - 0x2c]
push esi
push ecx
push edx
push eax
call fcn.01018000
add eax, dword [ebp - 0x84]
mov ecx, dword [0x1025830]
add ecx, eax
mov dword [0x1025834], eax
mov dword [0x1025828], ecx
call fcn.01011f81
mov eax, dword [ebp - 0x48]
and eax, 0x7f
or eax, ebx
je 0x1013f69
push 0x101a9ce
call fcn.01005f93
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp - 0x80]
push 0x101a4a0
call fcn.0100ceaf
mov ecx, dword [0x101a268]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x101a26c]
cmp eax, dword [ebp - 0x2c]
mov byte [ebp - 0x80], bl
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
jl 0x10142c5
jg 0x1013fb1
cmp ecx, dword [ebp - 0x30]
jb 0x10142c5
cmp dword [ebp - 0x3c], ebx
je 0x10142c5
mov edx, dword [0x101a420]
test byte [edx + 0x1c], 0x10
je 0x1013ff2
cmp eax, dword [0x101a404]
jl 0x1013ff2
jg 0x1013fd8
cmp ecx, dword [0x101a400]
jbe 0x1013ff2
cmp eax, dword [0x101a40c]
jl 0x10142aa
jg 0x1013ff2
cmp ecx, dword [0x101a408]
jb 0x10142aa
push ebx
push ebx
call fcn.0100e397
test eax, eax
je 0x1014240
push 0x101a510
mov dword [ebp - 0x78], 1
call fcn.01008816
test eax, eax
je 0x10141d6
mov eax, dword [0x101a424]
push 6
pop ecx
push eax
mov esi, eax
lea edi, [ebp - 0xa4]
push 0x101a510
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ntdll.dll_RtlDeleteElementGenericTableAvl]
cmp al, bl
mov byte [ebp - 0x25], al
jne 0x101405e
call fcn.0100b23e
test eax, eax
je 0x101405e
push 0x1001c58
push 1
push 0xec7
push 0x4e
call fcn.0100b327
add esp, 0x10
push 8
lea eax, [ebp - 0xa4]
mov dword [0x101a424], eax
mov eax, dword [0x101a420]
pop ecx
push eax
mov esi, eax
lea edi, [ebp - 0x24]
push 0x101a4a0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ntdll.dll_RtlDeleteElementGenericTableAvl]
cmp al, bl
mov byte [ebp - 0x25], al
jne 0x10140aa
call fcn.0100b23e
test eax, eax
je 0x10140aa
push 0x1004210
push 1
push 0xed0
push 0x4e
call fcn.0100b327
add esp, 0x10
lea eax, [ebp - 0x24]
mov dword [0x101a420], eax
call fcn.0101234b
test eax, eax
je 0x10140fc
mov eax, dword [0x101a424]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [0x101a278]
add dword [eax], ecx
mov ecx, dword [0x101a27c]
mov eax, dword [0x101a424]
adc dword [eax + 4], ecx
mov eax, dword [0x101a424]
mov ecx, dword [0x101a278]
add eax, 8
sub dword [eax], ecx
mov ecx, dword [0x101a27c]
sbb dword [eax + 4], ecx
jmp 0x101416b
call fcn.0100b23e
test eax, eax
je 0x1014141
push dword [0x101a854]
mov eax, dword [0x101a424]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [0x101a420]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 4]
push dword [eax]
push 0x1004198
push 1
push 0xedd
push 0x4e
call fcn.0100b327
add esp, 0x34
cmp dword [0x101a854], 0x4d5
jne 0x1014162
mov eax, dword [0x101a424]
mov dword [eax + 8], ebx
mov eax, dword [0x101a424]
mov dword [eax + 0xc], ebx
mov dword [ebp - 0x78], ebx
jmp 0x101416b
cmp dword [ebp + 0x14], ebx
jne 0x1014245
mov eax, dword [0x101a424]
cmp dword [eax + 0xc], ebx
jl 0x1014196
jg 0x101417c
cmp dword [eax + 8], ebx
jbe 0x1014196
lea ecx, [ebp - 0x25]
push ecx
push 0x18
push eax
push 0x101a510
call dword [sym.imp.ntdll.dll_RtlInsertElementGenericTableAvl]
test eax, eax
je 0x1014229
lea eax, [ebp - 0x25]
push eax
push 0x20
push dword [0x101a420]
push 0x101a4a0
call dword [sym.imp.ntdll.dll_RtlInsertElementGenericTableAvl]
test eax, eax
jne 0x101421e
call fcn.0100b23e
test eax, eax
je 0x1014245
push 0x1004140
push 2
push 0xf0b
push 0x4e
call fcn.0100b327
add esp, 0x10
jmp 0x1014245
call fcn.0100b23e
test eax, eax
je 0x1014210
push dword [ebp - 0x54]
push dword [0x101a27c]
push dword [0x101a278]
push dword [0x101a26c]
push dword [0x101a268]
push 0x10040e8
push 2
push 0xf14
push 0x4e
call fcn.0100b327
add esp, 0x24
cmp dword [ebp + 0x14], ebx
jne 0x1014245
inc dword [ebp - 0x54]
cmp dword [ebp - 0x54], 0xa
ja 0x1014245
cmp dword [ebp - 0x78], ebx
je 0x1014001
jmp 0x101424b
call fcn.0100b23e
test eax, eax
je 0x1014245
push 0x1004090
push 2
push 0xef9
jmp 0x10141ca
cmp dword [ebp + 0x14], ebx
je 0x101424b
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [0x101a9b4]
cmp eax, 0xffffffff
je 0x1014263
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x101a9b4], 0xffffffff
cmp dword [0x101a9b8], ebx
je 0x10142a5
push dword [0x101a9b8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x101426b
push dword [0x101a9b8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x101429f
push 0xf2a
push 0x100372c
push 0x10036c8
call fcn.01007320
mov dword [0x101a9b8], ebx
call fcn.01007a76
cmp dword [ebp - 0x3c], ebx
jne 0x1013e06
jmp 0x10142c5
push ebx
push ebx
push 0x10
push dword [0x10257dc]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.01011ef2
call fcn.0100b23e
test eax, eax
je 0x10142f7
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
add eax, 0xffffffff
adc ecx, 0xffffffff
push ecx
push eax
push 0x1004054
push 2
push 0xf35
push 0x4e
call fcn.0100b327
add esp, 0x18
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01017c5b
leave
ret 0x14