Function at 0x1009bcd3
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 [0x100f93e0]
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.100771d0
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.100771d0
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 0x1009c14b
cmp dword [ebp - 0x818], 2
jbe 0x1009c142
cmp dword [ebp - 0x818], 3
je 0x1009bdc3
cmp dword [ebp - 0x818], 3
jbe 0x1009c14b
cmp dword [ebp - 0x818], 6
jbe 0x1009c142
jmp 0x1009c14b
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 0x1009bdfb
jmp 0x1009c152
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 0x1009be42
cmp dword [ebp - 4], 0x103
jbe 0x1009be4e
and dword [ebp - 0x250], 0
jmp 0x1009c152
movzx eax, word [ebp - 0x248]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
jne 0x1009be64
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
je 0x1009bed5
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 0x1009bebe
mov dword [ebp - 0x370], 0x114
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1009bebe
and dword [ebp - 0x250], 0
jmp 0x1009c152
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x18], eax
jmp 0x1009c136
push dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.100773e4
add esp, 0xc
push 0xffffffffffffffff
push str.WindowsSystem32_ntoskrnl.exe
push 0x103
lea eax, [ebp - 0x248]
push eax
call fcn.1007d8a8
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 0x1009c12a
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.100771d0
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 0x1009bf8f
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1009c152
mov eax, dword [ebp - 0x800]
inc eax
push eax
call fcn.10076ac2
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 0x1009c001
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x808], eax
push dword [ebp - 0x808]
call fcn.1007a47b
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1009c152
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 0x100daf0c
push dword [ebp - 0x7f4]
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
jne 0x1009c06c
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x80c], eax
push dword [ebp - 0x80c]
call fcn.1007a47b
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1009c152
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.10077313
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 0x1009c0cd
cmp dword [ebp - 0x5e0], 4
jae 0x1009c0f3
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x810], eax
push dword [ebp - 0x810]
call fcn.1007a47b
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1009c152
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.1007a47b
pop ecx
push dword [ebp - 0x5dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x250], 1
jmp 0x1009c152
and dword [ebp - 0x250], 0
jmp 0x1009c152
and dword [ebp - 0x250], 0
cmp dword [ebp - 0x250], 1
jne 0x1009c166
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.100771ba
leave
ret