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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x438
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
xor ebp, ebp
mov edi, 0x41
jmp 0x47c3f2
xor esi, esi
lea eax, [esp + 0x10]
push eax
mov word [esp + 0x14], di
mov word [esp + 0x16], 0x3a
mov word [esp + 0x18], 0x5c
mov word [esp + 0x1a], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x47c4ce
push 0x104
lea ecx, [esp + 0x244]
push ecx
lea edx, [esp + 0x18]
push edx
mov word [esp + 0x20], si
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47c4ce
lea eax, [esp + 0x240]
push eax
call fcn.00449960
add esp, 4
test eax, eax
je 0x47c4ce
push 0x104
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x18]
push edx
mov word [esp + 0x20], 0x5c
call ebx
test eax, eax
je 0x47c4ce
push 0xc
call fcn.00445590
add esp, 4
cmp word [esp + 0x38], 0
mov esi, eax
lea eax, [esp + 0x38]
je 0x47c499
jmp 0x47c490
add eax, 2
cmp word [eax], 0
jne 0x47c490
lea edx, [esp + 0x38]
lea ecx, [esi + 4]
push ecx
sub eax, edx
sar eax, 1
push 1
push eax
mov eax, edx
push eax
call fcn.0047bbc0
add esp, 0x10
cmp dword [esp + 0x1c], 0
mov dword [esi], eax
je 0x47c4c1
mov dword [ebp + 8], esi
jmp 0x47c4c5
mov dword [esp + 0x1c], esi
mov ebp, esi
mov dword [esi + 8], 0
add edi, 1
cmp edi, 0x5a
jle 0x47c3f0
push 0x104
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x47c6d0
jmp 0x47c500
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
cmp ebx, 2
je 0x47c51b
cmp ebx, 3
jne 0x47c6a8
cmp word [esp + 0x38], 0
lea eax, [esp + 0x38]
je 0x47c530
add eax, 2
cmp word [eax], 0
jne 0x47c527
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
sar eax, 1
push 1
push eax
mov eax, edx
push eax
call fcn.0047bbc0
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
add esp, 0x10
test esi, esi
mov edi, eax
je 0x47c580
lea esp, [esp]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ebp
push edi
push ecx
push edx
call fcn.00403f20
add esp, 0x10
test eax, eax
je 0x47c69b
mov esi, dword [esi + 8]
test esi, esi
jne 0x47c560
push 0x104
lea eax, [esp + 0x244]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x47c69b
lea edx, [esp + 0x240]
push edx
call fcn.004497c0
add esp, 4
test eax, eax
je 0x47c69b
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
call esi
test eax, eax
jne 0x47c69b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x47c69b
mov edx, dword [esp + 0x28]
lea eax, [edx + edx]
push eax
call fcn.00445590
mov edx, dword [esp + 0x2c]
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov ebp, eax
push edx
push ebp
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
je 0x47c692
cmp word [ebp], 0
mov esi, ebp
je 0x47c692
test edi, edi
jne 0x47c657
cmp word [esp + 0x38], di
lea eax, [esp + 0x38]
je 0x47c63a
add eax, 2
cmp word [eax], 0
jne 0x47c631
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
sar eax, 1
push 1
push eax
mov eax, edx
push eax
call fcn.0047bbc0
add esp, 0x10
mov edi, eax
mov ecx, dword [esp + 0x18]
push ebx
push 0
push 0
push ecx
push edi
push esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0047c270
xor edi, edi
add esp, 0x20
cmp word [esi], di
je 0x47c689
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x47c680
add esi, 2
cmp word [esi], 0
jne 0x47c622
push ebp
call fcn.004455d0
add esp, 4
test edi, edi
je 0x47c6a8
push edi
call fcn.004455d0
add esp, 4
mov edx, dword [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x47c500
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ebx, 0x61
mov eax, dword [esp + 0x20]
test eax, eax
mov esi, 0x3f
je 0x47c70c
cmp dword [eax + 4], 2
jne 0x47c705
mov ecx, dword [eax]
cmp byte [ecx + 1], 0x3a
jne 0x47c705
movzx ecx, byte [ecx]
mov edx, dword [0x4b1138]
movsx ecx, byte [ecx + edx]
cmp ecx, ebx
je 0x47c8b8
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x47c6e2
push 0x104
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x18]
lea edx, [ebx - 0x20]
push ecx
mov word [esp + 0x1c], dx
mov word [esp + 0x1e], 0x3a
mov word [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47c8b8
mov eax, 0x5c
cmp word [esp + 0x240], ax
jne 0x47c8b8
cmp word [esp + 0x242], si
jne 0x47c8b8
cmp word [esp + 0x244], si
jne 0x47c8b8
cmp word [esp + 0x246], ax
jne 0x47c8b8
push 0x104
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00449cb0
add esp, 0xc
test eax, eax
je 0x47c8b8
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebp, eax
cmp ebp, 2
je 0x47c7b9
cmp ebp, 3
jne 0x47c8b8
cmp word [esp + 0x38], 0
lea eax, [esp + 0x38]
je 0x47c7ce
add eax, 2
cmp word [eax], 0
jne 0x47c7c5
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push edx
sub eax, ecx
push 1
sar eax, 1
push eax
mov edx, ecx
push edx
call fcn.0047bbc0
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
push edi
push ecx
call fcn.0047c380
add esp, 0x1c
test eax, eax
jne 0x47c8ab
cmp word [esp + 0x248], 0
lea eax, [esp + 0x248]
je 0x47c81e
add eax, 2
cmp word [eax], 0
jne 0x47c815
lea ecx, [esp + 0x248]
lea edx, [esp + 0x30]
push edx
sub eax, ecx
push 1
sar eax, 1
push eax
mov edx, ecx
push edx
call fcn.0047bbf0
add esp, 0x10
push 0x104
mov esi, eax
lea eax, [esp + 0x244]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x47c89e
lea edx, [esp + 0x240]
push edx
call fcn.004497c0
add esp, 4
test eax, eax
je 0x47c89e
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push ebp
push eax
push esi
push ecx
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0047c270
add esp, 0x20
jmp 0x47c8b8
test esi, esi
je 0x47c8ab
push esi
call fcn.004455d0
add esp, 4
test edi, edi
je 0x47c8b8
push edi
call fcn.004455d0
add esp, 4
add ebx, 1
cmp ebx, 0x7a
jle 0x47c6d5
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
je 0x47c8ea
mov edi, edi
mov edx, dword [esi]
mov edi, dword [esi + 8]
push edx
call fcn.004455d0
push esi
call fcn.004455d0
add esp, 8
cmp edi, ebx
mov esi, edi
jne 0x47c8d0
mov ebp, dword [esp + 0x20]
xor esi, esi
cmp ebp, ebx
mov eax, ebp
je 0x47c900
mov eax, dword [eax + 0x1c]
add esi, 1
cmp eax, ebx
jne 0x47c8f6
lea eax, [esi*4]
push eax
call fcn.00445590
add esp, 4
xor ecx, ecx
cmp esi, ebx
mov edi, eax
mov eax, ebp
jle 0x47c92d
lea ebx, [ebx]
mov dword [edi + ecx*4], eax
mov eax, dword [eax + 0x1c]
add ecx, 1
cmp ecx, esi
jl 0x47c920
push 0x47c330
push 4
push esi
push edi
call fcn.0048a610
add esp, 0x10
xor ebp, ebp
xor ecx, ecx
xor eax, eax
cmp esi, ebx
jle 0x47c964
cmp ebp, ebx
je 0x47c954
mov edx, dword [edi + eax*4]
mov dword [ecx + 0x1c], edx
jmp 0x47c957
mov ebp, dword [edi + eax*4]
mov ecx, dword [edi + eax*4]
add eax, 1
cmp eax, esi
mov dword [ecx + 0x1c], ebx
jl 0x47c948
push edi
call fcn.004455d0
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret