Function at 0x408090
Capabilities:
Check for time delay via gettickcount
Create new key via cryptacquirecontext
Generate random numbers via winapi
Get disk information
Get hostname
Query environment variable

Disassembly:
sub esp, 0xb08
cmp dword [0x4256a0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
je 0x4081da
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push 0
push 0
push 0x426bf8
mov dword [esp + 0x24], 0xfa
mov dword [0x4256a0], 0
call esi
test eax, eax
jne 0x40810a
call ebx
cmp eax, 0x80090016
jne 0x40810a
push 8
push 1
push 0
push 0
push 0x426bf8
call esi
test eax, eax
jne 0x40810a
call ebx
push eax
push str.CryptAcquireContext_error:0x_x__n
call fcn.00407f60
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x1c], eax
call ebp
mov dword [esp + 0x20], eax
call fcn.00408040
push 0
mov dword [esp + 0x28], eax
call fcn.0040cbf4
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x800
lea edx, [esp + 0x31c]
push edx
mov ecx, 0x10
lea esi, [esp + 0x220]
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
push str.PATH_PATH_
mov esi, 0x54
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, 0x800
ja 0x40819f
push eax
lea eax, [esp + 0x31c]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00409630
add esp, 0xc
mov esi, 0x64
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x4219e8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 0x14]
push 0x100
lea ecx, [esp + 0x1c]
push ecx
push 0x426bd8
mov dword [esp + esi + 0x24], eax
call fcn.00409630
add esp, 0xc
mov edx, dword [esp + 0xb1c]
mov eax, dword [0x426bf8]
push edx
push 0x100
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4082eb
call ebx
push eax
push str.crypt_random_error:__d_n
call fcn.00407f60
mov ecx, dword [0x426bd8]
mov edx, dword [0x426bdc]
mov eax, dword [0x426be0]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x426be4]
add esp, 8
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov esi, 0x10
lea ecx, [ecx]
call ebp
mov ebx, eax
call fcn.0040cf6a
add ebx, eax
call fcn.00408040
add eax, ebx
push 0
mov word [esp + esi + 0x1c], ax
call edi
add esi, 2
cmp esi, 0x100
jl 0x408240
push 0x88
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x120]
push eax
call fcn.00409630
add esp, 0xc
mov esi, 0x10
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0x426bd8
call fcn.00409630
mov edx, dword [0x426bd8]
mov eax, dword [0x426bdc]
mov ecx, dword [0x426be0]
mov dword [esp + esi + 0x124], edx
mov edx, dword [0x426be4]
mov dword [esp + esi + 0x128], eax
mov dword [esp + esi + 0x12c], ecx
mov dword [esp + esi + 0x130], edx
add esi, 0x10
add esp, 0xc
cmp esi, 0x100
jl 0x408285
mov edi, dword [esp + 0xb1c]
mov ecx, 0x40
lea esi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb08
ret