Function at 0x1015180e
Capabilities:
Check os version

Disassembly:
push 0x348
mov eax, 0x1018c6ed
call fcn.101892bd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x330]
xor ebx, ebx
mov dword [ebp - 0x354], esi
push 0x118
push ebx
mov dword [ebp - 0x34c], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], 0x11c
call fcn.101640e0
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1018f440
mov ecx, esi
call fcn.10002790
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x348], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x328]
push 0x101fbeb0
mov dword [ebp - 0x34c], 1
mov dword [ebp - 0x338], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x101518ff
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101518f8
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
movzx eax, word [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x348]
mov edi, dword [ebp - 0x338]
cmp eax, 5
jne 0x10151949
test edi, edi
je 0x10151a5e
cmp edi, 1
jne 0x10151933
push str.WindowsXP
call fcn.10178900
pop ecx
push eax
push str.WindowsXP
jmp 0x10151a57
push str.WindowsServer2003
call fcn.10178900
pop ecx
push eax
push str.WindowsServer2003
jmp 0x10151a57
cmp eax, 6
jne 0x10151a5e
mov eax, edi
sub eax, 0
je 0x10151a2a
sub eax, 1
je 0x10151a17
sub eax, 1
jne 0x10151a5e
cmp ebx, 0x1ebb
je 0x1015198a
lea eax, [ebx - 0x1ee6]
cmp eax, 0x25
jbe 0x1015198a
cmp ebx, 0x1f13
jne 0x101519aa
mov edi, str.Windows8
push edi
call fcn.10178900
pop ecx
push eax
push edi
mov ecx, esi
call fcn.10001270
mov edi, dword [ebp - 0x338]
jmp 0x10151a5e
cmp dword [ebp - 0x340], 0xa
jne 0x101519f2
cmp dword [ebp - 0x344], 0
jne 0x10151a5e
cmp dword [ebp - 0x33c], 0x4e20
jae 0x101519df
push str.Windows10
call fcn.10178900
pop ecx
push eax
push str.Windows10
jmp 0x10151a57
push str.Windows11
call fcn.10178900
pop ecx
push eax
push str.Windows11
jmp 0x10151a57
cmp dword [ebp - 0x340], 6
jne 0x10151a5e
cmp dword [ebp - 0x344], 3
jne 0x10151a5e
push str.Windows8.1
call fcn.10178900
pop ecx
push eax
push str.Windows8.1
jmp 0x10151a57
push str.Windows7
call fcn.10178900
pop ecx
push eax
push str.Windows7
jmp 0x10151a57
cmp dword [ebp - 0x350], 1
jne 0x10151a46
push str.WindowsVista
call fcn.10178900
pop ecx
push eax
push str.WindowsVista
jmp 0x10151a57
push str.WindowsServer2008
call fcn.10178900
pop ecx
push eax
push str.WindowsServer2008
mov ecx, esi
call fcn.10001270
push 0x1018f440
mov ecx, esi
call fcn.1015175d
test al, al
je 0x10151ab9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101640e0
mov eax, dword [ebp - 0x348]
push ebx
push edi
push eax
lea eax, [ebp - 0x218]
push str.Windows_d._d._d
push eax
call fcn.100073c0
lea eax, [ebp - 0x218]
push eax
call fcn.10178900
add esp, 0x24
mov ecx, esi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10001270
cmp dword [ebp + 0xc], 0
je 0x10151adb
lea eax, [ebp - 0x320]
push eax
call fcn.10178900
pop ecx
push eax
lea eax, [ebp - 0x320]
mov ecx, esi
push eax
call fcn.10004210
mov eax, esi
call fcn.10189278
ret