Function at 0x4482e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cfc
call fcn.005b5230
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2cfc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x44831d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x4486af
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp - 4]
push ecx
push str..PhysicalDrive_d
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x448379
jmp 0x448314
mov dword [ebp - 0x2938], 0
push 0xc
push 0
lea ecx, [ebp - 0x2934]
push ecx
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x2934], 0
mov dword [ebp - 0x2930], 0
push 0x2710
push 0
lea edx, [ebp - 0x2928]
push edx
call fcn.005b4de0
add esp, 0xc
push 0
lea eax, [ebp - 0x2938]
push eax
push 0x2710
lea ecx, [ebp - 0x2928]
push ecx
push 0xc
lea edx, [ebp - 0x2934]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44867d
lea ecx, [ebp - 0x2928]
mov dword [ebp - 0x2a3c], ecx
mov byte [ebp - 0x2b40], 0
push 0x7f
push 0
lea edx, [ebp - 0x2b3f]
push edx
call fcn.005b4de0
add esp, 0xc
mov byte [ebp - 0x2a38], 0
push 0x7f
push 0
lea eax, [ebp - 0x2a37]
push eax
call fcn.005b4de0
add esp, 0xc
mov byte [ebp - 0x2ac0], 0
push 0x7f
push 0
lea ecx, [ebp - 0x2abf]
push ecx
call fcn.005b4de0
add esp, 0xc
mov byte [ebp - 0x29b8], 0
push 0x7f
push 0
lea edx, [ebp - 0x29b7]
push edx
call fcn.005b4de0
add esp, 0xc
lea eax, [ebp - 0x2ac0]
push eax
push 0
mov ecx, dword [ebp - 0x2a3c]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x2928]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00447b80
lea ecx, [ebp - 0x2a38]
push ecx
push 0
mov edx, dword [ebp - 0x2a3c]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x2928]
push ecx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00447b80
lea edx, [ebp - 0x29b8]
push edx
push 0
mov eax, dword [ebp - 0x2a3c]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, [ebp - 0x2928]
push edx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00447b80
lea eax, [ebp - 0x2b40]
push eax
push 1
mov ecx, dword [ebp - 0x2a3c]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0x2928]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00447b80
lea ecx, [ebp - 0x2cf0]
call fcn.004492d0
lea ecx, [ebp - 0x2ac0]
push ecx
call fcn.005b5990
add esp, 4
test eax, eax
jbe 0x448534
lea edx, [ebp - 0x2ac0]
push edx
lea eax, [ebp - 0x2cc8]
push eax
call fcn.005b7740
add esp, 8
lea ecx, [ebp - 0x2a38]
push ecx
call fcn.005b5990
add esp, 4
test eax, eax
jbe 0x44855d
lea edx, [ebp - 0x2a38]
push edx
lea eax, [ebp - 0x2cc8]
push eax
call fcn.005b7750
add esp, 8
lea ecx, [ebp - 0x29b8]
push ecx
lea edx, [ebp - 0x2bc8]
push edx
call fcn.005b7740
add esp, 8
lea eax, [ebp - 0x2b40]
push eax
lea ecx, [ebp - 0x2c48]
push ecx
call fcn.005b7740
add esp, 8
lea edx, [ebp - 0x2c48]
push edx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00448bc0
lea eax, [ebp - 0x2cc8]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00448bc0
lea ecx, [ebp - 0x2bc8]
push ecx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00448bc0
push 0x2710
push 0
lea edx, [ebp - 0x2928]
push edx
call fcn.005b4de0
add esp, 0xc
push 0
lea eax, [ebp - 0x2938]
push eax
push 0x2710
lea ecx, [ebp - 0x2928]
push ecx
push 0
push 0
push 0x700a0
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x44860b
jmp 0x448314
lea eax, [ebp - 0x2928]
mov dword [ebp - 0x2cf4], eax
mov ecx, dword [ebp - 0x2cf4]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x2cf0], edx
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x2cec], eax
mov ecx, dword [ebp - 0x2cf4]
cmp dword [ecx + 8], 0xc
jne 0x448647
mov dword [ebp - 0x2b48], 2
jmp 0x448669
mov edx, dword [ebp - 0x2cf4]
cmp dword [edx + 8], 0xc
jne 0x44865f
mov dword [ebp - 0x2b48], 1
jmp 0x448669
mov dword [ebp - 0x2b48], 0
lea eax, [ebp - 0x2cf0]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00449070
jmp 0x44869d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cf8], eax
mov ecx, dword [ebp - 0x2cf8]
push ecx
push str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
call fcn.005b82ff
add esp, 8
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x448314
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret