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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5ab3e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x214], eax
mov eax, 0x5ab2e8
mov dword [ebp - 0x224], ecx
cmp ebx, dword [eax]
je 0x47a689
add eax, 0x14
inc esi
cmp eax, 0x5ab3b0
jl 0x47a675
jmp 0x47a948
cmp esi, 0xffffffff
je 0x47a948
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
cmp ecx, 0xffffffff
je 0x47a6d0
push str.Userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x47a6ce
push str.ExpandEnvironmentStringsForUserW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x220], eax
jmp 0x47a6d0
xor eax, eax
lea edx, [esi + esi*4]
shl edx, 2
mov dword [ebp - 0x210], edx
mov ecx, dword [edx + 0x5ab2f8]
test ecx, ecx
je 0x47a740
push dword [ebp + 0x10]
push dword [ebp - 0x214]
push ecx
test eax, eax
je 0x47a71b
push dword [ebp - 0x224]
call eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b6e9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b6e9
mov esp, ebp
pop ebp
ret
cmp ebx, 0x23
jne 0x47a7ee
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.0048deb0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa], ax
mov dword [ebp - 8], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 6
xor ecx, ecx
mov dword [ebp - 0x118], 0
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edx, dword [ebp - 0x210]
test eax, eax
jne 0x47a7ee
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders]
mov dword [edx + str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders], eax
mov eax, dword [str.Common_AppData]
mov dword [edx + str.AppData], eax
xor esi, esi
cmp dword [ebp + 0x1c], esi
jle 0x47a937
lea esp, [esp]
mov dword [ebp - 0x218], 0
mov eax, edi
test edi, edi
jne 0x47a816
mov eax, dword [edx + 0x5ab2ec]
lea ecx, [ebp - 0x218]
push ecx
push 1
push 0
push dword [edx + 0x5ab2f0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x47a8ad
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0048deb0
add esp, 0xc
mov dword [ebp - 0x228], 0x208
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push dword [eax + 0x5ab2f4]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x47a8a1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a890
sub ecx, edx
sar ecx, 1
jne 0x47a8d6
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x47a8c5
cmp esi, 5
jbe 0x47a8c5
xor eax, eax
test ebx, ebx
cmovne edi, eax
inc esi
cmp esi, dword [ebp + 0x1c]
jge 0x47a937
mov edx, dword [ebp - 0x210]
jmp 0x47a800
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x220]
push dword [ebp - 0x214]
test eax, eax
je 0x47a8fa
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x224]
call eax
jmp 0x47a907
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x47a924
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b6e9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x47a948
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b6e9
mov esp, ebp
pop ebp
ret