Function at 0x4c2400
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd195
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4c24a8
mov eax, 0x104
lea ecx, [ebp - 0x14]
call fcn.0041b590
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00453fa1
add esp, 8
cmp eax, esi
jl 0x4c258b
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4c258b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp edi, esi
je 0x4c25e2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4c251b
mov eax, 0x104
lea ecx, [ebp - 0x10]
call fcn.0041b590
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00453fa1
add esp, 8
cmp eax, esi
jl 0x4c258b
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x4c258b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp edi, esi
je 0x4c25e2
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x34]
lea ecx, [ebp - 0x10]
lea eax, [edi + 0x30]
call fcn.004216c0
mov dword [ebp + 0x10], eax
cmp eax, dword [edi + 0x34]
je 0x4c2595
lea ecx, [ebp - 0x10]
add eax, 0xc
push ecx
call fcn.0040a930
test al, al
jne 0x4c2595
lea eax, [ebp + 0x10]
jmp 0x4c259e
push 0x80070057
call fcn.0041b5f0
mov edx, dword [edi + 0x34]
mov dword [ebp + 8], edx
lea eax, [ebp + 8]
cmp dword [eax], esi
je 0x4c25e2
lea ecx, [ebp - 0x10]
lea eax, [edi + 0x30]
call fcn.004216c0
mov dword [ebp + 0x10], eax
cmp eax, dword [edi + 0x34]
je 0x4c25ca
lea ecx, [ebp - 0x10]
add eax, 0xc
push ecx
call fcn.0040a930
test al, al
jne 0x4c25ca
lea eax, [ebp + 0x10]
jmp 0x4c25d3
mov edx, dword [edi + 0x34]
mov dword [ebp + 8], edx
lea eax, [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov esi, dword [ebp + 0xc]
call fcn.004018f0
jmp 0x4c25f0
mov esi, dword [ebp + 0xc]
push esi
mov ecx, 0x4eefc8
call fcn.0041b050
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 0x18], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2617
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c263a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c265d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc