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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005cdde
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x100a8050]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 8]
push eax
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x58], 1
xor esi, esi
mov dword [esp + 0x78], esi
mov eax, dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_time]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x4c], eax
mov eax, dword [0x100ab0c4]
mov dword [esp + 0x50], eax
mov eax, dword [sym.SACOhelper.dll_int_CProcessorUsage::s_lastCpu]
mov dword [esp + 0x14], eax
call ebx
sub eax, dword [sym.SACOhelper.dll_unsigned_long_int_CProcessorUsage::s_TickMark]
and eax, 0x7fffffff
cmp eax, 0xc8
ja 0x10004608
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, word [esp + 0x14]
jmp 0x10004911
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x4c]
or eax, dword [esp + 0x50]
mov ecx, edi
jne 0x10004726
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
call sym.SACOhelper.dll_private:_void___thiscall_CProcessorUsage::GetSysTimes_long_long___int64____long_long___int64____long_long___int64___
xor eax, eax
mov dword [esp + 0x14], esi
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
mov dword [esp + 0x4c], esi
lea edi, [esp + 0x50]
stosd dword es:[edi], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov eax, dword [esp + 0x3c]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_time], eax
mov eax, dword [esp + 0x40]
mov dword [0x100ab0c4], eax
mov eax, dword [esp + 0x1c]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_idleTime], eax
mov eax, dword [esp + 0x20]
mov dword [0x100ab0cc], eax
mov eax, dword [esp + 0x24]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_kernelTime], eax
mov eax, dword [esp + 0x28]
mov dword [0x100ab0d4], eax
mov eax, dword [esp + 0x2c]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_userTime], eax
mov eax, dword [esp + 0x30]
mov dword [0x100ab0dc], eax
mov eax, dword [esp + 0x34]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_kernelTimeProcess], eax
mov eax, dword [esp + 0x38]
mov dword [0x100ab0e4], eax
mov eax, dword [esp + 0x44]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_userTimeProcess], eax
mov eax, dword [esp + 0x48]
mov dword [0x100ab0ec], eax
mov dword [sym.SACOhelper.dll_int_CProcessorUsage::s_lastCpu], esi
call ebx
push dword [esp + 0x54]
mov dword [sym.SACOhelper.dll_unsigned_long_int_CProcessorUsage::s_TickMark], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x10004911
mov ebx, dword [esp + 0x3c]
sub ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
sbb eax, dword [esp + 0x50]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
call sym.SACOhelper.dll_private:_void___thiscall_CProcessorUsage::GetSysTimes_long_long___int64____long_long___int64____long_long___int64___
xor eax, eax
mov dword [esp + 0x64], esi
lea edi, [esp + 0x68]
stosd dword es:[edi], eax
mov dword [esp + 0x5c], esi
lea edi, [esp + 0x60]
stosd dword es:[edi], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov esi, dword [esp + 0x2c]
sub esi, dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_userTime]
mov edi, dword [esp + 0x30]
sbb edi, dword [0x100ab0dc]
sub esi, dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_kernelTime]
sbb edi, dword [0x100ab0d4]
add esi, dword [esp + 0x24]
adc edi, dword [esp + 0x28]
mov eax, esi
or eax, edi
je 0x100047e3
mov eax, esi
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb ecx, dword [esp + 0x20]
add eax, dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_idleTime]
push 0
adc ecx, dword [0x100ab0cc]
push 0x64
push ecx
push eax
call fcn.10059a10
push edi
push esi
push edx
push eax
call fcn.100598a0
mov dword [esp + 0x14], eax
jmp 0x100047e8
and dword [esp + 0x14], 0
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov eax, esi
sub eax, dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_userTimeProcess]
mov ecx, edi
sbb ecx, dword [0x100ab0ec]
sub eax, dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_kernelTimeProcess]
push 0
sbb ecx, dword [0x100ab0e4]
add eax, dword [esp + 0x38]
push 0x64
adc ecx, dword [esp + 0x40]
push ecx
push eax
call fcn.10059a10
push dword [esp + 0x50]
push ebx
push edx
push eax
call fcn.100598a0
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_time], eax
mov eax, dword [esp + 0x40]
mov dword [0x100ab0c4], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [sym.SACOhelper.dll_int_CProcessorUsage::s_index]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_idleTime], eax
mov eax, dword [esp + 0x20]
mov dword [0x100ab0cc], eax
mov eax, dword [esp + 0x24]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_kernelTime], eax
mov eax, dword [esp + 0x28]
mov dword [0x100ab0d4], eax
mov eax, dword [esp + 0x2c]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_userTime], eax
mov eax, dword [esp + 0x30]
mov dword [0x100ab0dc], eax
mov eax, dword [esp + 0x34]
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_kernelTimeProcess], eax
mov eax, dword [esp + 0x38]
mov dword [0x100ab0e4], eax
mov eax, ecx
cdq
push 5
mov dword [sym.SACOhelper.dll_long_long___int64__CProcessorUsage::s_userTimeProcess], esi
pop esi
mov dword [0x100ab0ec], edi
mov edi, esi
idiv edi
mov eax, dword [esp + 0x14]
inc ecx
mov dword [edx*4 + sym.SACOhelper.dll_int__CProcessorUsage::s_cpu], eax
mov eax, ecx
cdq
idiv edi
inc ecx
mov dword [sym.SACOhelper.dll_int_CProcessorUsage::s_index], ecx
mov ecx, dword [sym.SACOhelper.dll_int_CProcessorUsage::s_count]
inc ecx
cmp ecx, esi
mov dword [sym.SACOhelper.dll_int_CProcessorUsage::s_count], ecx
mov dword [edx*4 + sym.SACOhelper.dll_int__CProcessorUsage::s_cpuProcess], ebx
jle 0x100048db
mov ecx, esi
mov dword [sym.SACOhelper.dll_int_CProcessorUsage::s_count], ecx
xor eax, eax
xor edx, edx
test ecx, ecx
jle 0x100048ef
add eax, dword [edx*4 + sym.SACOhelper.dll_int__CProcessorUsage::s_cpu]
inc edx
cmp edx, ecx
jl 0x100048e3
cdq
idiv ecx
mov dword [sym.SACOhelper.dll_int_CProcessorUsage::s_lastCpu], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esp + 0x54]
mov dword [sym.SACOhelper.dll_unsigned_long_int_CProcessorUsage::s_TickMark], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, si
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret