Function at 0x4c2d60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cddc3
mov eax, dword fs:[0]
push eax
sub esp, 0x50
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 edi, edi
lea esi, [ebp - 0x5c]
mov dword [ebp - 4], edi
call fcn.00401890
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], edi
jge 0x4c2daf
push 0x80070057
call fcn.0041b5f0
movzx eax, word [eax]
push eax
call fcn.00457148
mov ecx, dword [ebp - 0x34]
mov word [ebp - 0x58], ax
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
add esp, 4
cmp dword [eax + 4], edi
je 0x4c2e16
cmp dword [eax + 0xc], edi
lea edx, [eax + 0xc]
jge 0x4c2df1
cmp dword [ecx - 8], edi
jge 0x4c2de4
push 0x80070057
call fcn.0041b5f0
mov dword [ecx - 0xc], edi
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov word [ecx], ax
jmp 0x4c2e16
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c2e07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
push 0x4eeeb8
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0041b280
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0041b370
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x4c2da5
cmp eax, ecx
jg 0x4c2da5
cmp word [esi + eax*2], 0x5c
jne 0x4c2e68
lea edx, [ebp - 0x1c]
dec ecx
push edx
mov eax, 1
call fcn.00417f60
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov edi, dword [edx - 0xc]
test edi, edi
jns 0x4c2e7c
push 0x80070057
call fcn.0041b5f0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x4c2e9a
mov eax, edi
lea ecx, [ebp + 8]
call fcn.0041b590
mov edx, dword [ebp + 8]
lea eax, [edi + 1]
push eax
push edx
call fcn.00456224
mov eax, dword [ebp + 8]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x4c2da5
mov dword [eax - 0xc], edi
mov edx, dword [ebp + 8]
xor ecx, ecx
lea eax, [ebp + 8]
mov word [edx + edi*2], cx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ebx, 0x4eeebc
call fcn.00409990
add esp, 8
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0041ad90
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x4c2f21
mov eax, 0x104
lea ecx, [ebp - 0x14]
call fcn.0041b590
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 4], 1
mov edi, dword [ecx - 8]
jle 0x4c2f3a
mov ecx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0041b4d0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x5c]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00453fa1
add esp, 8
test eax, eax
js 0x4c2da5
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4c2da5
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test edi, edi
je 0x4c307f
lea edi, [ebp - 0x14]
call fcn.0041bed0
mov edi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4c2fae
push 0x4eeec0
push eax
call fcn.00456001
add esp, 8
test eax, eax
je 0x4c2fae
sub eax, dword [edi]
sar eax, 1
je 0x4c307f
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, 2
push str.Volume__s_is_not_a_physical_volume.
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4eeed4
mov dword [ebp - 0x28], 0xde
mov dword [ebp - 0x24], ebx
call fcn.00409c10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2ffb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c301d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c303d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x5c]
call fcn.00401a10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c306b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
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 0x4c30a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x54], eax
cmp eax, 3
je 0x4c30fa
cmp eax, 6
je 0x4c30fa
mov ebx, 2
cmp eax, ebx
je 0x4c30fa
cmp byte [0x51a4d8], 0
jne 0x4c2ffb
mov edx, dword [ebp - 0x5c]
push edx
push eax
push str.Unsupported_drive_type__d_for_volume__s_n
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.CVolumeManagerBase::GetBasicVolumeInfo
mov dword [ebp - 0x28], 0xe9
mov dword [ebp - 0x24], ebx
call fcn.00409c10
add esp, 0xc
jmp 0x4c2ffb
cmp byte [ebp + 0x10], 0
jne 0x4c3111
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.004a76f0
add esp, 8
test al, al
jne 0x4c3119
lea esi, [ebp - 0x5c]
call fcn.004c2680
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x5c]
call fcn.00420fe0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c3147
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c316a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x5c]
call fcn.00401a10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c3198
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret