Function at 0x478d30
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6b4
lea eax, [esp + 0x4aa]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
lea ecx, [eax - 0x105]
mov eax, str.GetLogicalDriveStringsW_sizeof_buf____sizeof_buf___buf__failed
cmp ecx, 0xfffffefc
jb 0x479083
mov ebx, dword [esp + 0x6c8]
xor ebp, ebp
mov dword [esp + 8], esi
jmp 0x478da7
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x10]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x6c8]
add ebp, eax
inc ebp
cmp ebp, esi
jae 0x479081
lea edi, [esp + ebp*2]
add edi, 0x4aa
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x478dd0
push edi
call sym._wcslen
add esp, 4
jmp 0x478d9c
mov ecx, eax
mov dword [esp], edi
mov eax, dword [ebx]
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 0xc]
mov dword [esp + 0xc], ecx
jne 0x478e06
lea ecx, [esi + esi]
test esi, esi
mov edx, 0x10
cmove ecx, edx
mov dword [ebx + 0xc], ecx
imul ecx, dword [ebx + 4]
push ecx
push eax
call sym._realloc
add esp, 8
mov dword [ebx], eax
mov esi, dword [ebx + 8]
mov edi, dword [esp]
lea ecx, [esi + 1]
mov dword [ebx + 8], ecx
imul esi, dword [ebx + 4]
add esi, eax
push edi
call sym._wcslen
add esp, 4
test eax, eax
mov dword [esp + 4], ebp
je 0x478e5f
mov ebx, eax
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
inc eax
mov dword [esi + 0xc], eax
jne 0x478e77
mov eax, dword [0x5052b0]
jmp 0x478e83
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [0x5052b0]
mov dword [esi + 0x14], eax
jmp 0x478eb6
push eax
call sym._malloc
add esp, 4
mov byte [eax], 0
mov ecx, dword [esp]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
push 0
push 0
push ebp
push eax
push ebx
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [esp]
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x14]
mov byte [eax + ebp], 0
mov ebp, dword [esp + 4]
lea ebx, [esp + 0x16]
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x478f10
push ebx
call sym._wcslen
add esp, 4
test eax, eax
je 0x478f10
mov ecx, ebx
mov ebx, eax
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
inc eax
mov dword [esi], eax
jne 0x478f27
mov eax, dword [0x5052b0]
jmp 0x478f33
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
jmp 0x478f64
push eax
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [esi + 8], eax
mov dword [esi + 4], 0
push 0
push 0
push ebp
push eax
push ebx
lea eax, [esp + 0x2a]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
mov byte [eax + ebp], 0
mov ebp, dword [esp + 4]
mov edx, dword [esp]
lea eax, [esi + 0x48]
lea ecx, [esi + 0x50]
lea ebx, [esi + 0x40]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x478f92
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov edx, dword [esp + 0xc]
lea ecx, [edx - 2]
mov eax, 2
cmp ecx, 3
ja 0x478fb8
mov eax, dword [edx*4 + 0x4f9778]
mov dword [esi + 0x30], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], eax
push 1
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call eax
mov edi, eax
push 0x105
lea eax, [esp + 0x9a]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x105
lea eax, [esp + 0x2b8]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x478d80
lea ebx, [esi + 0x18]
lea eax, [esi + 0x24]
mov dword [esp], eax
lea edi, [esp + 0x96]
push edi
call sym._wcslen
add esp, 4
push edi
push eax
push ebx
call dbg.ffStrbufSetNWS
add esp, 0xc
lea edi, [esp + 0x2a0]
push edi
call sym._wcslen
add esp, 4
push edi
push eax
push dword [esp + 8]
call dbg.ffStrbufSetNWS
add esp, 0xc
test byte [esp + 0x12], 8
je 0x478d80
or byte [esi + 0x30], 0x20
jmp 0x478d80
xor eax, eax
add esp, 0x6b4
pop esi
pop edi
pop ebx
pop ebp
ret