Function at 0x401ed0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx + 0x14], eax
jne 0x401f1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00401120
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x40], edi
lea eax, [ebx + 0x18]
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
push eax
mov ecx, ebx
call fcn.004017c0
test eax, eax
je 0x401fdf
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x10]
push ecx
push 0x20
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x34], eax
push edi
mov dword [esp + 0x3c], eax
push edi
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x14]
push 0x74004
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401fbd
mov ecx, dword [ebx + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edi
push ecx
push edx
push eax
call fcn.00406790
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x153
call fcn.00406a90
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x401fea
push str.ERROR_Out_of_memory__n
push 1
call fcn.00401040
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x34]
cmp eax, 5
ja 0x4020c6
jne 0x402025
mov eax, dword [esp + 0x38]
test eax, eax
ja 0x4020c6
push 0
xor eax, eax
mov ecx, 0x54
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x10]
push edx
push 0x153
push esi
push 0x2c
push esi
mov word [esi], 0x2c
mov byte [esi + 3], 0
mov byte [esi + 4], 1
mov byte [esi + 5], 0
mov byte [esi + 6], 0x10
mov byte [esi + 7], 0x20
mov byte [esi + 8], 1
mov dword [esi + 0xc], 0x100
mov dword [esi + 0x10], 0x3c
mov dword [esi + 0x14], 0x50
mov dword [esi + 0x18], 0x30
mov byte [esi + 0x1c], 0x25
mov eax, dword [ebx + 0x14]
push 0x4d004
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4020aa
mov eax, dword [ebx + 0x28]
mul dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
push ecx
mov ecx, dword [ebx + 0x18]
push ecx
push edx
push eax
call fcn.00406750
jmp 0x40210d
movzx eax, word [esi + 0x52]
movzx edx, ah
mov dh, al
xor eax, eax
mov ah, byte [esi + 0x50]
mov al, byte [esi + 0x51]
shl eax, 0x10
or edx, eax
inc edx
mov eax, edx
cdq
jmp 0x40210d
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
push 0x100
lea ecx, [esp + 0x154]
push ecx
mov ecx, ebx
call fcn.00401950
test eax, eax
je 0x401fdf
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x168]
push 0
push edx
push eax
push ecx
call fcn.00406790
push esi
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
call fcn.0040683a
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4