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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push 0x100a9384
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x134], ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov esi, dword [0x100a92a8]
test esi, esi
je 0x10030299
cmp dword [esi], edi
jne 0x1003028e
cmp dword [esi + 4], ebx
je 0x10030295
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x10030285
test esi, esi
jne 0x100302d4
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100305f3
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 [0x100a92a8]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [0x100a92a8], 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 0x100305f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
push eax
push ecx
call fcn.100301a1
mov ebx, eax
mov dword [ebp - 0x124], ebx
test ebx, ebx
je 0x1003033e
mov ecx, 0x10000000
cmp edi, ecx
jb 0x1003033e
mov eax, dword [ebp - 0x130]
lea eax, [eax + 0x10000000]
cmp eax, ecx
jbe 0x1003033e
cmp edi, eax
ja 0x1003033e
sub edi, ecx
jmp 0x10030340
xor edi, edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x12c], edi
jne 0x10030359
test ebx, ebx
je 0x10030359
lea eax, [ebp - 0x110]
mov dword [ebp + 8], eax
cmp dword [esi + 0x10], 1
jne 0x10030473
push ecx
mov ecx, 0x100a7070
call fcn.1002b777
test eax, eax
jne 0x10030473
cmp dword [0x100a7070], eax
jbe 0x1003044c
mov dl, byte [ebp - 0x110]
inc eax
xor ebx, ebx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], 0x1d1727a6
mov dword [ebp - 0x11c], 0x4e2792c8
mov dword [ebp - 0x118], 0x8b0f69bc
mov dword [ebp - 0x114], 0x9d548c45
test dl, dl
je 0x100303f4
lea edi, [ebp - 0x110]
movsx eax, dl
push eax
call dword [sym.imp.msvcrt.dll_toupper]
add byte [ebp + ebx - 0x120], 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 0x100303c9
mov edi, dword [ebp - 0x12c]
lea eax, [ebp - 0x140]
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x10030446
push ebx
push ebx
push ebx
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_EventProviderEnabled]
push dword [ebp - 0x13c]
movzx eax, al
push dword [ebp - 0x140]
neg eax
sbb eax, eax
not eax
and dword [ebp - 0x128], eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
mov ebx, dword [ebp - 0x124]
mov eax, dword [0x100a708c]
xor edx, edx
mov ecx, dword [0x100a7088]
push eax
push ecx
mov dword [0x100a7070], edx
mov dword [0x100a7088], edx
mov dword [0x100a708c], edx
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
push ecx
mov ecx, 0x100a7098
call fcn.1002b777
test eax, eax
jne 0x100305d2
cmp dword [0x100a7098], 5
jbe 0x100305aa
push 0x4000
push eax
mov ecx, 0x100a7098
call fcn.1002b8fb
test al, al
je 0x100305aa
test ebx, ebx
je 0x100304bd
lea eax, [ebp - 0x110]
mov dword [ebp - 0x124], eax
jmp 0x100304c7
mov dword [ebp - 0x124], 0x100092fc
mov eax, dword [ebp - 0x134]
mov ecx, ebx
neg ecx
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x15c], edi
sbb ecx, ecx
mov dword [ebp - 0x13c], 0xa
and ecx, dword [ebp - 0x130]
neg ebx
mov dword [ebp - 0x130], edx
mov edx, 0x1000afe1
sbb ebx, ebx
mov dword [ebp - 0x154], ecx
and ebx, dword [ebp - 0x138]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x158], ebx
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x13c]
push eax
push ecx
push ecx
call fcn.1002b600
mov eax, dword [0x100a70b4]
mov ecx, dword [0x100a70b0]
and dword [0x100a7098], 0
and dword [0x100a70b0], 0
and dword [0x100a70b4], 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
cmp dword [ebp - 0x134], 0
je 0x100305ef
cmp dword [ebp - 0x128], 0
je 0x100305ef
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [esi + 0xc], 0
push 0x100a9384
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c750
leave
ret 0x10