Function at 0x404d44
Capabilities:
Enumerate disk volumes
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x4654
lea ecx, [ebp - 0x30]
call fcn.0043fc43
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0x5a0]
mov dword [ebp - 0x28], ecx
lea ecx, [eax + 0x618]
lea ebx, [eax + 0x398]
mov dword [ebp - 0x24], ecx
lea ecx, [eax + 0x690]
mov dword [ebp - 0x10], eax
add eax, 0x708
xor edi, edi
mov dword [ebp - 0x18], ecx
push 0xfffffffffffffffe
pop ecx
mov dword [ebp - 0xc], eax
lea esi, [eax + 0x320]
add eax, 0x3cc
mov dword [ebp - 0x20], edi
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2c], edi
mov word [ebx], di
mov dword [ebp - 0x1c], 2
je 0x404dbd
mov dword [ebp - 8], ecx
mov ebx, ecx
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cmp ecx, edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], edi
jne 0x404de5
push 0x103
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40504e
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
js 0x404dfb
lea eax, [ebx + eax*2]
cmp word [eax], 0x5c
jne 0x404dfb
mov word [eax], di
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp + 0x14], edi
je 0x404e24
push ebx
call fcn.00404d12
test eax, eax
pop ecx
je 0x404e24
push 7
push 0x80000000
push ebx
call fcn.00413276
add esp, 0xc
jmp 0x404e3b
push edi
push 0x2000080
push 3
push edi
push 7
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405023
cmp eax, edi
je 0x405023
push 0xc
push edi
push esi
call fcn.0049a7e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 0xffffffffffffffaa
pop ebx
push edi
push dword [ebp - 0xc]
mov dword [esi + 8], ebx
push 0xc
push esi
push edi
push edi
push 0x2d1080
push dword [ebp - 4]
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp dword [esi + 4], edi
jge 0x404e8a
mov dword [esi + 4], ebx
mov ebx, dword [ebp - 0xc]
push 0x90
push edi
add ebx, 0x334
push ebx
call fcn.0049a7e0
add esp, 0xc
push edi
push dword [ebp - 0xc]
mov dword [ebx + 0x18], 0xffffffaa
push 0x90
push ebx
push edi
push edi
push 0x70048
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp word [ebp + 0x10], di
jl 0x404edf
movsx eax, word [ebp + 0x10]
cmp eax, dword [esi + 8]
jne 0x405020
mov eax, dword [ebp + 0xc]
cmp eax, edi
jl 0x404eef
cmp eax, dword [esi + 4]
jne 0x405020
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebp - 0x28]
call fcn.0048ca08
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebp - 0x24]
call fcn.0048ca08
add esp, 0x18
cmp dword [ebx], 1
jne 0x404f22
push edi
add ebx, 0x20
push ebx
push dword [ebp - 0x18]
call fcn.0043d724
jmp 0x404f35
movzx eax, byte [ebx + 0x20]
push eax
push 0x4af1c4
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esi + 8]
add esp, 0xc
cmp ecx, edi
jge 0x404f42
or ecx, 0xffffffff
mov eax, dword [esi + 4]
cmp eax, edi
jge 0x404f4c
or eax, 0xffffffff
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push dword [esi]
push ecx
push eax
push 0x4ae9fc
push dword [ebp - 8]
push str._r_n_s_s__d__d__d__s__s__s
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 8]
add esp, 0x28
push dword [eax]
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
push edi
push eax
mov dword [ebp - 4], eax
call fcn.004132e4
add esp, 0x10
test eax, eax
je 0x404fb1
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x404fb1
cmp word [eax], di
je 0x404fb1
mov dword [ebp - 4], eax
test byte [ebp - 0x34], 8
je 0x404ff4
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + eax*2]
mov word [eax], 0x20
push 0x20
push edi
inc eax
inc eax
add ecx, 0x3cc
push ecx
mov word [eax], di
push dword [esi + 8]
mov ebx, eax
push dword [ebp - 0x38]
sub ebx, dword [ebp - 0x10]
push eax
sar ebx, 1
call fcn.0044c5f2
add esp, 0x1c
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp + 8]
push eax
call fcn.0043fe06
cmp ebx, edi
jl 0x40501d
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
add eax, ebx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x14], edi
je 0x40504b
push 0x103
push ebx
push dword [ebp - 0x14]
mov word [ebx], di
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x404de5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
call fcn.00439cfd
lea ecx, [ebp - 0x30]
call fcn.00439cfd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret