Function at 0x10004770
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10113944
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1013b024]
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 0x1000491a
mov edi, 2
cmp dword [esp + 0x94], edi
jne 0x10004ac4
cmp dword [esp + 0x88], 4
jbe 0x10004ac4
push str.Microsoft
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__]
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 0x100049b7
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 0x100048e8
cmp dword [esp + 0x24], ebx
jne 0x100048e8
cmp dword [esp + 0x14], 0x55f0
jb 0x100048e8
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 0x100048d0
jmp 0x1000494a
call fcn.10006480
mov edi, esi
call fcn.10004ba0
test al, al
je 0x1000491a
push esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x20], 0x200
call fcn.10004e30
test al, al
jne 0x10004945
call fcn.10004b50
push str.Get_System_Error
lea ecx, [esp + 0x50]
call dword [0x101193e4]
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 0x10004b1f
call fcn.10004b50
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 [0x10119408]
push 0x1011e63c
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__]
call fcn.10006480
test al, al
lea ecx, [esp + 0x4c]
je 0x10004996
push 0x1011e640
jmp 0x1000499b
push 0x1011e648
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 + 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 0x10004ac4
jne 0x10004ac4
push 0x59
mov dword [esp + 0x90], edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100049d7
push 0x1011e650
jmp 0x10004a13
test dword [esp + 0x19c], 0x2000
je 0x100049eb
push str.Windows_Strorage_Server_2003
jmp 0x10004a13
cmp byte [esp + 0x19e], 1
jne 0x10004a0e
cmp bp, 9
jne 0x10004a02
push str.Windows_XP_Professional_x64_Edition
jmp 0x10004a13
cmp bp, bx
jne 0x10004a0e
push str.Windows_XP_Professional_x64_Edition
jmp 0x10004a13
push str.Windows_Server_2003
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__]
cmp byte [esp + 0x19e], 1
je 0x10004ac4
cmp bp, 6
jne 0x10004a4e
mov al, byte [esp + 0x19c]
test al, al
jns 0x10004a43
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x10004aba
test al, 2
je 0x10004ac4
push str.Enterprise_Edition_for_Itanium_base_Systems
jmp 0x10004aba
cmp bp, 9
jne 0x10004a7c
mov al, byte [esp + 0x19c]
test al, al
jns 0x10004a66
push str.Datacenter_x64_Edition
jmp 0x10004aba
test al, 2
lea ecx, [esp + 0x4c]
je 0x10004a75
push str.Enterprise_x64_Edition
jmp 0x10004abe
push str.Standard_x64_Edition
jmp 0x10004abe
mov eax, dword [esp + 0x19c]
test eax, 0x4000
je 0x10004a91
push str.Compute_Cluster_Edition
jmp 0x10004aba
test al, al
jns 0x10004a9c
push str.Datacenter_Edition
jmp 0x10004aba
test al, 2
je 0x10004aa7
push str.Enterprise_Edition
jmp 0x10004aba
test eax, 0x400
je 0x10004ab5
push str.Web_Edition
jmp 0x10004aba
push str.Standard_Edition
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__]
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x10004ad3
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.10001140
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.1010dc50
add esp, 0x3a4
ret 4