Function at 0x478490
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4f7531
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x52bd18]
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.004df1be
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.00478010
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 0x478544
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 0x47856b
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
mov byte [esp + 0x290], 0
call fcn.004df1b9
push esi
mov dword [esp + 0x294], 0xffffffff
call fcn.004df1b9
add esp, 8
jmp 0x47864d
cmp edi, ebp
jae 0x478628
call fcn.004df219
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.0041b290
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 0x4785cd
xor eax, eax
jmp 0x4785de
push edi
call fcn.004d011c
add esp, 4
test eax, eax
jl 0x47877a
cmp eax, dword [edi - 8]
jg 0x47877a
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 0x4786e4
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 0x478674
lea ecx, [esp + 0x10]
call fcn.00401580
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 0
call fcn.004780b0
mov dword [esp + 0x28c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004780b0
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.004ce183
add esp, 0x280
ret
test byte [esp + 0x28], 2
jne 0x478682
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [esp + 0x28], 4
jne 0x4786e4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebx
je 0x4786e4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x478754
cmp eax, esi
jbe 0x478754
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 0x478754
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.00478080
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 0x478729
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.004780b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28c], ebx
call fcn.004780b0
mov eax, 1
jmp 0x47864f
lea ecx, [esp + 0x10]
call fcn.00401580
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 0
call fcn.004780b0
mov dword [esp + 0x28c], ebx
jmp 0x478644
push 0x80070057
call fcn.00401110
int3