Function at 0x478b00
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 0x478e53
mov ebx, dword [esp + 0x6c8]
xor ebp, ebp
mov dword [esp + 8], esi
jmp 0x478b77
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 0x478e51
lea edi, [esp + ebp*2]
add edi, 0x4aa
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x478ba0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
jmp 0x478b6c
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 0x478bd6
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 sub.api_ms_win_crt_heap_l1_1_0.dll_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 sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
test eax, eax
mov dword [esp + 4], ebp
je 0x478c2f
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 0x478c47
mov eax, dword [0x5052b0]
jmp 0x478c53
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [0x5052b0]
mov dword [esi + 0x14], eax
jmp 0x478c86
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 0x478ce0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
test eax, eax
je 0x478ce0
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 0x478cf7
mov eax, dword [0x5052b0]
jmp 0x478d03
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
jmp 0x478d34
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 0x478d62
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 0x478d88
mov eax, dword [edx*4 + 0x4f9698]
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 0x478b50
lea ebx, [esi + 0x18]
lea eax, [esi + 0x24]
mov dword [esp], eax
lea edi, [esp + 0x96]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push edi
push eax
push ebx
call fcn.00485cd0
add esp, 0xc
lea edi, [esp + 0x2a0]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push edi
push eax
push dword [esp + 8]
call fcn.00485cd0
add esp, 0xc
test byte [esp + 0x12], 8
je 0x478b50
or byte [esi + 0x30], 0x20
jmp 0x478b50
xor eax, eax
add esp, 0x6b4
pop esi
pop edi
pop ebx
pop ebp
ret