Function at 0x4682c0
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 0x4f1c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x530790]
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.004ccbe0
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.004ccbe0
add esp, 0xc
mov dword [ebp - 0x494], 0x11c
push 0x502da4
push 0x502db4
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 0x468404
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.004d0a7f
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 0x468411
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 0x502dc8
push 0x502ddc
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 0x468482
lea eax, [ebp - 0x370]
push eax
call dword [ebp - 0x340]
jmp 0x46848f
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.004ccbe0
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 0x468681
push str._ntoskrnl.exe
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x468681
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00469520
add esp, 8
test eax, eax
je 0x468681
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 0x468681
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.00427220
mov dword [ebp - 4], 0
push str.Service_Pack
lea ecx, [ebp - 0x4ac]
call fcn.004186a0
xor edx, edx
mov word [ebp - 0x514], dx
push 0x62
push 0
lea eax, [ebp - 0x512]
push eax
call fcn.004ccbe0
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 0x468664
lea ecx, [ebp - 0x4ac]
call fcn.0042a8a0
push eax
lea ecx, [ebp - 0x4ac]
call fcn.0042f8b0
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0042f8b0
push eax
call fcn.004d09d9
add esp, 0xc
test eax, eax
jne 0x468664
lea ecx, [ebp - 0x4a8]
call fcn.0042f8b0
mov esi, eax
lea ecx, [ebp - 0x4ac]
call fcn.0042a8a0
lea ecx, [esi + eax*2]
push ecx
call fcn.004d08e4
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea ecx, [ebp - 0x4ac]
call fcn.00419a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.00419a70
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 0x4686b8
cmp dword [ebp - 0x334], 0
jne 0x4686b8
mov dword [ebp - 0x34c], 1
jmp 0x46884e
cmp dword [ebp - 0x338], 5
jne 0x4686d9
cmp dword [ebp - 0x334], 1
jne 0x4686d9
mov dword [ebp - 0x34c], 2
jmp 0x46884e
cmp dword [ebp - 0x338], 5
jne 0x46871e
cmp dword [ebp - 0x334], 2
jne 0x46871e
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x46870f
movzx edx, word [ebp - 0x370]
cmp edx, 9
jne 0x46870f
mov dword [ebp - 0x34c], 2
jmp 0x468719
mov dword [ebp - 0x34c], 4
jmp 0x46884e
cmp dword [ebp - 0x338], 6
jne 0x468763
cmp dword [ebp - 0x334], 0
jne 0x468763
movzx eax, byte [ebp - 0x222]
cmp eax, 3
je 0x468748
movzx ecx, byte [ebp - 0x222]
cmp ecx, 2
jne 0x468754
mov dword [ebp - 0x34c], 6
jmp 0x46875e
mov dword [ebp - 0x34c], 3
jmp 0x46884e
cmp dword [ebp - 0x338], 6
jne 0x4687a8
cmp dword [ebp - 0x334], 1
jne 0x4687a8
movzx edx, byte [ebp - 0x222]
cmp edx, 3
je 0x46878d
movzx eax, byte [ebp - 0x222]
cmp eax, 2
jne 0x468799
mov dword [ebp - 0x34c], 7
jmp 0x4687a3
mov dword [ebp - 0x34c], 5
jmp 0x46884e
cmp dword [ebp - 0x338], 6
jne 0x4687d2
cmp dword [ebp - 0x334], 2
jne 0x4687d2
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x4687d0
mov dword [ebp - 0x34c], 8
jmp 0x46884e
cmp dword [ebp - 0x338], 6
jne 0x4687fc
cmp dword [ebp - 0x334], 3
jne 0x4687fc
movzx edx, byte [ebp - 0x222]
cmp edx, 1
jne 0x4687fa
mov dword [ebp - 0x34c], 9
jmp 0x46884e
cmp dword [ebp - 0x338], 6
jne 0x468826
cmp dword [ebp - 0x334], 4
jne 0x468826
movzx eax, byte [ebp - 0x222]
cmp eax, 1
jne 0x468824
mov dword [ebp - 0x34c], 0xa
jmp 0x46884e
cmp dword [ebp - 0x338], 0xa
jne 0x46884e
cmp dword [ebp - 0x334], 0
jne 0x46884e
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x46884e
mov dword [ebp - 0x34c], 0xa
movzx edx, word [ebp - 0x224]
and edx, 0x40
je 0x468864
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.004cd040
mov esp, ebp
pop ebp
ret