Function at 0x10003af0
Capabilities:
Check os version
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1000e640
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x1001509c]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebp
push esi
push edi
mov eax, dword [0x1001509c]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c0]
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call dword [0x10010284]
xor eax, eax
mov dword [esp + 0x1b8], eax
push 0x11c
push eax
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], 0x11c
call edi
mov ebp, eax
test ebp, ebp
jne 0x10003bcc
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x94], 0x114
call edi
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
push ecx
push edx
push eax
push str.Version__d._d__bulid__lu_
push esi
mov esi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
call esi
lea ecx, [esp + 0x7c]
add esp, 0x14
test ecx, ecx
je 0x10003c2c
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003c21
lea edx, [esp + 0x68]
push edx
call eax
jmp 0x10003c2c
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xa0]
sub eax, 0
je 0x1000447a
sub eax, 1
je 0x1000436c
sub eax, 1
jne 0x10004489
cmp dword [esp + 0x94], 6
lea edi, [eax + 2]
jne 0x10003c8a
cmp dword [esp + 0x98], 3
jne 0x10003cd5
cmp byte [esp + 0x1aa], 1
jne 0x10003c7b
push str.Windows_8.1
lea ecx, [esp + 0x14]
push ecx
jmp 0x10003c85
push str.Windows_Server_2012_R2
lea edx, [esp + 0x14]
push edx
call esi
add esp, 8
cmp dword [esp + 0x94], 0xa
jne 0x10003cc7
cmp dword [esp + 0x98], 0
jne 0x10003e34
cmp byte [esp + 0x1aa], 1
jne 0x10003cb8
push str.Windows_10
lea eax, [esp + 0x14]
push eax
jmp 0x10003cc2
push str.Windows_Server_2016
lea ecx, [esp + 0x14]
push ecx
call esi
add esp, 8
cmp dword [esp + 0x94], 6
jne 0x10003d79
cmp dword [esp + 0x98], 1
jne 0x10003d0e
cmp byte [esp + 0x1aa], 1
jne 0x10003cf5
push str.Windows_7
lea edx, [esp + 0x14]
push edx
jmp 0x10003cff
push str.Windows_Server_2008_R2_Longhorn_
lea eax, [esp + 0x14]
push eax
call esi
add esp, 8
cmp dword [esp + 0x94], 6
jne 0x10003d79
cmp dword [esp + 0x98], edi
jne 0x10003d46
cmp byte [esp + 0x1aa], 1
jne 0x10003d2d
push str.Windows_8
lea ecx, [esp + 0x14]
push ecx
jmp 0x10003d37
push str.Windows_Server_2012
lea edx, [esp + 0x14]
push edx
call esi
add esp, 8
cmp dword [esp + 0x94], 6
jne 0x10003d79
cmp dword [esp + 0x98], 0
jne 0x10003e34
cmp byte [esp + 0x1aa], 1
jne 0x10003d6a
push str.Windows_Vista
lea eax, [esp + 0x14]
push eax
jmp 0x10003d74
push str.Windows_Server__Longhorn_
lea ecx, [esp + 0x14]
push ecx
call esi
add esp, 8
cmp dword [esp + 0x94], 5
jne 0x10003e1b
cmp dword [esp + 0x98], edi
jne 0x10003ddf
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10003da8
push str.Microsoft_Windows_Server_2003__R2_
lea edx, [esp + 0x14]
push edx
jmp 0x10003dd0
cmp byte [esp + 0x1aa], 1
jne 0x10003dc6
cmp word [esp + 0x68], 9
jne 0x10003dc6
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea eax, [esp + 0x14]
push eax
jmp 0x10003dd0
push str.Microsoft_Windows_Server_2003_
lea ecx, [esp + 0x14]
push ecx
call esi
add esp, 8
cmp dword [esp + 0x94], 5
jne 0x10003e1b
cmp dword [esp + 0x98], 1
jne 0x10003e02
lea edx, [esp + 0x10]
push str.Microsoft_Windows_XP
push edx
call esi
add esp, 8
cmp dword [esp + 0x94], 5
jne 0x10003e1b
cmp dword [esp + 0x98], 0
jne 0x10003e34
lea eax, [esp + 0x10]
push str.Microsoft_Windows_2000
push eax
call esi
add esp, 8
cmp dword [esp + 0x94], 4
ja 0x10003e34
lea ecx, [esp + 0x10]
push str.Microsoft_Windows_NT
push ecx
call esi
add esp, 8
test ebp, ebp
je 0x1000433b
movzx edx, word [esp + 0x1a4]
push edx
push str.Service_Pack__d
push ebx
call esi
mov al, byte [esp + 0x1b6]
add esp, 0xc
cmp al, 1
jne 0x10003f1b
cmp word [esp + 0x68], 9
je 0x1000427f
cmp dword [esp + 0x94], 4
jne 0x10003ea8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
push ecx
mov edi, str.Workstation_4.0
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 1
call dword [0x10010280]
lea ecx, [esp + 0x44]
jmp 0x10004271
test dword [esp + 0x1a8], 0x200
je 0x10003ee8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x4c]
push eax
mov edi, str.Home_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 2
call dword [0x10010280]
lea ecx, [esp + 0x48]
jmp 0x10004271
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
mov edi, str.Professional
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 3
call dword [0x10010280]
lea ecx, [esp + 0x24]
jmp 0x10004271
cmp al, 3
je 0x10003f27
cmp al, 2
jne 0x1000427f
cmp dword [esp + 0x94], 5
jne 0x10004209
mov eax, dword [esp + 0x98]
cmp eax, 2
jne 0x1000415c
mov eax, dword [esp + 0x68]
cmp ax, 6
jne 0x10003fc8
mov al, byte [esp + 0x1a8]
test al, al
jns 0x10003f8d
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x50]
push ecx
mov edi, str.Datacenter_Edition_for_Itanium_based_Systems
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 4
call dword [0x10010280]
lea ecx, [esp + 0x4c]
jmp 0x10004271
test al, 2
je 0x10004317
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
mov edi, str.Enterprise_Edition_for_Itanium_based_Systems
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 5
call dword [0x10010280]
lea ecx, [esp + 0x2c]
jmp 0x10004271
cmp ax, 9
jne 0x1000407a
mov al, byte [esp + 0x1a8]
test al, al
jns 0x10004010
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x64]
push edx
mov edi, str.Datacenter_x64_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 6
call dword [0x10010280]
lea ecx, [esp + 0x60]
jmp 0x10004271
test al, 2
je 0x10004047
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edi, str.Enterprise_x64_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 7
call dword [0x10010280]
lea ecx, [esp + 0x34]
jmp 0x10004271
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x58]
push eax
mov edi, str.Standard_x64_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 8
call dword [0x10010280]
lea ecx, [esp + 0x54]
jmp 0x10004271
mov eax, dword [esp + 0x1a8]
test al, al
jns 0x100040b8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov edi, str.Datacenter_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 9
call dword [0x10010280]
lea ecx, [esp + 0x3c]
jmp 0x10004271
test al, 2
je 0x100040ef
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x68]
push ecx
mov edi, str.Enterprise_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xa
call dword [0x10010280]
lea ecx, [esp + 0x64]
jmp 0x10004271
test eax, 0x400
je 0x10004129
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
mov edi, str.Web_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xb
call dword [0x10010280]
lea ecx, [esp + 0x1c]
jmp 0x10004271
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x60]
push edx
mov edi, str.Standard_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xc
call dword [0x10010280]
lea ecx, [esp + 0x5c]
jmp 0x10004271
test eax, eax
jne 0x10004209
mov al, byte [esp + 0x1a8]
test al, al
jns 0x100041a2
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
mov edi, str.Datacenter_Server
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xd
call dword [0x10010280]
lea ecx, [esp + 0x20]
jmp 0x10004271
test al, 2
je 0x100041d9
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
mov edi, str.Advanced_Server
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xe
call dword [0x10010280]
lea ecx, [esp + 0x28]
jmp 0x10004271
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
mov edi, str.Server
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xf
call dword [0x10010280]
lea ecx, [esp + 0x30]
jmp 0x10004271
test byte [esp + 0x1a8], 2
je 0x10004243
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edi, str.Server_4.0__Enterprise_Edition
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0x10
call dword [0x10010280]
lea ecx, [esp + 0x38]
jmp 0x10004271
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
mov edi, str.Server_4.0
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0x11
call dword [0x10010280]
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b8], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [esp + 0x94], 4
jne 0x10004317
push str.Service_Pack_6
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004317
lea edx, [esp + 0x18]
push edx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.machinecode.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100042e8
movzx eax, word [esp + 0x9c]
push eax
lea ecx, [esp + 0x14]
push str.Service_Pack_6a__Build__d__n
push ecx
call esi
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004489
movzx edx, word [esp + 0x9c]
push edx
lea eax, [esp + 0xa8]
push eax
push str._s__Build__d__n
call dword [sym.imp.MSVCR90.dll_wprintf]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004489
movzx edx, word [esp + 0x9c]
push edx
lea eax, [esp + 0xa8]
push eax
push str._s__Build__d__n
call dword [sym.imp.MSVCR90.dll_wprintf]
add esp, 0xc
jmp 0x10004489
lea ecx, [esp + 0x8c]
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.machinecode.dll_Ordinal_2
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10004498
jmp 0x10004489
cmp dword [esp + 0x94], 4
jne 0x10004489
cmp dword [esp + 0x98], 0
jne 0x100043f1
lea eax, [esp + 0x10]
push str.Microsoft_Windows_95
push eax
call esi
mov ax, word [esp + 0xae]
add esp, 8
cmp ax, 0x43
je 0x100043a7
cmp ax, 0x42
jne 0x100043e3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x54]
push edx
mov edi, str.OSR2
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0x15
call dword [0x10010280]
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b8], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [esp + 0x94], 4
jne 0x10004489
cmp dword [esp + 0x98], 0xa
jne 0x10004464
lea eax, [esp + 0x10]
push str.Microsoft_Windows_98
push eax
call esi
mov ax, word [esp + 0xae]
add esp, 8
cmp ax, 0x41
je 0x1000441e
cmp ax, 0x42
jne 0x1000445a
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x5c]
push edx
mov edi, 0x100112a4
call fcn.10004e90
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0x16
call dword [0x10010280]
lea ecx, [esp + 0x58]
mov byte [esp + 0x1b8], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [esp + 0x94], 4
jne 0x10004489
cmp dword [esp + 0x98], 0x5a
jne 0x10004489
push str.Microsoft_Windows_Millennium_Edition_n
lea eax, [esp + 0x14]
push eax
jmp 0x10004484
push str.Microsoft_Win32s_n
lea ecx, [esp + 0x14]
push ecx
call esi
add esp, 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
call dword [0x10010280]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.1000d2b5
add esp, 0x1ac
ret 4