Function at 0x4ec9e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576c14
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.005173a0
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 0x4ecd83
mov ecx, edi
call fcn.00424b80
cmp word [ebp - 0x218], 0
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x224], ebx
je 0x4ecd7e
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x4ecd7e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5dd428]
cmp eax, dword [ecx + 4]
jle 0x4ecb37
push 0x5dd428
call fcn.00510816
add esp, 4
cmp dword [0x5dd428], 0xffffffff
jne 0x4ecb37
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x579c10
mov dword [0x5dd44c], 0x589478
mov dword [0x5dd450], eax
mov byte [0x5dd454], 0
call fcn.0051066b
xor eax, eax
mov dword [0x5dd430], 0x589490
push 0x579c1a
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.0051066b
push 0x5dd428
call fcn.005107d7
add esp, 0xc
mov eax, dword [0x5dd430]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ecb54
lock inc dword [0x5dd444]
mov eax, 0x5dd438
jmp 0x4ecb5b
mov ecx, 0x5dd430
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
test ebx, 0xffff0000
jne 0x4ecc34
movzx ebx, bx
mov ecx, ebx
call fcn.00408f5a
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4ecc62
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 0x4ecc62
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 0x4ecc62
movzx ebx, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4ecbf7
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.0051e916
add esp, 0x10
cmp eax, 0x50
ja case.0x4ecc19.1
movzx eax, byte [eax + 0x4ecdb0]
jmp dword [eax*4 + 0x4ecda0]
cmp ebx, dword [esi - 8]
jg case.0x4ecc19.20
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x4ecc62
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ecc40
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 0x4ecccd
mov ecx, dword [edi]
lea edx, [ebp - 0x21c]
cmp ecx, edx
ja 0x4ecccd
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [edi + 8]
jne 0x4ecc96
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 0x4eccfe
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 0x4eccfe
cmp eax, dword [edi + 8]
jne 0x4eccda
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 0x4eccfe
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 0x4ecd4f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ecd4d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ecd4f
call edx
cmp word [ebx], 0
je 0x4ecd7e
mov esi, dword [ebp - 0x228]
jmp 0x4eca70
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.00510219
mov esp, ebp
pop ebp
ret