Function at 0x42b307
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, 0x4bd850
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
je 0x42b357
add eax, 0x14
inc esi
cmp eax, 0x4bd918
jl 0x42b340
jmp 0x42b525
cmp esi, 0xffffffff
je 0x42b525
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
cmp edi, 0xffffffff
je 0x42b398
push str.Userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
cmp eax, ebx
je 0x42b398
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 + 0x4bd860]
cmp eax, ebx
je 0x42b3d9
push dword [ebp + 0x10]
push dword [ebp - 0x220]
push eax
cmp dword [ebp - 0x214], ebx
je 0x42b3c0
push edi
call dword [ebp - 0x214]
jmp 0x42b3c6
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x42b52a
cmp dword [ebp + 8], 0x23
jne 0x42b42a
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 0x42b42a
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 0x42b511
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x218], ebx
cmp eax, ebx
jne 0x42b44f
mov eax, dword [esi + 0x4bd854]
lea ecx, [ebp - 0x218]
push ecx
push 1
push ebx
push dword [esi + 0x4bd858]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x42b4d9
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 + 0x4bd85c]
mov dword [ebp - 0x228], 0x208
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x42b4cd
lea eax, [ebp - 0x20c]
push eax
call fcn.00468f76
pop ecx
test eax, eax
jne 0x42b539
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 0x42b4fc
cmp dword [ebp - 0x21c], 5
jle 0x42b4fc
cmp edi, ebx
je 0x42b4fc
mov dword [ebp - 0x224], ebx
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp + 0x18]
jl 0x42b439
cmp dword [ebp - 0x210], ebx
je 0x42b525
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 0x42b55f
push dword [ebp - 0x22c]
call dword [ebp - 0x214]
jmp 0x42b565
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x210], ebx
je 0x42b3d2
jmp 0x42b3c6