Function at 0x420320
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d38d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b41e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor esi, esi
movq qword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x42036f
cmp word [ebx], si
je 0x42036f
inc esi
cmp word [ebx + esi*2], 0
jne 0x420367
xor ecx, ecx
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
jle 0x4203b0
mov ecx, edi
sub ebx, edi
mov edx, esi
nop dword [eax]
mov ax, word [ebx + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4203a0
xor eax, eax
mov byte [ebp - 0x14], 1
mov word [edi + esi*2], ax
mov dword [ebp - 4], eax
test esi, esi
jne 0x4203d1
cmp word [edi], si
je 0x4203ce
inc esi
cmp word [edi + esi*2], 0
jne 0x4203c6
mov dword [ebp - 0x18], esi
cmp esi, 2
jl 0x420575
push 2
push 1
push 1
push 1
push 0x49eabc
lea ecx, [ebp - 0x1c]
call fcn.00402320
test eax, eax
jne 0x4204bb
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42041b
xor eax, eax
test ebx, ebx
je 0x420418
cmp word [ebx], ax
je 0x420418
nop
inc eax
cmp word [ebx + eax*2], 0
jne 0x420410
mov dword [ebp - 0x18], eax
xor ecx, ecx
nop dword [eax]
lea ecx, [ecx + 1]
cmp word [ecx*2 + str.._], 0
jne 0x420420
lea esi, [eax + ecx]
mov edx, 2
xor ecx, ecx
mov dword [ebp - 0x30], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
mov edi, eax
mov esi, str.._
add esp, 4
mov edx, ebx
mov ecx, edi
mov ebx, 0x5c
sub esi, edi
mov word [ecx], bx
add ecx, 2
movzx eax, word [esi + ecx]
mov ebx, eax
test ax, ax
jne 0x420462
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
test ebx, ebx
je 0x4204a1
movzx eax, word [ebx]
mov esi, eax
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x30]
test ax, ax
je 0x4204a1
movzx eax, ax
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x420490
xor eax, eax
mov word [ecx], ax
test ebx, ebx
je 0x4204b3
push ebx
call fcn.00469e73
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jmp 0x4204c1
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, 6
test esi, esi
jne 0x4204de
test edi, edi
je 0x4204db
cmp word [edi], si
je 0x4204db
inc esi
cmp word [edi + esi*2], 0
jne 0x4204d3
mov dword [ebp - 0x18], esi
cmp esi, eax
setge byte [ebp - 0x14]
jl 0x4204f2
cmovl eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [edi + eax*2], cx
test edi, edi
jne 0x420507
push 2
call fcn.0046a22b
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi], ax
push 0
push 0x2000004
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0
test esi, esi
je 0x420575
or ebx, 0xffffffff
cmp esi, 0xffffffff
je 0x420575
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], 0
push eax
push 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0xffffffff
push eax
push 0
push 0
push 0x2d1080
push esi
mov dword [ebp - 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
cmovne ebx, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420578
or ebx, 0xffffffff
test edi, edi
je 0x420585
push edi
call fcn.00469e73
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469e65
mov esp, ebp
pop ebp
ret