Function at 0x4b0620
Capabilities:
Check os version
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59646b
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x5f4964]
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.0056b960
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.0056b960
add esp, 0xc
mov dword [ebp - 0x494], 0x11c
push 0x5ab8a4
push 0x5ab8b4
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 0x4b0764
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.005707d8
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 0x4b0771
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 str.GetNativeSystemInfo
push 0x5ab8dc
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 0x4b07e2
lea eax, [ebp - 0x370]
push eax
call dword [ebp - 0x340]
jmp 0x4b07ef
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.0056b960
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 0x4b09e1
push str._ntoskrnl.exe
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4b09e1
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004b1880
add esp, 8
test eax, eax
je 0x4b09e1
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 0x4b09e1
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.004161f0
mov dword [ebp - 4], 0
push str.Service_Pack
lea ecx, [ebp - 0x4ac]
call fcn.00415010
xor edx, edx
mov word [ebp - 0x514], dx
push 0x62
push 0
lea eax, [ebp - 0x512]
push eax
call fcn.0056b960
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 0x4b09c4
lea ecx, [ebp - 0x4ac]
call fcn.00418890
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00422f30
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00422f30
push eax
call fcn.00570732
add esp, 0xc
test eax, eax
jne 0x4b09c4
lea ecx, [ebp - 0x4a8]
call fcn.00422f30
mov esi, eax
lea ecx, [ebp - 0x4ac]
call fcn.00418890
lea ecx, [esi + eax*2]
push ecx
call fcn.0056bafb
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea ecx, [ebp - 0x4ac]
call fcn.00423040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.00423040
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 0x4b0a18
cmp dword [ebp - 0x334], 0
jne 0x4b0a18
mov dword [ebp - 0x34c], 1
jmp 0x4b0bae
cmp dword [ebp - 0x338], 5
jne 0x4b0a39
cmp dword [ebp - 0x334], 1
jne 0x4b0a39
mov dword [ebp - 0x34c], 2
jmp 0x4b0bae
cmp dword [ebp - 0x338], 5
jne 0x4b0a7e
cmp dword [ebp - 0x334], 2
jne 0x4b0a7e
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x4b0a6f
movzx edx, word [ebp - 0x370]
cmp edx, 9
jne 0x4b0a6f
mov dword [ebp - 0x34c], 2
jmp 0x4b0a79
mov dword [ebp - 0x34c], 4
jmp 0x4b0bae
cmp dword [ebp - 0x338], 6
jne 0x4b0ac3
cmp dword [ebp - 0x334], 0
jne 0x4b0ac3
movzx eax, byte [ebp - 0x222]
cmp eax, 3
je 0x4b0aa8
movzx ecx, byte [ebp - 0x222]
cmp ecx, 2
jne 0x4b0ab4
mov dword [ebp - 0x34c], 6
jmp 0x4b0abe
mov dword [ebp - 0x34c], 3
jmp 0x4b0bae
cmp dword [ebp - 0x338], 6
jne 0x4b0b08
cmp dword [ebp - 0x334], 1
jne 0x4b0b08
movzx edx, byte [ebp - 0x222]
cmp edx, 3
je 0x4b0aed
movzx eax, byte [ebp - 0x222]
cmp eax, 2
jne 0x4b0af9
mov dword [ebp - 0x34c], 7
jmp 0x4b0b03
mov dword [ebp - 0x34c], 5
jmp 0x4b0bae
cmp dword [ebp - 0x338], 6
jne 0x4b0b32
cmp dword [ebp - 0x334], 2
jne 0x4b0b32
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x4b0b30
mov dword [ebp - 0x34c], 8
jmp 0x4b0bae
cmp dword [ebp - 0x338], 6
jne 0x4b0b5c
cmp dword [ebp - 0x334], 3
jne 0x4b0b5c
movzx edx, byte [ebp - 0x222]
cmp edx, 1
jne 0x4b0b5a
mov dword [ebp - 0x34c], 9
jmp 0x4b0bae
cmp dword [ebp - 0x338], 6
jne 0x4b0b86
cmp dword [ebp - 0x334], 4
jne 0x4b0b86
movzx eax, byte [ebp - 0x222]
cmp eax, 1
jne 0x4b0b84
mov dword [ebp - 0x34c], 0xa
jmp 0x4b0bae
cmp dword [ebp - 0x338], 0xa
jne 0x4b0bae
cmp dword [ebp - 0x334], 0
jne 0x4b0bae
movzx ecx, byte [ebp - 0x222]
cmp ecx, 1
jne 0x4b0bae
mov dword [ebp - 0x34c], 0xa
movzx edx, word [ebp - 0x224]
and edx, 0x40
je 0x4b0bc4
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.0056ab51
mov esp, ebp
pop ebp
ret