Function at 0x420580
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4559a0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x48f008]
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 dword [ebp - 0x60], edx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0x47b18c
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00438150
mov ebx, eax
test ebx, ebx
je 0x4205e7
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x420832
push 0x20
push eax
jmp 0x42082a
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x54]
push dword [esi + 8]
push 0x47b13c
push eax
call fcn.00416a80
add esp, 0xc
test al, al
jne 0x420661
mov edx, dword [ebp - 0x14]
mov ebx, 0x7a
cmp edx, 8
jb 0x420659
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42064f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420aa9
push edx
push ecx
call fcn.0043fc69
add esp, 8
push 0x20
push esi
jmp 0x42081a
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], vtable.kn::auto_handle_void___struct_kn::system::handle_delete_.0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42068a
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x42068a
lea ebx, [ecx + 0x57]
jmp 0x4206d3
push 0
push 0x80
push 4
push 0
push 7
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x4206ae
cmp esi, 0xffffffff
jne 0x42070f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x42070f
test esi, esi
je 0x4206ca
cmp esi, 0xffffffff
je 0x4206ca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x420659
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4206fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420aa9
push edx
push ecx
call fcn.0043fc69
add esp, 8
push 0x20
push esi
jmp 0x42081a
xor edi, edi
mov dword [ebp - 0x84], 0x47b108
mov dword [ebp - 0x80], edi
mov ecx, esi
mov byte [ebp - 4], 3
xor ebx, ebx
call fcn.00405f00
test al, al
jne 0x420737
lea ebx, [edi + 6]
jmp 0x4207cb
push 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x44], ebx
push eax
push 8
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x4c], ebx
push eax
push 0xc
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4207ab
mov eax, dword [ebp - 0x68]
xor edi, edi
test eax, eax
je 0x420781
push 0x4582b0
push eax
call fcn.0043fc9a
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], edi
test edi, edi
jne 0x42078d
lea ebx, [edi + 0x7a]
jmp 0x4207bc
push 0
lea ecx, [ebp - 0x5c]
push ecx
push eax
push edi
push 0xc
lea eax, [ebp - 0x4c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4207b4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
test ebx, ebx
je 0x420850
test edi, edi
je 0x4207cb
push 0x28
push edi
call fcn.0043fc69
add esp, 8
test esi, esi
je 0x4207db
cmp esi, 0xffffffff
je 0x4207db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x420815
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42080b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420aa9
push edx
push ecx
call fcn.0043fc69
add esp, 8
push 0x20
push dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
call fcn.0043fc69
add esp, 8
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.0043fc58
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 4
mov edx, str._empty_
mov eax, dword [edi + 0x18]
test eax, eax
je 0x420875
lea edx, [eax + edi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.00421470
add esp, 4
test al, al
je 0x420a0f
mov eax, dword [edi + 0x10]
mov ebx, str._empty_
test eax, eax
je 0x420899
lea ebx, [eax + edi]
cmp dword [ebp - 0x30], 0
je 0x4208b9
push 0xffffffffffffffff
mov edx, 0x47b138
lea ecx, [ebp - 0x40]
call fcn.00421470
add esp, 4
test al, al
je 0x420a0f
push 0xffffffffffffffff
mov edx, ebx
lea ecx, [ebp - 0x40]
call fcn.00421470
add esp, 4
test al, al
je 0x420a0f
mov eax, dword [edi + 0x14]
mov ebx, str._empty_
test eax, eax
je 0x4208df
lea ebx, [eax + edi]
cmp dword [ebp - 0x30], 0
je 0x4208ff
push 0xffffffffffffffff
mov edx, 0x47b138
lea ecx, [ebp - 0x40]
call fcn.00421470
add esp, 4
test al, al
je 0x420a0f
push 0xffffffffffffffff
mov edx, ebx
lea ecx, [ebp - 0x40]
call fcn.00421470
add esp, 4
test al, al
je 0x420a0f
mov eax, dword [edi + 0xc]
mov ebx, str._empty_
test eax, eax
je 0x420925
lea ebx, [eax + edi]
cmp dword [ebp - 0x30], 0
je 0x420945
push 0xffffffffffffffff
mov edx, 0x47b138
lea ecx, [ebp - 0x40]
call fcn.00421470
add esp, 4
test al, al
je 0x420a0f
push 0xffffffffffffffff
mov edx, ebx
lea ecx, [ebp - 0x40]
call fcn.00421470
add esp, 4
test al, al
je 0x420a0f
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x64]
push eax
call fcn.004212e0
mov edx, dword [ebp - 0x2c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4209c7
cmp edx, 0x10
jb 0x4209b0
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4209a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420aa9
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x4207c0
cmp edx, 0x10
jb 0x4209b0
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4209ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420aa9
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x4207c0
mov edx, dword [ebp - 0x2c]
mov ebx, 0x7a
cmp edx, 0x10
jb 0x420a44
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420a3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420aa9
push edx
push ecx
call fcn.0043fc69
add esp, 8
push 0x28
push edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043fc69
add esp, 8
test esi, esi
je 0x420a71
cmp esi, 0xffffffff
je 0x420a71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x420815
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42080b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42080b
call fcn.0044316c
int3