Function at 0x404ea0
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 - 0x38]
call fcn.00443e04
mov eax, dword [ebp - 0x38]
lea ecx, [eax + 0x5a0]
mov dword [ebp - 0x30], ecx
lea ecx, [eax + 0x618]
lea ebx, [eax + 0x398]
mov dword [ebp - 0x2c], 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 - 0x34], edi
mov word [ebx], di
mov dword [ebp - 0x1c], 2
je 0x404f19
mov dword [ebp - 8], ecx
mov ebx, ecx
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cmp ecx, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], edi
jne 0x404f41
push 0x103
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4051dc
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
js 0x404f57
lea eax, [ebx + eax*2]
cmp word [eax], 0x5c
jne 0x404f57
mov word [eax], di
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp + 0x14], edi
je 0x404f80
push ebx
call fcn.00404e6e
test eax, eax
pop ecx
je 0x404f80
push 7
push 0x80000000
push ebx
call fcn.00413e57
add esp, 0xc
jmp 0x404f97
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 0x4051b1
cmp eax, edi
je 0x4051b1
push 0xc
push edi
push esi
call fcn.004aa020
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 0x404fe6
mov dword [esi + 4], ebx
mov ebx, dword [ebp - 0xc]
push 0x90
push edi
add ebx, 0x334
push ebx
call fcn.004aa020
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]
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x405031
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
movzx eax, byte [ebx + 0x20]
jmp 0x40504f
push edi
push dword [ebp - 0xc]
lea eax, [ebx + 4]
push 0x20
push eax
push edi
push edi
push 0x74004
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
movzx eax, byte [ebx + 0x1c]
push dword [ebp - 4]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp word [ebp + 0x10], di
jl 0x40506e
movsx eax, word [ebp + 0x10]
cmp eax, dword [esi + 8]
jne 0x4051ae
mov eax, dword [ebp + 0xc]
cmp eax, edi
jl 0x40507e
cmp eax, dword [esi + 4]
jne 0x4051ae
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebp - 0x30]
call fcn.00497eb9
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebp - 0x2c]
call fcn.00497eb9
add esp, 0x18
cmp dword [ebp - 0x24], 1
jne 0x4050b2
push edi
add ebx, 0x20
push ebx
push dword [ebp - 0x18]
call fcn.00441539
jmp 0x4050c3
push dword [ebp - 0x28]
push 0x4bd214
push dword [ebp - 0x18]
call dword [sym.imp.USER32.DLL_wsprintfW]
mov ecx, dword [esi + 8]
add esp, 0xc
cmp ecx, edi
jge 0x4050d0
or ecx, 0xffffffff
mov eax, dword [esi + 4]
cmp eax, edi
jge 0x4050da
or eax, 0xffffffff
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [esi]
push ecx
push eax
push 0x4bca0c
push dword [ebp - 8]
push 0x4bd1e0
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 - 4], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
push edi
push eax
mov dword [ebp - 0x28], eax
call fcn.00413ec5
add esp, 0x10
test eax, eax
je 0x40513f
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x40513f
cmp word [eax], di
je 0x40513f
mov dword [ebp - 0x28], eax
test byte [ebp - 0x3c], 8
je 0x405182
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push dword [ebp - 0x28]
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 - 0x24]
sub ebx, dword [ebp - 0x10]
push eax
sar ebx, 1
call fcn.00451f84
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.00443fc7
cmp ebx, edi
jl 0x4051ab
mov eax, dword [ebp - 4]
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 - 0x34], eax
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x14], edi
je 0x4051d9
push 0x103
push ebx
push dword [ebp - 0x14]
mov word [ebx], di
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x404f41
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
call fcn.0043db4f
lea ecx, [ebp - 0x38]
call fcn.0043db4f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret