Function at 0x1000572f
Capabilities:
Enumerate disk volumes
Get disk information via ioctl
Unmount volume via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0xe14
mov edx, dword [ebp + 0x6c]
push ebx
xor ebx, ebx
cmp edx, ebx
push esi
lea eax, [ebp - 0xdb8]
push edi
mov dword [ebp + 0x3c], eax
mov word [ebp - 0xdb8], bx
jl 0x10005763
jg 0x1000575d
cmp dword [ebp + 0x68], ebx
jb 0x10005763
mov byte [ebp + 0x5b], 1
jmp 0x10005766
mov byte [ebp + 0x5b], bl
mov ecx, dword [ebp + 0x68]
add ecx, dword [ebp + 0x70]
mov eax, edx
adc eax, dword [ebp + 0x74]
mov dword [ebp + 0x34], ecx
cmp eax, edx
mov dword [ebp + 0x38], eax
ja 0x1000578d
jb 0x10005782
cmp ecx, dword [ebp + 0x68]
jae 0x1000578d
or dword [ebp + 0x34], 0xffffffff
mov dword [ebp + 0x38], 0x7fffffff
mov eax, dword [ebp + 0x78]
mov esi, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x68]
and eax, 1
mov dword [ebp + 0x44], eax
xor eax, eax
cmp esi, ebx
setne al
and ecx, edx
cmp ecx, 0xffffffff
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], eax
mov eax, dword [0x100e2cb4]
mov dword [ebp + 0x74], eax
jne 0x10005817
cmp eax, ebx
je 0x10005810
cmp dword [eax], ebx
lea ecx, [eax + 4]
mov esi, eax
mov dword [ebp + 0x74], ecx
jle 0x10005806
dec dword [esi]
mov eax, dword [esi]
mov ecx, dword [ebp + 0x74]
lea eax, [ecx + eax*4]
mov edi, dword [eax]
cmp edi, ebx
mov dword [eax], ebx
mov dword [ebp + 0x7c], ebx
je 0x10005802
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
push edi
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], ebx
jg 0x100057c8
mov ecx, 0x100e2cb4
call fcn.1003f97f
xor eax, eax
jmp 0x10005b18
cmp esi, ebx
jne 0x10005835
push 0x514
lea eax, [ebp - 0xdb8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x4c], eax
je 0x10005855
cmp dword [ebp + 0x74], ebx
jne 0x1000585f
push 0x7d4
mov ecx, 0x100e2cb4
call fcn.10045ff1
mov eax, dword [0x100e2cb4]
cmp eax, ebx
mov dword [ebp + 0x74], eax
jne 0x1000585d
xor eax, eax
inc eax
jmp 0x10005b18
mov dword [eax], ebx
mov eax, dword [ebp + 0x74]
add dword [ebp + 0x74], 4
cmp esi, ebx
mov dword [ebp + 0x30], eax
je 0x10005870
mov dword [ebp + 0x3c], esi
mov edi, dword [ebp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
cmp eax, ebx
jle 0x10005ae5
lea eax, [edi + eax*2]
cmp word [eax], 0x5c
jne 0x1000588f
mov word [eax], bx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call esi
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x78], eax
je 0x10005ae5
push ebx
mov dword [ebp + 0x54], 0xffffff9c
call esi
cmp dword [ebp + 0x7c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jne 0x100059cb
xor eax, eax
mov dword [ebp - 0x38c], ebx
mov ecx, 0xc7
lea edi, [ebp - 0x388]
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
or dword [ebp + 0x28], 0xffffffff
lea eax, [ebp - 0x38c]
push eax
push 0xc
lea eax, [ebp + 0x24]
push eax
push ebx
push ebx
push 0x2d1080
push dword [ebp + 0x78]
call esi
test eax, eax
je 0x10005918
movsx eax, word [ebp + 0x28]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x54]
cmp dword [ebp + 0x64], eax
jne 0x10005ad7
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
mov edi, 0x90
push edi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.100b40f0
or dword [ebp - 0x54], 0xffffffff
add esp, 0xc
push ebx
lea eax, [ebp - 0x38c]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 0x70048
push dword [ebp + 0x78]
call esi
cmp eax, ebx
mov ecx, dword [ebp - 0x54]
jne 0x10005995
push 0x20
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.100b40f0
or dword [ebp - 0x50], 0xffffffff
add esp, 0xc
push ebx
lea eax, [ebp - 0x38c]
push eax
push 0x20
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x74004
push dword [ebp + 0x78]
call esi
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xffffffff
je 0x100059c7
cmp byte [ebp + 0x5b], bl
je 0x100059cb
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp + 0x38]
ja 0x100059c7
mov eax, dword [ebp - 0x64]
jb 0x100059b1
cmp eax, dword [ebp + 0x34]
jae 0x100059c7
mov ecx, dword [ebp - 0x5c]
add ecx, eax
mov eax, dword [ebp - 0x58]
adc eax, edx
cmp eax, dword [ebp + 0x6c]
jg 0x100059cb
jl 0x100059c7
cmp ecx, dword [ebp + 0x68]
jae 0x100059cb
or dword [ebp + 0x54], 0xffffffff
mov eax, dword [ebp + 0x54]
cmp dword [ebp + 0x64], eax
je 0x100059dc
cmp dword [ebp + 0x7c], ebx
je 0x10005ad7
push dword [ebp + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x48], ebx
call edi
push dword [ebp + 0x78]
call edi
push dword [ebp + 0x78]
call edi
push dword [ebp + 0x78]
call edi
xor edi, edi
push ebx
lea eax, [ebp + 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push dword [ebp + 0x78]
mov dword [ebp + 0x54], ebx
call esi
cmp eax, ebx
mov dword [ebp + 0x40], eax
jne 0x10005a2c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jns 0x100059fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x44], ebx
mov edi, dword [ebp + 0x40]
je 0x10005a62
push 4
pop esi
push ebx
lea eax, [ebp + 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push dword [ebp + 0x78]
mov dword [ebp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, ebx
jne 0x10005a6f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jns 0x10005a37
cmp edi, ebx
jne 0x10005a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x7c], ebx
je 0x10005a9c
cmp dword [ebp + 0x44], ebx
je 0x10005a83
cmp edi, 1
jne 0x10005a83
mov dword [ebp + 0x50], ebx
jmp 0x10005abd
xor ecx, ecx
inc ecx
cmp dword [ebp + 0x40], ecx
je 0x10005a7e
mov eax, dword [ebp + 0x48]
cmp eax, ebx
je 0x10005a97
mov dword [ebp + 0x50], eax
jmp 0x10005abd
mov dword [ebp + 0x50], ecx
jmp 0x10005abd
cmp dword [ebp + 0x44], ebx
je 0x10005aa6
cmp edi, 1
je 0x10005abd
cmp dword [ebp + 0x40], 1
je 0x10005abd
mov eax, dword [ebp + 0x48]
cmp eax, ebx
mov dword [ebp + 0x50], eax
jne 0x10005abd
mov dword [ebp + 0x50], 1
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx]
cmp eax, 0x1f4
jge 0x10005ad4
mov edx, dword [ebp + 0x78]
mov esi, dword [ebp + 0x74]
mov dword [esi + eax*4], edx
inc dword [ecx]
mov dword [ebp + 0x78], ebx
cmp dword [ebp + 0x78], ebx
je 0x10005ae5
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x7c], ebx
jne 0x10005b07
mov eax, dword [ebp + 0x3c]
push 0x514
push eax
push dword [ebp + 0x4c]
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10005870
cmp dword [ebp + 0x4c], ebx
je 0x10005b15
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, dword [ebp + 0x50]
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret