Function at 0x404eed
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.00444e15
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.00444df8
push 0x3b80
add edi, 0x3f4
push ebx
push edi
mov dword [ebp + 0x48], 0xffffff9c
mov dword [ebp + 0x28], ebx
call fcn.004ae820
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 0x404f91
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 0x404fd9
push 0x103
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x24], eax
je 0x405703
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 0x405044
push 4
push edi
push 0x4c22ec
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x405019
lea eax, [edi + 8]
cmp word [eax], bx
je 0x405019
cmp word [edi + 0xa], 0x3a
jne 0x405019
mov dword [ebp + 0x1c], eax
mov ax, word [eax]
mov word [ebp + 0x34], ax
jmp 0x405044
push 0xb
push edi
push 0x4c22e0
call fcn.0043fc19
add esp, 0xc
test al, al
je 0x405044
lea eax, [edi + 0x16]
cmp word [eax], bx
je 0x405044
cmp word [edi + 0x18], bx
je 0x405044
cmp word [edi + 0x1a], bx
je 0x405044
mov dword [ebp + 0x1c], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
mov dword [ebp - 8], esi
js 0x40505d
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x40505d
mov word [eax], bx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
je 0x405085
push esi
call fcn.00404ebb
test eax, eax
pop ecx
je 0x405085
push 7
push 0x80000000
push esi
call fcn.00414638
add esp, 0xc
jmp 0x40509c
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 0x4056ce
cmp eax, ebx
je 0x4056ce
mov esi, dword [ebp + 0x58]
push 0xc
push ebx
add esi, 0x320
push esi
call fcn.004ae820
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 0x4050f5
cmp dword [esi + 4], ebx
jge 0x4050fb
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.004ae820
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 0x405146
mov ecx, dword [esi]
mov dword [ebp + 0x64], ecx
movzx ecx, byte [esi + 0x20]
jmp 0x405161
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 0x40517a
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 0x4051a6
cmp dword [esi + 0x328], ebx
jge 0x40533f
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x5c], eax
call fcn.00444f6c
lea ecx, [ebp + 0xc]
call fcn.00444f6c
cmp word [ebp + 0x34], bx
je 0x405250
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x34]
call fcn.004426ce
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 0x405250
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x405202
mov word [eax], bx
push esi
lea eax, [ebp + 0xc]
push eax
push esi
mov word [esi + 2], 0x3f
call fcn.00463a20
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40523e
push 0x103
push esi
push dword [ebp + 0x64]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x4051ee
jmp 0x405247
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 0x40526b
push dword [ebp + 0x5c]
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x74]
call fcn.004636ad
add esp, 0xc
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x48], ebx
jle 0x40532c
mov esi, dword [ebp + 0x3c]
add esi, 4
cmp dword [ebp + 0x5c], ebx
jne 0x4052e1
push 0xb
push dword [ebp + 0x44]
push 0x4c22c8
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40532c
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.00453fac
add esp, 0xc
cmp al, bl
jle 0x40532c
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x64], ebx
jle 0x40532c
push 0x10
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0043e88e
add esp, 0xc
test eax, eax
je 0x4052e1
inc dword [ebp + 0x64]
mov eax, dword [ebp + 0x64]
add esi, 0x34
cmp eax, dword [ebp + 0x48]
jl 0x4052be
jmp 0x40532c
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.0043e825
lea ecx, [ebp + 0x20]
call fcn.0043e825
mov esi, dword [ebp + 0x58]
cmp word [ebp + 0x78], bx
jl 0x40535b
movsx ecx, word [ebp + 0x78]
lea eax, [esi + 0x320]
cmp ecx, dword [eax + 8]
jne 0x4056ce
mov esi, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x74]
cmp ecx, ebx
jl 0x405374
lea eax, [esi + 0x320]
cmp ecx, dword [eax + 4]
jne 0x4056ce
mov esi, dword [ebp + 0x58]
cmp dword [ebp - 0xc], ebx
jne 0x4056f4
push dword [edi + 4]
push dword [edi]
push dword [ebp + 8]
call fcn.0049c1b8
lea edi, [esi + 0x334]
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [ebp + 0x10]
call fcn.0049c1b8
add esp, 0x18
cmp dword [ebp + 0x40], 1
jne 0x4053b6
push ebx
add edi, 0x20
push edi
push dword [ebp + 0x30]
call fcn.00442320
jmp 0x4053c7
push dword [ebp + 0x4c]
push 0x4c22c0
push dword [ebp + 0x30]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0x4053eb
mov eax, dword [ebp + 0x18]
push 0x4c3028
add eax, 2
push 0x13
push eax
push dword [ebp + 0x7c]
mov word [eax], bx
call fcn.0045324f
add esp, 0x10
lea edi, [esi + 0x320]
mov eax, dword [edi + 4]
cmp eax, ebx
jl 0x4053fd
mov dword [ebp + 0x4c], eax
jmp 0x405401
or dword [ebp + 0x4c], 0xffffffff
mov eax, dword [edi + 8]
cmp eax, ebx
jl 0x40540d
mov dword [ebp + 0x60], eax
jmp 0x405411
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 0x4c1a3c
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.004146a6
add esp, 0x10
test eax, eax
je 0x405482
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x405482
cmp word [eax], bx
je 0x405482
mov dword [ebp + 0x64], eax
cmp dword [ebp - 0x10], ebx
je 0x4056a7
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 0x4054c8
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 0x4054e7
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.00453ab1
add esp, 0x1c
sub eax, esi
sar eax, 1
jne 0x4056a7
cmp dword [ebp + 0x48], 0xffffff9c
mov word [esi - 2], bx
jg 0x40550e
push ebx
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x74]
call fcn.004636ad
add esp, 0xc
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x48], ebx
jle 0x4056a7
mov eax, dword [ebp + 0x3c]
mov edi, dword [ebp + 0x44]
push 0xb
push edi
add eax, 4
push 0x4c22c8
mov dword [ebp + 0x64], eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4056a7
lea ecx, [ebp + 4]
mov dword [ebp + 0x5c], ebx
call fcn.00444df8
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.00449667
mov eax, dword [ebp + 4]
add esp, 0x18
cmp dword [ebp + 0x5c], 0x18
mov dword [ebp + 0x50], eax
jne 0x40559e
push 8
push eax
push str.DMIO:ID:
call fcn.0043e88e
add esp, 0xc
test eax, eax
jne 0x40559e
mov eax, dword [ebp + 0x50]
add eax, 8
push 0x10
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004145c5
mov byte [ebp + 0x57], 2
jmp 0x4055b6
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x50]
add edi, 0x16
push eax
mov dword [ebp + 0x50], edi
call fcn.00453fac
mov byte [ebp + 0x57], al
add esp, 0xc
lea ecx, [ebp + 4]
call fcn.0043e825
cmp byte [ebp + 0x57], bl
jle 0x4056a7
mov eax, dword [ebp + 0x48]
cmp eax, ebx
jle 0x4056a7
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.0043e88e
add esp, 0xc
test eax, eax
jne 0x405694
mov eax, dword [ebp + 0x58]
push ebx
add eax, 0x3f4
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00463bd9
add esp, 0x10
cmp dword [ebp + 0x4c], ebx
mov dword [ebp - 0x1c], eax
jl 0x405628
cmp dword [ebp + 0x60], ebx
jl 0x405636
cmp dword [ebp + 0x40], ebx
jge 0x405678
jmp 0x405631
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax - 4]
mov dword [ebp + 0x4c], eax
cmp dword [ebp + 0x60], ebx
jge 0x40563e
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x40], ebx
jge 0x40564c
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 0x4c1a3c
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 0x405694
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 0x4055e4
jmp 0x4056aa
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.00444fd8
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 0x405728
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 0x40571f
mov edi, dword [ebp + 0x7c]
jmp 0x405044
mov esi, dword [ebp + 0x70]
push dword [ebp + 0x44]
mov ecx, esi
call fcn.0044e88f
mov ebx, dword [esi]
lea ecx, [ebp + 0x28]
call fcn.0043e825
lea ecx, [ebp + 0x3c]
call fcn.0043e825
lea ecx, [ebp + 0x14]
call fcn.0043e825
mov eax, ebx
jmp 0x40574c
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea ecx, [ebp + 0x28]
call fcn.0043e825
lea ecx, [ebp + 0x3c]
call fcn.0043e825
lea ecx, [ebp + 0x14]
call fcn.0043e825
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