Function at 0x4c4260
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceff3
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x85
mov ebx, 1
push str.Entering_CVolumeManagerBase::RebuildVolumesMap_n
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x4eed44
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
call fcn.00409be0
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x50f008
mov dword [ebp - 0x38], 0x4eed6c
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, str.Leaving_CVolumeManagerBase::RebuildVolumesMap_n
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004165c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
call fcn.0041c3a0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
push str.Logical_drive_letters_id:_0x_08x__arrival_disks:
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x4eedc4
mov dword [ebp - 0x24], 0x8a
mov dword [ebp - 0x20], 1
call fcn.00409c10
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
mov eax, dword [ebx]
add esp, 8
mov dword [ebp - 0x14], eax
lea edi, [esi + 9]
lea ebx, [ebx]
cmp eax, ebx
je 0x4c4398
mov eax, dword [eax + 0xc]
sub eax, 0x10
call fcn.0041b370
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push esi
push str.Arrival_disk:__s
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x4eee64
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
call fcn.00409be0
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c438b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x14]
call fcn.0040c9e0
mov eax, dword [ebp - 0x14]
jmp 0x4c4330
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov edi, str.CVolumeManagerBase::RebuildVolumesMap
mov ebx, 0x93
cmp eax, ecx
je 0x4c4417
mov eax, dword [eax + 0xc]
sub eax, 0x10
call fcn.0041b370
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
push esi
push str.Removal_disk:__s
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call fcn.00409be0
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c4407
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x18]
call fcn.0040c9e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
jmp 0x4c43b0
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0x10], eax
cmp eax, ecx
je 0x4c44e9
mov eax, dword [eax + 0xc]
sub eax, 0x10
call fcn.0041b370
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4c446f
cmp eax, dword [esi]
jne 0x4c446f
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4c44a6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4c44e4
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00453d28
add esp, 0x10
mov edx, dword [ebp + 8]
add ebx, 0x10
push edx
mov dword [edi], ebx
call fcn.004c3a00
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c44d1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebp + 0x10]
call fcn.0040c9e0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
jmp 0x4c4425
call fcn.0041a6c0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov dword [ebp + 0x10], eax
cmp edi, dword [ebp + 0x10]
je 0x4c45f7
mov eax, dword [edi + 0xc]
sub eax, 0x10
call fcn.0041b370
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
push 0
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [ebp + 0xc], esp
mov dword [ebp + 0xc], esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4c4542
cmp eax, dword [esi]
jne 0x4c4542
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4c4579
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4c44e4
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00453d28
add esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add ebx, 0x10
push eax
mov dword [edx], ebx
call fcn.004c3d80
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c45a7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp byte [edi + 0x11], 0
jne 0x4c44f4
mov eax, dword [edi + 8]
cmp byte [eax + 0x11], 0
jne 0x4c45d7
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x11], 0
jne 0x4c44f4
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x11], 0
je 0x4c45c8
jmp 0x4c44f4
mov eax, dword [edi + 4]
cmp byte [eax + 0x11], 0
jne 0x4c45f0
cmp edi, dword [eax + 8]
jne 0x4c45f0
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x4c45e0
mov edi, eax
jmp 0x4c44f4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
call fcn.0041c3a0
mov ebx, 5
mov dword [ebp - 4], ebx
test byte [0x51a498], 1
jne 0x4c4663
mov ecx, 1
or dword [0x51a498], ecx
mov byte [ebp - 4], 6
test byte [0x51a42c], cl
jne 0x4c4649
or dword [0x51a42c], ecx
xor al, al
mov byte [0x51a48c], al
mov dword [0x51a490], ecx
mov word [0x51a494], 0x100
mov ecx, 0x51a48c
call fcn.004193e0
push 0x4d88c0
call fcn.00454c0f
add esp, 4
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
push ecx
push edx
push eax
lea edx, [ebp - 0x2c]
mov ecx, 0x51a430
call fcn.0041a1d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c46a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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