Function at 0x411d22
Capabilities:
Check os version

Disassembly:
push 0x164
mov eax, 0x42a0d9
call fcn.00413ec1
cmp byte [0x4444fc], 0
mov esi, ecx
je 0x411d43
xor al, al
jmp 0x412034
call fcn.004119e8
or dword [ebp - 0x16c], 0xffffffff
lea eax, [ebp - 0x15c]
xor edi, edi
push eax
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x15c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x158], 5
je 0x411d80
mov byte [0x4444fc], 1
jmp 0x411d3c
mov eax, dword [ebp - 0x154]
cmp eax, edi
je 0x411d8f
cmp eax, 1
jne 0x411d77
mov dword [0x4444f8], eax
mov byte [esi], 0
call fcn.004116a2
test eax, eax
je 0x412006
lea ecx, [ebp - 0x168]
call fcn.00411816
test al, al
je 0x412006
mov ebx, dword [ebp - 0x168]
cmp dword [ebx], edi
jle 0x411e9f
lea eax, [ebx + 0x20]
mov dword [ebp - 0x160], eax
push dword [ebp - 0x160]
and dword [ebp - 0x38], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00401ec0
and dword [ebp - 4], 0
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00411981
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401250
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x411e16
lea eax, [ebp - 0x2c]
push str.ntoskrnl.exe
push eax
call fcn.00424a81
pop ecx
pop ecx
test eax, eax
je 0x411e69
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x411e33
lea eax, [ebp - 0x2c]
push str.ntkrnlpa.exe
push eax
call fcn.00424a81
pop ecx
pop ecx
test eax, eax
je 0x411e70
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401250
add dword [ebp - 0x160], 0x11c
inc edi
cmp edi, dword [ebx]
jl 0x411dce
jmp 0x411e9f
push str.ntoskrnl.exe
jmp 0x411e75
push str.ntkrnlpa.exe
lea ecx, [esi + 0x30]
call fcn.00401ec0
imul edi, edi, 0x11c
mov eax, dword [edi + ebx + 0xc]
sub eax, 0x80000000
mov dword [esi + 0x4c], eax
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401250
push ebx
call fcn.00416b93
cmp dword [esi + 0x40], 0
pop ecx
je 0x412006
lea eax, [esi + 0x30]
cmp dword [eax + 0x14], 0x10
jb 0x411ebb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x160], edi
test edi, edi
je 0x412006
mov edx, str.KeServiceDescriptorTable
mov ecx, edi
call fcn.0041153d
mov edx, eax
test edx, edx
je 0x411ffa
mov ecx, edi
call fcn.004118b7
mov ebx, eax
test ebx, ebx
je 0x411ffa
mov eax, dword [esi + 0x4c]
mov ecx, eax
sub ecx, ebx
add eax, edx
mov dword [esi + 0x2c], ecx
xor cl, cl
mov dword [ebp - 0x168], eax
mov edi, eax
mov dword [ebp - 0x170], 0x2000
call fcn.00411766
mov dword [ebp - 0x16c], eax
cmp eax, 0xffffffff
je 0x411ffa
push 0
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x168]
mov ecx, eax
call fcn.004117c1
test eax, eax
je 0x411ffa
sub edi, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x170]
mov eax, edi
sub ecx, eax
cmp ecx, 0xc
jb 0x411ffa
mov ecx, dword [ebp - 0x164]
mov edi, dword [eax + ecx]
mov eax, dword [eax + ecx + 8]
push ecx
push 0xffffffffffffffff
mov dword [esi + 0x24], eax
call dword [0x4444dc]
mov edx, dword [esi + 0x24]
and dword [ebp - 0x164], 0
cmp edx, 0x12c
jae 0x411ffa
mov ecx, dword [ebp - 0x160]
lea eax, [esi + 4]
push eax
call fcn.00411ad3
test al, al
je 0x411ffa
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, ebx
add eax, dword [ebp - 0x160]
mov ebx, eax
push ebx
call edi
test eax, eax
jne 0x411ffa
mov eax, dword [esi + 0x24]
push 4
lea eax, [ebx + eax*4 - 4]
push eax
call edi
test eax, eax
jne 0x411ffa
xor edi, edi
cmp dword [esi + 0x24], edi
jle 0x411ff7
push ebx
lea ecx, [esi + 0x14]
call fcn.00403888
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jl 0x411fe5
mov byte [esi], 1
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x164], 0
je 0x41201d
push dword [ebp - 0x164]
push 0xffffffffffffffff
call dword [0x4444dc]
cmp dword [ebp - 0x16c], 0xffffffff
je 0x412032
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi]
call fcn.00413f44
ret