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

Disassembly:
push 0xffffffffffffffff
push 0x470b63
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x48a3c0]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a3c0]
xor eax, esp
push eax
lea eax, [esp + 0x398]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3a8]
mov ebp, dword [esp + 0x3ac]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x446165
lea edx, [esp + 0x38]
push edx
call eax
jmp 0x446170
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.00462160
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x70], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [esp + 0x180]
mov edx, dword [esp + 0x74]
mov dword [ebp], eax
mov eax, dword [esp + 0x70]
lea ecx, [eax + eax*4]
push 0x206
lea ebx, [edx + ecx*2]
lea ecx, [esp + 0x192]
xor eax, eax
push esi
push ecx
mov word [esp + 0x198], ax
call fcn.00462160
add esp, 0xc
lea edx, [esp + 0x18c]
push edx
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x446341
push str._ntoskrnl.exe
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x446341
lea edi, [esp + 0x2c]
lea esi, [esp + 0x18c]
call fcn.00437920
test eax, eax
je 0x446341
mov ecx, dword [esp + 0x30]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp ebx, edx
jge 0x446341
mov dword [esp + 0x70], eax
mov dword [ebp], 0
mov eax, dword [0x48e57c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov ecx, 0x48e57c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov ecx, str.Service_Pack
mov dword [esp + 0x3a4], 0
call fcn.00454940
push ecx
mov ecx, esp
mov byte [esp + 0x3a4], 1
mov dword [esp + 0x24], esp
push ecx
mov ecx, str.CSDVersion
lea esi, [esp + 0x24]
xor edi, edi
call fcn.00454940
push ecx
mov byte [esp + 0x3a8], 2
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov ecx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.00454940
push SysReAllocStringLen
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov byte [esp + 0x3b0], 1
call fcn.0044da20
mov byte [esp + 0x3a0], 3
push eax
mov dword [esp + 0x24], 1
call fcn.00446f90
mov edi, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x4462f4
cmp dword [edi - 0xc], 0
je 0x4462f4
mov bl, 1
jmp 0x4462f6
xor bl, bl
lea esi, [esp + 0x5c]
call fcn.00436e00
test bl, bl
je 0x44632f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.00460c7f
add esp, 0xc
test eax, eax
jne 0x44632f
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
lea edx, [edi + eax*2]
push edx
call fcn.00461172
add esp, 4
mov dword [ebp], eax
lea eax, [esp + 0x18]
call fcn.004568e0
lea eax, [esp + 0x1c]
call fcn.004568e0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x74]
mov dword [edx], eax
cmp ecx, 5
jne 0x44639b
test eax, eax
jne 0x44636b
mov dword [esp + 0x14], 1
jmp 0x4463eb
cmp eax, 1
jne 0x44637a
mov dword [esp + 0x14], 2
jmp 0x4463eb
cmp eax, 2
jne 0x4463eb
cmp byte [esp + 0x186], 1
jne 0x446391
cmp word [esp + 0x38], 9
je 0x446370
mov dword [esp + 0x14], 4
jmp 0x4463eb
cmp ecx, 6
jne 0x4463eb
test eax, eax
jne 0x4463c7
mov al, byte [esp + 0x186]
cmp al, 3
je 0x4463bd
cmp al, 2
je 0x4463bd
mov dword [esp + 0x14], 3
jmp 0x4463eb
mov dword [esp + 0x14], 6
jmp 0x4463eb
cmp eax, 1
jne 0x4463eb
mov al, byte [esp + 0x186]
cmp al, 3
je 0x4463e3
mov dword [esp + 0x14], 5
cmp al, 2
jne 0x4463eb
mov dword [esp + 0x14], 7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.00460259
add esp, 0x390
ret