Function at 0x467a30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x38], eax
xor bl, bl
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
test esi, esi
jne 0x467a8e
cmp dword [0x4dc40c], 0xffffffff
je 0x467a7c
push dword [0x4f7ed0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dc40c], 0xffffffff
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4dc40c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, dword [esi + 4]
je 0x467ad4
cmp eax, 0xffffffff
je 0x467ab6
push dword [0x4f7ed0]
mov dword [0x4dc40c], 0xffffffff
call edi
push dword [esi + 4]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x4f7ed0], eax
test eax, eax
je 0x467af8
mov eax, dword [esi + 4]
mov dword [0x4dc40c], eax
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [esi + 8]
push dword [0x4f7ed0]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x467b0b
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push 0x408
call fcn.0048fb2f
add esp, 4
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi]
push 0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
push eax
push 0x408
push dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x44], 0
push 0x10
push eax
push 0x83350048
push dword [0x4db648]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x467c65
mov eax, dword [ebp - 0x24]
add eax, 4
push 0x4c2cd0
push eax
call fcn.00491646
add esp, 8
test eax, eax
je 0x467b94
mov eax, dword [ebp - 0x24]
add eax, 4
push 0x4c2ce8
push eax
call fcn.00491646
add esp, 8
test eax, eax
jne 0x467c65
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x467bc2
push 0
lea eax, [ebp - 0x34]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x83350020
push dword [0x4db648]
call esi
jmp 0x467bc8
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x467be3
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x467be3
cmp eax, 2
jne 0x467c65
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
push 0
movdqu xmmword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x1a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x68], 3
push eax
push 0x18
lea eax, [ebp - 0x78]
push eax
push 0x210012
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x467c5e
mov eax, dword [ebp - 0x24]
add eax, 4
push 0x4c2cd0
push eax
call fcn.00491646
mov ecx, dword [ebp - 0x38]
add esp, 8
neg eax
mov bl, 1
sbb eax, eax
neg eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0x3c]
movzx eax, word [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x12]
mov dword [ecx], eax
jmp 0x467c60
xor bl, bl
push dword [ebp - 0x50]
call edi
push dword [ebp - 0x24]
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret