Function at 0x477f60
Capabilities:
Get common file path
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e99cd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], 0
call fcn.00427610
mov edi, eax
test edi, edi
je 0x4782a7
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
call fcn.00427610
mov edi, eax
test edi, edi
je 0x4782a7
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
call fcn.00427610
mov ebx, eax
test ebx, ebx
je 0x4782a7
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, ebx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
xorps xmm0, xmm0
mov eax, dword [ebp - 0x14]
mov edx, 1
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x105
or ecx, edx
jge 0x478062
push 0x105
lea ecx, [ebp - 0x14]
call fcn.0047a3c0
mov eax, dword [ebp - 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x47807f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x30], eax
jmp 0x478084
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.004bef34
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4782b1
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x4782b1
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
test ebx, ebx
jne 0x478204
mov ecx, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub ecx, 0x105
or ecx, edx
jge 0x4780e2
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.0047a3c0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x4780fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x30], ebx
push dword [edi - 8]
push edi
call fcn.004bef34
add esp, 8
test eax, eax
js 0x4782b1
cmp eax, dword [edi - 8]
jg 0x4782b1
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
test ebx, ebx
jne 0x478204
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x478150
push 0x105
lea ecx, [ebp - 0x18]
call fcn.0047a3c0
mov esi, dword [ebp - 0x18]
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x47816c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x30], ebx
push dword [esi - 8]
push esi
call fcn.004bef34
add esp, 8
test eax, eax
js 0x4782b1
cmp eax, dword [esi - 8]
jg 0x4782b1
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
jne 0x478204
push ecx
lea ecx, [ebp - 0x18]
call fcn.00479bf0
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x4781c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x30], ebx
jmp 0x478204
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4781f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x30], ebx
jmp 0x4781fb
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea edx, [esi - 0x10]
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478234
mov ebx, dword [edx]
push edx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x30]
or ecx, 0xffffffff
mov byte [ebp - 4], 1
lea edx, [edi - 0x10]
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47825e
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x478289
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004274c0
push 0x80070057
call fcn.004274c0
int3