Function at 0x10094f23
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 [0x100e93e0]
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.100738a0
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.100738a0
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 0x1009539b
cmp dword [ebp - 0x818], 2
jbe 0x10095392
cmp dword [ebp - 0x818], 3
je 0x10095013
cmp dword [ebp - 0x818], 3
jbe 0x1009539b
cmp dword [ebp - 0x818], 6
jbe 0x10095392
jmp 0x1009539b
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 0x1009504b
jmp 0x100953a2
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 0x10095092
cmp dword [ebp - 4], 0x103
jbe 0x1009509e
and dword [ebp - 0x250], 0
jmp 0x100953a2
movzx eax, word [ebp - 0x248]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
jne 0x100950b4
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
je 0x10095125
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 0x1009510e
mov dword [ebp - 0x370], 0x114
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1009510e
and dword [ebp - 0x250], 0
jmp 0x100953a2
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x18], eax
jmp 0x10095386
push dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.10074cf5
add esp, 0xc
push 0xffffffffffffffff
push str.WindowsSystem32_ntoskrnl.exe
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.10076f68
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 0x1009537a
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.100738a0
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 0x100951df
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100953a2
mov eax, dword [ebp - 0x800]
inc eax
push eax
call fcn.1006ffa8
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 0x10095251
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x808], eax
push dword [ebp - 0x808]
call fcn.10072b5d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100953a2
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 0x100cc804
push dword [ebp - 0x7f4]
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
jne 0x100952bc
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x80c], eax
push dword [ebp - 0x80c]
call fcn.10072b5d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100953a2
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.100751ad
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 0x1009531d
cmp dword [ebp - 0x5e0], 4
jae 0x10095343
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x810], eax
push dword [ebp - 0x810]
call fcn.10072b5d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100953a2
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.10072b5d
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x250], 1
jmp 0x100953a2
and dword [ebp - 0x250], 0
jmp 0x100953a2
and dword [ebp - 0x250], 0
cmp dword [ebp - 0x250], 1
jne 0x100953b6
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.10070c21
leave
ret