Function at 0x1002dcde
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x100a6b34]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push 0x100a7314
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x138], ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov esi, dword [0x100a7238]
test esi, esi
je 0x1002dd2f
cmp dword [esi], edi
jne 0x1002dd24
cmp dword [esi + 4], ebx
je 0x1002dd2b
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x1002dd1b
test esi, esi
jne 0x1002dd6a
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1002e089
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea61
mov dword [esi + 0xc], ebx
mov dword [esi + 8], eax
mov eax, dword [0x100a7238]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [0x100a7238], esi
inc dword [esi + 0xc]
inc dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 8]
cmp eax, 0xea60
jbe 0x1002e089
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x13c]
push eax
push ecx
call fcn.1002dc36
mov ebx, eax
mov dword [ebp - 0x128], ebx
test ebx, ebx
je 0x1002ddd4
mov ecx, 0x10000000
cmp edi, ecx
jb 0x1002ddd4
mov eax, dword [ebp - 0x134]
lea eax, [eax + 0x10000000]
cmp eax, ecx
jbe 0x1002ddd4
cmp edi, eax
ja 0x1002ddd4
sub edi, ecx
jmp 0x1002ddd6
xor edi, edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x130], edi
jne 0x1002ddef
test ebx, ebx
je 0x1002ddef
lea eax, [ebp - 0x114]
mov dword [ebp + 8], eax
cmp dword [esi + 0x10], 1
jne 0x1002df09
push ecx
mov ecx, 0x100a5070
call fcn.1002ace7
test eax, eax
jne 0x1002df09
cmp dword [0x100a5070], eax
jbe 0x1002dee2
mov dl, byte [ebp - 0x114]
inc eax
xor ebx, ebx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x124], 0x1d1727a6
mov dword [ebp - 0x120], 0x4e2792c8
mov dword [ebp - 0x11c], 0x8b0f69bc
mov dword [ebp - 0x118], 0x9d548c45
test dl, dl
je 0x1002de8a
lea edi, [ebp - 0x114]
movsx eax, dl
push eax
call dword [sym.imp.msvcrt.dll_toupper]
add byte [ebp + ebx - 0x124], al
inc edi
lea eax, [ebx + 1]
cmp eax, 0x10
pop ecx
mov cl, byte [edi]
sbb ebx, ebx
and ebx, eax
mov dl, cl
test cl, cl
jne 0x1002de5f
mov edi, dword [ebp - 0x130]
lea eax, [ebp - 0x144]
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x1002dedc
push ebx
push ebx
push ebx
push dword [ebp - 0x140]
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_EventProviderEnabled]
push dword [ebp - 0x140]
movzx eax, al
push dword [ebp - 0x144]
neg eax
sbb eax, eax
not eax
and dword [ebp - 0x12c], eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
mov ebx, dword [ebp - 0x128]
mov eax, dword [0x100a508c]
xor edx, edx
mov ecx, dword [0x100a5088]
push eax
push ecx
mov dword [0x100a5070], edx
mov dword [0x100a5088], edx
mov dword [0x100a508c], edx
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
push ecx
mov ecx, 0x100a5098
call fcn.1002ace7
test eax, eax
jne 0x1002e068
cmp dword [0x100a5098], 5
jbe 0x1002e040
push 0x4000
push eax
mov ecx, 0x100a5098
call fcn.1002ae6b
test al, al
je 0x1002e040
test ebx, ebx
je 0x1002df53
lea eax, [ebp - 0x114]
mov dword [ebp - 0x128], eax
jmp 0x1002df5d
mov dword [ebp - 0x128], 0x1000744c
mov eax, dword [ebp - 0x138]
mov ecx, ebx
neg ecx
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x160], edi
sbb ecx, ecx
mov dword [ebp - 0x140], 0xa
and ecx, dword [ebp - 0x134]
neg ebx
mov dword [ebp - 0x134], edx
mov edx, 0x100090a1
sbb ebx, ebx
mov dword [ebp - 0x158], ecx
and ebx, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x150], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x134]
mov dword [ebp - 0x15c], ebx
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x140]
push eax
push ecx
push ecx
call fcn.1002ab70
mov eax, dword [0x100a50b4]
mov ecx, dword [0x100a50b0]
and dword [0x100a5098], 0
and dword [0x100a50b0], 0
and dword [0x100a50b4], 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
cmp dword [ebp - 0x138], 0
je 0x1002e085
cmp dword [ebp - 0x12c], 0
je 0x1002e085
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [esi + 0xc], 0
push 0x100a7314
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bcc0
leave
ret 0xc