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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfeff
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x300], 0
push 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
mov dword [ebp - 0x2b4], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x478d83
push str.Unable_to_enumerate_volumes_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0047e3f0
add esp, 0xc
lea eax, [ebp - 0x2ac]
push 0x51d3f8
push eax
call fcn.004acc20
lea eax, [ebp - 0x90]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478d90
sub eax, edx
sar eax, 1
je 0x478e5f
cmp word [ebp + eax*2 - 0x92], 0x5c
lea edi, [ebp - 0x90]
jne 0x478dce
dec eax
add eax, eax
cmp eax, 0x80
jae 0x478eb6
xor ecx, ecx
mov word [ebp + eax - 0x90], cx
push 4
lea eax, [ebp - 0x90]
push 0x4f8b84
push eax
call fcn.004bf96a
add esp, 0xc
lea ecx, [ebp - 0x88]
test eax, eax
lea eax, [ebp - 0x298]
cmovne ecx, edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x478e5f
push 0x4f407c
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.004ba179
lea ecx, [ebp - 0x298]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478e30
sub ecx, edx
lea eax, [ebp + 8]
sar ecx, 1
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x298]
push ecx
push eax
call fcn.004bf9a4
add esp, 0xc
test eax, eax
je 0x478ebb
push 0x40
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x478d83
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
cmp eax, 0x12
jne 0x479087
call fcn.004159e0
push eax
push str.Unable_to_convert_NT_path__ls_to_a_volume_GUID_path_
lea eax, [ebp - 0x2ac]
push 3
push eax
call fcn.0047e3f0
add esp, 0x10
lea eax, [ebp - 0x2ac]
push 0x51d3f8
push eax
call fcn.004acc20
call fcn.00494027
xor eax, eax
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
lea ecx, [ebp - 0x2b0]
lea eax, [ebp + 8]
mov dword [ebp - 0x2a0], 0
push eax
call fcn.00415340
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00415980
push 0x4f407c
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e4]
call fcn.00415040
add esp, 4
mov edi, eax
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00415980
push edi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b0]
call fcn.0042d540
add esp, 4
mov dword [ebx + 0x14], 7
xor ecx, ecx
mov dword [ebx + 0x10], 0
mov word [ebx], cx
push 0xffffffffffffffff
push ecx
push eax
mov ecx, ebx
call fcn.00415530
mov eax, dword [ebp - 0x2b8]
cmp eax, 8
jb 0x478f7f
inc eax
lea ecx, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2cc]
call fcn.00415a10
xor eax, eax
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2bc], 0
cmp eax, 8
jb 0x478fba
inc eax
lea ecx, [ebp - 0x2e4]
push eax
push dword [ebp - 0x2e4]
call fcn.00415a10
xor eax, eax
mov dword [ebp - 0x2d0], 7
mov word [ebp - 0x2e4], ax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 0
cmp eax, 8
jb 0x478ff5
inc eax
lea ecx, [ebp - 0x2fc]
push eax
push dword [ebp - 0x2fc]
call fcn.00415a10
xor eax, eax
mov dword [ebp - 0x2e8], 7
mov word [ebp - 0x2fc], ax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2ec], 0
cmp eax, 8
jb 0x479030
inc eax
lea ecx, [ebp - 0x2b0]
push eax
push dword [ebp - 0x2b0]
call fcn.00415a10
xor eax, eax
mov dword [ebp - 0x29c], 7
push esi
mov dword [ebp - 0x2a0], 0
mov word [ebp - 0x2b0], ax
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x479069
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00415a10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
call fcn.004159e0
push eax
push str.Unable_to_convert_NT_path__ls_to_a_volume_GUID_path_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0047e3f0
add esp, 0x10
lea eax, [ebp - 0x2ac]
push 0x51d3f8
push eax
call fcn.004acc20
int3