Function at 0x426de0
Capabilities:
Check os version
Get common file path
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b787b
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x4f3958]
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 + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0x118
lea edx, [ebp - 0x394]
push 0
push edx
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4d0], ecx
mov dword [ebp - 0x4b8], 0
call fcn.004953b0
push 0x118
lea eax, [ebp - 0x4b0]
push 0
mov edi, 0x11c
push eax
mov dword [ebp - 0x398], edi
call fcn.004953b0
add esp, 0x18
push str.RtlGetVersion
mov dword [ebp - 0x4b4], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ntdll.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x426f16
lea ecx, [ebp - 0x4b4]
push ecx
call eax
mov edx, dword [ebp - 0x4b0]
mov cl, byte [ebp - 0x39a]
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x394], edx
movzx edx, word [ebp - 0x3a0]
mov byte [ebp - 0x27e], cl
lea ecx, [ebp - 0x4a0]
push ecx
mov word [ebp - 0x284], dx
mov dword [ebp - 0x390], eax
mov ax, word [ebp - 0x39e]
lea edx, [ebp - 0x384]
push 0x80
push edx
mov word [ebp - 0x282], ax
call fcn.00498af3
movzx edx, word [ebp - 0x39c]
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [ebp - 0x4a8]
add esp, 0xc
mov dword [ebp - 0x388], eax
mov dword [ebp - 0x38c], ecx
mov word [ebp - 0x280], dx
jmp 0x426f23
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
push str.GetNativeSystemInfo
push 0x4c9b00
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4d8], eax
call edi
push eax
call ebx
test eax, eax
je 0x426f79
lea ecx, [ebp - 0x4f8]
push ecx
call eax
jmp 0x426f86
lea edx, [ebp - 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x284]
mov edx, dword [ebp - 0x390]
mov dword [esi], eax
mov eax, dword [ebp - 0x394]
lea ecx, [eax + eax*4]
xor eax, eax
push 0x206
lea edi, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x27a]
push ecx
mov word [ebp - 0x27c], ax
call fcn.004953b0
add esp, 0xc
lea edx, [ebp - 0x27c]
push edx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, 1
test eax, eax
jl 0x42710b
push str._ntoskrnl.exe
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x42710b
lea ecx, [ebp - 0x4c8]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.00426530
add esp, 8
test eax, eax
je 0x42710b
mov ecx, dword [ebp - 0x4c4]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x42710b
mov dword [ebp - 0x394], eax
mov dword [esi], 0
mov eax, dword [0x4f7780]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x390], ecx
mov ecx, 0x4f7780
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c4], edi
push str.Service_Pack
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 4], 0
call int.00408bf0
xor eax, eax
push 0x62
push eax
lea ecx, [ebp - 0x72]
push ecx
mov word [ebp - 0x74], ax
call fcn.004953b0
add esp, 0xc
lea edx, [ebp - 0x4d4]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x4cc]
push ecx
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4d4], 0x64
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4270f5
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.00496a3f
add esp, 0xc
test eax, eax
jne 0x4270f5
mov edx, dword [ebp - 0x4bc]
mov eax, dword [edx - 0xc]
lea eax, [edi + eax*2]
push eax
call fcn.0049b217
add esp, 4
mov dword [esi], eax
lea ecx, [ebp - 0x4bc]
call fcn.00407680
lea ecx, [ebp - 0x4c4]
call fcn.00407680
mov ecx, dword [ebp - 0x394]
mov edx, dword [ebp - 0x4c0]
mov eax, dword [ebp - 0x390]
mov dword [edx], ecx
mov edx, dword [ebp - 0x4d0]
mov dword [edx], eax
cmp ecx, 5
jne 0x427183
test eax, eax
jne 0x42713b
mov dword [ebp - 0x4b8], ebx
jmp 0x427235
cmp eax, ebx
jne 0x42714e
mov dword [ebp - 0x4b8], 2
jmp 0x427235
cmp eax, 2
jne 0x427235
cmp byte [ebp - 0x27e], bl
jne 0x427174
cmp word [ebp - 0x4f8], 9
jne 0x427174
mov dword [ebp - 0x4b8], eax
jmp 0x427235
mov dword [ebp - 0x4b8], 4
jmp 0x427235
cmp ecx, 6
jne 0x42721a
test eax, eax
jne 0x4271b9
mov al, byte [ebp - 0x27e]
cmp al, 3
je 0x4271ad
cmp al, 2
je 0x4271ad
mov dword [ebp - 0x4b8], 3
jmp 0x427235
mov dword [ebp - 0x4b8], 6
jmp 0x427235
cmp eax, ebx
jne 0x4271e3
mov al, byte [ebp - 0x27e]
cmp al, 3
je 0x4271d7
cmp al, 2
je 0x4271d7
mov dword [ebp - 0x4b8], 5
jmp 0x427235
mov dword [ebp - 0x4b8], 7
jmp 0x427235
cmp eax, 2
jne 0x4271fc
cmp byte [ebp - 0x27e], bl
jne 0x427235
mov dword [ebp - 0x4b8], 8
jmp 0x427235
cmp eax, 3
jne 0x427215
cmp byte [ebp - 0x27e], bl
jne 0x427235
mov dword [ebp - 0x4b8], 9
jmp 0x427235
cmp eax, 4
jmp 0x427221
cmp ecx, 0xa
jne 0x427235
test eax, eax
jne 0x427235
cmp byte [ebp - 0x27e], bl
jne 0x427235
mov dword [ebp - 0x4b8], 0xa
test byte [ebp - 0x280], 0x40
je 0x427242
xor eax, eax
jmp 0x427248
mov eax, dword [ebp - 0x4b8]
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.004951ca
mov esp, ebp
pop ebp
ret