Function at 0x404ec1
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.0044404a
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 0x404f3a
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 0x404f62
push 0x103
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4051fd
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
js 0x404f78
lea eax, [ebx + eax*2]
cmp word [eax], 0x5c
jne 0x404f78
mov word [eax], di
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x14], edi
je 0x404fa1
push ebx
call fcn.00404e8f
test eax, eax
pop ecx
je 0x404fa1
push 7
push 0x80000000
push ebx
call fcn.00414056
add esp, 0xc
jmp 0x404fb8
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 0x4051d2
cmp eax, edi
je 0x4051d2
push 0xc
push edi
push esi
call fcn.004aa0a0
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 0x405007
mov dword [esi + 4], ebx
mov ebx, dword [ebp - 0xc]
push 0x90
push edi
add ebx, 0x334
push ebx
call fcn.004aa0a0
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 0x405052
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
movzx eax, byte [ebx + 0x20]
jmp 0x405070
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 0x40508f
movsx eax, word [ebp + 0x10]
cmp eax, dword [esi + 8]
jne 0x4051cf
mov eax, dword [ebp + 0xc]
cmp eax, edi
jl 0x40509f
cmp eax, dword [esi + 4]
jne 0x4051cf
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebp - 0x30]
call fcn.00497e07
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebp - 0x2c]
call fcn.00497e07
add esp, 0x18
cmp dword [ebp - 0x24], 1
jne 0x4050d3
push edi
add ebx, 0x20
push ebx
push dword [ebp - 0x18]
call fcn.0044177f
jmp 0x4050e4
push dword [ebp - 0x28]
push 0x4bd234
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esi + 8]
add esp, 0xc
cmp ecx, edi
jge 0x4050f1
or ecx, 0xffffffff
mov eax, dword [esi + 4]
cmp eax, edi
jge 0x4050fb
or eax, 0xffffffff
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [esi]
push ecx
push eax
push 0x4bca2c
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 - 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.004140c4
add esp, 0x10
test eax, eax
je 0x405160
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x405160
cmp word [eax], di
je 0x405160
mov dword [ebp - 0x28], eax
test byte [ebp - 0x3c], 8
je 0x4051a3
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.00452096
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.0044420d
cmp ebx, edi
jl 0x4051cc
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 0x4051fa
push 0x103
push ebx
push dword [ebp - 0x14]
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x404f62
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
call fcn.0043dd41
lea ecx, [ebp - 0x38]
call fcn.0043dd41
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret