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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3660
call fcn.005786d0
mov eax, dword [0x616780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x3614], esi
lea edi, [ebp - 0x3604]
mov dword [ebp - 0x360c], 0
mov dword [esi + 0x210], 0
lea esi, [ebp - 0x1c04]
mov dword [ebp - 0x3618], 0x5c3a41
nop
lea eax, [ebx + 0x41]
push 0x100
mov byte [ebp - 0x3618], al
lea eax, [ebp - 0x3618]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
jne 0x410492
mov byte [edi], al
lea eax, [ebp - 0x3618]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x4104af
cmp ebx, 2
jae 0x4104ce
cmp dword [ebp + 0xc], 0
jne 0x4104ce
mov edx, esi
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4104b5
inc dword [ebp - 0x360c]
add esi, 0x100
inc ebx
add edi, 0x100
cmp ebx, 0x1a
jl 0x410470
push 0x64
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov edi, eax
push 0x200
mov dword [ebp - 0x3634], edi
call fcn.0057d953
mov esi, dword [ebp - 0x3614]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3610], ebx
test ebx, ebx
je 0x4108bd
cmp edi, 0xffffffff
je 0x4108b4
nop dword [eax]
xor edi, edi
cmp dword [ebp - 0x360c], edi
jle 0x41057a
lea ebx, [ebp - 0x1c04]
lea ecx, [ebp - 0x104]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410558
test dl, dl
je 0x410554
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410558
add eax, 2
add ecx, 2
test dl, dl
jne 0x410538
xor eax, eax
jmp 0x41055d
sbb eax, eax
or eax, 1
test eax, eax
je 0x410882
inc edi
add ebx, 0x100
cmp edi, dword [ebp - 0x360c]
jl 0x410530
mov ebx, dword [ebp - 0x3610]
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x104]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x205], al
test al, al
jne 0x410580
lea edi, [ebp - 0x204]
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x4105a0
sub edi, ecx
test edi, edi
jle 0x4105c3
lea eax, [edi - 1]
cmp eax, 0x100
jae 0x4108d0
mov byte [ebp + eax - 0x204], 0
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3624], eax
cmp eax, 0xffffffff
je 0x410882
push 0
lea ecx, [ebp - 0x3620]
push ecx
push edi
push ebx
push 0
push 0
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x410882
xor edx, edx
mov dword [ebp - 0x3614], edx
cmp dword [ebx], edx
jbe 0x410882
lea ecx, [ebx + 8]
mov dword [ebp - 0x361c], ecx
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
jne 0x41086a
imul eax, dword [esi + 0x210], 0x61
lea ebx, [ebp - 0x3604]
mov edi, 2
mov dword [eax + esi + 0x214], 0xffffffff
xor eax, eax
cmp dword [ebp + 0xc], eax
cmovne edi, eax
mov eax, edi
shl eax, 8
add ebx, eax
nop word [eax + eax]
mov eax, ebx
lea ecx, [ebp - 0x104]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x410698
test dl, dl
je 0x410694
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x410698
add ecx, 2
add eax, 2
test dl, dl
jne 0x410678
xor eax, eax
jmp 0x41069d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410842
imul edx, dword [esi + 0x210], 0x61
mov ecx, dword [ebp - 0x361c]
push 0
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + esi + 0x248], eax
lea eax, [ebp - 0x3620]
push eax
push 8
lea eax, [ebp - 0x363c]
mov dword [edx + esi + 0x24c], ecx
push eax
push 0
push 0
push 0x7405c
push dword [ebp - 0x3624]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x410719
mov ecx, dword [ebp - 0x363c]
mov edx, dword [ebp - 0x3638]
shrd ecx, edx, 0x14
sar edx, 0x14
imul eax, dword [esi + 0x210], 0x61
mov dword [eax + esi + 0x238], ecx
mov dword [eax + esi + 0x23c], edx
imul eax, dword [esi + 0x210], 0x61
push 0x20
mov dword [eax + esi + 0x214], edi
lea eax, [esi + 0x218]
imul ecx, dword [esi + 0x210], 0x61
add eax, ecx
push eax
lea eax, [ebp - 0x3648]
push eax
lea eax, [ebp - 0x364c]
push eax
lea eax, [esi + 0x271]
add eax, ecx
push eax
lea eax, [ecx + 0x251]
push 0x20
add eax, esi
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
imul eax, dword [esi + 0x210], 0x61
mov ecx, dword [eax + esi + 0x214]
test ecx, ecx
jle 0x410842
mov ax, word [0x5ba3b8]
add cl, 0x61
mov word [ebp - 0x3608], ax
mov al, byte [0x5ba3ba]
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
mov byte [ebp - 0x3606], al
mov byte [ebp - 0x3608], cl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4107ea
lea ecx, [ebp - 0x3658]
push ecx
lea ecx, [ebp - 0x3660]
push ecx
lea ecx, [ebp - 0x3644]
push ecx
lea ecx, [ebp - 0x3608]
push ecx
call eax
test eax, eax
je 0x410842
mov ecx, dword [ebp - 0x3644]
mov edx, dword [ebp - 0x3640]
jmp 0x41082d
lea eax, [ebp - 0x3650]
push eax
lea eax, [ebp - 0x3630]
push eax
lea eax, [ebp - 0x362c]
push eax
lea eax, [ebp - 0x3628]
push eax
lea eax, [ebp - 0x3608]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x410842
mov ecx, dword [ebp - 0x3628]
imul ecx, dword [ebp - 0x362c]
imul ecx, dword [ebp - 0x3630]
xor edx, edx
imul eax, dword [esi + 0x210], 0x61
mov dword [eax + esi + 0x240], ecx
mov dword [eax + esi + 0x244], edx
inc edi
add ebx, 0x100
cmp edi, 0x1a
jl 0x410670
inc dword [esi + 0x210]
mov ecx, dword [ebp - 0x361c]
mov edx, dword [ebp - 0x3614]
mov ebx, dword [ebp - 0x3610]
inc edx
add ecx, 0x18
mov dword [ebp - 0x3614], edx
mov dword [ebp - 0x361c], ecx
cmp edx, dword [ebx]
jb 0x410630
mov ebx, dword [ebp - 0x3634]
lea eax, [ebp - 0x104]
push 0x64
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
je 0x4108a7
mov ebx, dword [ebp - 0x3610]
jmp 0x410520
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ebx, dword [ebp - 0x3610]
push ebx
call fcn.0057d4a3
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057837f
mov esp, ebp
pop ebp
ret
call fcn.00578516
int3