Function at 0x42f6f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4660a7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x145c
call fcn.004646d0
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x1458], eax
push ebx
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x1470]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x200
lea ecx, [esp + 0x60]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0x65], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x5b], 1
mov byte [esp + 0x5a], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea esi, [esp + 0x38]
mov dword [esp + 0x1478], ebx
call fcn.00432530
push str.LogReg.log
mov ecx, esi
call dword [0x4682c8]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov esi, eax
push 0x200
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x42f7b7
push esi
push 0x47c17c
mov ecx, 0x200
lea edi, [esp + 0x64]
call fcn.004124c0
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42f86d
call fcn.0042fe10
mov edi, eax
push edi
push str.PhysicalDrive0_open_failed__open_sys_dirver__d_now._r_n
lea esi, [esp + 0x5c]
call fcn.00432380
push 0x206
lea edx, [esp + 0x26a]
push ebx
push edx
mov word [esp + 0x270], bx
call sub.MSVCR80.dll_memset
add esp, 0x14
push edi
lea eax, [esp + 0x260]
push str..PhysicalDrive_d
push eax
call fcn.00407740
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42f86d
push str.open_system_disk_failed._hardwareinfo__r_n
call fcn.00432380
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x1478], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x42f9b3
push 0xfff
lea edx, [esp + 0x469]
push ebx
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x470], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x24]
push eax
push 0x1000
lea ecx, [esp + 0x470]
push ecx
push 0xc
lea edx, [esp + 0x40]
push edx
push 0x2d1400
push edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x42f96b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.query_disk_property_failed._hardware__d_r_n
lea esi, [esp + 0x5c]
call fcn.00432380
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x147c], 1
call fcn.0042fe80
add esp, 4
test al, al
jne 0x42f92a
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42f919
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jmp 0x42f851
sub esp, 0x10
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
call fcn.004306b0
lea edx, [esp + 0x3c]
push edx
call fcn.004302d0
add esp, 0x14
cmp al, bl
mov eax, dword [esp + 0x14]
je 0x42f90c
cmp eax, ebx
je 0x42f95f
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x478]
lea eax, [esp + eax + 0x464]
call fcn.0042f9e0
mov edi, dword [esp + 0x24]
push eax
push str._08X
mov ecx, 0xc
call fcn.004124c0
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0x1478], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x1470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1458]
xor ecx, esp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret