Function at 0x42fe80
Capabilities:
Get disk information
Get disk information via ioctl
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x466060
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4dc]
mov eax, ebp
call fcn.004308c0
xor ebx, ebx
push 0x200
lea eax, [esp + 0xc0]
push ebx
push eax
mov byte [esp + 0xc5], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x98]
mov byte [esp + 0xbb], 1
mov byte [esp + 0xba], 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 + 0x98]
mov dword [esp + 0x4d4], 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 0x42ff59
push esi
push 0x47c17c
mov ecx, 0x200
lea edi, [esp + 0xc4]
call fcn.004124c0
add esp, 8
lea ecx, [esp + 0x2bc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x42ffaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLogicalDriveStrings_failed_with_error._r_n
lea esi, [esp + 0xbc]
call fcn.00432380
add esp, 8
lea ecx, [esp + 0x98]
mov dword [esp + 0x4d4], 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 0x4302a3
cmp word [esp + 0x2bc], bx
lea edi, [esp + 0x2bc]
je 0x430271
nop
push edi
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4d4], 1
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
sub eax, 1
push eax
push ebx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x4d8], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4d4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.._
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x4d8], 3
call dword [0x4682a4]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x430066
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x430056
jmp 0x43023d
push ebx
push 0x80
push 3
push ebx
xor eax, eax
push 1
push bind
lea ecx, [esp + 0x78]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4300e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.Invalid_drive__s__d_r_n
lea ecx, [esp + 0xc0]
call fcn.00432450
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4300d0
jmp 0x43023d
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0xc
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x430133
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.DeviceIoControl_failed_drive__s._r_n
lea ecx, [esp + 0xbc]
call fcn.00432450
mov eax, edi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x430123
jmp 0x43023d
mov eax, ebp
call fcn.004307a0
test al, al
jne 0x4301e3
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x14]
call fcn.00401370
cmp dword [ebp + 4], esi
ja 0x430158
cmp esi, dword [ebp + 8]
jbe 0x43015e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebp
call fcn.00401370
cmp dword [ebp + 4], esi
ja 0x43017c
cmp esi, dword [ebp + 8]
jbe 0x430182
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x30], esi
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebp
call fcn.00401370
cmp dword [ebp + 4], esi
ja 0x4301a0
cmp esi, dword [ebp + 8]
jbe 0x4301a6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x30]
cmp esi, ecx
mov eax, ebp
mov dword [esp + 0x34], eax
je 0x4301cd
mov edx, dword [esp + 0x20]
cmp dword [esi], edx
je 0x4301cd
add esi, 4
cmp esi, ecx
jne 0x4301c2
cmp eax, ebx
je 0x4301d7
cmp eax, dword [esp + 0x14]
je 0x4301dd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x18]
jne 0x43022d
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.valid_drive__s._r_n
lea ecx, [esp + 0xbc]
call fcn.00432450
mov eax, dword [esp + 0x28]
push eax
push str.valid_disk_index__d._r_n
lea esi, [esp + 0xc4]
call fcn.00432380
mov ecx, dword [esp + 0x30]
add esp, 0x10
lea ebx, [esp + 0x3c]
mov esi, ebp
mov dword [esp + 0x3c], ecx
call fcn.00430840
xor ebx, ebx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x430232
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x60]
lea edi, [edi + eax*2 + 2]
mov byte [esp + 0x4d4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4d4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp word [edi], bx
jne 0x42ffc0
mov ecx, dword [ebp + 4]
cmp ecx, ebx
jne 0x43027c
xor eax, eax
jmp 0x430284
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp eax, ebx
lea ecx, [esp + 0x98]
setne bl
mov dword [esp + 0x4d4], 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, bl
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0043ad38
add esp, 0x4c4
ret