Function at 0x10096081
Capabilities:
Check os version
Get disk information
Get disk size
Get file version info
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push esi
push edi
and dword [ebp - 0x38], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
and dword [ebp - 0x250], 0
and dword [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
and dword [ebp - 0x380], 0
xor eax, eax
lea edi, [ebp - 0x37c]
stosd dword es:[edi], eax
and dword [ebp - 0x378], 0
xor eax, eax
lea edi, [ebp - 0x374]
stosd dword es:[edi], eax
and word [ebp - 0x248], 0
push 0x206
push 0
lea eax, [ebp - 0x246]
push eax
call fcn.10071b30
add esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 0x370], 0
push 0x118
push 0
lea eax, [ebp - 0x36c]
push eax
call fcn.10071b30
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
jb 0x100964f9
cmp dword [ebp - 0x818], 2
jbe 0x100964f0
cmp dword [ebp - 0x818], 3
je 0x10096171
cmp dword [ebp - 0x818], 3
jbe 0x100964f9
cmp dword [ebp - 0x818], 6
jbe 0x100964f0
jmp 0x100964f9
mov eax, dword [ebp + 8]
movzx eax, word [eax]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x380]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x100961a9
jmp 0x10096500
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
push 0x103
lea eax, [ebp - 0x248]
push eax
push str._systemroot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100961f0
cmp dword [ebp - 4], 0x103
jbe 0x100961fc
and dword [ebp - 0x250], 0
jmp 0x10096500
movzx eax, word [ebp - 0x248]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
jne 0x10096212
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
je 0x10096283
and dword [ebp - 0x384], 0
mov dword [ebp - 0x370], 0x11c
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x384], eax
cmp dword [ebp - 0x384], 0
jne 0x1009626c
mov dword [ebp - 0x370], 0x114
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1009626c
and dword [ebp - 0x250], 0
jmp 0x10096500
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x18], eax
jmp 0x100964e4
push dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.10075b84
add esp, 0xc
push 0xffffffffffffffff
push str.WindowsSystem32_ntoskrnl.exe
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.10078206
add esp, 0x10
lea eax, [ebp - 0x5d8]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x5dc], eax
cmp dword [ebp - 0x5dc], 0xffffffff
je 0x100964d8
and dword [ebp - 0x800], 0
and dword [ebp - 0x7f4], 0
and dword [ebp - 0x7ec], 0
and word [ebp - 0x7e8], 0
push 0x206
push 0
lea eax, [ebp - 0x7e6]
push eax
call fcn.10071b30
add esp, 0xc
push 0
lea eax, [ebp - 0x248]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x800], eax
cmp dword [ebp - 0x800], 0
jne 0x1009633d
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096500
mov eax, dword [ebp - 0x800]
inc eax
push eax
call fcn.10071427
pop ecx
mov dword [ebp - 0x804], eax
mov eax, dword [ebp - 0x804]
mov dword [ebp - 0x7f4], eax
push dword [ebp - 0x7f4]
push dword [ebp - 0x800]
push 0
lea eax, [ebp - 0x248]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
jne 0x100963af
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x808], eax
push dword [ebp - 0x808]
call fcn.10075267
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096500
and dword [ebp - 0x7f0], 0
and dword [ebp - 0x5e0], 0
and dword [ebp - 0x7f8], 0
lea eax, [ebp - 0x5e0]
push eax
lea eax, [ebp - 0x7fc]
push eax
push 0x100cfb1c
push dword [ebp - 0x7f4]
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
jne 0x1009641a
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x80c], eax
push dword [ebp - 0x80c]
call fcn.10075267
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096500
mov eax, dword [ebp - 0x7fc]
movzx eax, word [eax + 2]
push eax
mov eax, dword [ebp - 0x7fc]
movzx eax, word [eax]
push eax
push str.StringFileInfo_04x_04xProductVersion
lea eax, [ebp - 0x7e8]
push eax
call fcn.10071c73
add esp, 0x10
lea eax, [ebp - 0x5e0]
push eax
lea eax, [ebp - 0x7f8]
push eax
lea eax, [ebp - 0x7e8]
push eax
push dword [ebp - 0x7f4]
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
je 0x1009647b
cmp dword [ebp - 0x5e0], 4
jae 0x100964a1
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x810], eax
push dword [ebp - 0x810]
call fcn.10075267
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096500
mov eax, dword [ebp - 0x7f8]
movzx eax, word [eax]
sub eax, 0x30
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x7f8]
movzx eax, word [eax + 4]
sub eax, 0x30
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x814], eax
push dword [ebp - 0x814]
call fcn.10075267
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x250], 1
jmp 0x10096500
and dword [ebp - 0x250], 0
jmp 0x10096500
and dword [ebp - 0x250], 0
cmp dword [ebp - 0x250], 1
jne 0x10096514
push 0xa
pop ecx
lea esi, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x250]
pop edi
pop esi
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.10071b1a
leave
ret