Function at 0x10004810
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x101462c4
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
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 0x100049ba
mov edi, 2
cmp dword [esp + 0x94], edi
jne 0x10004b64
cmp dword [esp + 0x88], 4
jbe 0x10004b64
push str.Microsoft
lea ecx, [esp + 0x50]
call dword [0x1014c4e8]
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 0x10004a57
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 0x10004988
cmp dword [esp + 0x24], ebx
jne 0x10004988
cmp dword [esp + 0x14], 0x55f0
jb 0x10004988
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 0x10004970
jmp 0x100049ea
call fcn.10006520
mov edi, esi
call fcn.10004c40
test al, al
je 0x100049ba
push esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x20], 0x200
call fcn.10004ed0
test al, al
jne 0x100049e5
call fcn.10004bf0
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 0x10004bbf
call fcn.10004bf0
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 [0x1014c4e4]
push 0x10152d5c
lea ecx, [esp + 0x50]
call dword [0x1014c4e8]
call fcn.10006520
test al, al
lea ecx, [esp + 0x4c]
je 0x10004a36
push 0x10152d60
jmp 0x10004a3b
push 0x10152d68
call dword [0x1014c4e8]
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 0x10004b64
jne 0x10004b64
push 0x59
mov dword [esp + 0x90], edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10004a77
push 0x10152d70
jmp 0x10004ab3
test dword [esp + 0x19c], 0x2000
je 0x10004a8b
push str.Windows_Strorage_Server_2003
jmp 0x10004ab3
cmp byte [esp + 0x19e], 1
jne 0x10004aae
cmp bp, 9
jne 0x10004aa2
push str.Windows_XP_Professional_x64_Edition
jmp 0x10004ab3
cmp bp, bx
jne 0x10004aae
push str.Windows_XP_Professional_x64_Edition
jmp 0x10004ab3
push str.Windows_Server_2003
lea ecx, [esp + 0x50]
call dword [0x1014c4e8]
cmp byte [esp + 0x19e], 1
je 0x10004b64
cmp bp, 6
jne 0x10004aee
mov al, byte [esp + 0x19c]
test al, al
jns 0x10004ae3
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x10004b5a
test al, 2
je 0x10004b64
push str.Enterprise_Edition_for_Itanium_base_Systems
jmp 0x10004b5a
cmp bp, 9
jne 0x10004b1c
mov al, byte [esp + 0x19c]
test al, al
jns 0x10004b06
push str.Datacenter_x64_Edition
jmp 0x10004b5a
test al, 2
lea ecx, [esp + 0x4c]
je 0x10004b15
push str.Enterprise_x64_Edition
jmp 0x10004b5e
push str.Standard_x64_Edition
jmp 0x10004b5e
mov eax, dword [esp + 0x19c]
test eax, 0x4000
je 0x10004b31
push str.Compute_Cluster_Edition
jmp 0x10004b5a
test al, al
jns 0x10004b3c
push str.Datacenter_Edition
jmp 0x10004b5a
test al, 2
je 0x10004b47
push str.Enterprise_Edition
jmp 0x10004b5a
test eax, 0x400
je 0x10004b55
push str.Web_Edition
jmp 0x10004b5a
push str.Standard_Edition
lea ecx, [esp + 0x50]
call dword [0x1014c4e8]
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x10004b73
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.10001180
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.10130e50
add esp, 0x3a4
ret 4