Function at 0x4790c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dff58
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.004175b0
inc eax
lea ecx, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00417160
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.00494103
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 0x4791bd
lea ecx, [ebp - 0x2c]
call fcn.004159e0
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.0047e3f0
add esp, 0x10
lea eax, [ebp - 0x5c]
push 0x51d3f8
push eax
call fcn.004acc20
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4791c2
sub ecx, edx
sar ecx, 1
jne 0x47923a
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.00415340
test esi, esi
je 0x4791fe
push esi
call fcn.00493c71
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x479213
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00415a10
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 0x479335
inc ecx
push ecx
jmp 0x47932a
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.00415340
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00415980
push eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.0042d540
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.00415530
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x4792ad
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00415a10
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 0x4792d6
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00415a10
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
test esi, esi
je 0x4792f7
push esi
call fcn.00493c71
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x47930c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00415a10
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 0x479335
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00415a10
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.00493bec
mov esp, ebp
pop ebp
ret