Function at 0x10096091
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.10071b20
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.10071b20
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 0x10096509
cmp dword [ebp - 0x818], 2
jbe 0x10096500
cmp dword [ebp - 0x818], 3
je 0x10096181
cmp dword [ebp - 0x818], 3
jbe 0x10096509
cmp dword [ebp - 0x818], 6
jbe 0x10096500
jmp 0x10096509
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 0x100961b9
jmp 0x10096510
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 0x10096200
cmp dword [ebp - 4], 0x103
jbe 0x1009620c
and dword [ebp - 0x250], 0
jmp 0x10096510
movzx eax, word [ebp - 0x248]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
jne 0x10096222
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
je 0x10096293
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 0x1009627c
mov dword [ebp - 0x370], 0x114
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1009627c
and dword [ebp - 0x250], 0
jmp 0x10096510
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x18], eax
jmp 0x100964f4
push dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.10075b74
add esp, 0xc
push 0xffffffffffffffff
push str.WindowsSystem32_ntoskrnl.exe
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.100782ce
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 0x100964e8
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.10071b20
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 0x1009634d
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096510
mov eax, dword [ebp - 0x800]
inc eax
push eax
call fcn.10071417
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 0x100963bf
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x808], eax
push dword [ebp - 0x808]
call fcn.10075252
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096510
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 0x1009642a
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x80c], eax
push dword [ebp - 0x80c]
call fcn.10075252
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096510
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.10071c63
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 0x1009648b
cmp dword [ebp - 0x5e0], 4
jae 0x100964b1
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x810], eax
push dword [ebp - 0x810]
call fcn.10075252
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10096510
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.10075252
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x250], 1
jmp 0x10096510
and dword [ebp - 0x250], 0
jmp 0x10096510
and dword [ebp - 0x250], 0
cmp dword [ebp - 0x250], 1
jne 0x10096524
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.10071b0a
leave
ret