Function at 0x478d50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x64], 0
mov eax, 0x5c
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x14], ax
lea ecx, [ebp + 8]
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00417190
inc eax
lea ecx, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00416d40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push eax
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00493d46
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x478e4d
lea ecx, [ebp - 0x2c]
call fcn.004155c0
push eax
push str.Unable_to_retrieve_volume_paths_for_volume__ls_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0047e080
add esp, 0x10
lea eax, [ebp - 0x5c]
push 0x51d458
push eax
call fcn.004ac830
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478e52
sub ecx, edx
sar ecx, 1
jne 0x478eca
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp + 8]
push eax
call fcn.00414f20
test esi, esi
je 0x478e8e
push esi
call fcn.004938d1
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x478ea3
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004155f0
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x478fc5
inc ecx
push ecx
jmp 0x478fba
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp + 8]
mov dword [ebp - 0x34], 0
push eax
call fcn.00414f20
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00415560
push eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.0042d110
add esp, 4
mov dword [edi + 0x14], 7
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [edi], cx
push 0xffffffffffffffff
push ecx
push eax
mov ecx, edi
call fcn.00415110
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x478f3d
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.004155f0
xor eax, eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], 0
cmp eax, 8
jb 0x478f66
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004155f0
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
test esi, esi
je 0x478f87
push esi
call fcn.004938d1
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x478f9c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004155f0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x478fc5
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004155f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret