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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6f5e
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x66d4f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x18], 0x1e
mov dword [ebp - 0x20], 0x258
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x33c]
mov dword [eax + 0x3c], 0
push 0
mov ecx, dword [ebp - 0x33c]
call fcn.004f4410
mov dword [ebp - 0x1c], 0x7ffe02e4
mov ecx, 1
test ecx, ecx
je 0x4f43fa
call fcn.00506910
test eax, eax
je 0x4f41c1
mov dword [ebp - 0x28], 8
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_GetLastInputInfo]
test eax, eax
je 0x4f4120
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 0x10], 0x3c
jne 0x4f401e
push 1
push 2
lea ecx, [ebp - 0xac]
call fcn.0040a750
mov dword [ebp - 4], 0
push 0x619a2c
mov ecx, dword [ebp - 0x14]
push ecx
push 0x619a34
mov edx, dword [ebp - 0x24]
push edx
push str.plii.dwTime
lea eax, [ebp - 0xac]
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
push eax
call fcn.00409270
add esp, 8
lea ecx, [ebp - 0x2c8]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00408c00
mov dword [ebp - 0x340], eax
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x344], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x344]
call fcn.0040b520
push eax
push 0x619a54
push 0x36
push 0x619a78
push 0x1067
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c8]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004094e0
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x24], 0
jbe 0x4f4100
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jb 0x4f4100
cmp dword [ebp - 0x10], 0
jne 0x4f40f3
push 1
push 2
lea ecx, [ebp - 0x12c]
call fcn.0040a750
mov dword [ebp - 4], 2
push 0x619a94
mov ecx, dword [ebp - 0x20]
push ecx
push 0x619aa4
lea edx, [ebp - 0x12c]
push edx
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.0041c7c0
push eax
call fcn.00409270
add esp, 8
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00408c00
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x348]
mov dword [ebp - 0x34c], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34c]
call fcn.0040b520
push eax
push 0x619abc
push 0x3e
push 0x619ae0
push 0x1067
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e4]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004094e0
push 1
mov ecx, dword [ebp - 0x33c]
call fcn.004f4410
cmp dword [ebp - 0x24], 0
jbe 0x4f411b
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jae 0x4f411b
push 0
mov ecx, dword [ebp - 0x33c]
call fcn.004f4410
jmp 0x4f41bc
push 1
push 2
lea ecx, [ebp - 0x1ac]
call fcn.0040a750
mov dword [ebp - 4], 4
push str.GetLastInputInfo_plii_
lea eax, [ebp - 0x1ac]
push eax
call fcn.00409270
add esp, 8
lea ecx, [ebp - 0x300]
push ecx
lea ecx, [ebp - 0x1ac]
call fcn.00408c00
mov dword [ebp - 0x350], eax
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x354], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x354]
call fcn.0040b520
push eax
push 0x619b28
push 0x4d
push 0x619b4c
push 0x1067
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x300]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.004094e0
jmp 0x4f43e2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ecx]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 0x10], 0x3c
jne 0x4f42e1
push 1
push 2
lea ecx, [ebp - 0x22c]
call fcn.0040a750
mov dword [ebp - 4], 6
push 0x619b68
mov ecx, dword [ebp - 0x14]
push ecx
push str._dwIdleTime
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.__GetTickCount
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push eax
push str.plLastSysRITEventTickCount
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
push eax
call fcn.00409270
add esp, 8
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00408c00
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x35c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x35c]
call fcn.0040b520
push eax
push 0x619ba8
push 0x57
push 0x619bcc
push 0x1067
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x31c]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.004094e0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
jbe 0x4f43c5
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jb 0x4f43c5
cmp dword [ebp - 0x10], 0
jne 0x4f43b8
push 1
push 2
lea ecx, [ebp - 0x2ac]
call fcn.0040a750
mov dword [ebp - 4], 8
push 0x619be8
mov eax, dword [ebp - 0x20]
push eax
push 0x619bf8
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.0041c7c0
push eax
call fcn.00409270
add esp, 8
lea edx, [ebp - 0x338]
push edx
lea ecx, [ebp - 0x2ac]
call fcn.00408c00
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x364]
call fcn.0040b520
push eax
push str.CIdleStateDetection::CheckIdleTime
push 0x5f
push 0x619c34
push 0x1067
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x338]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.004094e0
push 1
mov ecx, dword [ebp - 0x33c]
call fcn.004f4410
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
jbe 0x4f43e2
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jae 0x4f43e2
push 0
mov ecx, dword [ebp - 0x33c]
call fcn.004f4410
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
push 1
call fcn.0050f460
add esp, 4
jmp 0x4f3eeb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret