Function at 0x414820
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x208
call fcn.00407fa0
mov ebx, dword [ebp + 8]
add esp, 4
mov esi, eax
mov ecx, ebx
mov dword [ebp - 4], esi
mov dword [ebx + 0xc], 5
mov dword [ebx + 4], 5
mov dword [ebx + 8], 0
call fcn.00405680
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push 0x104
call edi
mov esi, eax
cmp esi, 0x104
jbe 0x41489c
push dword [ebp - 4]
call fcn.00407fc0
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407fa0
add esp, 8
mov dword [ebp - 4], eax
push eax
push esi
call edi
mov eax, dword [ebp - 4]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp word [eax], 0
je 0x414a5e
mov edi, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403290
push esi
lea ecx, [ebp - 0x14]
call fcn.004032c0
push eax
lea ecx, [ebp - 0x24]
call fcn.00403b40
lea ecx, [ebp - 0x14]
call fcn.00403ca0
lea ecx, [ebp - 0x24]
call fcn.00403320
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
call fcn.00403c50
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 4]
jb 0x414a0b
lea esi, [eax + 1]
xor ecx, ecx
imul esi, dword [ebx + 0xc]
mov eax, esi
mov dword [ebp - 0xc], esi
mul edi
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00407fa0
add esp, 4
test eax, eax
je 0x414964
mov edi, esi
mov dword [eax], esi
lea edx, [eax + 4]
mov dword [ebp + 8], edx
mov esi, edx
test edi, edi
jbe 0x414969
nop dword [eax + eax]
mov ecx, esi
call fcn.00403290
add esi, 0xc
sub edi, 1
jne 0x414950
mov edx, dword [ebp + 8]
jmp 0x414969
xor edx, edx
mov dword [ebp + 8], edx
mov eax, dword [ebx + 8]
mov dword [ebp - 8], 0
test eax, eax
je 0x4149b2
mov ecx, 0xfffffff8
lea edi, [edx + 8]
sub ecx, edx
mov dword [ebp - 0x18], ecx
lea esi, [ecx + edi]
add esi, dword [ebx]
lea ecx, [edi - 8]
push esi
call fcn.00403b40
mov eax, dword [esi + 4]
lea edi, [edi + 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi - 0x10], eax
inc ecx
mov eax, dword [esi + 8]
mov dword [edi - 0xc], eax
mov eax, dword [ebx + 8]
cmp ecx, eax
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x18]
jb 0x414984
mov ecx, dword [ebx]
test ecx, ecx
je 0x4149fb
mov esi, dword [ecx - 4]
lea edx, [ecx - 4]
mov dword [ebp - 0x18], edx
lea eax, [esi + esi*2]
lea edi, [ecx + eax*4]
test esi, esi
je 0x4149e2
nop dword [eax + eax]
sub edi, 0xc
mov ecx, edi
call fcn.00403ca0
sub esi, 1
jne 0x4149d0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push edx
call fcn.00407fd0
mov eax, dword [ebx + 8]
add esp, 8
mov ecx, dword [ebp + 8]
mov edi, 0xc
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], ecx
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
lea esi, [eax + ecx*4]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00403b40
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
inc dword [ebx + 8]
call fcn.00403ca0
lea ecx, [ebp - 0x24]
call fcn.00403390
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
lea esi, [esi + eax*2]
add esi, 2
mov dword [ebp - 0x10], esi
call fcn.00403ca0
cmp word [esi], 0
jne 0x4148b3
mov eax, dword [ebp - 4]
push eax
call fcn.00407fc0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret