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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push edi
mov dword [ebp - 0x434], ebx
push 0x208
push eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x44c], esi
call fcn.00448cc7
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x438], eax
cmp eax, 0xffffffff
jne 0x46982a
call fcn.0041f500
push 2
pop edi
cmp eax, edi
jg 0x4697fa
push edi
push 0xa5
push 0x405168
lea ecx, [ebp - 0x500]
mov ebx, edi
call fcn.0041f5a0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push 0x40524c
push eax
call fcn.0041b5a0
pop ecx
pop ecx
mov ecx, eax
call fcn.00420020
mov esi, dword [ebp - 0x44c]
test bl, 2
je 0x46980a
lea ecx, [ebp - 0x500]
call fcn.0041f5f0
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.00468c64
lea ecx, [ebp - 0x444]
call fcn.0046a240
mov eax, esi
jmp 0x469ae7
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00448cc7
mov esi, dword [ebp - 0x438]
add esp, 0xc
push 2
pop edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, word [ebp - 0x448]
jne 0x46985a
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x469a3f
push 0x5c
pop eax
cmp word [ebp - 0x20c], ax
jne 0x469a3f
cmp word [ebp - 0x20a], ax
jne 0x469a3f
cmp word [ebp - 0x208], 0x3f
jne 0x469a3f
cmp word [ebp - 0x206], ax
jne 0x469a3f
cmp word [ebp + ecx*2 - 0x20e], ax
jne 0x469a3f
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00448cc7
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x450]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4699b0
xor eax, eax
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x450], eax
jbe 0x469977
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x469975
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00418f70
lea eax, [ebp - 0x42c]
or ebx, 8
push eax
call fcn.00469bc1
pop ecx
test al, al
jne 0x469975
xor ecx, ecx
lea eax, [ebp - 0x434]
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x469975
mov byte [ebp - 0x42d], 1
xor eax, eax
jmp 0x46997d
xor eax, eax
mov byte [ebp - 0x42d], al
test bl, 8
je 0x469993
push eax
push 1
lea ecx, [ebp - 0x42c]
and ebx, 0xfffffff7
call fcn.00419f60
cmp byte [ebp - 0x42d], 0
je 0x469a0b
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x444]
call fcn.004601a5
jmp 0x469a0b
call fcn.0041f500
cmp eax, edi
jg 0x4699f2
push edi
push 0xc5
push 0x405168
lea ecx, [ebp - 0x500]
or ebx, 0x10
call fcn.0041f5a0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push 0x4052a8
push eax
call fcn.0041b5a0
pop ecx
pop ecx
mov ecx, eax
call fcn.00420020
test bl, 0x10
je 0x469a05
lea ecx, [ebp - 0x500]
and ebx, 0xffffffef
call fcn.0041f5f0
mov esi, dword [ebp - 0x438]
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00448cc7
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x469851
jmp 0x469a93
call fcn.0041f500
cmp eax, edi
jg 0x469a80
push edi
push 0xb3
push 0x405168
lea ecx, [ebp - 0x500]
or ebx, 4
call fcn.0041f5a0
lea ecx, [ebp - 0x20c]
add eax, 8
push ecx
push 0x405274
push eax
call fcn.0041b5a0
pop ecx
pop ecx
push eax
call fcn.0041fe10
pop ecx
pop ecx
test bl, 4
je 0x469a93
lea ecx, [ebp - 0x500]
and ebx, 0xfffffffb
call fcn.0041f5f0
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push dword [ebp - 0x448]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call fcn.00468c44
add esp, 0xc
test bl, 0x20
je 0x469ac4
lea ecx, [ebp - 0x500]
call fcn.0041f5f0
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x444]
push eax
call fcn.00468c64
lea ecx, [ebp - 0x444]
call fcn.0046a240
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491511
mov esp, ebp
pop ebp
ret