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

Disassembly:
push 0xffffffffffffffff
push 0x4a5273
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
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 0x46ab35
lea edx, [esp + 0x38]
push edx
call eax
jmp 0x46ab40
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.0048dc10
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.0048dc10
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 0x46ad11
push str._ntoskrnl.exe
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x46ad11
lea edi, [esp + 0x2c]
lea esi, [esp + 0x18c]
call fcn.00445a00
test eax, eax
je 0x46ad11
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 0x46ad11
mov dword [esp + 0x70], eax
mov dword [ebp], 0
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov ecx, 0x4ce67c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov ecx, 0x4b4694
mov dword [esp + 0x3a4], 0
call fcn.0046c8c0
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.0046c8c0
push ecx
mov byte [esp + 0x3a8], 2
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov ecx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.0046c8c0
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov byte [esp + 0x3b0], 1
call fcn.0046a960
mov byte [esp + 0x3a0], 3
push eax
mov dword [esp + 0x24], 1
call fcn.0046a8b0
mov edi, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x46acc4
cmp dword [edi - 0xc], 0
je 0x46acc4
mov bl, 1
jmp 0x46acc6
xor bl, bl
lea esi, [esp + 0x5c]
call fcn.0046aa50
test bl, bl
je 0x46acff
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.0048bb59
add esp, 0xc
test eax, eax
jne 0x46acff
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
lea edx, [edi + eax*2]
push edx
call fcn.0048be28
add esp, 4
mov dword [ebp], eax
lea ecx, [esp + 0x18]
call fcn.004710f0
lea ecx, [esp + 0x1c]
call fcn.004710f0
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 0x46ad78
test eax, eax
jne 0x46ad3b
mov dword [esp + 0x14], 1
jmp 0x46ade3
cmp eax, 1
jne 0x46ad4d
mov dword [esp + 0x14], 2
jmp 0x46ade3
cmp eax, 2
jne 0x46ade3
cmp byte [esp + 0x186], 1
jne 0x46ad6e
cmp word [esp + 0x38], 9
jne 0x46ad6e
mov dword [esp + 0x14], eax
jmp 0x46ade3
mov dword [esp + 0x14], 4
jmp 0x46ade3
cmp ecx, 6
jne 0x46ade3
test eax, eax
jne 0x46ada4
mov al, byte [esp + 0x186]
cmp al, 3
je 0x46ad9a
cmp al, 2
je 0x46ad9a
mov dword [esp + 0x14], 3
jmp 0x46ade3
mov dword [esp + 0x14], 6
jmp 0x46ade3
cmp eax, 1
jne 0x46adcc
mov al, byte [esp + 0x186]
cmp al, 3
je 0x46adc2
cmp al, 2
je 0x46adc2
mov dword [esp + 0x14], 5
jmp 0x46ade3
mov dword [esp + 0x14], 7
jmp 0x46ade3
cmp eax, 2
jne 0x46ade3
cmp byte [esp + 0x186], 1
jne 0x46ade3
mov dword [esp + 0x14], 8
test byte [esp + 0x184], 0x40
je 0x46adf1
xor eax, eax
jmp 0x46adf5
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.0048b133
add esp, 0x390
ret