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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x442730]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x168], 0x11c
push str.unknown_OperatingSystem.
lea ecx, [ebp - 0x20]
call fcn.004200e0
lea ecx, [ebp - 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x41fbb7.3
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 0x16c]
sub eax, 4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 6
ja case.0x41fbb7.3
mov ecx, dword [ebp - 0x16c]
jmp dword [ecx*4 + 0x41fdfc]
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
je 0x41fbe7
cmp dword [ebp - 0x170], 0xa
je 0x41fc17
cmp dword [ebp - 0x170], 0x5a
je 0x41fc26
jmp 0x41fc33
cmp dword [ebp - 0x158], 2
jne 0x41fbff
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fc15
cmp dword [ebp - 0x158], 1
jne 0x41fc15
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fc33
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fc33
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.0x41fbb7.3
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x41fc61
cmp dword [ebp - 0x174], 1
je 0x41fc70
cmp dword [ebp - 0x174], 2
je 0x41fc7f
jmp 0x41fcd4
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fcd4
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fcd4
movzx ecx, byte [ebp - 0x4e]
cmp ecx, 1
jne 0x41fca0
movzx edx, word [ebp - 0x44]
cmp edx, 9
jne 0x41fca0
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fcd4
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x41fcbb
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fcd4
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41fcd4
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.0x41fbb7.3
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 3
ja case.default.0x41fcf8
mov ecx, dword [ebp - 0x178]
jmp dword [ecx*4 + 0x41fe18]
movzx edx, byte [ebp - 0x4e]
cmp edx, 1
jne 0x41fd17
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fd24
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.default.0x41fcf8
movzx eax, byte [ebp - 0x4e]
cmp eax, 1
jne 0x41fd3e
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fd4b
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.default.0x41fcf8
movzx ecx, byte [ebp - 0x4e]
cmp ecx, 1
jne 0x41fd65
push str.Microsoft_Windows_8
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp 0x41fd72
push str.Microsoft_Windows_Server_2012
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.default.0x41fcf8
movzx edx, byte [ebp - 0x4e]
cmp edx, 1
jne 0x41fd8c
push str.Microsoft_Windows_8.1
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.default.0x41fcf8
push str.Microsoft_Windows_Server_2012_R2
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.0x41fbb7.3
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x41fdb2
jmp case.0x41fbb7.3
movzx ecx, byte [ebp - 0x4e]
cmp ecx, 1
jne 0x41fdca
push str.Microsoft_Windows_10
lea ecx, [ebp - 0x20]
call fcn.00420180
jmp case.0x41fbb7.3
push str.Microsoft_Windows_Server_2016_Technical_Preview
lea ecx, [ebp - 0x20]
call fcn.00420180
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00420120
lea ecx, [ebp - 0x20]
call fcn.0041f130
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425195
mov esp, ebp
pop ebp
ret