Function at 0x402250
Capabilities:
Get disk information
Get disk size
Get storage device properties
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9a4
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x9a0], eax
mov ecx, dword [0x5bcad4]
mov eax, dword [0x5bcad0]
mov edx, dword [0x5bcad8]
push ebx
push esi
push edi
mov dword [0x60371c], ecx
mov ecx, 0x20
xor ebx, ebx
mov dword [0x603718], eax
mov eax, dword [0x5bcadc]
push 0x7fe
mov word [esp + 0x194], cx
mov word [esp + 0x18c], cx
mov word [esp + 0x1a4], cx
mov dword [0x603720], edx
mov edx, 0x5c
mov dword [0x603724], eax
mov eax, 0x3a
lea ecx, [esp + 0x1ae]
push ebx
push ecx
mov word [esp + 0x19e], ax
mov word [esp + 0x1a0], bx
mov word [esp + 0x196], ax
mov word [esp + 0x198], dx
mov word [esp + 0x19a], bx
mov word [esp + 0x1a4], dx
mov word [esp + 0x1a6], dx
mov word [esp + 0x1a8], 0x3f
mov word [esp + 0x1aa], dx
mov word [esp + 0x1ae], ax
mov word [esp + 0x1b0], bx
mov word [esp + 0x1b4], bx
call fcn.00580260
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0xc8
lea edx, [esp + 0xb4]
push ebx
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
call fcn.00580260
add esp, 0xc
mov esi, 0x41
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
test ecx, eax
je 0x4024f8
lea edx, [esp + 0x188]
push edx
mov word [esp + 0x18c], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4024f8
push 0x800
lea eax, [esp + 0x1ac]
push ebx
push eax
mov word [esp + 0x19c], si
call fcn.00580260
add esp, 0xc
push 0x400
lea ecx, [esp + 0x1ac]
push ecx
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x402407
lea eax, [esp + 0x1a8]
push str.DeviceHarddiskVolume
push eax
call fcn.0057880c
add esp, 8
test eax, eax
je 0x4024f8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x1b0]
push ecx
mov dword [esp + 0x38], ebx
mov word [esp + 0x1bc], si
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4024a2
push 0x227
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], ebx
call fcn.0057740a
add esp, 4
push ebx
lea edx, [esp + 0x48]
push edx
push 0x227
mov esi, eax
push esi
push 0xc
lea eax, [esp + 0x190]
push eax
push 0x2d1400
push edi
mov dword [esi + 4], 0x227
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402488
cmp dword [esi + 0x1c], 7
jne 0x402488
mov dword [esp + 0x1c], 1
push esi
call fcn.0057832c
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x10]
jne 0x4024f8
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x194]
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + eax*8 + 0xa8], edx
mov dword [esp + eax*8 + 0xac], ecx
add eax, 1
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
add esi, 1
add ecx, 1
cmp si, 0x5a
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
jbe 0x40237b
push 0x5c
lea edx, [esp + 0x4c]
push ebx
push edx
call fcn.00580260
mov eax, dword [esp + 0x20]
lea ecx, [eax*8]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0xbc]
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0xb4], ebx
call fcn.00401620
push 0x603718
lea esi, [esp + 0x60]
call fcn.00401900
mov ecx, dword [esp + 0x9c4]
add esp, 0x18
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x603718
call fcn.005787fd
mov esp, ebp
pop ebp
ret