Function at 0x45b2f6
Capabilities:
Check os version

Disassembly:
mov eax, 0x495911
call fcn.004691dc
sub esp, 0xe4
cmp byte [0x4d6324], 0
push esi
mov esi, ecx
je 0x45b319
xor al, al
jmp 0x45b5c8
push edi
mov ecx, esi
call fcn.0045b031
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0xf0]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xf0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xec], 5
je 0x45b358
mov byte [0x4d6324], 1
xor al, al
jmp 0x45b5c7
mov eax, dword [ebp - 0xe8]
cmp eax, edi
je 0x45b367
cmp eax, 1
jne 0x45b34a
mov dword [0x4d6320], eax
mov byte [esi], 0
call fcn.0045ad76
test eax, eax
je 0x45b5a7
lea eax, [ebp - 0x18]
push eax
call fcn.0045aef3
test al, al
pop ecx
je 0x45b5a7
push ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0
jle 0x45b45e
lea eax, [ebx + 0x20]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
call fcn.00401790
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045afde
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00401c90
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x45b3d8
lea eax, [ebp - 0x3c]
push str.ntoskrnl.exe
push eax
call fcn.004779bd
test eax, eax
pop ecx
pop ecx
je 0x45b428
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x45b3f5
lea eax, [ebp - 0x3c]
push str.ntkrnlpa.exe
push eax
call fcn.004779bd
test eax, eax
pop ecx
pop ecx
je 0x45b42f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401c90
add dword [ebp - 0x10], 0x11c
inc edi
cmp edi, dword [ebx]
jl 0x45b3a1
jmp 0x45b45e
push str.ntoskrnl.exe
jmp 0x45b434
push str.ntkrnlpa.exe
lea ecx, [esi + 0x30]
call fcn.00401a90
imul edi, edi, 0x11c
mov eax, dword [edi + ebx + 0xc]
or dword [ebp - 4], 0xffffffff
push 0
sub eax, 0x80000000
lea ecx, [ebp - 0x40]
push 1
mov dword [esi + 0x4c], eax
call fcn.00401c90
push ebx
call fcn.00466dd4
cmp dword [esi + 0x44], 0
pop ecx
je 0x45b5a6
cmp dword [esi + 0x48], 0x10
jb 0x45b47a
mov eax, dword [esi + 0x34]
jmp 0x45b47d
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x45b5a6
push str.KeServiceDescriptorTable
push edi
call fcn.0045ac42
mov edx, eax
xor ebx, ebx
cmp edx, ebx
pop ecx
pop ecx
je 0x45b59d
push edi
call fcn.0045af8b
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x45b59d
mov eax, dword [esi + 0x4c]
mov ecx, eax
sub ecx, dword [ebp - 0x18]
add eax, edx
push ebx
mov dword [esi + 0x2c], ecx
mov dword [ebp - 0x24], eax
mov edi, eax
mov dword [ebp - 0x20], 0x2000
call fcn.0045ae3a
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x1c], eax
je 0x45b59d
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0045ae92
add esp, 0x14
test eax, eax
je 0x45b59d
sub edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, edi
sub ecx, eax
cmp ecx, 0xc
jb 0x45b59d
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov edi, dword [eax]
mov eax, dword [eax + 8]
push ecx
mov dword [esi + 0x24], eax
call fcn.0045aee6
mov eax, dword [esi + 0x24]
cmp eax, 0x12c
pop ecx
mov dword [ebp - 0x14], ebx
jae 0x45b59d
lea ecx, [esi + 4]
push ecx
push eax
push dword [ebp - 0x10]
call fcn.0045b0f0
add esp, 0xc
test al, al
je 0x45b59d
lea eax, [edi - 0x80000000]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [esi + 0x28], eax
sub eax, dword [esi + 0x2c]
push 4
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov ebx, eax
push ebx
call edi
test eax, eax
jne 0x45b59d
mov eax, dword [esi + 0x24]
push 4
lea eax, [ebx + eax*4 - 4]
push eax
call edi
test eax, eax
jne 0x45b59d
xor edi, edi
cmp dword [esi + 0x24], edi
jle 0x45b59a
push ebx
lea ecx, [esi + 0x14]
call fcn.0044796b
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jl 0x45b588
mov byte [esi], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
cmp dword [ebp - 0x14], 0
je 0x45b5b6
push dword [ebp - 0x14]
call fcn.0045aee6
pop ecx
cmp dword [ebp - 0x1c], 0xffffffff
je 0x45b5c5
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret