Function at 0x47a410
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4fd6f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x531d28]
push ebx
push ebp
mov ebp, dword [esp + 0x294]
push esi
mov dword [esp + 0x27c], eax
lea eax, [ebp + ebp]
push edi
push eax
call fcn.004e50fe
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
mov ebx, dword [esp + 0x294]
push ebx
mov dword [esp + 0x290], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push 0
inc edi
push edi
push ebx
call fcn.00479f90
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
push ebx
mov byte [esp + 0x290], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, ebp
jg 0x47a4c4
lea ecx, [esp + 0x24]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
jne 0x47a4eb
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
mov byte [esp + 0x290], 0
call fcn.004e50f9
push esi
mov dword [esp + 0x294], 0xffffffff
call fcn.004e50f9
add esp, 8
jmp 0x47a5cd
cmp edi, ebp
jae 0x47a5a8
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ebp, [edi + 1]
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x290], 2
call fcn.0041c8c0
mov ebx, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push ebp
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x47a54d
xor eax, eax
jmp 0x47a55e
push edi
call fcn.004d605c
add esp, 4
test eax, eax
jl 0x47a6fa
cmp eax, dword [edi - 8]
jg 0x47a6fa
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], 0
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
or ebx, 0xffffffff
test eax, eax
jne 0x47a664
push eax
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x47a5f4
lea ecx, [esp + 0x10]
call fcn.004016e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 0
call fcn.0047a030
mov dword [esp + 0x28c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0047a030
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x274]
pop ebx
call fcn.004d40be
add esp, 0x280
ret
test byte [esp + 0x28], 2
jne 0x47a602
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [esp + 0x28], 4
jne 0x47a664
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebx
je 0x47a664
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47a6d4
cmp eax, esi
jbe 0x47a6d4
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x24]
mov ecx, edx
sub ecx, esi
sar ecx, 1
add ecx, eax
cmp ecx, dword [esp + 0x29c]
jge 0x47a6d4
lea eax, [esp + 0x5c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x29c]
mov edx, dword [esp + 0x298]
push 0
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push esi
call fcn.0047a000
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [esp + 0x28c], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a6a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 0
call fcn.0047a030
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28c], ebx
call fcn.0047a030
mov eax, 1
jmp 0x47a5cf
lea ecx, [esp + 0x10]
call fcn.004016e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 0
call fcn.0047a030
mov dword [esp + 0x28c], ebx
jmp 0x47a5c4
push 0x80070057
call fcn.00401110
int3