Function at 0x451b20
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 0x546aab
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x5973cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x33c], 0
push 0x118
push 0
lea eax, [ebp - 0x338]
push eax
call fcn.00506190
add esp, 0xc
mov dword [ebp - 0x33c], 0x11c
mov dword [ebp - 0x494], 0
push 0x118
push 0
lea ecx, [ebp - 0x490]
push ecx
call fcn.00506190
add esp, 0xc
mov dword [ebp - 0x494], 0x11c
push 0x55b22c
push 0x55b23c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x451c64
lea edx, [ebp - 0x494]
push edx
call dword [ebp - 0x348]
mov eax, dword [ebp - 0x490]
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x48c]
mov dword [ebp - 0x334], ecx
mov dl, byte [ebp - 0x37a]
mov byte [ebp - 0x222], dl
mov ax, word [ebp - 0x380]
mov word [ebp - 0x228], ax
mov cx, word [ebp - 0x37e]
mov word [ebp - 0x226], cx
lea edx, [ebp - 0x480]
push edx
push 0x80
lea eax, [ebp - 0x328]
push eax
call fcn.0050a211
add esp, 0xc
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x32c], ecx
mov edx, dword [ebp - 0x488]
mov dword [ebp - 0x330], edx
mov ax, word [ebp - 0x37c]
mov word [ebp - 0x224], ax
jmp 0x451c71
lea ecx, [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x370], 0
xor edx, edx
mov dword [ebp - 0x36c], edx
mov dword [ebp - 0x368], edx
mov dword [ebp - 0x364], edx
mov dword [ebp - 0x360], edx
mov dword [ebp - 0x35c], edx
mov dword [ebp - 0x358], edx
mov dword [ebp - 0x354], edx
mov dword [ebp - 0x350], edx
push 0x55b250
push 0x55b264
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
je 0x451ce2
lea eax, [ebp - 0x370]
push eax
call dword [ebp - 0x340]
jmp 0x451cef
lea ecx, [ebp - 0x370]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x228]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x338]
imul ecx, ecx, 0xa
add ecx, dword [ebp - 0x334]
mov dword [ebp - 0x344], ecx
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00506190
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x451ee1
push str._ntoskrnl.exe
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x451ee1
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00452dc0
add esp, 8
test eax, eax
je 0x451ee1
mov edx, dword [ebp - 0x498]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
imul eax, eax, 0xa
mov ecx, dword [ebp - 0x498]
and ecx, 0xffff
movzx edx, cx
add eax, edx
cmp dword [ebp - 0x344], eax
jge 0x451ee1
mov eax, dword [ebp - 0x498]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x498]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea ecx, [ebp - 0x4a8]
call fcn.00402980
mov dword [ebp - 4], 0
push str.Service_Pack
lea ecx, [ebp - 0x4ac]
call fcn.004073f0
xor edx, edx
mov word [ebp - 0x514], dx
push 0x62
push 0
lea eax, [ebp - 0x512]
push eax
call fcn.00506190
add esp, 0xc
mov dword [ebp - 0x4a0], 1
mov dword [ebp - 0x4a4], 0x64
lea ecx, [ebp - 0x4a4]
push ecx
lea edx, [ebp - 0x514]
push edx
lea eax, [ebp - 0x4a0]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x451ec4
lea ecx, [ebp - 0x4ac]
call fcn.0040b6f0
push eax
lea ecx, [ebp - 0x4ac]
call fcn.0041b240
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0041b240
push eax
call fcn.00506a33
add esp, 0xc
test eax, eax
jne 0x451ec4
lea ecx, [ebp - 0x4a8]
call fcn.0041b240
mov esi, eax
lea ecx, [ebp - 0x4ac]
call fcn.0040b6f0
lea ecx, [esi + eax*2]
push ecx
call fcn.0050a7a4
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea ecx, [ebp - 0x4ac]
call fcn.00417530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.00417530
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x338]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x334]
mov dword [edx], eax
cmp dword [ebp - 0x338], 5
jne 0x451f18
cmp dword [ebp - 0x334], 0
jne 0x451f18
mov dword [ebp - 0x34c], 1
jmp 0x4520ae
cmp dword [ebp - 0x338], 5
jne 0x451f39
cmp dword [ebp - 0x334], 1
jne 0x451f39
mov dword [ebp - 0x34c], 2
jmp 0x4520ae
cmp dword [ebp - 0x338], 5
jne 0x451f7e
cmp dword [ebp - 0x334], 2
jne 0x451f7e
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x451f6f
movzx edx, word [ebp - 0x370]
cmp edx, 9
jne 0x451f6f
mov dword [ebp - 0x34c], 2
jmp 0x451f79
mov dword [ebp - 0x34c], 4
jmp 0x4520ae
cmp dword [ebp - 0x338], 6
jne 0x451fc3
cmp dword [ebp - 0x334], 0
jne 0x451fc3
movzx eax, byte [ebp - 0x222]
cmp eax, 3
je 0x451fa8
movzx ecx, byte [ebp - 0x222]
cmp ecx, 2
jne 0x451fb4
mov dword [ebp - 0x34c], 6
jmp 0x451fbe
mov dword [ebp - 0x34c], 3
jmp 0x4520ae
cmp dword [ebp - 0x338], 6
jne 0x452008
cmp dword [ebp - 0x334], 1
jne 0x452008
movzx edx, byte [ebp - 0x222]
cmp edx, 3
je 0x451fed
movzx eax, byte [ebp - 0x222]
cmp eax, 2
jne 0x451ff9
mov dword [ebp - 0x34c], 7
jmp 0x452003
mov dword [ebp - 0x34c], 5
jmp 0x4520ae
cmp dword [ebp - 0x338], 6
jne 0x452032
cmp dword [ebp - 0x334], 2
jne 0x452032
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x452030
mov dword [ebp - 0x34c], 8
jmp 0x4520ae
cmp dword [ebp - 0x338], 6
jne 0x45205c
cmp dword [ebp - 0x334], 3
jne 0x45205c
movzx edx, byte [ebp - 0x222]
cmp edx, 1
jne 0x45205a
mov dword [ebp - 0x34c], 9
jmp 0x4520ae
cmp dword [ebp - 0x338], 6
jne 0x452086
cmp dword [ebp - 0x334], 4
jne 0x452086
movzx eax, byte [ebp - 0x222]
cmp eax, 1
jne 0x452084
mov dword [ebp - 0x34c], 0xa
jmp 0x4520ae
cmp dword [ebp - 0x338], 0xa
jne 0x4520ae
cmp dword [ebp - 0x334], 0
jne 0x4520ae
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x4520ae
mov dword [ebp - 0x34c], 0xa
movzx edx, word [ebp - 0x224]
and edx, 0x40
je 0x4520c4
mov dword [ebp - 0x34c], 0
mov eax, dword [ebp - 0x34c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005060ef
mov esp, ebp
pop ebp
ret