Function at 0x407500
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e561
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, 0x11c
push edi
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.004fb000
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x12c], edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x12c], edi
test eax, eax
je 0x40757c
lea ecx, [ebp - 0x12c]
push ecx
call eax
jmp 0x4075aa
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x12c]
push edx
call edi
test eax, eax
jne 0x4075aa
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x114
call edi
test eax, eax
je 0x407a58
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407604
lea ecx, [ebp - 0x158]
push ecx
call eax
jmp 0x407611
lea edx, [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x11c], 2
jne 0x407a58
mov eax, dword [ebp - 0x128]
cmp eax, 4
jb 0x407a58
cmp eax, 0xa
jne 0x407639
mov edx, str.Windows_10
jmp 0x4076ac
cmp eax, 6
jne case.0x407700.5
mov eax, dword [ebp - 0x124]
cmp eax, 3
jne 0x407663
cmp byte [ebp - 0x12], 1
mov edi, ebx
jne 0x40765c
mov edx, str.Windows_8.1
jmp 0x4076ae
mov edx, str.Windows_Server_2012_R2
jmp 0x4076ae
cmp eax, 2
jne 0x40767e
cmp byte [ebp - 0x12], 1
mov edi, ebx
jne 0x407677
mov edx, str.Windows_8
jmp 0x4076ae
mov edx, str.Windows_Server_2012
jmp 0x4076ae
cmp eax, 1
jne 0x407698
mov edi, ebx
cmp byte [ebp - 0x12], al
jne 0x407691
mov edx, str.Windows_7
jmp 0x4076ae
mov edx, str.Windows_Server_2008_R2
jmp 0x4076ae
test eax, eax
jne 0x4076b3
cmp byte [ebp - 0x12], 1
mov edx, str.Windows_Vista
je 0x4076ac
mov edx, str.Windows_Server_2008
mov edi, ebx
call fcn.0042bf00
push str.GetProductInfo
push str.kernel32.dll
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je case.0x407700.5
mov edx, dword [ebp - 0x124]
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [ebp - 0x128]
push 0
push 0
push edx
push ecx
call eax
mov eax, dword [ebp - 0x130]
dec eax
cmp eax, 0x2f
ja case.0x407700.5
movzx edx, byte [eax + 0x407ac0]
jmp dword [edx*4 + 0x407a78]
mov edx, str.Ultimate_Edition
jmp 0x40777c
mov edx, str.Professional
jmp 0x40777c
mov edx, str.Home_Premium_Edition
jmp 0x40777c
mov edx, str.Home_Basic_Edition
jmp 0x40777c
mov edx, str.Enterprise_Edition
jmp 0x40777c
mov edx, str.Business_Edition
jmp 0x40777c
mov edx, str.Starter_Edition
jmp 0x40777c
mov edx, str.Cluster_Server_Edition
jmp 0x40777c
mov edx, str.Datacenter_Edition
jmp 0x40777c
mov edx, str.Datacenter_Edition__core_installation_
jmp 0x40777c
mov edx, str.Enterprise_Edition__core_installation_
jmp 0x40777c
mov edx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x40777c
mov edx, str.Small_Business_Server
jmp 0x40777c
mov edx, str.Small_Business_Server_Premium_Edition
jmp 0x40777c
mov edx, str.Standard_Edition
jmp 0x40777c
mov edx, str.Standard_Edition__core_installation_
jmp 0x40777c
mov edx, str.Web_Server_Edition
mov edi, ebx
call fcn.00417940
mov esi, 5
cmp dword [ebp - 0x128], esi
jne 0x40790e
cmp dword [ebp - 0x124], 2
jne 0x407892
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4077b4
mov edx, str.Windows_Server_2003_R2_
jmp 0x4077ed
mov eax, dword [ebp - 0x14]
test eax, 0x2000
je 0x4077c5
mov edx, str.Windows_Storage_Server_2003
jmp 0x4077ed
test eax, 0x8000
je 0x4077d3
mov edx, str.Windows_Home_Server
jmp 0x4077ed
cmp byte [ebp - 0x12], 1
jne 0x4077e8
cmp word [ebp - 0x158], 9
mov edx, str.Windows_XP_Professional_x64_Edition
je 0x4077ed
mov edx, str.Windows_Server_2003_
mov edi, ebx
call fcn.00417940
cmp byte [ebp - 0x12], 1
je 0x40788a
mov eax, dword [ebp - 0x158]
cmp ax, 6
jne 0x407823
mov al, byte [ebp - 0x14]
test al, al
jns 0x407818
mov edx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x407883
test al, 2
je 0x40788a
mov edx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x407883
cmp ax, 9
jne 0x40784b
mov al, byte [ebp - 0x14]
test al, al
jns 0x407837
mov edx, str.Datacenter_x64_Edition
jmp 0x407883
mov edi, ebx
test al, 2
je 0x407844
mov edx, str.Enterprise_x64_Edition
jmp 0x407885
mov edx, str.Standard_x64_Edition
jmp 0x407885
mov eax, dword [ebp - 0x14]
test eax, 0x4000
je 0x40785c
mov edx, str.Compute_Cluster_Edition
jmp 0x407883
test al, al
jns 0x407867
mov edx, str.Datacenter_Edition
jmp 0x407883
test al, 2
je 0x407872
mov edx, str.Enterprise_Edition
jmp 0x407883
mov edx, str.Web_Edition
test eax, 0x400
jne 0x407883
mov edx, str.Standard_Edition
mov edi, ebx
call fcn.00417940
cmp dword [ebp - 0x128], esi
jne 0x40790e
cmp dword [ebp - 0x124], 1
jne 0x4078c7
mov edx, str.Windows_XP
mov edi, ebx
call fcn.0042bf00
test dword [ebp - 0x14], 0x200
mov edx, str.Home_Edition
jne 0x4078ba
mov edx, str.Professional
call fcn.00417940
cmp dword [ebp - 0x128], esi
jne 0x40790e
cmp dword [ebp - 0x124], 0
jne 0x4079dc
mov edx, str.Windows_2000
mov edi, ebx
call fcn.0042bf00
cmp byte [ebp - 0x12], 1
jne 0x4078ed
mov edx, str.Professional
jmp 0x407909
mov al, byte [ebp - 0x14]
test al, al
jns 0x4078fb
mov edx, str.Datacenter_Server
jmp 0x407909
mov edx, str.Advanced_Server
test al, 2
jne 0x407909
mov edx, str.Server
call fcn.00417940
cmp dword [ebp - 0x128], 4
jne 0x4079dc
push str.Service_Pack_6
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4079dc
lea ecx, [ebp - 0x134]
push ecx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [ebp - 0x130]
test eax, eax
jne 0x40797e
call fcn.0042c080
mov dword [ebp - 4], 0
movzx edx, word [ebp - 0x120]
push edx
push str.Service_Pack_6a__Build__d_
mov edi, esi
call fcn.0042b7f0
add esp, 8
jmp 0x4079ac
call fcn.0042c080
mov dword [ebp - 4], 1
movzx edx, word [ebp - 0x120]
push edx
lea eax, [ebp - 0x118]
push eax
push str._s__Build__d_
lea edi, [ebp - 0x130]
call fcn.0042b7f0
add esp, 0xc
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebx
call fcn.0042b9c0
lea ecx, [ebp - 0x130]
call fcn.004062c0
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x407a5a
mov eax, dword [0x570fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x570fac
call edx
add eax, 0x10
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 2
movzx eax, word [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str.__s__Build__d_
lea edi, [ebp - 0x130]
call fcn.0042b7f0
mov esi, dword [ebp - 0x130]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
push ebx
call fcn.0042b9c0
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407a51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x407a5a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret