Function at 0x420740
Capabilities:
Check os version
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4a31a1
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x2f4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x304]
mov dword [esp + 0x2c], ecx
mov ecx, 9
mov esi, str..PhysicalDriveN
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov byte [esp + 0x1b], 0
mov word [esp + 0xac], 0x20
mov word [esp + 0xae], 0x3a
mov word [esp + 0xb0], 0x5c
mov word [esp + 0xb2], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edi, edi
mov dword [esp + 0x24], eax
or ebp, 0xffffffff
mov al, byte [esp + 0x1b]
test al, al
jne 0x420a38
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
test ecx, eax
je 0x420a28
lea eax, [esp + 0xac]
lea edx, [ebx + 0x41]
push eax
mov word [esp + 0xb0], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x420827
cmp eax, 6
jne 0x420a28
push 0
push 0
push 3
push 0
push 3
lea ecx, [edi + 0x30]
push 0xc0000000
lea edx, [esp + 0xcc]
add edi, 1
push edx
mov word [esp + 0xf2], cx
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebp
je 0x420a28
xor eax, eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
push eax
push 0x18
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x74080
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov al, byte [esp + 0x3b]
test al, al
jbe 0x420a1d
mov cl, bl
shr al, cl
push 0x210
lea edx, [esp + 0xe0]
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x38], al
xor eax, eax
push eax
push edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov byte [esp + 0xb4], al
call fcn.004854b0
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edi, [esp + 0x30]
mov cl, bl
lea eax, [esp + 0x9c]
call fcn.00420460
add esp, 0x14
test al, al
je 0x420a1d
cmp dword [esp + 0xdc], 0x2e
jbe 0x420a1d
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x54]
mov ecx, 0x13
push eax
lea edx, [ecx - 9]
call fcn.004204d0
add esp, 8
mov ecx, dword [esp + 0x28]
push ebp
push 0
push eax
mov dword [esp + 0x308], 0
call fcn.00403890
lea ecx, [esp + 0x50]
mov dword [esp + 0x2fc], ebp
call fcn.00403210
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0x54]
mov ecx, 0x2e
push edx
lea edx, [ecx - 0x13]
call fcn.004204d0
add esp, 8
mov ecx, dword [esp + 0x2c]
push ebp
push 0
push eax
mov dword [esp + 0x308], 1
call fcn.00403890
lea ecx, [esp + 0x50]
mov dword [esp + 0x2fc], ebp
call fcn.00403210
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x1a
lea edx, [ecx - 3]
call fcn.004204d0
add esp, 8
mov ecx, dword [esp + 0x30]
push ebp
push 0
push eax
mov dword [esp + 0x308], 2
call fcn.00403890
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2fc], ebp
call fcn.00403210
mov byte [esp + 0x1b], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
add ebx, 1
cmp ebx, 0x20
jl 0x4207df
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0047f460
add esp, 0x2ec
ret