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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
push ebx
push esi
push edi
push 0x527c
lea ecx, [ebp + 0x14]
call fcn.00444cdb
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 0x5a0]
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x618]
mov dword [ebp + 0x10], ecx
lea ecx, [eax + 0x690]
mov dword [ebp + 0x30], ecx
lea ecx, [eax + 0x708]
lea esi, [eax + 0x398]
mov dword [ebp + 0x18], ecx
lea edi, [eax + 0xf08]
xor ebx, ebx
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x38], ebx
mov dword [ebp - 0x18], esi
call fcn.00444cbe
push 0x3b80
add edi, 0x3f4
push ebx
push edi
mov dword [ebp + 0x48], 0xffffff9c
mov dword [ebp + 0x28], ebx
call fcn.004adaa0
add esp, 0xc
push 0xfffffffffffffffe
pop eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov edi, dword [ebp + 0x7c]
cmp edi, ebx
mov word [esi], bx
mov dword [ebp], 2
je 0x404f65
mov esi, edi
mov dword [ebp + 0x44], esi
mov eax, dword [ebp + 0x78]
shr eax, 0x10
mov ecx, eax
and ecx, 8
mov dword [ebp - 0x10], ecx
mov ecx, eax
and eax, 0x20
mov dword [ebp - 4], eax
movsx eax, word [ebp + 0x78]
and ecx, 0x10
cmp edi, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x24], ebx
jne 0x404fad
push 0x103
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x24], eax
je 0x4056d7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x20
cmp edi, ebx
mov dword [ecx], eax
je 0x405018
push 4
push edi
push 0x4c12cc
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x404fed
lea eax, [edi + 8]
cmp word [eax], bx
je 0x404fed
cmp word [edi + 0xa], 0x3a
jne 0x404fed
mov dword [ebp + 0x1c], eax
mov ax, word [eax]
mov word [ebp + 0x34], ax
jmp 0x405018
push 0xb
push edi
push 0x4c12c0
call fcn.0043fac4
add esp, 0xc
test al, al
je 0x405018
lea eax, [edi + 0x16]
cmp word [eax], bx
je 0x405018
cmp word [edi + 0x18], bx
je 0x405018
cmp word [edi + 0x1a], bx
je 0x405018
mov dword [ebp + 0x1c], eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
mov dword [ebp - 8], esi
js 0x405031
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x405031
mov word [eax], bx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp edi, ebx
je 0x405059
push esi
call fcn.00404e8f
test eax, eax
pop ecx
je 0x405059
push 7
push 0x80000000
push esi
call fcn.0041447c
add esp, 0xc
jmp 0x405070
push ebx
push 0x2000080
push 3
push ebx
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x60], eax
je 0x4056a2
cmp eax, ebx
je 0x4056a2
mov esi, dword [ebp + 0x58]
push 0xc
push ebx
add esi, 0x320
push esi
call fcn.004adaa0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 0xffffffffffffffaa
pop edi
push ebx
push dword [ebp + 0x58]
mov dword [esi + 8], edi
push 0xc
push esi
push ebx
push ebx
push 0x2d1080
push dword [ebp + 0x60]
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4050c9
cmp dword [esi + 4], ebx
jge 0x4050cf
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov esi, dword [ebp + 0x58]
mov edi, 0x90
push edi
push ebx
add esi, 0x334
push esi
call fcn.004adaa0
add esp, 0xc
push ebx
push dword [ebp + 0x58]
mov dword [esi + 0x18], 0xffffffaa
push edi
push esi
push ebx
push ebx
push 0x70048
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp eax, ebx
lea edi, [esi + 8]
mov dword [ebp + 0x64], ebx
je 0x40511a
mov ecx, dword [esi]
mov dword [ebp + 0x64], ecx
movzx ecx, byte [esi + 0x20]
jmp 0x405135
push ebx
push dword [ebp + 0x58]
push 0x20
push edi
push ebx
push ebx
push 0x74004
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
movzx ecx, byte [edi + 0x18]
cmp eax, ebx
mov dword [ebp + 0x4c], ecx
jne 0x40514e
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [esi + 0x18], 0xffffffaa
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp + 0x58]
xor eax, eax
cmp dword [ebp + 0x64], 1
sete al
cmp dword [esi + 0x324], ebx
mov dword [ebp + 0x40], eax
jl 0x40517a
cmp dword [esi + 0x328], ebx
jge 0x405313
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x5c], eax
call fcn.00444e32
lea ecx, [ebp + 0xc]
call fcn.00444e32
cmp word [ebp + 0x34], bx
je 0x405224
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x34]
call fcn.0044255a
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
push 0x103
push esi
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x64], eax
je 0x405224
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x4051d6
mov word [eax], bx
push esi
lea eax, [ebp + 0xc]
push eax
push esi
mov word [esi + 2], 0x3f
call fcn.004638b2
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x405212
push 0x103
push esi
push dword [ebp + 0x64]
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x4051c2
jmp 0x40521b
mov dword [ebp + 0x44], esi
add esi, 0x16
mov dword [ebp + 0x5c], esi
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
cmp dword [ebp + 0x48], 0xffffff9c
jg 0x40523f
push dword [ebp + 0x5c]
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x74]
call fcn.0046353f
add esp, 0xc
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x48], ebx
jle 0x405300
mov esi, dword [ebp + 0x3c]
add esi, 4
cmp dword [ebp + 0x5c], ebx
jne 0x4052b5
push 0xb
push dword [ebp + 0x44]
push 0x4c12a8
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x405300
mov eax, dword [ebp + 0x44]
add eax, 0x16
mov dword [ebp + 0x50], eax
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.00453e0c
add esp, 0xc
cmp al, bl
jle 0x405300
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x64], ebx
jle 0x405300
push 0x10
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0043e718
add esp, 0xc
test eax, eax
je 0x4052b5
inc dword [ebp + 0x64]
mov eax, dword [ebp + 0x64]
add esi, 0x34
cmp eax, dword [ebp + 0x48]
jl 0x405292
jmp 0x405300
mov ecx, dword [ebp + 0x58]
or dword [ebp + 0x40], 0x10
add esi, 0x10
mov edx, dword [esi]
lea eax, [ecx + 0x320]
mov dword [eax + 4], edx
add esi, 4
mov edx, dword [esi]
mov dword [eax + 8], edx
add esi, 4
mov edx, dword [esi]
mov dword [eax], edx
add esi, 4
mov eax, dword [esi]
add esi, 4
mov dword [ebp + 0x4c], eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov edx, dword [esi + 8]
lea eax, [ecx + 0x334]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x14], ecx
lea ecx, [ebp + 0xc]
call fcn.0043e679
lea ecx, [ebp + 0x20]
call fcn.0043e679
mov esi, dword [ebp + 0x58]
cmp word [ebp + 0x78], bx
jl 0x40532f
movsx ecx, word [ebp + 0x78]
lea eax, [esi + 0x320]
cmp ecx, dword [eax + 8]
jne 0x4056a2
mov esi, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x74]
cmp ecx, ebx
jl 0x405348
lea eax, [esi + 0x320]
cmp ecx, dword [eax + 4]
jne 0x4056a2
mov esi, dword [ebp + 0x58]
cmp dword [ebp - 0xc], ebx
jne 0x4056c8
push dword [edi + 4]
push dword [edi]
push dword [ebp + 8]
call fcn.0049b796
lea edi, [esi + 0x334]
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [ebp + 0x10]
call fcn.0049b796
add esp, 0x18
cmp dword [ebp + 0x40], 1
jne 0x40538a
push ebx
add edi, 0x20
push edi
push dword [ebp + 0x30]
call fcn.004421ac
jmp 0x40539b
push dword [ebp + 0x4c]
push 0x4c12a0
push dword [ebp + 0x30]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0x4053bf
mov eax, dword [ebp + 0x18]
push 0x4c2008
add eax, 2
push 0x13
push eax
push dword [ebp + 0x7c]
mov word [eax], bx
call fcn.004530af
add esp, 0x10
lea edi, [esi + 0x320]
mov eax, dword [edi + 4]
cmp eax, ebx
jl 0x4053d1
mov dword [ebp + 0x4c], eax
jmp 0x4053d5
or dword [ebp + 0x4c], 0xffffffff
mov eax, dword [edi + 8]
cmp eax, ebx
jl 0x4053e1
mov dword [ebp + 0x60], eax
jmp 0x4053e5
or dword [ebp + 0x60], 0xffffffff
push dword [ebp + 0x18]
mov eax, dword [edi]
push dword [ebp + 0x10]
mov dword [ebp + 0x40], eax
push dword [ebp + 8]
push dword [ebp + 0x30]
push eax
push dword [ebp + 0x60]
push dword [ebp + 0x4c]
push 0x4c0a1c
push dword [ebp - 8]
push str._r_n_s_s__d__d__d__s__s__s_s
push dword [ebp + 0x2c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x70]
or dword [ebp + 0x38], 0xffffffff
add esp, 0x2c
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [ebp + 0x28]
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
push ebx
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x44]
push ebx
push eax
mov dword [ebp + 0x64], eax
call fcn.004144ea
add esp, 0x10
test eax, eax
je 0x405456
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x405456
cmp word [eax], bx
je 0x405456
mov dword [ebp + 0x64], eax
cmp dword [ebp - 0x10], ebx
je 0x40567b
mov esi, dword [ebp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [esi + eax*2]
mov word [eax], 0x20
inc eax
inc eax
mov ecx, eax
sub ecx, esi
sar ecx, 1
cmp word [ebp + 0x34], bx
mov word [eax], bx
mov dword [ebp + 0x38], ecx
mov esi, eax
je 0x40549c
mov cx, word [ebp + 0x34]
mov word [eax], cx
inc eax
inc eax
mov word [eax], 0x3a
inc eax
inc eax
mov word [eax], bx
jmp 0x4054bb
push dword [ebp + 0x64]
mov ecx, dword [ebp + 0x58]
push 0x20
push ebx
add ecx, 0x3f4
push ecx
push dword [edi + 8]
push dword [ebp + 0x50]
push eax
call fcn.00453911
add esp, 0x1c
sub eax, esi
sar eax, 1
jne 0x40567b
cmp dword [ebp + 0x48], 0xffffff9c
mov word [esi - 2], bx
jg 0x4054e2
push ebx
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x74]
call fcn.0046353f
add esp, 0xc
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x48], ebx
jle 0x40567b
mov eax, dword [ebp + 0x3c]
mov edi, dword [ebp + 0x44]
push 0xb
push edi
add eax, 4
push 0x4c12a8
mov dword [ebp + 0x64], eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40567b
lea ecx, [ebp + 4]
mov dword [ebp + 0x5c], ebx
call fcn.00444cbe
push ebx
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 4]
push eax
push edi
push str.SYSTEMMountedDevices
push 0x80000002
mov word [edi + 2], 0x3f
call fcn.0044947b
mov eax, dword [ebp + 4]
add esp, 0x18
cmp dword [ebp + 0x5c], 0x18
mov dword [ebp + 0x50], eax
jne 0x405572
push 8
push eax
push str.DMIO:ID:
call fcn.0043e718
add esp, 0xc
test eax, eax
jne 0x405572
mov eax, dword [ebp + 0x50]
add eax, 8
push 0x10
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00414409
mov byte [ebp + 0x57], 2
jmp 0x40558a
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x50]
add edi, 0x16
push eax
mov dword [ebp + 0x50], edi
call fcn.00453e0c
mov byte [ebp + 0x57], al
add esp, 0xc
lea ecx, [ebp + 4]
call fcn.0043e679
cmp byte [ebp + 0x57], bl
jle 0x40567b
mov eax, dword [ebp + 0x48]
cmp eax, ebx
jle 0x40567b
mov ecx, dword [ebp + 0x64]
mov edi, dword [ebp + 0x2c]
add ecx, 0x14
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x50], eax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x64]
call fcn.0043e718
add esp, 0xc
test eax, eax
jne 0x405668
mov eax, dword [ebp + 0x58]
push ebx
add eax, 0x3f4
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00463a6b
add esp, 0x10
cmp dword [ebp + 0x4c], ebx
mov dword [ebp - 0x1c], eax
jl 0x4055fc
cmp dword [ebp + 0x60], ebx
jl 0x40560a
cmp dword [ebp + 0x40], ebx
jge 0x40564c
jmp 0x405605
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax - 4]
mov dword [ebp + 0x4c], eax
cmp dword [ebp + 0x60], ebx
jge 0x405612
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x40], ebx
jge 0x405620
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + 4]
mov dword [ebp + 0x40], eax
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0x30]
push dword [ebp + 0x40]
push dword [ebp + 0x60]
push dword [ebp + 0x4c]
push 0x4c0a1c
push dword [ebp - 8]
push str._r_n_s_s__d__d__d__s__s__s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea esi, [edi + eax*2]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jle 0x405668
mov word [esi - 2], 0x20
mov word [esi], ax
inc esi
inc esi
mov word [esi], 0x3a
inc esi
inc esi
mov word [esi], bx
add dword [ebp + 0x64], 0x34
add dword [ebp + 0x5c], 0x34
dec dword [ebp + 0x50]
jne 0x4055b8
jmp 0x40567e
mov edi, dword [ebp + 0x2c]
mov esi, dword [ebp]
lea eax, [edi + esi*2]
mov edi, dword [ebp + 0x70]
push eax
mov ecx, edi
call fcn.00444e9e
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi]
sub eax, esi
add eax, dword [ebp + 0x38]
mov dword [ebp], ebx
lea eax, [ecx + eax*2]
mov dword [ebp + 0x38], eax
cmp dword [ebp + 0x24], ebx
je 0x4056fc
mov esi, dword [ebp + 0x44]
push 0x103
push esi
push dword [ebp + 0x24]
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
je 0x4056f3
mov edi, dword [ebp + 0x7c]
jmp 0x405018
mov esi, dword [ebp + 0x70]
push dword [ebp + 0x44]
mov ecx, esi
call fcn.0044e6d5
mov ebx, dword [esi]
lea ecx, [ebp + 0x28]
call fcn.0043e679
lea ecx, [ebp + 0x3c]
call fcn.0043e679
lea ecx, [ebp + 0x14]
call fcn.0043e679
mov eax, ebx
jmp 0x405720
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
lea ecx, [ebp + 0x28]
call fcn.0043e679
lea ecx, [ebp + 0x3c]
call fcn.0043e679
lea ecx, [ebp + 0x14]
call fcn.0043e679
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x38]
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret