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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4941fb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4b74b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x250], eax
mov eax, 0x4b7330
mov dword [ebp - 0x260], ecx
lea ecx, [ecx]
cmp ebx, dword [eax]
je 0x4862e4
add eax, 0x14
inc esi
cmp eax, 0x4b73f8
jl 0x4862d0
jmp 0x4866a9
cmp esi, 0xffffffff
je 0x4866a9
xor edx, edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x258], edx
cmp ecx, 0xffffffff
je 0x486457
lea eax, [ebp - 0x248]
push eax
call fcn.004866d0
add esp, 4
push 0xc
push str.Userenv.dll
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00401cf0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
mov dword [ebp - 0x230], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x22c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4863bb
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4863b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4863b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x4863f2
push str.ExpandEnvironmentStringsForUserW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x486434
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48642a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48642a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
mov edx, dword [ebp - 0x25c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [esi + esi*4]
shl ecx, 2
mov dword [ebp - 0x24c], ecx
mov eax, dword [ecx + 0x4b7340]
test eax, eax
je 0x4864af
push dword [ebp + 0x10]
push dword [ebp - 0x250]
push eax
test edx, edx
je 0x486496
push dword [ebp - 0x260]
call edx
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4866ae
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4866ae
cmp ebx, 0x23
jne 0x48655d
push 0x100
lea eax, [ebp - 0x118]
mov dword [ebp - 0x12c], 0x11c
push 0
push eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [ebp - 0x16], ax
mov dword [ebp - 0x14], 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 - 0x12c]
mov dword [ebp - 0x128], 6
xor ecx, ecx
mov dword [ebp - 0x124], 0
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [ebp - 0x24c]
test eax, eax
jne 0x48655d
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders]
mov dword [ecx + str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders], eax
mov eax, dword [str.Common_AppData]
mov dword [ecx + str.AppData], eax
xor esi, esi
cmp dword [ebp + 0x1c], esi
jle 0x486698
jmp 0x486570
mov dword [ebp - 0x254], 0
mov eax, edi
test edi, edi
jne 0x486586
mov eax, dword [ecx + 0x4b7334]
lea edx, [ebp - 0x254]
push edx
push 1
push 0
push dword [ecx + 0x4b7338]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x48661d
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x264], 0x208
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x24c]
push ebx
push ebx
push dword [eax + 0x4b733c]
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x486611
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486600
sub ecx, edx
sar ecx, 1
jne 0x486646
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x486635
cmp esi, 5
jbe 0x486635
xor eax, eax
test ebx, ebx
cmovne edi, eax
inc esi
cmp esi, dword [ebp + 0x1c]
jge 0x486698
mov ecx, dword [ebp - 0x24c]
jmp 0x486570
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x25c]
push dword [ebp - 0x250]
test eax, eax
je 0x48666a
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x260]
call eax
jmp 0x486677
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x486694
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4866ae
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4866a9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487877
mov esp, ebp
pop ebp
ret