Function at 0x451eb0
Capabilities:
Check os version

Disassembly:
push 0x13c
mov eax, 0x489b71
call fcn.0047ceef
mov eax, ecx
mov dword [ebp - 0x134], eax
and dword [ebp - 4], 0
and dword [ebp - 0x140], 0
or dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x144], 0xe
cmp ebx, 1
je 0x451f46
cmp ebx, 2
je 0x451f46
cmp ebx, 3
je 0x451f46
cmp ebx, 4
je 0x451f46
cmp ebx, 5
je 0x451f46
lea ebx, [eax + 0x2c]
mov edi, 0x80070057
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
mov ecx, ebx
call esi
test eax, eax
je 0x452246
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
mov ecx, ebx
call esi
push 0x789
push 0x4119c8
mov edx, edi
mov ecx, eax
call fcn.00455489
jmp 0x452246
mov eax, dword [eax]
mov esi, dword [eax + 0x60]
lea eax, [ebp - 0x148]
push eax
mov ecx, esi
call dword [0x4918b8]
mov ecx, dword [ebp - 0x134]
call esi
mov edi, eax
mov dword [ebp - 0x130], edi
test edi, edi
jns 0x451fa9
mov ebx, dword [ebp - 0x134]
mov ecx, dword [ebx + 0x2c]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [ebx + 0x2c]
call esi
test eax, eax
je 0x452246
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [ebx + 0x2c]
call esi
push 0x78d
jmp 0x451f33
push 0x118
xor esi, esi
lea eax, [ebp - 0x128]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
push eax
call fcn.00431702
test eax, eax
jne 0x45202c
mov edi, dword [ebp - 0x134]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [edi + 0x2c]
call esi
test eax, eax
je 0x452240
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [edi + 0x2c]
call esi
push 0x793
mov edi, dword [ebp - 0x130]
jmp 0x451f33
push 2
pop edx
push 5
mov eax, ebx
mov dword [ebp - 0x138], edx
mov ecx, esi
pop edi
mov dword [ebp - 0x13c], edi
sub eax, edx
je 0x452081
sub eax, 1
je 0x45207d
sub eax, 1
je 0x452064
sub eax, 1
jne 0x452094
xor ecx, ecx
inc ecx
mov dword [ebp - 0x138], 3
jmp 0x452094
or ecx, 0xffffffff
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x13c], 3
jmp 0x452094
mov ecx, edx
jmp 0x452058
push 0xfffffffffffffffe
pop ecx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4520f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov ebx, dword [ebp - 0x134]
mov edi, eax
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [ebx + 0x2c]
call esi
test eax, eax
je 0x452246
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [ebx + 0x2c]
call esi
push 0x7c1
jmp 0x451f33
cmp dword [ebp - 0x128], 6
jb 0x452226
cmp ebx, 3
je 0x452108
cmp ebx, edi
jne 0x452166
push 1
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042e074
mov edi, eax
mov dword [ebp - 0x130], edi
test edi, edi
jns 0x452166
mov ebx, dword [ebp - 0x134]
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [ebx + 0x2c]
call esi
test eax, eax
je 0x452246
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [ebx + 0x2c]
call esi
push 0x7cc
jmp 0x451f33
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x138]
push eax
push 0x16
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtSetInformationThread]
push eax
call fcn.00431702
test eax, eax
jne 0x4521c8
mov edi, dword [ebp - 0x134]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [edi + 0x2c]
call esi
test eax, eax
je 0x452240
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [edi + 0x2c]
call esi
push 0x7d4
jmp 0x452021
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x13c]
push eax
push 0x18
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtSetInformationThread]
push eax
call fcn.00431702
test eax, eax
jne 0x452226
mov edi, dword [ebp - 0x134]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [edi + 0x2c]
call esi
test eax, eax
je 0x452240
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4918b8]
lea ecx, [edi + 0x2c]
call esi
push 0x7db
jmp 0x452021
mov ecx, dword [ebp - 0x134]
cmp dword [ecx + 0x1f4], esi
jne 0x452240
mov eax, dword [ebp - 0x148]
mov dword [ecx + 0x1f4], eax
mov edi, dword [ebp - 0x130]
push edi
call fcn.00431467
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x140]
call fcn.004322f4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.004322f4
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.0047cea1
ret 4