Function at 0x10051df0
Capabilities:
Check for time delay via gettickcount
Generate random numbers via winapi
Get memory capacity

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x504]
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetClipboardOwner]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetClipboardViewer]
push eax
call fcn.10051c50
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
call fcn.10051c50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.10051c50
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call ebx
push eax
call fcn.10051c50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.10051c50
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetInputState]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetMessageTime]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetOpenClipboardWindow]
push eax
call fcn.10051c50
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10051c50
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call fcn.10051c50
push 0x4bf
call dword [sym.imp.USER32.dll_GetQueueStatus]
push eax
call fcn.10051c50
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_GetCaretPos]
push 8
lea edx, [esp + 0x40]
push edx
call fcn.10051d70
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
lea ecx, [esp + 0x40]
push ecx
call fcn.10051d70
mov dword [esp + 0x50], 0x20
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x20
lea eax, [esp + 0x54]
push eax
call fcn.10051d70
call ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
push 8
lea eax, [esp + 0x14]
push eax
call fcn.10051d70
push 8
lea ecx, [esp + 0x1c]
push ecx
call fcn.10051d70
push 8
lea edx, [esp + 0x28]
push edx
call fcn.10051d70
push 8
lea eax, [esp + 0x34]
push eax
call fcn.10051d70
call edi
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 8
lea edx, [esp + 0x14]
push edx
call fcn.10051d70
push 8
lea eax, [esp + 0x1c]
push eax
call fcn.10051d70
push 8
lea ecx, [esp + 0x28]
push ecx
call fcn.10051d70
push 8
lea edx, [esp + 0x34]
push edx
call fcn.10051d70
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov edx, dword [esp + 0x38]
push edx
call fcn.10051c50
mov eax, dword [esp + 0x20]
push eax
call fcn.10051c50
cmp dword [0x100dab84], 0
jne 0x10052029
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x74], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x44
lea edx, [esp + 0x74]
push edx
call fcn.10051d70
mov dword [0x100dab84], 1
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10052041
push 8
lea ecx, [esp + 0x4c]
push ecx
jmp 0x1005204e
call ebp
push 4
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
push edx
call fcn.10051d70
cmp dword [esi + 0x510], 0
je 0x10052084
mov eax, dword [esi + 0x50c]
lea edi, [esi + 0x280]
push edi
push 0x280
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10052084
push 0x280
push edi
call fcn.10051d70
push esi
call fcn.10052340
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [esi + 0x504], ecx
pop esi
pop ebp
pop ebx
add esp, 0xac
ret