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

Disassembly:
mov eax, 0x3648
call fcn.0044a4c0
push ebx
push ebp
mov ebp, dword [esp + 0x3654]
xor eax, eax
lea edx, [esp + 0x250]
push esi
mov dword [ebp + 0x19c], eax
mov ecx, dword [0x4a7074]
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 + 0x1c58]
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 0x4193a0
mov edi, 0x4aadf8
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 0x4193b7
cmp dword [esp + 0x10], 2
jge 0x4193ec
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 0x419361
lea eax, [esp + 0x58]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov esi, eax
push 0x200
mov dword [esp + 0x30], esi
call fcn.0044a1ab
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x41972d
cmp esi, 0xffffffff
je 0x41972d
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x25c]
push edx
push eax
call fcn.004192b0
add esp, 0xc
test al, al
jne 0x419710
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x158]
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 + 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
jle 0x4194a3
mov byte [esp + esi + 0x157], al
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x16c]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x41970c
lea edx, [esp + 0x34]
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 0x41970c
mov eax, dword [ebx]
mov dword [esp + 0x20], 0
test eax, eax
jbe 0x41970c
add ebx, 0x10
mov dword [esp + 0x24], ebx
mov eax, dword [ebx - 8]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jne 0x4196ec
mov eax, dword [ebp + 0x19c]
mov edx, ebp
mov edi, 2
lea ecx, [eax + eax*2]
shl ecx, 5
add edx, ecx
mov dword [eax + edx + 0x1a0], 0xffffffff
lea eax, [esp + 0x1e58]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x58]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41956c
test cl, cl
je 0x419568
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41956c
add eax, 2
add esi, 2
test cl, cl
jne 0x419548
xor eax, eax
jmp 0x419571
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4196ce
mov eax, dword [ebp + 0x19c]
mov edx, ebp
push 0
lea ecx, [eax + eax*2]
shl ecx, 5
add edx, ecx
mov ecx, dword [ebx]
mov dword [eax + edx + 0x1d4], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + edx + 0x1d8], ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x38]
lea eax, [esp + 0x44]
push edx
push 8
push eax
push 0
push 0
push 0x7405c
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4195f6
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, 0x14
call fcn.0044acc0
mov ecx, dword [ebp + 0x19c]
mov ebx, ebp
lea esi, [ecx + ecx*2]
shl esi, 5
add ebx, esi
mov dword [ecx + ebx + 0x1c4], eax
mov dword [ecx + ebx + 0x1c8], edx
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x19c]
mov ecx, ebp
push 0x20
lea edx, [eax + eax*2]
shl edx, 5
add ecx, edx
mov dword [eax + ecx + 0x1a0], edi
mov eax, dword [ebp + 0x19c]
mov ecx, ebp
lea edx, [eax + eax*2]
shl edx, 5
add ecx, edx
add eax, ecx
lea ecx, [esp + 0x50]
lea edx, [eax + 0x1a4]
push edx
push ecx
lea edx, [esp + 0x54]
lea ecx, [eax + 0x1fd]
push edx
push ecx
add eax, 0x1dd
push 0x20
lea edx, [esp + 0x70]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp + 0x19c]
mov edx, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
add edx, ecx
mov ecx, dword [eax + edx + 0x1a0]
cmp ecx, 1
lea eax, [eax + edx + 0x1a0]
jle 0x4196ce
mov cx, word [0x4a59b0]
mov dl, byte [0x4a59b2]
mov word [esp + 0x10], cx
mov byte [esp + 0x12], dl
mov al, byte [eax]
lea ecx, [esp + 0x38]
add al, 0x61
lea edx, [esp + 0x50]
mov byte [esp + 0x10], al
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00417eb0
add esp, 0xc
test al, al
je 0x4196ce
mov eax, dword [ebp + 0x19c]
mov edx, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
add edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + edx + 0x1cc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + edx + 0x1d0], ecx
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 0x100
cmp edi, 0x1a
mov dword [esp + 0x14], ecx
jl 0x419540
inc dword [ebp + 0x19c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
inc eax
add ebx, 0x18
mov ecx, dword [edx]
mov dword [esp + 0x20], eax
cmp eax, ecx
mov dword [esp + 0x24], ebx
jb 0x419507
mov ebx, edx
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x58]
push 0x64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x41943b
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3648
ret