Function at 0x1016b8d5
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x101dc354]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
and dword [esp + 0xc], ebx
push 0x101dee44
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov esi, dword [0x101dee48]
test esi, esi
je 0x1016b925
cmp dword [esi], edi
jne 0x1016b91a
cmp dword [esi + 4], ebx
je 0x1016b921
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x1016b911
test esi, esi
jne 0x1016b960
push 0x18
push 0x40
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1016bca7
and dword [esi + 4], ebx
mov dword [esi], edi
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
and dword [esi + 0xc], ebx
sub eax, 0xea61
and dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov eax, dword [0x101dee48]
mov dword [esi + 0x14], eax
mov dword [0x101dee48], esi
inc dword [esi + 0xc]
inc dword [esi + 0x10]
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [esi + 8]
cmp eax, 0xea60
jbe 0x1016bca7
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [esi + 8], eax
lea edx, [esp + 0xf0]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.1016b833
mov dword [esp + 0x18], eax
test eax, eax
je 0x1016b9c1
mov edx, 0x10000000
cmp edi, edx
jb 0x1016b9c1
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x10000000]
cmp ecx, edx
jbe 0x1016b9c1
cmp edi, ecx
ja 0x1016b9c1
sub edi, edx
jmp 0x1016b9c3
xor edi, edi
mov dword [esp + 0x28], edi
xor edi, edi
inc edi
cmp dword [esi + 0x10], edi
jne 0x1016bac5
push ecx
mov ecx, 0x101dc280
call fcn.100b6dee
test eax, eax
jne 0x1016bac5
push ecx
push ecx
call fcn.1016bcc9
test al, al
je 0x1016ba9d
mov dl, byte [esp + 0xf0]
mov ebx, edi
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 0x1d1727a6
mov dword [esp + 0x34], 0x4e2792c8
mov dword [esp + 0x38], 0x8b0f69bc
mov dword [esp + 0x3c], 0x9d548c45
test dl, dl
je 0x1016ba59
lea ebx, [esp + 0xf0]
movsx eax, dl
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_toupper]
add byte [esp + edi + 0x34], al
inc ebx
lea eax, [edi + 1]
cmp eax, 0x10
pop ecx
mov cl, byte [ebx]
sbb edi, edi
and edi, eax
mov dl, cl
test cl, cl
jne 0x1016ba33
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
xor edi, edi
push eax
push edi
push edi
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventRegister]
test eax, eax
jne 0x1016ba9f
push edi
push edi
push edi
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventProviderEnabled]
push dword [esp + 0x24]
movzx eax, al
push dword [esp + 0x24]
neg eax
sbb eax, eax
not eax
and ebx, eax
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
jmp 0x1016ba9f
xor edi, edi
push dword [0x101dc29c]
push dword [0x101dc298]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
mov dword [0x101dc298], edi
mov dword [0x101dc29c], edi
mov dword [0x101dc280], edi
jmp 0x1016bac7
xor edi, edi
push ecx
mov ecx, 0x101dc2a8
call fcn.100b6dee
test eax, eax
jne 0x1016bc8c
cmp dword [0x101dc2a8], 5
jbe 0x1016bc63
push 0x4000
push edi
mov ecx, 0x101dc2a8
call fcn.10111058
test al, al
je 0x1016bc63
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x70], eax
mov eax, ecx
neg eax
mov dword [esp + 0x14], 0xa
push 4
sbb eax, eax
mov dword [esp + 0x68], edi
and dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x84], eax
mov eax, ecx
neg eax
mov dword [esp + 0x70], edi
pop edx
sbb eax, eax
mov dword [esp + 0x68], edx
and eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], edx
lea edx, [esp + 0xf0]
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x9c], edi
test ecx, ecx
jne 0x1016bb9e
mov edx, 0x1006f15c
lea ecx, [esp + 0xa0]
call fcn.10110fe5
mov eax, dword [esi + 0xc]
and dword [esp + 0xe4], 0
and dword [esp + 0xec], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x20]
push 4
pop edx
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0xdc], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe8], edx
lea eax, [esp + 0x40]
mov edx, 0x10028167
push eax
push 0xb
push ecx
push ecx
mov ecx, 0x101dc2a8
call fcn.10111095
jmp 0x1016bc67
mov edi, dword [esp + 0xc]
push dword [0x101dc2c4]
push dword [0x101dc2c0]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
xor eax, eax
mov dword [0x101dc2c0], eax
mov dword [0x101dc2c4], eax
mov dword [0x101dc2a8], eax
jmp 0x1016bc90
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1016bca3
test ebx, ebx
je 0x1016bca3
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
and dword [esi + 0xc], 0
push 0x101dee44
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b88c0
mov esp, ebp
pop ebp
ret 0xc