Function at 0x40d978
Capabilities:
Enumerate disk volumes

Disassembly:
push 0xa4
mov eax, 0x412579
call fcn.004105ff
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x104
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.00407db9
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], ebx
push eax
inc ebx
mov ecx, esi
push edi
mov dword [ebp - 0x74], ebx
call fcn.0040d034
test eax, eax
jne 0x40dbbd
and dword [ebp - 0x80], eax
and dword [ebp - 0x7c], eax
cmp dword [ebp - 0x9c], 7
jne 0x40d9f1
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
push edi
call fcn.0040d7d9
test eax, eax
jne 0x40dbbd
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp - 0x64]
sub esi, dword [ebp - 0x68]
sar esi, 1
push esi
push dword [ebp - 0x68]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x6c], esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x40dbaf
xor ebx, ebx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x28]
call fcn.00407fb9
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x40da3d
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
dec eax
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040b055
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x40da5b
lea eax, [ebp - 0x40]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x88], edi
cmp edi, 0xffffffff
je 0x40db71
cmp dword [ebp - 0x9c], 7
je 0x40daee
lea edx, [ebp - 0x50]
mov ecx, edi
call fcn.0040d723
test eax, eax
jne 0x40db6a
mov edx, dword [ebp - 0x84]
mov ecx, ebx
lea eax, [ebp - 0x50]
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x40db6a
inc ecx
cmp ecx, 4
jne 0x40daa1
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x28]
push eax
call fcn.0040ded6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00409d62
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00409d62
jmp 0x40dba6
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
push edi
call fcn.0040dd64
mov ebx, dword [ebp - 0x5c]
test eax, eax
jne 0x40db4b
mov esi, ebx
cmp esi, dword [ebp - 0x58]
je 0x40db48
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x70]
cmp eax, dword [esi + 4]
jne 0x40db37
cmp ebx, dword [esi]
jne 0x40db37
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040ded6
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x7c]
add esi, 8
cmp esi, dword [ebp - 0x58]
jne 0x40db1c
mov edi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x40db68
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
xor ebx, ebx
pop ecx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
jmp 0x40db6a
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00409d62
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00409d62
push esi
push dword [ebp - 0x68]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40da22
mov ebx, dword [ebp - 0x74]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x40dbbf
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00407d9a
mov eax, ebx
call fcn.004105ae
ret 8