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

Disassembly:
push 0x44
push 0x1004048
call fcn.01017f40
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x1c], al
call fcn.0100b23e
test eax, eax
je 0x1013676
push 0x101a468
call dword [sym.imp.ntdll.dll_RtlNumberGenericTableElementsAvl]
push eax
push 0x1004004
push 2
push 0xc47
push 0x4e
call fcn.0100b327
add esp, 0x14
mov esi, dword [ebp + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ebx
cmp dword [0x101a84c], 3
je 0x10137b3
mov edi, 0x101a468
push edi
call dword [sym.imp.ntdll.dll_RtlNumberGenericTableElementsAvl]
test eax, eax
jne 0x10136c5
call fcn.0100b23e
test eax, eax
je 0x10136ba
push 0x1003fd4
push 2
push 0xc54
push 0x4e
call fcn.0100b327
add esp, 0x10
xor eax, eax
inc eax
call fcn.01017f7b
ret 8
mov dword [0x1025824], 1
call fcn.01011f81
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push edi
call fcn.0100ceaf
mov byte [ebp - 0x1c], bl
cmp eax, ebx
je 0x10136ef
cmp dword [0x101ac38], ebx
je 0x10136d4
mov byte [ebp - 0x1c], 1
push ebx
push ebx
push ebx
push 1
push dword [0x101a27c]
push dword [0x101a278]
push 0x101a510
call fcn.01009601
cmp eax, ebx
jne 0x101373a
call fcn.01011ef2
call fcn.0100b23e
test eax, eax
je 0x1013736
push 0x1003f98
push 2
push 0xc71
push 0x4e
call fcn.0100b327
add esp, 0x10
xor eax, eax
jmp 0x10136bd
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1013772
cmp dword [ebp - 0x44], ebx
jne 0x1013764
cmp dword [ebp - 0x40], ebx
je 0x1013772
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1013794
mov dword [ebp - 0x24], ebx
call fcn.0100b23e
test eax, eax
je 0x1013794
push 0x1003f48
push 2
push 0xc82
push 0x4e
call fcn.0100b327
add esp, 0x10
mov dword [ebp - 4], ebx
mov eax, dword [0x101a84c]
cmp eax, 2
jne 0x10137ae
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013797
cmp eax, 3
jne 0x10137ca
push ebx
push ebx
push 0x10
push dword [0x10257dc]
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitThread]
add dword [ebp - 0x3c], 1
adc dword [ebp - 0x38], ebx
cmp dword [ebp - 0x24], ebx
je 0x10138f4
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10138f4
mov edi, dword [ebp - 0x34]
sub edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x30]
sbb esi, dword [ebp - 0x48]
push ebx
push 4
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.01017fa0
cmp esi, edx
jl 0x101389e
jg 0x1013818
cmp edi, eax
jbe 0x101389e
push dword [0x101a3fc]
push dword [0x101a3f8]
push ebx
push dword [ebp + 8]
call fcn.01017fa0
push dword [0x101a3ec]
push dword [0x101a3e8]
push edx
push eax
call fcn.01018000
mov dword [0x1025830], eax
mov ecx, dword [0x1025834]
add ecx, eax
mov dword [0x1025828], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
call fcn.01011f81
mov edi, dword [ebp - 0x34]
sub edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x30]
sbb esi, dword [ebp - 0x50]
push ebx
push 0x40
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.01017fa0
cmp esi, edx
jl 0x101389e
jg 0x1013888
cmp edi, eax
jbe 0x101389e
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
push 0x101a9ce
call fcn.01005f93
mov esi, dword [ebp + 0xc]
mov edi, 0x101a468
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push edi
call fcn.0100ceaf
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x1c], bl
cmp eax, ebx
je 0x10138cc
cmp dword [0x101ac38], ebx
je 0x10138a6
cmp eax, ebx
jne 0x101395b
call fcn.0100b23e
test eax, eax
je 0x1013aa1
push 0x1003f14
push 2
push 0xcd1
push 0x4e
call fcn.0100b327
add esp, 0x10
jmp 0x1013aa1
mov eax, dword [ebp - 0x3c]
and eax, 0x1f
or eax, ebx
je 0x10138a1
push dword [0x101a3fc]
push dword [0x101a3f8]
push ebx
push dword [ebp + 8]
call fcn.01017fa0
push dword [0x101a3ec]
push dword [0x101a3e8]
push edx
push eax
call fcn.01018000
mov dword [0x1025830], eax
mov ecx, dword [0x1025834]
add ecx, eax
mov dword [0x1025828], ecx
call fcn.01011f81
mov eax, dword [ebp - 0x3c]
and eax, 0x7f
or eax, ebx
je 0x10138a1
push 0x101a9ce
call fcn.01005f93
jmp 0x10138a1
push ebx
push ebx
call fcn.0100e397
test eax, eax
je 0x1013aeb
push dword [0x101a20c]
push dword [0x101a208]
push 1
push 0x101a510
call fcn.01008736
test eax, eax
je 0x1013a56
push dword [0x101a1f4]
push dword [0x101a1f0]
push ebx
push 0x40000
call fcn.01018000
push ebx
push 0x400
push edx
push eax
call fcn.01017fa0
mov ecx, dword [0x101a27c]
cmp ecx, edx
jl 0x10139ce
jg 0x10139c4
mov ecx, dword [0x101a278]
cmp ecx, eax
jbe 0x10139ce
call fcn.0100eb76
call fcn.01011f81
call fcn.0101234b
test eax, eax
je 0x10139fd
mov eax, dword [0x101a280]
add dword [0x101a3f8], eax
mov eax, dword [0x101a284]
adc dword [0x101a3fc], eax
push 0x101a4a0
push edi
call fcn.0100d07d
jmp 0x1013afd
call fcn.0100b23e
test eax, eax
je 0x1013a32
push dword [0x101a854]
mov eax, dword [0x101a420]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 4]
push dword [eax]
push 0x1003ed0
push 1
push 0xcf7
push 0x4e
call fcn.0100b327
add esp, 0x24
cmp dword [0x101a854], 0x4d5
jne 0x1013a4e
mov eax, dword [0x101a424]
mov dword [eax + 8], ebx
mov eax, dword [0x101a424]
mov dword [eax + 0xc], ebx
mov dword [ebp - 0x20], ebx
jmp 0x1013afd
call fcn.0100eb76
call fcn.0100b23e
test eax, eax
je 0x1013a8f
mov eax, dword [0x101a800]
mov dword [ebp - 0x2c], eax
push eax
push dword [0x101a27c]
push dword [0x101a278]
push 0x1003e70
push 2
push 0xd0e
push 0x4e
call fcn.0100b327
add esp, 0x1c
mov eax, dword [0x101a278]
mov dword [esi], eax
mov eax, dword [0x101a27c]
mov dword [esi + 4], eax
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push eax
call sub.msvcrt.dll__local_unwind2
pop ecx
pop ecx
call fcn.01011ef2
call fcn.0100b23e
test eax, eax
je 0x1013ae3
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
add ecx, 0xffffffff
mov eax, dword [ebp - 0x38]
adc eax, 0xffffffff
push eax
push ecx
push 0x1003e28
push 2
push 0xd31
push 0x4e
call fcn.0100b327
add esp, 0x1c
mov eax, dword [ebp - 0x20]
jmp 0x10136bd
mov dword [ebp - 0x20], ebx
mov eax, dword [0x101a278]
mov dword [esi], eax
mov eax, dword [0x101a27c]
mov dword [esi + 4], eax
or dword [ebp - 4], 0xffffffff
call fcn.01013b10
jmp 0x1013794