Function at 0x405d6c
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x4114e3
call fcn.004105ff
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov ecx, eax
push 8
pop edi
cmp dword [ebp + 0x20], edi
jae 0x405d90
lea ecx, [ebp + 0xc]
cmp word [ecx], 0x7b
jne 0x405dae
cmp dword [ebp + 0x20], edi
jae 0x405d9e
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x405f1f
push 0x104
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call fcn.00407db9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
sar eax, 1
cmp dword [ebp + 0x20], edi
jae 0x405ddb
lea ecx, [ebp + 0xc]
push eax
push dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x405e65
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
call fcn.00407fb9
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
push eax
call fcn.00407f6b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00409d62
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 3
xor ecx, ecx
dec eax
mov word [ebp - 0x28], cx
push eax
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
call fcn.00409f45
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], 1
push eax
lea ecx, [ebp + 0xc]
call fcn.00407f6b
xor eax, eax
inc eax
mov dword [ebp - 0x54], eax
and eax, 0xfffffffe
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
jmp 0x405ed2
mov esi, 0x402578
push esi
call fcn.00404334
pop ecx
push eax
push ecx
push esi
lea ecx, [ebp + 0xc]
call fcn.00409dab
test eax, eax
je 0x405eda
push esi
lea ecx, [ebp - 0x50]
call fcn.00407fb9
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, eax
call fcn.00409fd6
push eax
lea ecx, [ebp - 0x28]
call fcn.00407f92
push 2
pop esi
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x54], esi
call fcn.00407f6b
mov dword [ebp - 0x54], esi
and esi, 0xfffffffd
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00409d62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
push ebx
push 1
call fcn.00409d62
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x20], edi
jae 0x405ee5
lea eax, [ebp + 0xc]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f43
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.0040d723
test eax, eax
jne 0x405f55
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x60]
call fcn.00407d9a
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
push ebx
push 1
call fcn.00409d62
mov eax, dword [ebp + 8]
call fcn.004105ae
ret 0x1c
lea ecx, [ebp - 0x20]
call fcn.004055d3
push 0x414c58
lea eax, [ebp - 0x20]
jmp 0x405f60
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push 0x414c1c
push eax
call sub.msvcrt.dll__CxxThrowException
int3