Function at 0x100952b1
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 [0x100ea3e0]
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.10073a50
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.10073a50
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 0x10095729
cmp dword [ebp - 0x818], 2
jbe 0x10095720
cmp dword [ebp - 0x818], 3
je 0x100953a1
cmp dword [ebp - 0x818], 3
jbe 0x10095729
cmp dword [ebp - 0x818], 6
jbe 0x10095720
jmp 0x10095729
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 0x100953d9
jmp 0x10095730
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 0x10095420
cmp dword [ebp - 4], 0x103
jbe 0x1009542c
and dword [ebp - 0x250], 0
jmp 0x10095730
movzx eax, word [ebp - 0x248]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
jne 0x10095442
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
je 0x100954b3
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 0x1009549c
mov dword [ebp - 0x370], 0x114
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1009549c
and dword [ebp - 0x250], 0
jmp 0x10095730
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x18], eax
jmp 0x10095714
push dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.10074ec3
add esp, 0xc
push 0xffffffffffffffff
push str.WindowsSystem32_ntoskrnl.exe
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.10077141
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 0x10095708
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.10073a50
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 0x1009556d
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10095730
mov eax, dword [ebp - 0x800]
inc eax
push eax
call fcn.10070158
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 0x100955df
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x808], eax
push dword [ebp - 0x808]
call fcn.10072d0d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10095730
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 0x100cd8c4
push dword [ebp - 0x7f4]
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
jne 0x1009564a
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x80c], eax
push dword [ebp - 0x80c]
call fcn.10072d0d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10095730
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.1007537b
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 0x100956ab
cmp dword [ebp - 0x5e0], 4
jae 0x100956d1
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x810], eax
push dword [ebp - 0x810]
call fcn.10072d0d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10095730
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.10072d0d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x250], 1
jmp 0x10095730
and dword [ebp - 0x250], 0
jmp 0x10095730
and dword [ebp - 0x250], 0
cmp dword [ebp - 0x250], 1
jne 0x10095744
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.10070dd1
leave
ret