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

Disassembly:
push 0xffffffffffffffff
push 0x1000e730
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 0x10003b2c
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 0x10003b8c
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 0x10003b81
lea edx, [esp + 0x68]
push edx
call eax
jmp 0x10003b8c
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xa0]
sub eax, 0
je 0x100043da
sub eax, 1
je 0x100042cc
sub eax, 1
jne 0x100043e9
cmp dword [esp + 0x94], 6
lea edi, [eax + 2]
jne 0x10003bea
cmp dword [esp + 0x98], 3
jne 0x10003c35
cmp byte [esp + 0x1aa], 1
jne 0x10003bdb
push str.Windows_8.1
lea ecx, [esp + 0x14]
push ecx
jmp 0x10003be5
push str.Windows_Server_2012_R2
lea edx, [esp + 0x14]
push edx
call esi
add esp, 8
cmp dword [esp + 0x94], 0xa
jne 0x10003c27
cmp dword [esp + 0x98], 0
jne 0x10003d94
cmp byte [esp + 0x1aa], 1
jne 0x10003c18
push str.Windows_10
lea eax, [esp + 0x14]
push eax
jmp 0x10003c22
push str.Windows_Server_2016
lea ecx, [esp + 0x14]
push ecx
call esi
add esp, 8
cmp dword [esp + 0x94], 6
jne 0x10003cd9
cmp dword [esp + 0x98], 1
jne 0x10003c6e
cmp byte [esp + 0x1aa], 1
jne 0x10003c55
push str.Windows_7
lea edx, [esp + 0x14]
push edx
jmp 0x10003c5f
push str.Windows_Server_2008_R2_Longhorn_
lea eax, [esp + 0x14]
push eax
call esi
add esp, 8
cmp dword [esp + 0x94], 6
jne 0x10003cd9
cmp dword [esp + 0x98], edi
jne 0x10003ca6
cmp byte [esp + 0x1aa], 1
jne 0x10003c8d
push str.Windows_8
lea ecx, [esp + 0x14]
push ecx
jmp 0x10003c97
push str.Windows_Server_2012
lea edx, [esp + 0x14]
push edx
call esi
add esp, 8
cmp dword [esp + 0x94], 6
jne 0x10003cd9
cmp dword [esp + 0x98], 0
jne 0x10003d94
cmp byte [esp + 0x1aa], 1
jne 0x10003cca
push str.Windows_Vista
lea eax, [esp + 0x14]
push eax
jmp 0x10003cd4
push str.Windows_Server__Longhorn_
lea ecx, [esp + 0x14]
push ecx
call esi
add esp, 8
cmp dword [esp + 0x94], 5
jne 0x10003d7b
cmp dword [esp + 0x98], edi
jne 0x10003d3f
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10003d08
push str.Microsoft_Windows_Server_2003__R2_
lea edx, [esp + 0x14]
push edx
jmp 0x10003d30
cmp byte [esp + 0x1aa], 1
jne 0x10003d26
cmp word [esp + 0x68], 9
jne 0x10003d26
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea eax, [esp + 0x14]
push eax
jmp 0x10003d30
push str.Microsoft_Windows_Server_2003_
lea ecx, [esp + 0x14]
push ecx
call esi
add esp, 8
cmp dword [esp + 0x94], 5
jne 0x10003d7b
cmp dword [esp + 0x98], 1
jne 0x10003d62
lea edx, [esp + 0x10]
push str.Microsoft_Windows_XP
push edx
call esi
add esp, 8
cmp dword [esp + 0x94], 5
jne 0x10003d7b
cmp dword [esp + 0x98], 0
jne 0x10003d94
lea eax, [esp + 0x10]
push str.Microsoft_Windows_2000
push eax
call esi
add esp, 8
cmp dword [esp + 0x94], 4
ja 0x10003d94
lea ecx, [esp + 0x10]
push str.Microsoft_Windows_NT
push ecx
call esi
add esp, 8
test ebp, ebp
je 0x1000429b
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 0x10003e7b
cmp word [esp + 0x68], 9
je 0x100041df
cmp dword [esp + 0x94], 4
jne 0x10003e08
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
push ecx
mov edi, str.Workstation_4.0
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 1
call dword [0x10010280]
lea ecx, [esp + 0x44]
jmp 0x100041d1
test dword [esp + 0x1a8], 0x200
je 0x10003e48
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x4c]
push eax
mov edi, str.Home_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 2
call dword [0x10010280]
lea ecx, [esp + 0x48]
jmp 0x100041d1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
mov edi, str.Professional
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 3
call dword [0x10010280]
lea ecx, [esp + 0x24]
jmp 0x100041d1
cmp al, 3
je 0x10003e87
cmp al, 2
jne 0x100041df
cmp dword [esp + 0x94], 5
jne 0x10004169
mov eax, dword [esp + 0x98]
cmp eax, 2
jne 0x100040bc
mov eax, dword [esp + 0x68]
cmp ax, 6
jne 0x10003f28
mov al, byte [esp + 0x1a8]
test al, al
jns 0x10003eed
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x50]
push ecx
mov edi, str.Datacenter_Edition_for_Itanium_based_Systems
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 4
call dword [0x10010280]
lea ecx, [esp + 0x4c]
jmp 0x100041d1
test al, 2
je 0x10004277
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
mov edi, str.Enterprise_Edition_for_Itanium_based_Systems
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 5
call dword [0x10010280]
lea ecx, [esp + 0x2c]
jmp 0x100041d1
cmp ax, 9
jne 0x10003fda
mov al, byte [esp + 0x1a8]
test al, al
jns 0x10003f70
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x64]
push edx
mov edi, str.Datacenter_x64_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 6
call dword [0x10010280]
lea ecx, [esp + 0x60]
jmp 0x100041d1
test al, 2
je 0x10003fa7
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edi, str.Enterprise_x64_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 7
call dword [0x10010280]
lea ecx, [esp + 0x34]
jmp 0x100041d1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x58]
push eax
mov edi, str.Standard_x64_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 8
call dword [0x10010280]
lea ecx, [esp + 0x54]
jmp 0x100041d1
mov eax, dword [esp + 0x1a8]
test al, al
jns 0x10004018
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov edi, str.Datacenter_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 9
call dword [0x10010280]
lea ecx, [esp + 0x3c]
jmp 0x100041d1
test al, 2
je 0x1000404f
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x68]
push ecx
mov edi, str.Enterprise_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xa
call dword [0x10010280]
lea ecx, [esp + 0x64]
jmp 0x100041d1
test eax, 0x400
je 0x10004089
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
mov edi, str.Web_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xb
call dword [0x10010280]
lea ecx, [esp + 0x1c]
jmp 0x100041d1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x60]
push edx
mov edi, str.Standard_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xc
call dword [0x10010280]
lea ecx, [esp + 0x5c]
jmp 0x100041d1
test eax, eax
jne 0x10004169
mov al, byte [esp + 0x1a8]
test al, al
jns 0x10004102
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
mov edi, str.Datacenter_Server
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xd
call dword [0x10010280]
lea ecx, [esp + 0x20]
jmp 0x100041d1
test al, 2
je 0x10004139
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
mov edi, str.Advanced_Server
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xe
call dword [0x10010280]
lea ecx, [esp + 0x28]
jmp 0x100041d1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
mov edi, str.Server
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0xf
call dword [0x10010280]
lea ecx, [esp + 0x30]
jmp 0x100041d1
test byte [esp + 0x1a8], 2
je 0x100041a3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edi, str.Server_4.0__Enterprise_Edition
call fcn.10004df0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 0x10
call dword [0x10010280]
lea ecx, [esp + 0x38]
jmp 0x100041d1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
mov edi, str.Server_4.0
call fcn.10004df0
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 0x10004277
push str.Service_Pack_6
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004277
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 0x10004248
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 0x100043e9
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 0x100043e9
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 0x100043e9
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 0x100043f8
jmp 0x100043e9
cmp dword [esp + 0x94], 4
jne 0x100043e9
cmp dword [esp + 0x98], 0
jne 0x10004351
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 0x10004307
cmp ax, 0x42
jne 0x10004343
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x54]
push edx
mov edi, str.OSR2
call fcn.10004df0
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 0x100043e9
cmp dword [esp + 0x98], 0xa
jne 0x100043c4
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 0x1000437e
cmp ax, 0x42
jne 0x100043ba
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x5c]
push edx
mov edi, 0x1001128c
call fcn.10004df0
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 0x100043e9
cmp dword [esp + 0x98], 0x5a
jne 0x100043e9
push str.Microsoft_Windows_Millennium_Edition_n
lea eax, [esp + 0x14]
push eax
jmp 0x100043e4
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.1000d345
add esp, 0x1ac
ret 4