Function at 0x4208a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
xor al, al
push esi
push edi
mov edi, edx
mov byte [ebp - 0xd31], al
mov esi, ecx
mov dword [ebp - 0xd38], 0
nop
test al, al
jne 0x420d72
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.0042e7e0
push dword [ebp - 0xd38]
lea eax, [ebp - 0x50c]
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.004229c0
add esp, 0x1c
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd3c], eax
cmp eax, 0xffffffff
je 0x420d56
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd40], 0
lea eax, [ebp - 0xd0c]
movq qword [ebp - 0xd30], xmm0
push 0
push eax
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd30], 0
mov dword [ebp - 0xd2c], 0
call fcn.0042e7e0
add esp, 0xc
lea eax, [ebp - 0xd40]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd30]
push eax
push 0x2d1400
push dword [ebp - 0xd3c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x420d44
push 0xff
lea eax, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
push 0
push eax
call fcn.0042e7e0
push 0xff
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
call fcn.0042e7e0
push 0xff
lea eax, [ebp - 0x30b]
mov byte [ebp - 0x30c], 0
push 0
push eax
call fcn.0042e7e0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00420140
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00420140
call fcn.00425380
mov edx, dword [ebp - 0xcf4]
mov ecx, eax
lea eax, [ebp - 0x10c]
push eax
xor eax, eax
cmp dword [ecx], 5
lea ecx, [ebp - 0xd0c]
setl al
push eax
call fcn.00420140
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.0042de48
add esp, 0x40
test eax, eax
jne 0x420a88
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.0042de48
add esp, 4
test eax, eax
je 0x420d4a
cmp byte [ebp - 0x10c], 0
mov dword [ebp - 0xd10], 0xf
mov dword [ebp - 0xd14], 0
mov byte [ebp - 0xd24], 0
jne 0x420ab0
xor ecx, ecx
jmp 0x420ac9
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420ac0
sub ecx, edx
push ecx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.0040445f
lea eax, [ebp - 0xd24]
cmp esi, eax
je 0x420b56
cmp dword [esi + 0x14], 0x10
jb 0x420af6
push dword [esi]
call fcn.0042c242
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0xd10]
cmp ecx, 0x10
jae 0x420b40
mov eax, dword [ebp - 0xd14]
inc eax
je 0x420b48
push eax
lea eax, [ebp - 0xd24]
push eax
push esi
call fcn.0042b850
mov ecx, dword [ebp - 0xd10]
add esp, 0xc
mov eax, dword [ebp - 0xd14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x420b6d
mov eax, dword [ebp - 0xd24]
mov dword [esi], eax
mov eax, dword [ebp - 0xd14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x420b6d
cmp dword [ebp - 0xd10], 0x10
jb 0x420b6d
push dword [ebp - 0xd24]
call fcn.0042c242
add esp, 4
cmp byte [ebp - 0x20c], 0
mov dword [ebp - 0xd10], 0xf
mov dword [ebp - 0xd14], 0
mov byte [ebp - 0xd24], 0
jne 0x420b95
xor ecx, ecx
jmp 0x420ba9
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420ba0
sub ecx, edx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.0040445f
lea eax, [ebp - 0xd24]
cmp edi, eax
je 0x420c36
cmp dword [edi + 0x14], 0x10
jb 0x420bd6
push dword [edi]
call fcn.0042c242
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xd10]
cmp ecx, 0x10
jae 0x420c20
mov eax, dword [ebp - 0xd14]
inc eax
je 0x420c28
push eax
lea eax, [ebp - 0xd24]
push eax
push edi
call fcn.0042b850
mov ecx, dword [ebp - 0xd10]
add esp, 0xc
mov eax, dword [ebp - 0xd14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x420c4d
mov eax, dword [ebp - 0xd24]
mov dword [edi], eax
mov eax, dword [ebp - 0xd14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x420c4d
cmp dword [ebp - 0xd10], 0x10
jb 0x420c4d
push dword [ebp - 0xd24]
call fcn.0042c242
add esp, 4
cmp byte [ebp - 0x30c], 0
mov dword [ebp - 0xd10], 0xf
mov dword [ebp - 0xd14], 0
mov byte [ebp - 0xd24], 0
jne 0x420c75
xor eax, eax
jmp 0x420c89
lea eax, [ebp - 0x30c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420c80
sub eax, edx
push eax
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.0040445f
lea eax, [ebp - 0xd24]
cmp ebx, eax
je 0x420d24
cmp dword [ebx + 0x14], 0x10
jb 0x420cb6
push dword [ebx]
call fcn.0042c242
add esp, 4
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov ecx, dword [ebp - 0xd10]
cmp ecx, 0x10
jae 0x420d07
mov eax, dword [ebp - 0xd14]
inc eax
je 0x420d0f
push eax
lea eax, [ebp - 0xd24]
push eax
push ebx
call fcn.0042b850
mov ecx, dword [ebp - 0xd10]
add esp, 0xc
mov eax, dword [ebp - 0xd14]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov byte [ebp - 0xd31], 1
jmp 0x420d4a
mov eax, dword [ebp - 0xd24]
mov dword [ebx], eax
mov eax, dword [ebp - 0xd14]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov byte [ebp - 0xd31], 1
jmp 0x420d4a
cmp dword [ebp - 0xd10], 0x10
jb 0x420d3b
push dword [ebp - 0xd24]
call fcn.0042c242
add esp, 4
mov byte [ebp - 0xd31], 1
jmp 0x420d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd38]
mov al, byte [ebp - 0xd31]
inc ecx
mov dword [ebp - 0xd38], ecx
cmp ecx, 0x10
jl 0x4208d0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b782
mov esp, ebp
pop ebp
ret