Function at 0x4ebf80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576074
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.00516940
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 0x4ec323
mov ecx, edi
call fcn.00424ba0
cmp word [ebp - 0x218], 0
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x224], ebx
je 0x4ec31e
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x4ec31e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5dd268]
cmp eax, dword [ecx + 4]
jle 0x4ec0d7
push 0x5dd268
call fcn.0050fdb6
add esp, 4
cmp dword [0x5dd268], 0xffffffff
jne 0x4ec0d7
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x579070
mov dword [0x5dd28c], 0x589478
mov dword [0x5dd290], eax
mov byte [0x5dd294], 0
call fcn.0050fc0b
xor eax, eax
mov dword [0x5dd270], 0x589490
push 0x57907a
mov dword [0x5dd274], 0x5dd28c
mov dword [0x5dd284], 2
mov dword [0x5dd27c], 0
mov dword [0x5dd280], 0
mov dword [0x5dd288], eax
mov dword [0x5dd278], 0x5dd270
call fcn.0050fc0b
push 0x5dd268
call fcn.0050fd77
add esp, 0xc
mov eax, dword [0x5dd270]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ec0f4
lock inc dword [0x5dd284]
mov eax, 0x5dd278
jmp 0x4ec0fb
mov ecx, 0x5dd270
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
test ebx, 0xffff0000
jne 0x4ec1d4
movzx ebx, bx
mov ecx, ebx
call fcn.00408f5a
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4ec202
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 0x4ec202
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 0x4ec202
movzx ebx, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4ec197
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.0051deb6
add esp, 0x10
cmp eax, 0x50
ja case.0x4ec1b9.1
movzx eax, byte [eax + 0x4ec350]
jmp dword [eax*4 + 0x4ec340]
cmp ebx, dword [esi - 8]
jg case.0x4ec1b9.20
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x4ec202
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ec1e0
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 0x4ec26d
mov ecx, dword [edi]
lea edx, [ebp - 0x21c]
cmp ecx, edx
ja 0x4ec26d
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [edi + 8]
jne 0x4ec236
push ecx
mov ecx, edi
call fcn.004256f0
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 0x4ec29e
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 0x4ec29e
cmp eax, dword [edi + 8]
jne 0x4ec27a
push ecx
mov ecx, edi
call fcn.004256f0
mov ebx, dword [edi + 4]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4ec29e
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 0x4ec2ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ec2ed
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ec2ef
call edx
cmp word [ebx], 0
je 0x4ec31e
mov esi, dword [ebp - 0x228]
jmp 0x4ec010
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.0050f7b9
mov esp, ebp
pop ebp
ret