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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x409104]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
and dword [ebp - 0x1d8], ebx
push 0x4095b0
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov esi, dword [0x4095b4]
test esi, esi
je 0x406ba8
cmp dword [esi], edi
jne 0x406b9d
cmp dword [esi + 4], ebx
je 0x406ba4
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x406b94
test esi, esi
jne 0x406be3
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 0x406f64
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 [0x4095b4]
mov dword [esi + 0x14], eax
mov dword [0x4095b4], 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 0x406f64
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [esi + 8], eax
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x1e8]
push eax
push ecx
call fcn.00406acd
mov dword [ebp - 0x1e4], eax
test eax, eax
je 0x406c4b
mov edx, 0x400000
cmp edi, edx
jb 0x406c4b
mov eax, dword [ebp - 0x1dc]
lea ecx, [eax + 0x400000]
cmp ecx, edx
jbe 0x406c4b
cmp edi, ecx
ja 0x406c4b
sub edi, edx
jmp 0x406c4d
xor edi, edi
mov dword [ebp - 0x1f8], edi
xor edi, edi
inc edi
cmp dword [esi + 0x10], edi
jne 0x406d68
mov ecx, 0x409008
call fcn.00401cdb
test eax, eax
jne 0x406d68
cmp dword [0x409008], ebx
jbe 0x406d40
mov dl, byte [ebp - 0x114]
mov ebx, edi
mov dword [ebp - 0x1d8], edi
xor edi, edi
mov dword [ebp - 0x1e0], ebx
mov dword [ebp - 0x1d4], 0x1d1727a6
mov dword [ebp - 0x1d0], 0x4e2792c8
mov dword [ebp - 0x1cc], 0x8b0f69bc
mov dword [ebp - 0x1c8], 0x9d548c45
test dl, dl
je 0x406cf0
lea ebx, [ebp - 0x114]
movsx eax, dl
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_toupper]
add byte [ebp + edi - 0x1d4], 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 0x406cc5
mov ebx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1f4]
xor edi, edi
push eax
push edi
push edi
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventRegister]
test eax, eax
jne 0x406d42
push edi
push edi
push edi
push dword [ebp - 0x1f0]
push dword [ebp - 0x1f4]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventProviderEnabled]
push dword [ebp - 0x1f0]
movzx eax, al
push dword [ebp - 0x1f4]
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 0x406d42
xor edi, edi
push dword [0x409024]
push dword [0x409020]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
mov dword [0x409020], edi
mov dword [0x409024], edi
mov dword [0x409008], edi
jmp 0x406d6a
xor edi, edi
mov ecx, 0x409030
call fcn.00401cdb
test eax, eax
jne 0x406f47
cmp dword [0x409030], 5
jbe 0x406f1c
push 0x4000
push edi
mov ecx, 0x409030
call fcn.00401dde
test al, al
je 0x406f1c
mov ecx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x194], eax
mov eax, ecx
neg eax
mov dword [ebp - 0x1e0], 0xa
push 4
sbb eax, eax
mov dword [ebp - 0x1a0], edi
and dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x184], eax
mov eax, ecx
neg eax
mov dword [ebp - 0x198], edi
pop edx
sbb eax, eax
mov dword [ebp - 0x19c], edx
and eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e4], eax
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x16c], edx
lea edx, [ebp - 0x114]
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x168], edi
test ecx, ecx
jne 0x406e59
mov edx, 0x4016e0
lea ecx, [ebp - 0x164]
call fcn.00401e13
mov eax, dword [esi + 0xc]
and dword [ebp - 0x120], 0
and dword [ebp - 0x118], 0
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x154], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x1f0]
push 4
pop ecx
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x128], edi
mov edi, dword [ebp - 0x1d8]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x1d8], edi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], ecx
lea eax, [ebp - 0x1c4]
mov edx, 0x401799
push eax
push 0xb
push ecx
push ecx
call fcn.00413f7a
jmp 0x406f22
mov edi, dword [ebp - 0x1d8]
push dword [0x40904c]
push dword [0x409048]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
xor eax, eax
mov dword [0x409048], eax
mov dword [0x40904c], eax
mov dword [0x409030], eax
jmp 0x406f4d
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x406f60
test ebx, ebx
je 0x406f60
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
and dword [esi + 0xc], 0
push 0x4095b0
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407250
leave
ret 0xc