Function at 0x42f0b0
Capabilities:
Get common file path
Get disk information
Get disk size
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8424
call fcn.004bd3e0
mov eax, dword [0x53d190]
xor eax, esp
mov dword [esp + 0x8420], eax
mov eax, dword [0x535cb0]
movq xmm0, qword [str.._:]
push ebx
push esi
push edi
mov dword [esp + 0x5318], eax
mov ax, word [0x535cb4]
push 0x52e0
mov word [esp + 0x5320], ax
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x2c], ecx
movq qword [esp + 0x531c], xmm0
call fcn.004beb60
add esp, 0xc
push 0x10000
call fcn.004c4a00
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x42f5b7
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
lea esi, [esp + 0x40]
mov dword [esp + 0x14], edx
xor ebx, ebx
mov eax, 1
mov dword [esp + 0xc], 0
mov ecx, ebx
shl eax, cl
test edx, eax
je 0x42f295
push 0
push 0
push 3
push 0
lea eax, [ebx + 0x41]
push 3
mov word [esp + 0x532c], ax
lea eax, [esp + 0x5324]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x42f291
push esi
lea eax, [esi - 8]
mov byte [esi - 0x10], 1
push eax
push 0
lea eax, [esp + 0x5324]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0
push eax
push 0x10000
push edi
push 0xc
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0x2d1400
push dword [esp + 0x2c]
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42f247
mov eax, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov al, byte [edi + 0xa]
mov byte [esi + 0xc], al
mov eax, dword [edi + 0xc]
test eax, eax
je 0x42f20b
add eax, edi
push 0x104
push eax
lea eax, [esi + 0xd]
push eax
call fcn.004c5060
add esp, 0xc
mov eax, dword [edi + 0x10]
test eax, eax
je 0x42f229
add eax, edi
push 0x104
push eax
lea eax, [esi + 0x111]
push eax
call fcn.004c5060
add esp, 0xc
mov eax, dword [edi + 0x18]
test eax, eax
je 0x42f247
add eax, edi
push 0x104
push eax
lea eax, [esi + 0x215]
push eax
call fcn.004c5060
add esp, 0xc
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0xf
push eax
push 0x10000
push edi
push 0xc
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0
push eax
push 0x2d1400
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42f287
mov eax, dword [edi + 8]
mov dword [esi + 0x31c], eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
inc ebx
add esi, 0x330
cmp ebx, 0x1a
jb 0x42f141
push 0x104
lea eax, [esp + 0x5324]
mov byte [esp + 0x5324], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x5320]
push eax
call fcn.004caa8b
movsx eax, byte [esp + 0x5324]
add esp, 4
sub eax, 0x41
imul eax, eax, 0x330
push 0x2000
push 1
mov byte [esp + eax + 0x39], 1
call fcn.004c9fda
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x42f594
push 0x535bec
push ebx
call fcn.00422df0
add esp, 8
lea esi, [ebx + eax]
xor eax, eax
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x48]
xor edi, edi
lea ecx, [eax + 0x2c]
cmp byte [ebx - 0x18], 0
je 0x42f52f
test edi, edi
mov eax, 0x20
cmovne eax, ecx
push eax
push str._c
push esi
call fcn.00422df0
add esi, eax
add esp, 0xc
mov eax, dword [esp + 0x10]
inc edi
add eax, 0x41
push eax
push str._Drive_:___c__
push esi
call fcn.00422df0
add esp, 0xc
add esi, eax
push dword [ebx]
push str._StorBus_:__u_
push esi
call fcn.00422df0
add esp, 0xc
add esi, eax
push dword [ebx + 0x314]
push str._MedPrdType_:__u_
push esi
call fcn.00422df0
add esp, 0xc
add esi, eax
movzx eax, byte [ebx + 4]
push eax
push str._RemMedia_:__u_
push esi
call fcn.00422df0
add esp, 0xc
add esi, eax
cmp byte [ebx + 5], 0
je 0x42f3ff
push 0x1000
lea eax, [esp + 0x542c]
push 0
push eax
call fcn.004beb60
lea ecx, [ebx + 5]
mov dword [esp + 0x24], 0x1000
mov edx, ecx
add esp, 0xc
lea eax, [edx + 1]
mov dword [esp + 0xc], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x42f3d0
sub edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x542c]
inc edx
push eax
call fcn.00422ac0
push eax
push str._VendorID_:___s__
push esi
call fcn.00422df0
add esp, 0x14
add esi, eax
cmp byte [ebx + 0x109], 0
je 0x42f465
push 0x1000
lea eax, [esp + 0x642c]
push 0
push eax
call fcn.004beb60
lea ecx, [ebx + 0x109]
mov dword [esp + 0x18], 0x1000
mov edx, ecx
add esp, 0xc
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x42f436
sub edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x642c]
inc edx
push eax
call fcn.00422ac0
push eax
push str._ProdID_:___s__
push esi
call fcn.00422df0
add esp, 0x14
add esi, eax
cmp byte [ebx + 0x20d], 0
je 0x42f4cf
push 0x1000
lea eax, [esp + 0x742c]
push 0
push eax
call fcn.004beb60
lea ecx, [ebx + 0x20d]
mov dword [esp + 0x18], 0x1000
mov edx, ecx
add esp, 0xc
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x42f4a0
sub edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x742c]
inc edx
push eax
call fcn.00422ac0
push eax
push str._SerialNo_:___s__
push esi
call fcn.00422df0
add esp, 0x14
add esi, eax
push dword [ebx - 0xc]
mov eax, dword [ebx - 0x10]
and eax, 0xfffffc00
push eax
push str._FreeSizeMiB_:___I64u__
push esi
call fcn.00422df0
push dword [ebx - 4]
add esi, eax
mov eax, dword [ebx - 8]
and eax, 0xfffffc00
push eax
push str._TotalSizeMiB_:___I64u__
push esi
call fcn.00422df0
add esi, eax
movzx eax, byte [ebx - 0x17]
push eax
push str._OSVol_:__u
push esi
call fcn.00422df0
add esp, 0x2c
add esi, eax
push 0x5344f0
push esi
call fcn.00422df0
add esp, 8
mov ecx, 0x2c
add esi, eax
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x330
mov dword [esp + 0x10], eax
cmp eax, 0x1a
jb 0x42f323
push 0x535d80
push esi
call fcn.00422df0
mov eax, dword [esp + 0x1c]
add esp, 8
test edi, edi
mov edi, dword [esp + 0x1c]
je 0x42f565
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
xor eax, eax
xor esi, esi
test eax, eax
je 0x42f597
push eax
call fcn.004c4990
add esp, 4
push edi
call fcn.004c4990
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8420]
xor ecx, esp
call fcn.004bcc56
mov esp, ebp
pop ebp
ret
or esi, 0xffffffff
push edi
call fcn.004c4990
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8420]
xor ecx, esp
call fcn.004bcc56
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x842c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bcc56
mov esp, ebp
pop ebp
ret