Function at 0x4616ac
Capabilities:
Check os version
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
xor ebx, ebx
mov dword [ebp - 0x22c], edi
xor esi, esi
mov eax, 0x4bef08
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
je 0x4616fc
add eax, 0x14
inc esi
cmp eax, 0x4befd0
jl 0x4616e5
jmp 0x4618ca
cmp esi, 0xffffffff
je 0x4618ca
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
cmp edi, 0xffffffff
je 0x46173d
push str.Userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
cmp eax, ebx
je 0x46173d
push str.ExpandEnvironmentStringsForUserW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
imul esi, esi, 0x14
mov eax, dword [esi + 0x4bef18]
cmp eax, ebx
je 0x46177e
push dword [ebp + 0x10]
push dword [ebp - 0x220]
push eax
cmp dword [ebp - 0x214], ebx
je 0x461765
push edi
call dword [ebp - 0x214]
jmp 0x46176b
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4618cf
cmp dword [ebp + 8], 0x23
jne 0x4617cf
push 0x110
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00466c70
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x4617cf
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders]
mov dword [esi + str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders], eax
mov eax, dword [str.Common_AppData]
mov dword [esi + str.AppData], eax
mov dword [ebp - 0x21c], ebx
cmp dword [ebp + 0x18], ebx
jle 0x4618b6
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x218], ebx
cmp eax, ebx
jne 0x4617f4
mov eax, dword [esi + 0x4bef0c]
lea ecx, [ebp - 0x218]
push ecx
push 1
push ebx
push dword [esi + 0x4bef10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x46187e
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00466c70
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push dword [esi + 0x4bef14]
mov dword [ebp - 0x228], 0x208
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x461872
lea eax, [ebp - 0x20c]
push eax
call fcn.00468f76
pop ecx
test eax, eax
jne 0x4618de
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x224], ebx
je 0x4618a1
cmp dword [ebp - 0x21c], 5
jle 0x4618a1
cmp edi, ebx
je 0x4618a1
mov dword [ebp - 0x224], ebx
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp + 0x18]
jl 0x4617de
cmp dword [ebp - 0x210], ebx
je 0x4618ca
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x220]
push eax
cmp dword [ebp - 0x214], ebx
je 0x461904
push dword [ebp - 0x22c]
call dword [ebp - 0x214]
jmp 0x46190a
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x210], ebx
je 0x461777
jmp 0x46176b