Function at 0x415b20
Capabilities:
Get disk information

Disassembly:
sub esp, 0x70
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x42c460
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x415b43
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x84]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x415b70
mov al, byte [ecx - 1]
test al, al
je 0x415b70
cmp al, 0xff
je 0x415b70
test ebx, ebx
jne 0x415b96
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x415bc1
test ebx, ebx
jne 0x415b80
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x415bc1
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x415b8c
cmp eax, ebx
jae 0x415b9f
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, 0x42c460
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + ecx], 0
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x30]
push 0x64
push eax
push 0x42ae10
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x415bf0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x70
ret 4
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, dword [esp + 0x10]
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
sub edx, ecx
cmp edx, 6
ja 0x415c16
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov esi, dword [ebp + 8]
add esi, 6
cmp esi, 0xfffffffd
jbe 0x415c27
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x415c57
mov al, byte [ecx - 1]
test al, al
je 0x415c57
cmp al, 0xff
je 0x415c57
test esi, esi
jne 0x415c79
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x70
ret 4
test esi, esi
jne 0x415c74
test ecx, ecx
je 0x415c9f
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x70
ret 4
cmp dword [ebp + 0xc], esi
jae 0x415c82
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
add eax, ecx
mov cx, word [esp + 0x18]
mov dword [eax], edi
mov word [eax + 4], cx
mov edx, dword [ebp + 4]
mov dword [ebp + 8], esi
mov byte [esi + edx], 0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x70
ret 4