Function at 0x4c2920
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd956
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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 edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
push 0x14
mov dword [edi + 8], esi
call fcn.0045401f
add esp, 4
cmp eax, esi
je 0x4c2d3a
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov ebx, 1
mov byte [eax + 0x10], bl
mov ecx, dword [edi + 4]
mov byte [ecx + 0x11], bl
mov dword [ebp - 4], esi
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
mov dword [ebp - 0x20], ebx
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x74]
mov dword [ebp - 4], ebx
call fcn.00401890
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
mov ecx, ebx
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4c29d9
mov eax, 0x104
lea ecx, [ebp - 0x14]
call fcn.0041b590
mov edx, dword [ebp - 0x14]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
mov dword [ebp - 0x1c], esi
call fcn.00453fa1
add esp, 8
test eax, eax
js 0x4c2c06
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4c2c06
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.004c2800
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040de60
push eax
push edi
lea ebx, [ebp - 0x34]
call fcn.0040e6f0
cmp esi, 0xffffffff
je 0x4c2b6c
jmp 0x4c2a50
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4c2a77
mov eax, 0x104
lea ecx, [ebp - 0x14]
call fcn.0041b590
mov edx, dword [ebp - 0x14]
push 0x104
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov esi, 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 0x4c2c06
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4c2c06
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
je 0x4c2b62
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x14]
call fcn.004c2800
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4c2b22
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4c2b15
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c2b15
call fcn.0041b370
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4c2b0a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x18], ecx
jmp 0x4c2b22
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0041b280
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2b45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.0040de60
push eax
push edi
lea ebx, [ebp - 0x34]
call fcn.0040e6f0
mov esi, dword [ebp - 0x1c]
jmp 0x4c2a50
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x28], eax
mov esi, 0x41
movzx ecx, si
sub ecx, 0x41
mov eax, 1
shl eax, cl
test dword [ebp - 0x28], eax
je 0x4c2c68
mov ecx, esi
lea ebx, [ebp - 0x1c]
call fcn.0041bcb0
push 1
push 0x4eea54
mov byte [ebp - 4], 5
call fcn.0041acd0
mov edx, dword [edi + 4]
mov ecx, ebx
mov eax, edi
mov dword [ebp - 0x30], edx
call fcn.00421840
mov ebx, dword [edi + 4]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4c2c23
mov eax, dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4c2d30
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c2c10
test dx, dx
je 0x4c2c02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c2c10
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c2be0
xor eax, eax
jmp 0x4c2c15
push 0x80070057
call fcn.0041b5f0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sets al
test al, al
jne 0x4c2c23
lea eax, [ebp - 0x24]
jmp 0x4c2c29
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
cmp dword [eax], ecx
jne 0x4c2c45
lea edx, [ebp - 0x1c]
push edx
mov ecx, edi
call fcn.0040de60
push eax
push edi
lea ebx, [ebp - 0x3c]
call fcn.0040e6f0
mov byte [ebp - 4], 3
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 0x4c2c68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp si, 0x5a
jbe 0x4c2b7a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2c96
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 - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2cb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2cd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2cf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
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 0x4c2d1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0041b5f0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
call fcn.004541b0
push 0x4ff0c0
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], vtable.std::bad_alloc.0
call fcn.00457e5a
int3