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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x1009024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001550]
push esi
mov dword [ebp - 0x20c], eax
mov eax, dword [0x1001554]
push 0x200
mov dword [ebp - 0x208], eax
xor esi, esi
lea eax, [ebp - 0x204]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
push esi
mov dword [ebp - 0x210], esi
call fcn.010037cc
cmp eax, esi
jne 0x1004ae6
push ebx
push edi
mov ebx, 0x34d0
push ebx
call fcn.01001b24
mov edi, eax
push ebx
mov dword [ebp - 0x21c], edi
call fcn.01001b24
mov dword [ebp - 0x218], eax
cmp edi, esi
je 0x1004ac2
cmp eax, esi
je 0x1004abc
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x21c]
sub eax, edi
add eax, ebx
sar eax, 1
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10048dd
mov eax, dword [ebp - 0x210]
shl eax, 2
inc dword [ebp - 0x210]
inc word [ebp - 0x20c]
mov dword [ebp + eax - 0x2f8], esi
mov dword [ebp + eax - 0x290], esi
jmp 0x1004986
mov esi, dword [ebp - 0x210]
lea esi, [ebp + esi*4 - 0x2f8]
push edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [esi]
movzx ecx, word [eax + 0x60]
mov dword [ebp - 0x228], ecx
xor ecx, ecx
mov word [eax + 0x60], cx
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x214]
add eax, ebx
sar eax, 1
push eax
mov eax, dword [esi]
push dword [ebp - 0x214]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100495c
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
push eax
mov dword [ebp + ecx*4 - 0x290], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x214]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x214], eax
jmp 0x100496a
mov eax, dword [ebp - 0x210]
and dword [ebp + eax*4 - 0x290], 0
mov eax, dword [esi]
mov cx, word [ebp - 0x228]
mov word [eax + 0x60], cx
inc word [ebp - 0x20c]
inc dword [ebp - 0x210]
xor esi, esi
cmp dword [ebp - 0x210], 0x1a
jb 0x1004895
push 0x2000
call fcn.01001b24
mov ebx, eax
cmp ebx, esi
je 0x1004ad5
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x1004a90
cmp byte [0x1009069], 0
je 0x10049dc
push esi
push 0x20
call fcn.01001cd8
pop ecx
pop ecx
lea eax, [ebp - 0x2f8]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004488
test eax, eax
je 0x1004a68
push edi
push ebx
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1004a68
mov ecx, 0x100155c
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004a39
cmp dx, si
je 0x1004a35
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004a39
add eax, 4
add ecx, 4
cmp dx, si
jne 0x1004a13
xor eax, eax
jmp 0x1004a3e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x1004a68
lea eax, [ebp - 0x20c]
push eax
push 0x1000
push ebx
call fcn.01001b6a
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x2f8]
push eax
push ebx
call fcn.010045ae
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10049dc
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push ebx
call fcn.01001b44
push dword [ebp - 0x21c]
call fcn.01001b44
push dword [ebp - 0x218]
call fcn.01001b44
lea eax, [ebp - 0x224]
push eax
call fcn.01003537
xor eax, eax
jmp 0x1004ae4
push edi
call fcn.01001b44
cmp dword [ebp - 0x218], esi
je 0x1004ad5
push dword [ebp - 0x218]
call fcn.01001b44
lea eax, [ebp - 0x224]
push eax
call fcn.01003537
push 8
pop eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100741c
leave
ret