Function at 0x459670
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616be6
mov eax, dword fs:[0]
push eax
mov eax, 0x302c
call fcn.0059dfa0
mov eax, dword [0x69bd40]
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 edi, ecx
push 0
push str..PhysicalDrive_d
lea eax, [ebp - 0x110]
xor bl, bl
push 0x100
push eax
call fcn.00457a80
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x459922
push 0x2710
lea eax, [ebp - 0x2ff0]
mov dword [ebp - 0x3030], 0
push 0
push eax
mov dword [ebp - 0x2ff4], 0
mov dword [ebp - 0x2ffc], 0
mov dword [ebp - 0x2ff8], 0
call fcn.005dba00
add esp, 0xc
lea eax, [ebp - 0x3030]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2ff0]
push eax
push 0xc
lea eax, [ebp - 0x2ffc]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x459922
lea eax, [ebp - 0x4f8]
mov ecx, edi
push eax
push 0
push dword [ebp - 0x2fd8]
lea eax, [ebp - 0x2ff0]
push eax
call fcn.0045a330
lea eax, [ebp - 0x8e0]
mov ecx, edi
push eax
push 0
push dword [ebp - 0x2fe0]
lea eax, [ebp - 0x2ff0]
push eax
call fcn.0045a330
cmp dword [edi + 0x23c], 0x10
lea eax, [edi + 0x228]
jb 0x4597a0
mov eax, dword [eax]
cmp byte [eax], bl
jne 0x459917
movsx eax, byte [ebp - 0x4f8]
push eax
call fcn.005e8a80
add esp, 4
test eax, eax
jne 0x4597d4
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.005e8a80
add esp, 4
test eax, eax
je 0x459917
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x302c], 0
mov dword [ebp - 0x301c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3018], 0xf
mov byte [ebp - 0x302c], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x459801
sub ecx, edx
lea eax, [ebp - 0x4f8]
push ecx
push eax
lea ecx, [ebp - 0x302c]
call fcn.00457160
lea ecx, [ebp - 0x8e0]
mov dword [ebp - 0x3014], 0
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3004], 0
mov dword [ebp - 0x3000], 0xf
mov byte [ebp - 0x3014], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x459852
sub ecx, edx
lea eax, [ebp - 0x8e0]
push ecx
push eax
lea ecx, [ebp - 0x3014]
call fcn.00457160
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x302c]
mov dword [ebp - 0x3034], esp
mov ecx, esp
push eax
call fcn.004564a0
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3014]
mov ecx, esp
push eax
call fcn.004564a0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00459aa0
mov edx, dword [ebp - 0x3000]
mov bl, 1
cmp edx, 0x10
jb 0x4598e1
mov ecx, dword [ebp - 0x3014]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4598d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459940
push edx
push ecx
call fcn.0059df52
add esp, 8
mov edx, dword [ebp - 0x3018]
cmp edx, 0x10
jb 0x459917
mov ecx, dword [ebp - 0x302c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45990d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459940
push edx
push ecx
call fcn.0059df52
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x459924
xor al, al
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.0059df60
mov esp, ebp
pop ebp
ret
call fcn.005e5408
int3