Function at 0x420330
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e7dd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b5200]
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 0x42037f
cmp word [ebx], si
je 0x42037f
inc esi
cmp word [ebx + esi*2], 0
jne 0x420377
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.0046b90c
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
jle 0x4203c0
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 0x4203b0
xor eax, eax
mov byte [ebp - 0x14], 1
mov word [edi + esi*2], ax
mov dword [ebp - 4], eax
test esi, esi
jne 0x4203e1
cmp word [edi], si
je 0x4203de
inc esi
cmp word [edi + esi*2], 0
jne 0x4203d6
mov dword [ebp - 0x18], esi
cmp esi, 2
jl 0x420585
push 2
push 1
push 1
push 1
push 0x49fab4
lea ecx, [ebp - 0x1c]
call fcn.00402380
test eax, eax
jne 0x4204cb
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42042b
xor eax, eax
test ebx, ebx
je 0x420428
cmp word [ebx], ax
je 0x420428
nop
inc eax
cmp word [ebx + eax*2], 0
jne 0x420420
mov dword [ebp - 0x18], eax
xor ecx, ecx
nop dword [eax]
lea ecx, [ecx + 1]
cmp word [ecx*2 + str.._], 0
jne 0x420430
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.0046b90c
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 0x420472
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
test ebx, ebx
je 0x4204b1
movzx eax, word [ebx]
mov esi, eax
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x30]
test ax, ax
je 0x4204b1
movzx eax, ax
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x4204a0
xor eax, eax
mov word [ecx], ax
test ebx, ebx
je 0x4204c3
push ebx
call fcn.0046b303
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jmp 0x4204d1
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, 6
test esi, esi
jne 0x4204ee
test edi, edi
je 0x4204eb
cmp word [edi], si
je 0x4204eb
inc esi
cmp word [edi + esi*2], 0
jne 0x4204e3
mov dword [ebp - 0x18], esi
cmp esi, eax
setge byte [ebp - 0x14]
jl 0x420502
cmovl eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [edi + eax*2], cx
test edi, edi
jne 0x420517
push 2
call fcn.0046b90c
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 0x420585
or ebx, 0xffffffff
cmp esi, 0xffffffff
je 0x420585
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 0x420588
or ebx, 0xffffffff
test edi, edi
je 0x420595
push edi
call fcn.0046b303
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.0046b2f5
mov esp, ebp
pop ebp
ret