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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5035d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov ebx, ecx
mov esi, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], esi
call edi
push eax
call fcn.004ad295
mov eax, dword [ebp + 8]
add esp, 4
sub eax, 0x113
je 0x409c4b
sub eax, 0x6d4
je 0x409b40
sub eax, 0x70
jne 0x409c24
test esi, esi
je 0x409d35
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub eax, 0x6189a101
cmp dword [ebp + 0xc], eax
jne 0x409d35
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x409b33
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
jmp 0x409d35
lea edi, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
sub eax, ecx
test eax, 0xfffffffc
jne 0x409b76
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x409c24
mov edx, dword [ebx + 0x20]
mov eax, edx
push dword [ebp - 0x10]
sub eax, ecx
sar eax, 2
push eax
call fcn.00409da0
mov eax, dword [ebx + 0x1c]
add esp, 8
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x409bde
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x409bde
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [esi + edi]
sub ecx, eax
push ecx
push 0x12c
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x409c17
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub eax, 0x6189a101
push eax
push 0x857
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
lea ecx, [edx + 4]
sub eax, ecx
push eax
push ecx
push edx
call fcn.004a5560
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x12c
jne 0x409d2c
lea esi, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [ebx + 0x20]
mov eax, edx
mov ecx, dword [ebx + 0x1c]
sub eax, ecx
cmp eax, 4
jae 0x409c8a
push esi
jmp 0x409d1c
push dword [ebp - 0x10]
sar eax, 2
push eax
call fcn.00409da0
mov eax, dword [ebx + 0x1c]
add esp, 8
mov eax, dword [eax]
mov esi, dword [eax + 8]
call edi
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
jb 0x409cca
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
cmp eax, edi
jbe 0x409cff
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub eax, 0x6189a101
push eax
push 0x857
push dword [ebx + 0xc]
call esi
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea eax, [edx + 4]
sub ecx, eax
push ecx
push eax
push edx
call fcn.004a5560
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
cmp eax, 4
jb 0x409d18
push 0
push 0
push 0x7e7
push dword [ebx + 0xc]
call esi
lea eax, [ebx + 0x28]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp eax, vtable.WangYunBaseLib::CWangYunTaskManager.0
jne 0x409d4b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ecx
mov ecx, ebx
call dword [eax + 8]
jmp 0x409d35