Function at 0x4ec9d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576c04
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5b3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00517390
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x4ecd73
mov ecx, edi
call fcn.00424b80
cmp word [ebp - 0x218], 0
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x224], ebx
je 0x4ecd6e
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x4ecd6e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5dd428]
cmp eax, dword [ecx + 4]
jle 0x4ecb27
push 0x5dd428
call fcn.00510806
add esp, 4
cmp dword [0x5dd428], 0xffffffff
jne 0x4ecb27
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x579c00
mov dword [0x5dd44c], 0x589478
mov dword [0x5dd450], eax
mov byte [0x5dd454], 0
call fcn.0051065b
xor eax, eax
mov dword [0x5dd430], 0x589490
push 0x579c0a
mov dword [0x5dd434], 0x5dd44c
mov dword [0x5dd444], 2
mov dword [0x5dd43c], 0
mov dword [0x5dd440], 0
mov dword [0x5dd448], eax
mov dword [0x5dd438], 0x5dd430
call fcn.0051065b
push 0x5dd428
call fcn.005107c7
add esp, 0xc
mov eax, dword [0x5dd430]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ecb44
lock inc dword [0x5dd444]
mov eax, 0x5dd438
jmp 0x4ecb4b
mov ecx, 0x5dd430
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
test ebx, 0xffff0000
jne 0x4ecc24
movzx ebx, bx
mov ecx, ebx
call fcn.00408f5a
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4ecc52
mov ecx, ebx
shr ecx, 4
inc ecx
push 6
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ecc52
mov ecx, dword [ebp - 0x220]
mov edx, eax
push ebx
call fcn.00408f9e
mov edx, eax
add esp, 4
mov dword [ebp - 0x220], edx
test edx, edx
je 0x4ecc52
movzx ebx, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4ecbe7
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00409225
mov esi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push ebx
push esi
call fcn.0051e906
add esp, 0x10
cmp eax, 0x50
ja case.0x4ecc09.1
movzx eax, byte [eax + 0x4ecda0]
jmp dword [eax*4 + 0x4ecd90]
cmp ebx, dword [esi - 8]
jg case.0x4ecc09.20
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x4ecc52
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ecc30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00409323
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x21c]
mov eax, dword [edi + 4]
cmp ecx, eax
jae 0x4eccbd
mov ecx, dword [edi]
lea edx, [ebp - 0x21c]
cmp ecx, edx
ja 0x4eccbd
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [edi + 8]
jne 0x4ecc86
push ecx
mov ecx, edi
call fcn.004256d0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x230], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4eccee
mov ecx, dword [eax + ebx*4]
sub ecx, 0x10
call fcn.00408e8d
mov ecx, dword [ebp - 0x220]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4eccee
cmp eax, dword [edi + 8]
jne 0x4eccca
push ecx
mov ecx, edi
call fcn.004256d0
mov ebx, dword [edi + 4]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4eccee
lea ecx, [esi - 0x10]
call fcn.00408e8d
add eax, 0x10
mov dword [ebx], eax
add dword [edi + 4], 4
mov eax, dword [esi - 0xc]
add esi, 0xfffffff0
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
lea ebx, [ebx + eax*2]
or eax, 0xffffffff
add ebx, 2
mov dword [ebp - 0x224], ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ecd3f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ecd3d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ecd3f
call edx
cmp word [ebx], 0
je 0x4ecd6e
mov esi, dword [ebp - 0x228]
jmp 0x4eca60
push 0x80070057
call fcn.0040b4a2
push 0x8007000e
call fcn.0040b4a2
push 0x80004005
call fcn.0040b4a2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00510209
mov esp, ebp
pop ebp
ret