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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x470cb8]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
and dword [esp + 0x1c], ebx
push 0x471474
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov esi, dword [0x47131c]
test esi, esi
je 0x4177da
cmp dword [esi], edi
jne 0x4177cf
cmp dword [esi + 4], ebx
je 0x4177d6
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4177c6
test esi, esi
jne 0x417815
push 0x18
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x417a7e
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 [0x47131c]
mov dword [esi + 0x14], eax
mov dword [0x47131c], 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 0x417a7e
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [esi + 8], eax
lea edx, [esp + 0x50]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0046171f
mov dword [esp + 0x20], eax
test eax, eax
je 0x417873
mov edx, 0x3d0000
cmp edi, edx
jb 0x417873
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x3d0000]
cmp ecx, edx
jbe 0x417873
cmp edi, ecx
ja 0x417873
sub edi, edx
jmp 0x417875
xor edi, edi
cmp dword [esi + 0x10], 1
mov dword [esp + 0x10], edi
jne 0x41796f
push 0
xor edx, edx
mov ecx, 0x4702b8
call fcn.003ee023
test eax, eax
jne 0x41796f
cmp dword [0x4702b8], ebx
jbe 0x417948
mov dl, byte [esp + 0x50]
inc eax
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 0x1d1727a6
mov dword [esp + 0x44], 0x4e2792c8
mov dword [esp + 0x48], 0x8b0f69bc
mov dword [esp + 0x4c], 0x9d548c45
test dl, dl
je 0x4178fe
lea edi, [esp + 0x50]
movsx eax, dl
push eax
call dword [sym.imp.msvcrt.dll_toupper]
add byte [esp + ebx + 0x44], 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 0x4178dc
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [esp + 0x4c]
push eax
call fcn.0040c27b
test eax, eax
jne 0x417944
push ebx
push ebx
push ebx
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventProviderEnabled]
push dword [esp + 0x2c]
movzx eax, al
push dword [esp + 0x2c]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x1c]
mov ebx, eax
call fcn.0040c23f
jmp 0x417948
mov ebx, dword [esp + 0x14]
mov eax, dword [0x4702d4]
xor edx, edx
mov ecx, dword [0x4702d0]
push eax
push ecx
mov dword [0x4702b8], edx
mov dword [0x4702d0], edx
mov dword [0x4702d4], edx
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
push 0
xor edx, edx
mov ecx, 0x4702e0
call fcn.003ee023
test eax, eax
jne 0x417a64
cmp dword [0x4702e0], 5
jbe 0x417a3c
push 0x4000
push eax
mov ecx, 0x4702e0
call fcn.003f36c8
test al, al
je 0x417a3c
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x50]
test ecx, ecx
jne 0x4179bb
mov edx, 0x3db738
mov eax, ecx
mov edi, dword [esp + 0x1c]
neg eax
mov dword [esp + 0x34], edx
mov edx, 0x3ddc13
mov dword [esp + 0x20], ebx
sbb eax, eax
mov dword [esp + 0x28], 0xa
and eax, dword [esp + 0x18]
neg ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
sbb ecx, ecx
and ecx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], edi
mov edi, dword [esi + 0x10]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 0xc]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], ecx
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x28], edi
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
push ecx
push ecx
call fcn.00461621
mov eax, dword [0x4702fc]
mov ecx, dword [0x4702f8]
and dword [0x4702e0], 0
and dword [0x4702f8], 0
and dword [0x4702fc], 0
push eax
push ecx
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
cmp dword [esp + 0x1c], 0
je 0x417a7a
test ebx, ebx
je 0x417a7a
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
and dword [esi + 0xc], 0
push 0x471474
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b590
mov esp, ebp
pop ebp
ret 0x10