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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3660
call fcn.00577780
mov eax, dword [0x615780]
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 0x4105b2
mov byte [edi], al
lea eax, [ebp - 0x3618]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x4105cf
cmp ebx, 2
jae 0x4105ee
cmp dword [ebp + 0xc], 0
jne 0x4105ee
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 0x4105d5
inc dword [ebp - 0x360c]
add esi, 0x100
inc ebx
add edi, 0x100
cmp ebx, 0x1a
jl 0x410590
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.0057ca03
mov esi, dword [ebp - 0x3614]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3610], ebx
test ebx, ebx
je 0x4109dd
cmp edi, 0xffffffff
je 0x4109d4
nop dword [eax]
xor edi, edi
cmp dword [ebp - 0x360c], edi
jle 0x41069a
lea ebx, [ebp - 0x1c04]
lea ecx, [ebp - 0x104]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410678
test dl, dl
je 0x410674
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410678
add eax, 2
add ecx, 2
test dl, dl
jne 0x410658
xor eax, eax
jmp 0x41067d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4109a2
inc edi
add ebx, 0x100
cmp edi, dword [ebp - 0x360c]
jl 0x410650
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 0x4106a0
lea edi, [ebp - 0x204]
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x4106c0
sub edi, ecx
test edi, edi
jle 0x4106e3
lea eax, [edi - 1]
cmp eax, 0x100
jae 0x4109f0
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 0x4109a2
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 0x4109a2
xor edx, edx
mov dword [ebp - 0x3614], edx
cmp dword [ebx], edx
jbe 0x4109a2
lea ecx, [ebx + 8]
mov dword [ebp - 0x361c], ecx
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
jne 0x41098a
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 0x4107b8
test dl, dl
je 0x4107b4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4107b8
add ecx, 2
add eax, 2
test dl, dl
jne 0x410798
xor eax, eax
jmp 0x4107bd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410962
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 0x410839
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 0x410962
mov ax, word [0x5b93b8]
add cl, 0x61
mov word [ebp - 0x3608], ax
mov al, byte [0x5b93ba]
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 0x41090a
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 0x410962
mov ecx, dword [ebp - 0x3644]
mov edx, dword [ebp - 0x3640]
jmp 0x41094d
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 0x410962
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 0x410790
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 0x410750
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 0x4109c7
mov ebx, dword [ebp - 0x3610]
jmp 0x410640
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ebx, dword [ebp - 0x3610]
push ebx
call fcn.0057c553
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057742f
mov esp, ebp
pop ebp
ret
call fcn.005775c6
int3