Function at 0x10004820
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10140284
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x3ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3bc]
mov esi, ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
push 0x11c
lea ecx, [esp + 0x88]
push ebx
push ecx
mov dword [esp + 0x3c0], ebx
call sub.MSVCR80.dll_memset
xor ebp, ebp
add esp, 0xc
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x88], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x100049ca
mov edi, 2
cmp dword [esp + 0x94], edi
jne 0x10004b74
cmp dword [esp + 0x88], 4
jbe 0x10004b74
push str.Microsoft
lea ecx, [esp + 0x50]
call dword [0x101464cc]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
push ecx
call eax
mov eax, dword [esp + 0x88]
and dword [esp + 0x14], 0xffff
cmp eax, 5
jbe 0x10004a67
push 0x1fe
lea edx, [esp + 0x1aa]
push ebx
push edx
mov word [esp + 0x1b0], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esp + 0x20], 0xa
jne 0x10004998
cmp dword [esp + 0x24], ebx
jne 0x10004998
cmp dword [esp + 0x14], 0x55f0
jb 0x10004998
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.Windows_11]
mov word [esp + eax + 0x1a4], cx
add eax, edi
cmp cx, bx
jne 0x10004980
jmp 0x100049fa
call fcn.10006340
mov edi, esi
call fcn.10004c50
test al, al
je 0x100049ca
push esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x20], 0x200
call fcn.10004cf0
test al, al
jne 0x100049f5
call fcn.10004c00
push str.Get_System_Error
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3b4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x10004bcf
call fcn.10004c00
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x3b8], 1
call dword [0x101464c8]
push 0x1014ca2c
lea ecx, [esp + 0x50]
call dword [0x101464cc]
call fcn.10006340
test al, al
lea ecx, [esp + 0x4c]
je 0x10004a46
push 0x1014ca30
jmp 0x10004a4b
push 0x1014ca38
call dword [0x101464cc]
lea ecx, [esp + 0x68]
mov byte [esp + 0x3b4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x10004b74
jne 0x10004b74
push 0x59
mov dword [esp + 0x90], edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10004a87
push 0x1014ca40
jmp 0x10004ac3
test dword [esp + 0x19c], 0x2000
je 0x10004a9b
push str.Windows_Strorage_Server_2003
jmp 0x10004ac3
cmp byte [esp + 0x19e], 1
jne 0x10004abe
cmp bp, 9
jne 0x10004ab2
push str.Windows_XP_Professional_x64_Edition
jmp 0x10004ac3
cmp bp, bx
jne 0x10004abe
push str.Windows_XP_Professional_x64_Edition
jmp 0x10004ac3
push str.Windows_Server_2003
lea ecx, [esp + 0x50]
call dword [0x101464cc]
cmp byte [esp + 0x19e], 1
je 0x10004b74
cmp bp, 6
jne 0x10004afe
mov al, byte [esp + 0x19c]
test al, al
jns 0x10004af3
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x10004b6a
test al, 2
je 0x10004b74
push str.Enterprise_Edition_for_Itanium_base_Systems
jmp 0x10004b6a
cmp bp, 9
jne 0x10004b2c
mov al, byte [esp + 0x19c]
test al, al
jns 0x10004b16
push str.Datacenter_x64_Edition
jmp 0x10004b6a
test al, 2
lea ecx, [esp + 0x4c]
je 0x10004b25
push str.Enterprise_x64_Edition
jmp 0x10004b6e
push str.Standard_x64_Edition
jmp 0x10004b6e
mov eax, dword [esp + 0x19c]
test eax, 0x4000
je 0x10004b41
push str.Compute_Cluster_Edition
jmp 0x10004b6a
test al, al
jns 0x10004b4c
push str.Datacenter_Edition
jmp 0x10004b6a
test al, 2
je 0x10004b57
push str.Enterprise_Edition
jmp 0x10004b6a
test eax, 0x400
je 0x10004b65
push str.Web_Edition
jmp 0x10004b6a
push str.Standard_Edition
lea ecx, [esp + 0x50]
call dword [0x101464cc]
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x10004b83
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.10001190
add esp, 8
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x3b8], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x3b4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3b4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1012d370
add esp, 0x3a4
ret 4