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

Disassembly:
mov eax, 0x3648
call fcn.00452850
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 [0x4b1268]
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 0x41c1f0
mov edi, 0x4b5218
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 0x41c212
cmp dword [esp + 0x10], 2
jge 0x41c247
mov eax, dword [esp + 0x3660]
test eax, eax
jne 0x41c247
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 0x41c1b1
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.0045253b
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x41c5a1
cmp esi, 0xffffffff
je 0x41c5a1
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x25c]
push edx
push eax
call fcn.0041c110
add esp, 0xc
test al, al
jne 0x41c584
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 0x41c2fe
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 0x41c580
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 0x41c580
mov eax, dword [ebx]
mov dword [esp + 0x20], 0
test eax, eax
jbe 0x41c580
add ebx, 0x10
mov dword [esp + 0x24], ebx
mov eax, dword [ebx - 8]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jne 0x41c560
mov eax, dword [ebp + 0x19c]
mov esi, dword [esp + 0x3660]
mov edx, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
add edx, ecx
neg esi
sbb esi, esi
mov dword [eax + edx + 0x1a0], 0xffffffff
and esi, 0xfffffffe
add esi, 2
cmp esi, 0x1a
jge 0x41c55a
mov eax, esi
shl eax, 8
lea ecx, [esp + eax + 0x1c58]
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x58]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x41c3e1
test cl, cl
je 0x41c3dd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x41c3e1
add eax, 2
add edi, 2
test cl, cl
jne 0x41c3bd
xor eax, eax
jmp 0x41c3e6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41c542
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 0x41c46b
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, 0x14
call fcn.00453050
mov ecx, dword [ebp + 0x19c]
mov ebx, ebp
lea edi, [ecx + ecx*2]
shl edi, 5
add ebx, edi
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], esi
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]
test ecx, ecx
lea eax, [eax + edx + 0x1a0]
jle 0x41c542
mov cx, word [0x4af9e4]
mov dl, byte [0x4af9e6]
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.0041acd0
add esp, 0xc
test al, al
je 0x41c542
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 esi
add ecx, 0x100
cmp esi, 0x1a
mov dword [esp + 0x14], ecx
jl 0x41c3b5
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 0x41c362
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 0x41c296
push esi
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3648
ret