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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x436650]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x431650
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x128]
push ecx
call eax
mov eax, dword [ebp - 0x128]
cmp eax, 6
jne 0x40746a
cmp dword [ebp - 0x124], 3
jne 0x40747c
mov dword [esi + 0xc], str.Microsoft_Windows_8.1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x40747c
cmp dword [ebp - 0x124], 0
je 0x4076bf
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
mov dword [esi + 0xc], str.unknown_OperatingSystem.
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x4075f6
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x4075f6
jmp dword [eax*4 + 0x4076ec]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40750a
cmp eax, 0xa
je 0x4074f5
cmp eax, 0x5a
jne case.default.0x4075f6
mov dword [esi + 0xc], str.Microsoft_Windows_Me
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_98
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x40752a
mov dword [esi + 0xc], str.Microsoft_Windows_NT_4.0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.default.0x4075f6
mov dword [esi + 0xc], str.Microsoft_Windows_95
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x4075d6
dec eax
je 0x4075c1
dec eax
jne case.default.0x4075f6
cmp byte [ebp - 6], 1
jne 0x40757e
cmp word [ebp - 0x150], 9
jne 0x40757e
mov dword [esi + 0xc], str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x4075a3
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
push 0x59
call edi
test eax, eax
je 0x407594
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003_R2
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_XP
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_2000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 3
ja case.default.0x4075f6
jmp dword [eax*4 + 0x407708]
cmp byte [ebp - 6], 1
jne 0x407618
mov dword [esi + 0xc], str.Microsoft_Windows_Vista
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2008
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x407648
mov dword [esi + 0xc], str.Microsoft_Windows_7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2008_R2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x407678
mov dword [esi + 0xc], str.Microsoft_Windows_8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2012
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
je 0x407455
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2012_R2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x118], 0
jne case.default.0x4075f6
cmp byte [ebp - 6], 1
jne 0x4076d4
mov dword [esi + 0xc], str.Microsoft_Windows_10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2016_Technical_Preview
call fcn.0041637f
mov esp, ebp
pop ebp
ret