Function at 0x4a5a70
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a724
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [0x5c1bd0], 0
mov dword [0x5c1bd4], 0
mov dword [0x5c1bd8], 0
push 0x820
lea eax, [ebp - 0x830]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00525340
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x410
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a5e82
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], 7
mov word [ebp - 0x858], ax
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x838], eax
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5b53
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x870]
call fcn.00403df0
mov ecx, dword [ebp - 0x860]
cmp ecx, 4
jbe 0x4a5e3b
mov edx, dword [ebp - 0x85c]
lea eax, [ebp - 0x870]
mov esi, dword [ebp - 0x870]
cmp edx, 8
cmovae eax, esi
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x4a5bab
cmp eax, 0x2f
jne 0x4a5bd0
dec ecx
lea eax, [ebp - 0x870]
cmp edx, 8
mov dword [ebp - 0x860], ecx
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x85c]
mov esi, dword [ebp - 0x870]
cmp edx, 8
lea eax, [ebp - 0x870]
push 0x410
cmovae eax, esi
lea ecx, [ebp - 0x830]
push ecx
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x834], eax
test eax, eax
je 0x4a5e3b
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5c10
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x858]
call fcn.00403df0
mov edx, dword [ebp - 0x844]
lea eax, [ebp - 0x858]
mov esi, dword [ebp - 0x858]
cmp edx, 8
mov ecx, dword [ebp - 0x848]
cmovae eax, esi
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x4a5c5f
cmp eax, 0x2f
jne 0x4a5c78
dec ecx
lea eax, [ebp - 0x858]
cmp edx, 8
mov dword [ebp - 0x848], ecx
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
push 0x5941f0
lea edx, [ebp - 0x870]
lea ecx, [ebp - 0x888]
call fcn.004185a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4a5c99
mov eax, dword [eax]
lea ecx, [ebp - 0x834]
push ecx
push 0x410
lea ecx, [ebp - 0x830]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea ecx, [ebp - 0x888]
mov esi, eax
call fcn.00403d90
test esi, esi
je 0x4a5e3b
xor esi, esi
cmp dword [ebp - 0x834], 1
jbe 0x4a5dd6
nop word [eax + eax]
lea edx, [ebp - 0x830]
mov dword [ebp - 0x878], 0
xor eax, eax
mov dword [ebp - 0x874], 7
lea edx, [edx + esi*2]
mov word [ebp - 0x888], ax
mov eax, edx
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5d10
sub eax, edi
lea ecx, [ebp - 0x888]
sar eax, 1
push eax
push edx
call fcn.00403df0
inc esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x878]
add esi, ecx
test ecx, ecx
je 0x4a5db8
mov edx, dword [ebp - 0x874]
lea eax, [ebp - 0x888]
mov edi, dword [ebp - 0x888]
cmp edx, 8
cmovae eax, edi
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x4a5d64
cmp eax, 0x2f
jne 0x4a5d83
dec ecx
lea eax, [ebp - 0x888]
cmp edx, 8
mov dword [ebp - 0x878], ecx
cmovae eax, edi
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x878]
test ecx, ecx
je 0x4a5db8
mov eax, dword [ebp - 0x83c]
lea ecx, [ebp - 0x888]
push ecx
cmp dword [ebp - 0x838], eax
je 0x4a5dac
mov ecx, eax
call fcn.0040c7b0
add dword [ebp - 0x83c], 0x18
jmp 0x4a5db8
push eax
lea ecx, [ebp - 0x840]
call fcn.0041d030
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 1
call fcn.00403d90
lea eax, [esi + 1]
cmp eax, dword [ebp - 0x834]
jb 0x4a5ce0
mov eax, dword [ebp - 0x840]
cmp eax, dword [ebp - 0x83c]
je 0x4a5e3b
mov esi, dword [0x5c1bd4]
lea eax, [ebp - 0x870]
push eax
cmp dword [0x5c1bd8], esi
je 0x4a5e35
mov ecx, esi
mov dword [ebp - 0x88c], esi
call fcn.0040c7b0
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x18]
call fcn.0040c7b0
lea eax, [ebp - 0x840]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x30]
call fcn.004a6410
add dword [0x5c1bd4], 0x3c
jmp 0x4a5e3b
push esi
call fcn.004a61a0
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 0
call fcn.0041cf40
lea ecx, [ebp - 0x858]
call fcn.00403d90
lea ecx, [ebp - 0x870]
call fcn.00403d90
push 0x410
lea eax, [ebp - 0x830]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x4a5b00
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, 0x5c1bd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret