Function at 0x4302d0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x465ff4
mov eax, dword fs:[0]
push eax
mov eax, 0x1450
call fcn.004646d0
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x1448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x1464]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1474]
mov dword [esp + 0x18], eax
xor ebx, ebx
push 0x200
lea ecx, [esp + 0x58]
push ebx
mov dword [esp + 0x1474], ebx
push ecx
mov byte [esp + 0x5d], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x53], 1
mov byte [esp + 0x52], 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 + 0x30]
mov byte [esp + 0x146c], 1
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 0x43039d
push esi
push 0x47c17c
mov ecx, 0x200
lea edi, [esp + 0x5c]
call fcn.004124c0
add esp, 8
mov edi, dword [esp + 0x147c]
cmp edi, ebx
je 0x4305a0
mov esi, dword [esp + 0x1480]
mov edx, esi
sub edx, edi
sar edx, 2
je 0x4305a0
xor ebp, ebp
cmp edi, ebx
je 0x4305a0
sub esi, edi
sar esi, 2
cmp ebp, esi
jae 0x4305a0
push 0x206
lea eax, [esp + 0x25a]
push ebx
push eax
mov word [esp + 0x260], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, ebp
jbe 0x430553
lea ecx, [esp + 0x1c]
mov esi, edi
call fcn.00401370
cmp dword [esp + 0x147c], esi
ja 0x43041a
cmp esi, dword [esp + 0x1480]
jbe 0x430420
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x1478]
mov ecx, esi
lea esi, [ecx + ebp*4]
lea edi, [eax + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
cmp esi, dword [edi]
ja 0x430440
cmp esi, dword [eax + 4]
jae 0x430446
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi]
jb 0x430450
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x258]
push str..PhysicalDrive_d
push edx
call fcn.00407740
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4304c1
mov eax, ebp
lea ecx, [esp + 0x1478]
call fcn.004307d0
mov ecx, dword [eax]
push ecx
push str.invalid_disk_index__d._r_n
lea esi, [esp + 0x54]
call fcn.00432380
mov esi, dword [esp + 0x1488]
mov edi, dword [esp + 0x1484]
add esp, 8
add ebp, 1
jmp 0x4303c2
push 0xfff
lea edx, [esp + 0x461]
push ebx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x468], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x468]
push ecx
push 0xc
lea edx, [esp + 0x38]
push edx
push 0x2d1400
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x430558
mov eax, ebp
lea ecx, [esp + 0x1478]
call fcn.004307d0
mov eax, dword [eax]
push eax
push str.DeviceIoControl_error__d._r_n
lea esi, [esp + 0x54]
call fcn.00432380
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1480]
mov edi, dword [esp + 0x147c]
add ebp, 1
jmp 0x4303c2
jmp 0x430c30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
push edi
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
mov byte [esp + 0x146c], bl
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 eax, dword [esp + 0x147c]
cmp eax, ebx
je 0x43059c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x4305c7
lea ecx, [esp + 0x30]
mov byte [esp + 0x146c], bl
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 eax, dword [esp + 0x147c]
cmp eax, ebx
je 0x4305c5
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1448]
xor ecx, esp
call fcn.0043ad38
add esp, 0x145c
ret
push 0xffffffffffffffff
push 0x465fb9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push str.invalid_vector_T__subscript
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0
call fcn.00401d80
push 0x47f2d8
lea ecx, [esp + 0x24]
push ecx
call sub.MSVCR80.dll__CxxThrowException
int3