Function at 0x407508
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4076f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4076d1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40770c
call sub.kernel32.dll_LoadLibraryW
mov ebx, eax
test ebx, ebx
je 0x40755a
push 0x407724
push ebx
call fcn.00401b88
mov esi, eax
jmp 0x40756b
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4076db
test esi, esi
je 0x4076b9
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x14
call sub.rtl170.bpl__System__FillChar_qqrpvic
mov dword [ebp - 0x28], 0x14
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
test ebx, ebx
je 0x4076b9
test esi, esi
je 0x4076b9
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Win32Platform]
cmp dword [eax], 2
jne 0x4075ce
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Win32MajorVersion]
cmp dword [eax], 5
jne 0x4075ce
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Win32MinorVersion]
cmp dword [eax], 0
je 0x4075ea
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Win32MajorVersion]
cmp dword [eax], 4
jne 0x407683
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Win32MinorVersion]
cmp dword [eax], 0x5a
jne 0x407683
lea eax, [ebp - 4]
call fcn.00407494
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x40767d
mov dword [ebp - 0x14], eax
mov edi, 1
mov eax, dword [ebp - 4]
movzx eax, word [eax + edi*2 - 2]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x407677
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
movzx edx, word [edx + edi*2 - 2]
call sub.rtl170.bpl__System__UStrFromWChar_qqrr20System_UnicodeStringb
lea eax, [ebp - 0x2c]
mov edx, 0x407758
call sub.rtl170.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x2c]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call esi
test eax, eax
jne 0x407677
cmp dword [ebp - 0x18], 0
jne 0x407657
cmp dword [ebp - 0x1c], 0
jbe 0x407677
jmp 0x407659
jle 0x407677
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add dword [eax], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
adc edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
inc edi
dec dword [ebp - 0x14]
jne 0x407606
mov byte [ebp - 0xd], 1
jmp 0x4076b9
lea eax, [ebp - 0x28]
push eax
push 0
call esi
test eax, eax
jne 0x4076b9
cmp dword [ebp - 0x18], 0
jne 0x40769d
cmp dword [ebp - 0x1c], 0
jbe 0x4076b5
jmp 0x40769f
jle 0x4076b5
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov byte [ebp - 0xd], 1
test ebx, ebx
je 0x4076c3
push ebx
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4076db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407700
lea eax, [ebp - 0x2c]
call sub.rtl170.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret