Function at 0x40d5e0
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size

Disassembly:
mov eax, 0x365c
call fcn.00446420
push ebx
push ebp
mov ebp, dword [esp + 0x3668]
xor eax, eax
lea edx, [esp + 0x264]
push esi
mov dword [ebp + 0x1a8], eax
mov ecx, dword [0x4be3e4]
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea ebx, [esp + 0x1c6c]
mov al, byte [esp + 0x10]
push 0x100
lea ecx, [esp + 0x1c]
add al, 0x41
push ebx
push ecx
mov byte [esp + 0x24], al
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
jne 0x40d660
mov edi, 0x4c2a80
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x40d682
cmp dword [esp + 0x10], 2
jge 0x40d6b7
mov eax, dword [esp + 0x3674]
test eax, eax
jne 0x40d6b7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
inc edx
add eax, 0x100
mov dword [esp + 0x1c], edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add ebx, 0x100
inc eax
cmp eax, 0x1a
mov dword [esp + 0x10], eax
jl 0x40d621
lea eax, [esp + 0x6c]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov esi, eax
push 0x200
mov dword [esp + 0x34], esi
call fcn.0044610b
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x40db33
cmp esi, 0xffffffff
je 0x40db33
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x270]
push edx
push eax
call fcn.0040d580
add esp, 0xc
test al, al
jne 0x40db16
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
jle 0x40d76e
mov byte [esp + esi + 0x16b], al
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x180]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
je 0x40db12
lea edx, [esp + 0x24]
push 0
push edx
push esi
push ebx
push 0
push 0
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40db12
mov eax, dword [ebx]
mov dword [esp + 0x2c], 0
test eax, eax
jbe 0x40db12
add ebx, 0x10
mov eax, dword [ebx - 8]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jne 0x40daf6
mov ecx, dword [ebp + 0x1a8]
push 0x20
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*4]
add eax, ecx
lea ecx, [esp + 0x6c]
lea edx, [eax + 0x1b0]
push edx
push ecx
lea edx, [esp + 0x70]
lea ecx, [eax + 0x211]
push edx
push ecx
add eax, 0x1f1
push 0x20
lea edx, [esp + 0x84]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x3c]
push 8
push ecx
push 0
push 0
push 0x7405c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40d87e
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, 0x14
call fcn.00446c20
mov esi, dword [ebp + 0x1a8]
lea ecx, [esi*8]
sub ecx, esi
lea ecx, [ecx + ecx*2]
lea esi, [ebp + ecx*4]
mov dword [ecx + esi + 0x1d0], eax
mov dword [ecx + esi + 0x1d4], edx
lea edx, [esp + 0x3c]
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.0040c000
add esp, 0xc
test al, al
je 0x40d8f1
mov ecx, dword [ebp + 0x1a8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x54]
lea eax, [eax + eax*2]
lea edx, [ebp + eax*4]
mov dword [eax + edx + 0x1d8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + edx + 0x1dc], ecx
mov ecx, dword [ebp + 0x1a8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
lea eax, [eax + eax*2]
lea edx, [ebp + eax*4]
mov dword [eax + edx + 0x1e0], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + edx + 0x1e4], ecx
mov ecx, dword [ebp + 0x1a8]
mov esi, dword [esp + 0x3674]
lea eax, [ecx*8]
sub eax, ecx
neg esi
sbb esi, esi
lea eax, [eax + eax*2]
and esi, 0xfffffffe
lea edx, [ebp + eax*4]
add esi, 2
cmp esi, 0x1a
mov dword [eax + edx + 0x1ac], 0xffffffff
jge 0x40daf0
mov eax, esi
shl eax, 8
lea ecx, [esp + eax + 0x1c6c]
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x6c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40d968
test cl, cl
je 0x40d964
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40d968
add eax, 2
add edi, 2
test cl, cl
jne 0x40d944
xor eax, eax
jmp 0x40d96d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40dad4
mov ecx, dword [ebp + 0x1a8]
mov edx, dword [ebx]
push 0
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*4]
mov dword [eax + ecx + 0x1e8], edx
mov edx, dword [ebx + 4]
mov dword [eax + ecx + 0x1ec], edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
push 8
push ecx
push 0
push 0
push 0x7405c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40d9fa
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ecx, 0x14
call fcn.00446c20
mov edi, dword [ebp + 0x1a8]
lea ecx, [edi*8]
sub ecx, edi
lea ecx, [ecx + ecx*2]
lea edi, [ebp + ecx*4]
mov dword [ecx + edi + 0x1d0], eax
mov dword [ecx + edi + 0x1d4], edx
mov ecx, dword [ebp + 0x1a8]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*4]
mov dword [eax + ecx + 0x1ac], esi
mov ecx, dword [ebp + 0x1a8]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea edx, [ebp + eax*4]
mov ecx, dword [eax + edx + 0x1ac]
lea eax, [eax + edx + 0x1ac]
test ecx, ecx
jle 0x40dad4
mov cx, word [0x4bba58]
mov dl, byte [0x4bba5a]
mov word [esp + 0x10], cx
mov byte [esp + 0x12], dl
mov al, byte [eax]
lea ecx, [esp + 0x44]
add al, 0x61
lea edx, [esp + 0x5c]
mov byte [esp + 0x10], al
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0040c000
add esp, 0xc
test al, al
je 0x40dad4
mov ecx, dword [ebp + 0x1a8]
mov edx, dword [esp + 0x5c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*4]
mov dword [eax + ecx + 0x1d8], edx
mov edx, dword [esp + 0x60]
mov dword [eax + ecx + 0x1dc], edx
mov ecx, dword [ebp + 0x1a8]
mov edx, dword [esp + 0x44]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*4]
mov dword [eax + ecx + 0x1e0], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx + 0x1e4], edx
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x100
cmp esi, 0x1a
mov dword [esp + 0x14], ecx
jl 0x40d93c
mov edi, dword [esp + 0x28]
inc dword [ebp + 0x1a8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
inc eax
add ebx, 0x18
mov edx, dword [ecx]
mov dword [esp + 0x2c], eax
cmp eax, edx
jb 0x40d7d0
mov ebx, ecx
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x6c]
push 0x64
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x40d706
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x365c
ret