Function at 0x430907
Capabilities:
Check os version

Disassembly:
push 0x350
mov eax, 0x5a168f
call fcn.00598680
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x118
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x330]
push ecx
mov dword [ebp - 0x354], ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x334], 0x11c
call fcn.00442fd0
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.004268d9
test al, al
je 0x430982
push esp
pop edi
pop ebp
push ebp
pop edx
pop edx
pop ecx
push esi
push eax
push ebx
pop ecx
pop ebp
pop ecx
push edx
push ebp
push ebp
pop ebx
push edi
push esp
push ebp
pop esi
pop esi
pop ebp
pop edx
push eax
pop edi
pop ebp
pop edi
push esi
call fcn.0042659d
test al, al
je 0x4309a4
push ecx
push esp
pop eax
push ecx
pop ebx
pop ecx
pop esi
pop esp
pop esp
push eax
pop ecx
pop ebx
pop edx
push esp
push ecx
pop ecx
pop edx
pop edi
pop ebp
pop edx
pop esi
push esi
pop ebp
push ecx
pop edi
mov ecx, dword [ebp - 0x338]
push 0x5a355c
call fcn.00402b80
xor eax, eax
mov dword [ebp - 0x354], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x350], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x34c], eax
call fcn.004266b1
test al, al
je 0x430a2e
pop ebp
push esi
push esp
pop esp
push ecx
pop esp
push ecx
push eax
pop eax
pop esp
push edx
push esp
pop edx
push esp
push edi
push ebx
pop edi
pop esp
pop ecx
pop ebx
push ebx
push edx
push ebx
pop esp
push edx
push esi
pop esi
push edi
push edx
push esp
pop esi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x430a7a
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430a73
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 esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.004266b1
test al, al
je 0x430aa3
pop esp
pop edx
pop ebx
push esp
push esp
pop esp
push ecx
push ebp
push eax
push eax
push ebx
pop ebx
push ecx
push ecx
push esi
pop edx
pop esi
pop ebp
push eax
push ebx
push ecx
push eax
push edx
pop eax
push esi
push eax
push esp
pop ebx
pop edx
pop esi
pop ecx
push edi
call fcn.004269a8
test al, al
je 0x430ac2
push ebp
pop edi
pop edi
push edi
push ebp
pop edi
pop eax
pop edx
pop esp
pop esp
pop edi
pop eax
push ebx
push esi
pop ebx
push ebx
push esp
pop esi
pop ebp
pop ebp
push esi
pop eax
mov edi, dword [ebp - 0x350]
cmp edi, 5
jne 0x430af4
mov eax, dword [ebp - 0x34c]
test eax, eax
je 0x430bc7
cmp eax, 1
jne 0x430aea
mov esi, str.WindowsXP
jmp 0x430bb3
mov esi, str.WindowsServer2003
jmp 0x430bb3
cmp edi, 6
jne 0x430b9d
mov eax, dword [ebp - 0x34c]
sub eax, 0
je 0x430b86
sub eax, 1
je 0x430b7f
sub eax, 1
jne 0x430bc7
mov ecx, dword [ebp - 0x348]
cmp ecx, 0x1ebb
jne 0x430b2e
mov esi, str.Windows8
jmp 0x430bb3
lea eax, [ecx - 0x1ee6]
cmp eax, 0x25
jbe 0x430b24
cmp ecx, 0x1f13
je 0x430b24
cmp dword [ebp - 0x340], 0xa
jne 0x430b66
cmp dword [ebp - 0x344], 0
jne 0x430bc7
cmp dword [ebp - 0x33c], 0x4e20
jae 0x430bae
mov esi, str.Windows10
jmp 0x430bb3
cmp dword [ebp - 0x340], 6
jne 0x430bc7
cmp dword [ebp - 0x344], 3
jne 0x430bc7
mov esi, str.Windows8.1
jmp 0x430bb3
mov esi, str.Windows7
jmp 0x430bb3
cmp dword [ebp - 0x358], 1
jne 0x430b96
mov esi, str.WindowsVista
jmp 0x430bb3
mov esi, str.WindowsServer2008
jmp 0x430bb3
cmp edi, 0xa
jne 0x430bc7
cmp dword [ebp - 0x348], 0x4e20
jb 0x430bc7
mov esi, str.Windows11
push esi
call fcn.0045329b
pop ecx
mov ecx, dword [ebp - 0x338]
push eax
push esi
call fcn.00402400
call fcn.004266b1
test al, al
je 0x430bf0
pop esp
pop edx
pop ebx
push esp
push esp
pop esp
push ecx
push ebp
push eax
push eax
push ebx
pop ebx
push ecx
push ecx
push esi
pop edx
pop esi
pop ebp
push eax
push ebx
push ecx
push eax
push edx
pop eax
push esi
push eax
push esp
pop ebx
pop edx
pop esi
pop ecx
push edi
call fcn.004269a8
test al, al
je 0x430c15
push ebp
pop edi
pop edi
push edi
push ebp
pop edi
pop eax
pop edx
pop esp
pop esp
pop edi
pop eax
push ebx
push esi
pop ebx
push ebx
push esp
pop esi
pop ebp
pop ebp
push esi
pop eax
mov edi, dword [ebp - 0x350]
mov ebx, dword [ebp - 0x338]
mov ecx, ebx
push 0x5a355c
call fcn.0042c308
test eax, eax
jne 0x430c89
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00442fd0
push dword [ebp - 0x348]
lea eax, [ebp - 0x218]
push dword [ebp - 0x34c]
push edi
push str.Windows_d._d._d
push eax
call fcn.00408c70
add esp, 0x20
cmp word [ebp - 0x218], si
jne 0x430c6d
mov eax, esi
jmp 0x430c7a
lea eax, [ebp - 0x218]
push eax
call fcn.0045329b
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00402400
call fcn.004268d9
test al, al
je 0x430ca5
push eax
push eax
pop edx
push esp
pop ebp
push esp
push edx
push edi
pop esp
pop ecx
pop esi
push ebx
pop ebp
push esi
pop esi
push eax
pop esi
pop edx
pop edx
call fcn.004266f6
test al, al
je 0x430ccf
push edx
push esi
pop ebx
push esi
push eax
pop edi
push esi
pop ecx
push ecx
pop edi
pop ebx
pop edx
push edx
pop ebx
push edi
push ebx
pop ebp
pop edi
pop esp
push edx
push esp
push esi
pop ecx
push esp
pop ebx
push esi
pop ebp
mov ebx, dword [ebp - 0x338]
cmp dword [ebp + 0xc], 0
je 0x430cff
cmp word [ebp - 0x320], 0
jne 0x430ce3
xor eax, eax
jmp 0x430cf0
lea eax, [ebp - 0x320]
push eax
call fcn.0045329b
pop ecx
push eax
lea eax, [ebp - 0x320]
mov ecx, ebx
push eax
call fcn.00404910
mov eax, ebx
call fcn.0059863b
ret