Function at 0x40c0d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593a80
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x248
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x258], esi
push 0x7f00
push 0
mov dword [esi + 0x40], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x44], eax
lea edi, [esi + 0x48]
lea eax, [ebp - 0x220]
mov dword [esi + 0x54], 0
push eax
push 0
push 0
push 0x26
push 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [edi], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c190
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00403d10
mov dword [ebp - 4], 0
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x228]
sub eax, ecx
cmp eax, 0x25
jb 0x40c36f
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 0x25
cmovae eax, dword [ebp - 0x238]
push str.Windows_Photo_ViewerPhotoViewer.dll
push ecx
push eax
push ecx
push dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
call fcn.00403e90
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x40c23e
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c234
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c341
push ecx
push edx
call fcn.0052d747
add esp, 8
movups xmm0, xmmword [ebp - 0x250]
xor eax, eax
lea ecx, [ebp - 0x250]
mov word [ebp - 0x250], ax
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [ebp - 0x240]
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
call fcn.00403990
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
mov dword [ebp - 0x254], ecx
test ecx, ecx
je 0x40c2e7
xor esi, esi
nop dword [eax]
lea eax, [esi + 0x1f8e]
movzx eax, ax
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x254]
lea edi, [edi + 4]
inc esi
mov dword [edi - 4], eax
cmp esi, 2
jl 0x40c2b0
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x258]
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x10
push 0
push 0
push 2
push str.CURSOR.cur
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [ebp - 0x224]
mov dword [esi + 0x54], eax
cmp ecx, 8
jb 0x40c351
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c347
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c347
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0052d747
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402990
int3