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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0x4654
lea ecx, [ebp - 0x54]
call fcn.004448b9
mov eax, dword [ebp - 0x54]
lea edx, [eax + 0x5a0]
mov dword [ebp - 0x48], edx
lea ecx, [eax + 0x398]
lea edx, [eax + 0x618]
mov dword [ebp - 0x44], edx
lea esi, [eax + 0x708]
mov dword [ebp - 4], ecx
lea edx, [eax + 0x690]
mov dword [ebp - 0x58], ecx
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x50], ebx
lea edi, [esi + 0x3b80]
call fcn.0044489c
push 0x3b80
add esi, 0x3cc
push ebx
push esi
mov dword [ebp - 8], 0xffffff9c
mov dword [ebp - 0x3c], ebx
call fcn.004acf60
add esp, 0xc
cmp dword [ebp + 0x14], ebx
push 0xfffffffffffffffe
pop eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov word [eax], bx
mov dword [ebp - 0x4c], 2
je 0x404f78
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
shr eax, 0x10
and eax, 8
cmp esi, ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
jne 0x404faf
push 0x103
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x405007
jmp 0x40555f
push 4
push esi
push 0x4c0268
call dword [sym.imp.shlwapi.dll_StrCmpNW]
test eax, eax
jne 0x404fdc
lea eax, [esi + 8]
cmp word [eax], bx
je 0x404fdc
cmp word [esi + 0xa], 0x3a
jne 0x404fdc
mov dword [ebp - 0x24], eax
mov ax, word [eax]
mov word [ebp - 0x18], ax
jmp 0x405007
push 0xb
push esi
push 0x4c025c
call fcn.0043f884
add esp, 0xc
test al, al
je 0x405007
lea eax, [esi + 0x16]
cmp word [eax], bx
je 0x405007
cmp word [esi + 0x18], bx
je 0x405007
cmp word [esi + 0x1a], bx
je 0x405007
mov dword [ebp - 0x24], eax
push 0xffffffffffffffaa
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x5c], ecx
js 0x405028
lea eax, [ecx + eax*2]
cmp word [eax], 0x5c
jne 0x405028
mov word [eax], bx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp + 0x14], ebx
je 0x405055
push dword [ebp - 4]
call fcn.00404ea5
test eax, eax
pop ecx
je 0x405055
push 7
push 0x80000000
push dword [ebp - 4]
call fcn.00414413
add esp, 0xc
jmp 0x40506e
push ebx
push 0x2000080
push 3
push ebx
push 7
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x405531
cmp eax, ebx
je 0x405531
push 0xc
push ebx
push edi
call fcn.004acf60
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push ebx
push dword [ebp - 0xc]
mov dword [edi + 8], esi
push 0xc
push edi
push ebx
push ebx
push 0x2d1080
push dword [ebp - 0x10]
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4050bb
cmp dword [edi + 4], ebx
jge 0x4050c1
mov dword [edi + 8], esi
mov dword [edi + 4], esi
mov esi, dword [ebp - 0xc]
push 0x90
push ebx
add esi, 0x334
push esi
call fcn.004acf60
add esp, 0xc
push ebx
push dword [ebp - 0xc]
mov dword [esi + 0x18], 0xffffffaa
push 0x90
push esi
push ebx
push ebx
push 0x70048
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp eax, ebx
mov dword [ebp - 0x30], ebx
je 0x40510c
mov ecx, dword [esi]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [esi + 0x20]
jmp 0x40512a
push ebx
push dword [ebp - 0xc]
lea eax, [esi + 4]
push 0x20
push eax
push ebx
push ebx
push 0x74004
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
movzx ecx, byte [esi + 0x1c]
cmp eax, ebx
mov dword [ebp - 0x34], ecx
jne 0x405144
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], 0xffffffaa
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x30], 1
sete al
cmp dword [edi + 4], ebx
mov dword [ebp - 0x30], eax
jl 0x405167
cmp dword [edi + 8], ebx
jge 0x4052f6
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.00444a10
lea ecx, [ebp - 0x28]
call fcn.00444a10
cmp word [ebp - 0x18], bx
je 0x405211
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
call fcn.004422b5
mov esi, dword [ebp - 0x58]
pop ecx
pop ecx
push 0x103
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
je 0x405211
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x4051c3
mov word [eax], bx
push esi
lea eax, [ebp - 0x28]
push eax
push esi
mov word [esi + 2], 0x3f
call fcn.004422f3
add esp, 0xc
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4051ff
push 0x103
push esi
push dword [ebp - 0x40]
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x4051af
jmp 0x405208
mov dword [ebp - 4], esi
add esi, 0x16
mov dword [ebp - 0x10], esi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
cmp dword [ebp - 8], 0xffffff9c
jg 0x40522c
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.00462d1e
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jle 0x4052e6
mov esi, dword [ebp - 0x14]
add esi, 4
cmp dword [ebp - 0x10], ebx
jne 0x4052a2
push 0xb
push dword [ebp - 4]
push 0x4c0244
call dword [sym.imp.shlwapi.dll_StrCmpNIW]
test eax, eax
jne 0x4052e6
mov eax, dword [ebp - 4]
add eax, 0x16
mov dword [ebp - 0x40], eax
push 1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045369d
add esp, 0xc
cmp al, bl
jle 0x4052e6
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
jle 0x4052e6
push 0x10
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.0043e4f6
add esp, 0xc
test eax, eax
je 0x4052a2
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 0x34
cmp eax, dword [ebp - 8]
jl 0x40527f
jmp 0x4052e6
or dword [ebp - 0x30], 0x10
add esi, 0x10
mov eax, dword [esi]
mov dword [edi + 4], eax
push 4
pop eax
add esi, eax
mov ecx, dword [esi]
mov dword [edi + 8], ecx
add esi, eax
mov ecx, dword [esi]
mov dword [edi], ecx
add esi, eax
mov ecx, dword [esi]
add esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi]
add eax, 0x334
mov dword [eax + 8], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x14], ecx
lea ecx, [ebp - 0x28]
call fcn.0043e48d
lea ecx, [ebp - 0x2c]
call fcn.0043e48d
cmp word [ebp + 0x10], bx
jl 0x405309
movsx eax, word [ebp + 0x10]
cmp eax, dword [edi + 8]
jne 0x405531
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jl 0x405319
cmp eax, dword [edi + 4]
jne 0x405531
mov esi, dword [ebp - 0xc]
push dword [esi + 0x340]
add esi, 0x334
push dword [esi + 8]
push dword [ebp - 0x48]
call fcn.0049a8ca
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [ebp - 0x44]
call fcn.0049a8ca
add esp, 0x18
cmp dword [ebp - 0x30], 1
jne 0x405359
push ebx
add esi, 0x20
push esi
push dword [ebp - 0x38]
call fcn.00441f26
jmp 0x40536a
push dword [ebp - 0x34]
push 0x4c023c
push dword [ebp - 0x38]
call dword [sym.imp.user32.dll_wsprintfW]
mov ecx, dword [edi + 8]
add esp, 0xc
cmp ecx, ebx
jge 0x405377
or ecx, 0xffffffff
mov eax, dword [edi + 4]
cmp eax, ebx
jge 0x405381
or eax, 0xffffffff
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x38]
push dword [edi]
push ecx
push eax
push 0x4bfa2c
push dword [ebp - 0x5c]
push str._r_n_s_s__d__d__d__s__s__s
push dword [ebp - 0x1c]
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
or dword [ebp - 0x30], 0xffffffff
add esp, 0x28
push dword [eax]
call esi
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
push ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
push ebx
push eax
mov dword [ebp - 0x40], eax
call fcn.00414481
add esp, 0x10
test eax, eax
je 0x4053e9
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4053e9
cmp word [eax], bx
je 0x4053e9
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x60], ebx
je 0x405504
push dword [ebp - 0x1c]
call esi
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*2]
mov word [eax], 0x20
inc eax
inc eax
mov ecx, eax
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x18]
cmp cx, bx
mov word [eax], bx
mov esi, eax
je 0x40542b
mov word [eax], cx
inc eax
inc eax
mov word [eax], 0x3a
inc eax
inc eax
mov word [eax], bx
jmp 0x40544a
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
push 0x20
push ebx
add ecx, 0x3cc
push ecx
push dword [edi + 8]
push dword [ebp - 0x5c]
push eax
call fcn.004531a2
add esp, 0x1c
sub eax, esi
sar eax, 1
jne 0x405504
cmp dword [ebp - 8], 0xffffff9c
jg 0x40546d
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.00462d1e
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jle 0x405504
mov eax, dword [ebp - 0x14]
push 0xb
push dword [ebp - 4]
add eax, 4
push 0x4c0244
mov dword [ebp - 0x34], eax
call dword [sym.imp.shlwapi.dll_StrCmpNIW]
test eax, eax
jne 0x405504
mov eax, dword [ebp - 4]
add eax, 0x16
mov dword [ebp - 0x5c], eax
push 1
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0045369d
add esp, 0xc
cmp al, bl
jle 0x405504
mov eax, dword [ebp - 8]
cmp eax, ebx
jle 0x405504
mov dword [ebp - 0x40], eax
push 0x10
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x34]
call fcn.0043e4f6
add esp, 0xc
test eax, eax
jne 0x4054fb
mov eax, dword [ebp - 0xc]
add eax, 0x3cc
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00449fa0
cmp eax, ebx
pop ecx
pop ecx
jl 0x4054fb
add eax, 0x41
mov word [esi], ax
inc esi
inc esi
mov word [esi], 0x3a
inc esi
inc esi
mov word [esi], bx
add dword [ebp - 0x34], 0x34
dec dword [ebp - 0x40]
jne 0x4054bc
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
call fcn.00444a7c
cmp dword [ebp - 0x30], ebx
jl 0x40552e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
sub eax, esi
add eax, dword [ebp - 0x30]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 0x20], ebx
je 0x40555c
mov eax, dword [ebp - 4]
push 0x103
push eax
push dword [ebp - 0x20]
mov word [eax], bx
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x405007
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
mov ebx, dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
call fcn.0043e48d
lea ecx, [ebp - 0x14]
call fcn.0043e48d
lea ecx, [ebp - 0x54]
call fcn.0043e48d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret