Function at 0x47612b
Capabilities:
Get common file path
Get disk information
Get disk size
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x63c
push ebx
push esi
push edi
mov edi, 0x56f16c
push edi
lea ecx, [esp + 0x24]
call fcn.00402946
push 0x104
lea ecx, [esp + 0x24]
call fcn.00401db6
xor ebx, ebx
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x476174
or eax, 0xffffffff
lea esi, [esp + 0x20]
call fcn.004048ba
xor eax, eax
push 0x3fe
mov word [esp + 0x24c], ax
lea eax, [esp + 0x24e]
push ebx
push eax
call fcn.004ee670
add esp, 0xc
push edi
lea ecx, [esp + 0x10]
call fcn.00402946
push edi
lea ecx, [esp + 0x28]
call fcn.00402946
lea eax, [esp + 0x248]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x248]
cmp word [esp + 0x248], bx
je 0x476284
push edi
lea ecx, [esp + 0x10]
call fcn.00401ed2
push ebx
lea esi, [esp + 0x10]
call fcn.004048da
push eax
lea ecx, [esp + 0x28]
call fcn.00401542
cmp eax, 0xffffffff
jne 0x476270
call fcn.004048da
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x476270
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.004048da
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x476270
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x68
push 0x32
mov dword [esp + 0x20], eax
call fcn.004048da
push eax
push dword [ebp + 8]
mov eax, dword [esp + 0x28]
call dword [eax]
test eax, eax
jne 0x476270
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x14]
jb 0x476270
mov eax, dword [esp + 0x28]
ja 0x47625a
cmp eax, dword [esp + 0x10]
jb 0x476270
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00404918
mov eax, dword [esp + 0xc]
mov eax, dword [eax - 0xc]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x4761d8
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
jne 0x476347
lea eax, [esp + 0x1c]
push eax
push 0x28
mov dword [esp + 0x24], ebx
call fcn.00460cd7
lea ecx, [esp + 0x30]
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], ebx
call fcn.00435802
mov esi, dword [eax]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4762c6
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
xor eax, eax
push 0x206
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push ebx
push eax
call fcn.004ee670
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x4762ff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
jmp 0x476304
mov eax, 0x537290
push str.iAppleDownloadsVideo
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathBuildRootW]
push eax
mov esi, 0x578f00
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x476337
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x47638f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x47638f
xor eax, eax
push 0x206
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push ebx
push eax
call fcn.004ee670
add esp, 0xc
push str.iAppleDownloadsVideo
lea esi, [esp + 0x28]
call fcn.004048da
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathBuildRootW]
push eax
mov esi, 0x578f00
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040297c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4