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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfb9f
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 0x478a13
push str.Unable_to_enumerate_volumes_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0047e080
add esp, 0xc
lea eax, [ebp - 0x2ac]
push 0x51d458
push eax
call fcn.004ac830
lea eax, [ebp - 0x90]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478a20
sub eax, edx
sar eax, 1
je 0x478aef
cmp word [ebp + eax*2 - 0x92], 0x5c
lea edi, [ebp - 0x90]
jne 0x478a5e
dec eax
add eax, eax
cmp eax, 0x80
jae 0x478b46
xor ecx, ecx
mov word [ebp + eax - 0x90], cx
push 4
lea eax, [ebp - 0x90]
push 0x4f8bac
push eax
call fcn.004bf51a
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 0x478aef
push 0x4f407c
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.004b9da9
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 0x478ac0
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.004bf554
add esp, 0xc
test eax, eax
je 0x478b4b
push 0x40
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x478a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
cmp eax, 0x12
jne 0x478d17
call fcn.004155c0
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.0047e080
add esp, 0x10
lea eax, [ebp - 0x2ac]
push 0x51d458
push eax
call fcn.004ac830
call fcn.00493c6a
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.00414f20
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00415560
push 0x4f407c
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e4]
call fcn.00414c20
add esp, 4
mov edi, eax
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00415560
push edi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b0]
call fcn.0042d110
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.00415110
mov eax, dword [ebp - 0x2b8]
cmp eax, 8
jb 0x478c0f
inc eax
lea ecx, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2cc]
call fcn.004155f0
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 0x478c4a
inc eax
lea ecx, [ebp - 0x2e4]
push eax
push dword [ebp - 0x2e4]
call fcn.004155f0
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 0x478c85
inc eax
lea ecx, [ebp - 0x2fc]
push eax
push dword [ebp - 0x2fc]
call fcn.004155f0
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 0x478cc0
inc eax
lea ecx, [ebp - 0x2b0]
push eax
push dword [ebp - 0x2b0]
call fcn.004155f0
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 0x478cf9
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004155f0
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.0049384c
mov esp, ebp
pop ebp
ret
call fcn.004155c0
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.0047e080
add esp, 0x10
lea eax, [ebp - 0x2ac]
push 0x51d458
push eax
call fcn.004ac830
int3