Function at 0x403b5e
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x6cc
push ebx
push esi
mov dword [ebp + 0x6c], ecx
call fcn.00403993
push 0x12
xor ebx, ebx
push ebx
push ebx
mov esi, 0x409220
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp + 0x74], eax
cmp eax, 0xffffffff
je 0x403e53
push edi
push 6
pop edi
push 0x208
lea eax, [ebp - 0x650]
push ebx
push eax
mov dword [ebp - 0x654], edi
call fcn.0040348e
add esp, 0xc
push 0x1c
pop edx
push 6
mov ecx, edi
xor eax, eax
mov dword [ebp + 0x48], edx
lea edi, [ebp + 0x4c]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp + 0x2c], edx
lea edi, [ebp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x48]
push eax
push ebx
push esi
push ebx
push dword [ebp + 0x74]
mov dword [ebp + 0x70], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov edi, 0x4c4
jmp 0x403d23
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp + 0x64]
push ecx
mov eax, 0x20c
push eax
mov dword [ebp + 0x64], eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x74]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x403d0e
xor eax, eax
push 0x206
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
call fcn.0040348e
xor eax, eax
push 0x206
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x446]
push ebx
push eax
call fcn.0040348e
add esp, 0x18
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x408464
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x104
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x403d0e
push edi
call fcn.00403323
mov ecx, dword [ebp + 0x6c]
mov esi, eax
lea eax, [ecx + 0x9c44]
mov edx, dword [eax]
push edi
push ebx
mov dword [ecx + edx*4 + 4], esi
inc dword [eax]
push esi
call fcn.0040348e
add esp, 0x10
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 0x26c], eax
lea eax, [ebp - 0x650]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x448]
lea eax, [esi + 0x208]
push ecx
push eax
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push ebx
push ebx
push ebx
lea eax, [esi + 0x4c0]
push eax
push 0x22
add esi, 0x47c
push esi
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, 0x409220
inc dword [ebp + 0x70]
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x70]
push esi
push ebx
push dword [ebp + 0x74]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x403be7
push dword [ebp + 0x74]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
push 0x62
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x36]
push ebx
push eax
call fcn.0040348e
add esp, 0xc
push 0x32
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp + 0x70], eax
cmp eax, 0xffffffff
je 0x403df4
mov esi, dword [ebp + 0x6c]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.004039d6
test eax, eax
jne 0x403ddb
push edi
call fcn.00403323
mov ecx, dword [ebp + 0x6c]
mov esi, eax
lea eax, [ecx + 0x9c44]
mov edx, dword [eax]
push edi
push ebx
mov dword [ecx + edx*4 + 4], esi
inc dword [eax]
push esi
call fcn.0040348e
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x38]
mov dword [esi + 0x26c], eax
lea eax, [esi + 0x208]
push ecx
push eax
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push ebx
push ebx
push ebx
lea eax, [esi + 0x4c0]
push eax
push 0x22
add esi, 0x47c
push esi
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, dword [ebp + 0x6c]
push 0x32
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x403d61
jmp 0x403df7
mov esi, dword [ebp + 0x6c]
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, esi
call fcn.00403810
cmp dword [0x40ba08], ebx
je 0x403e52
cmp dword [esi + 0x9c44], ebx
mov dword [ebp + 0x74], ebx
jle 0x403e52
lea edi, [esi + 4]
mov eax, dword [edi]
cmp eax, ebx
je 0x403e41
push eax
lea ecx, [eax + 0x208]
push ecx
push dword [eax + 0x26c]
push dword [ebp + 0x74]
push str.V__i__dt_i__vn_s__dp_s_n
call fcn.0040335e
add esp, 0x14
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
add edi, 4
cmp eax, dword [esi + 0x9c44]
jl 0x403e1d
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret