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

Disassembly:
sub esp, 0x9a4
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x99c], eax
mov ecx, dword [0x4b70cc]
mov eax, dword [0x4b70c8]
mov edx, dword [0x4b70d0]
push ebx
push ebp
push esi
push edi
mov dword [0x4d859c], ecx
mov ecx, 0x20
xor ebx, ebx
mov dword [0x4d8598], eax
mov eax, dword [0x4b70d4]
push 0x7fe
mov word [esp + 0x194], cx
mov word [esp + 0x18c], cx
mov word [esp + 0x1a4], cx
mov dword [0x4d85a0], edx
mov edx, 0x5c
mov dword [0x4d85a4], 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.004854b0
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.004854b0
xor esi, esi
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x14], esi
lea ebp, [ebx + 0x41]
mov dword [esp + 0x1c], ecx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
test ecx, eax
je 0x4203bb
lea edx, [esp + 0x188]
push edx
mov word [esp + 0x18c], bp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4203bb
push 0x800
lea eax, [esp + 0x1ac]
push ebx
push eax
mov word [esp + 0x19c], bp
call fcn.004854b0
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 0x4202ce
lea eax, [esp + 0x1a8]
push str.DeviceHarddiskVolume
push eax
call fcn.00480107
add esp, 8
test eax, eax
je 0x4203bb
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x1b0]
push ecx
mov dword [esp + 0x34], ebx
mov word [esp + 0x1bc], bp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x420369
push 0x227
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], ebx
call fcn.0047e5bc
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 0x42034f
cmp dword [esi + 0x1c], 7
jne 0x42034f
mov dword [esp + 0x18], 1
push esi
call fcn.0047f807
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebx
mov esi, dword [esp + 0x14]
jne 0x4203bb
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 edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + esi*8 + 0xa8], edx
mov dword [esp + esi*8 + 0xac], eax
add esi, 1
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x1c]
add ebp, 1
add ecx, 1
cmp bp, 0x5a
mov dword [esp + 0x1c], ecx
jbe 0x420242
push 0x5c
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.004854b0
lea edx, [esi*8]
push edx
lea eax, [esp + 0x58]
push eax
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.0041f920
push 0x4d8598
lea esi, [esp + 0x60]
call fcn.0041fc00
mov ecx, dword [esp + 0x9c4]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x4d8598
call fcn.0047f460
add esp, 0x9a4
ret