Function at 0x1000a900
Capabilities:
Check os version
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10137ee7
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x1018e600]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x1018e600]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
push 0x11c
mov dword [esp + 0x26c], edi
call fcn.1001ee4b
mov esi, eax
add esp, 4
cmp esi, edi
je 0x1000a979
push 0x11c
push edi
push esi
call fcn.10111520
add esp, 0xc
jmp 0x1000a97b
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
mov dword [esi], 0x11c
call ebx
mov edi, dword [esi + 4]
push esi
call fcn.1001ee85
add esp, 4
cmp edi, 5
jne 0x1000abb1
push 0x11c
call fcn.1001ee4b
mov esi, eax
add esp, 4
test esi, esi
je 0x1000a9c4
push 0x11c
push 0
push esi
call fcn.10111520
add esp, 0xc
jmp 0x1000a9c6
xor esi, esi
push esi
mov dword [esi], 0x11c
call ebx
mov edi, dword [esi + 8]
push esi
call fcn.1001ee85
add esp, 4
cmp edi, 1
jne 0x1000abb1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call sym.BootstrapLibrary.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_ConditionChecker::FindWindowsDir_void_
push str.System32MSI.DLL
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x274], 1
call fcn.10006d40
add esp, 0xc
mov byte [esp + 0x268], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000aa35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x1000ac1e
push esi
call fcn.1001ee7a
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x10]
push edi
push esi
push 0
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1000abf4
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x101676e4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000abe0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
movzx ebx, ax
movzx eax, cx
push eax
mov edi, ecx
shr edi, 0x10
push edi
push ebx
shr esi, 0x10
push esi
push str._is_version:__d._d._d._d_n
mov dword [esp + 0x38], eax
lea eax, [esp + 0x60]
push 0x104
push eax
call fcn.1010e498
add esp, 0x1c
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x20]
call fcn.10003a30
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push str.CBootstrapPrereqCheck::IsWinInstallerInstalled____
push eax
mov byte [esp + 0x274], 4
call fcn.10003c60
mov edx, dword [esp + 0x38]
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
push eax
push ecx
mov byte [esp + 0x278], 5
call fcn.10006c80
add esp, 0xc
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
add esp, 4
lea ecx, [esp + 0x28]
call sym.BootstrapLibrary.dll_public:_void___thiscall_RebootNow::destructor_void_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x268], 3
call sym.BootstrapLibrary.dll_public:_void___thiscall_RebootNow::destructor_void_
cmp esi, 3
ja 0x1000ab82
jne 0x1000ab5a
cmp ebx, 1
jb 0x1000ab5a
cmp edi, 0xfa0
jb 0x1000ab5a
cmp dword [esp + 0x24], 0x983
jae 0x1000ab82
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CBootstrapPrereqCheck::IsWinInstallerInstalled_____The_version_of_Windows_Installer_on_the_system_does_not_meet_the_prereqs_required_by_.NET._An_install_of_a_newer_Windows_Installer_is_needed._n
call fcn.10003a30
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
mov edi, dword [esp + 0x1c]
add esp, 4
push edi
call fcn.1001ee85
jmp 0x1000ac3d
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CBootstrapPrereqCheck::IsWinInstallerInstalled_____The_version_of_Windows_Installer_on_the_system_meets_the_prereqs_required_by_.NET._n
call fcn.10003a30
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.1001ee85
add esp, 4
lea ecx, [esp + 0x10]
call sym.BootstrapLibrary.dll_public:_void___thiscall_RebootNow::destructor_void_
lea ebx, [esp + 0x34]
call fcn.10007080
mov al, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.1010d913
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
lea edx, [esp + 0x14]
push edx
push str.CBootstrapPrereqCheck::IsWinInstallerInstalled_____Could_not_perform_version_query_value_for
push ecx
jmp 0x1000ac06
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
lea ecx, [esp + 0x14]
push ecx
push str.CBootstrapPrereqCheck::IsWinInstallerInstalled_____Could_not_get_file_version_info_for
push eax
call fcn.10003c60
add esp, 0xc
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
add esp, 4
push edi
call fcn.1001ee85
jmp 0x1000ac3d
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
lea eax, [esp + 0x14]
push eax
push str.CBootstrapPrereqCheck::IsWinInstallerInstalled_____Could_not_get_file_version_info_size_for
push edx
call fcn.10003c60
add esp, 0xc
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
mov byte [esp + 0x26c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ac68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x34]
call fcn.10007080
xor al, al
jmp 0x1000abbc