Function at 0xc59998
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 [0xc940a0]
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 0xc97bb4
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov esi, dword [0xc97bb8]
test esi, esi
je 0xc599e8
cmp dword [esi], edi
jne 0xc599dd
cmp dword [esi + 4], ebx
je 0xc599e4
mov esi, dword [esi + 0x14]
test esi, esi
jne 0xc599d4
test esi, esi
jne 0xc59a23
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 0xc59c86
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 [0xc97bb8]
mov dword [esi + 0x14], eax
mov dword [0xc97bb8], 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 0xc59c86
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.00c598f6
mov dword [esp + 0x20], eax
test eax, eax
je 0xc59a81
mov edx, 0x9d0000
cmp edi, edx
jb 0xc59a81
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x9d0000]
cmp ecx, edx
jbe 0xc59a81
cmp edi, ecx
ja 0xc59a81
sub edi, edx
jmp 0xc59a83
xor edi, edi
cmp dword [esi + 0x10], 1
mov dword [esp + 0x10], edi
jne 0xc59b7a
push ecx
mov ecx, 0xc93f28
call fcn.00a489df
test eax, eax
jne 0xc59b7a
cmp dword [0xc93f28], ebx
jbe 0xc59b53
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 0xc59b09
lea edi, [esp + 0x50]
movsx eax, dl
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_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 0xc59ae7
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [esp + 0x4c]
push eax
call fcn.00ab536e
test eax, eax
jne 0xc59b4f
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.00ab532c
jmp 0xc59b53
mov ebx, dword [esp + 0x14]
mov eax, dword [0xc93f44]
xor edx, edx
mov ecx, dword [0xc93f40]
push eax
push ecx
mov dword [0xc93f28], edx
mov dword [0xc93f40], edx
mov dword [0xc93f44], edx
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
push ecx
mov ecx, 0xc93f00
call fcn.00a489df
test eax, eax
jne 0xc59c6c
cmp dword [0xc93f00], 5
jbe 0xc59c44
push 0x4000
push eax
mov ecx, 0xc93f00
call fcn.00a5996e
test al, al
je 0xc59c44
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x50]
test ecx, ecx
jne 0xc59bc3
mov edx, 0xa27e4c
mov eax, ecx
mov edi, dword [esp + 0x1c]
neg eax
mov dword [esp + 0x34], edx
mov edx, 0xa136c9
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.00c597f8
mov eax, dword [0xc93f1c]
mov ecx, dword [0xc93f18]
and dword [0xc93f00], 0
and dword [0xc93f18], 0
and dword [0xc93f1c], 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 0xc59c82
test ebx, ebx
je 0xc59c82
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
and dword [esi + 0xc], 0
push 0xc97bb4
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.00ab3c50
mov esp, ebp
pop ebp
ret 0x10