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

Disassembly:
mov eax, 0x3644
call fcn.00447dc0
push ebx
push ebp
mov ebp, dword [esp + 0x3650]
xor eax, eax
lea edx, [esp + 0x24c]
push esi
mov dword [ebp + 0x194], eax
mov ecx, dword [0x4a3ee8]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea ebx, [esp + 0x1c54]
mov al, byte [esp + 0x10]
push 0x100
lea ecx, [esp + 0x20]
add al, 0x41
push ebx
push ecx
mov byte [esp + 0x28], al
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
jne 0x4186f0
mov edi, 0x4a7a28
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 + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x418707
cmp dword [esp + 0x10], 2
jge 0x41873c
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 + 0x18]
and ecx, 3
inc edx
add eax, 0x100
mov dword [esp + 0x18], 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 0x4186b1
lea eax, [esp + 0x54]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov esi, eax
push 0x200
mov dword [esp + 0x28], esi
call fcn.00447aab
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x418a55
cmp esi, 0xffffffff
je 0x418a55
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x258]
push edx
push eax
call fcn.00418610
add esp, 0xc
test al, al
jne 0x418a38
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
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 + 0x154]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
jle 0x4187f3
mov byte [esp + esi + 0x153], al
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x168]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x418a34
lea edx, [esp + 0x30]
push 0
push edx
push esi
push ebx
push 0
push 0
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x418a34
mov eax, dword [ebx]
mov dword [esp + 0x20], 0
test eax, eax
jbe 0x418a34
lea eax, [ebx + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
mov edx, dword [ecx]
cmp edx, eax
jne 0x418a16
mov eax, dword [ebp + 0x194]
mov edi, 2
lea ebx, [esp + 0x1e54]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
mov dword [ecx + ebp + 0x198], 0xffffffff
mov esi, ebx
lea eax, [esp + 0x54]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4188b9
test cl, cl
je 0x4188b5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4188b9
add eax, 2
add esi, 2
test cl, cl
jne 0x418895
xor eax, eax
jmp 0x4188be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4189f5
mov edx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
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 0x41891b
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, 0x14
call fcn.004485c0
mov ecx, dword [ebp + 0x194]
lea esi, [ecx + ecx*4]
lea esi, [esi + esi*8]
shl esi, 1
sub esi, ecx
mov dword [esi + ebp + 0x1bc], eax
mov dword [esi + ebp + 0x1c0], edx
mov eax, dword [ebp + 0x194]
push 0x20
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
mov dword [ecx + ebp + 0x198], edi
mov eax, dword [ebp + 0x194]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*8]
shl edx, 1
sub edx, eax
lea eax, [edx + ebp]
lea edx, [esp + 0x48]
lea ecx, [eax + 0x19c]
push ecx
push edx
lea ecx, [esp + 0x54]
lea edx, [eax + 0x1ed]
push ecx
push edx
add eax, 0x1cd
push 0x20
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp + 0x194]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
lea eax, [ecx + ebp + 0x198]
mov ecx, dword [ecx + ebp + 0x198]
cmp ecx, 1
jle 0x4189f5
mov dx, word [0x4a2978]
mov cl, byte [0x4a297a]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], cl
mov dl, byte [eax]
lea eax, [esp + 0x3c]
add dl, 0x61
lea ecx, [esp + 0x4c]
mov byte [esp + 0x10], dl
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00417220
add esp, 0xc
test al, al
je 0x4189f5
mov eax, dword [ebp + 0x194]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
mov dword [ecx + ebp + 0x1c4], edx
mov eax, dword [esp + 0x40]
mov dword [ecx + ebp + 0x1c8], eax
inc edi
add ebx, 0x100
cmp edi, 0x1a
jl 0x41888f
mov eax, dword [ebp + 0x194]
mov ebx, dword [esp + 0x28]
inc eax
mov dword [ebp + 0x194], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
jb 0x418857
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x54]
push 0x64
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x41878b
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3644
ret