Function at 0x4027c0
Capabilities:
Check mutex on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47037b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push str.PicInstallMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402826
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
jmp 0x402ac2
push esi
call fcn.0040a000
mov ecx, eax
call fcn.0040a140
call fcn.0040a000
cmp dword [eax + 0xc], 0
je 0x402922
call fcn.00403560
test eax, eax
je 0x402850
call fcn.00403630
push 0x20a
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402ac2
push str.XXPic
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4028b0
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
lea esi, [ebx + 0x38]
push ecx
push eax
mov ecx, esi
call fcn.00407ef0
cmp dword [esi + 0x14], 8
jb 0x4028d9
mov esi, dword [esi]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, ebx
call fcn.00403d50
test eax, eax
jne 0x402ac2
mov dword [ebx], 1
call fcn.00405470
call fcn.00405560
mov ecx, ebx
call fcn.004050f0
mov ecx, ebx
call fcn.00402f30
mov ecx, ebx
call fcn.00402c50
mov ecx, ebx
call fcn.00402af0
jmp 0x402ac2
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0040b580
push 0xd
xor eax, eax
mov dword [ebp - 0x22c], 0
push 0x487e5c
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
call fcn.00407ef0
push 0x30
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0044b130
add esp, 0xc
mov dword [ebp - 0x26c], 0x30
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x264], 0x4061d0
cmovae eax, dword [ebp - 0x23c]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
cmp dword [ebp - 0x228], 8
lea esi, [ebp - 0x23c]
push 0
cmovae esi, dword [ebp - 0x23c]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push SysReAllocString
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
test eax, eax
je 0x402a86
push ebx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebx + 4]
lea ecx, [ebx + 0xc]
call fcn.0040a920
test eax, eax
je 0x402a86
lea eax, [ebx + 0x20]
lea ecx, [ebx + 0x38]
cmp ecx, eax
je 0x402a38
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x402a2f
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00407ef0
push 5
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x402a7f
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402a75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ae1
push edx
push ecx
call fcn.00444954
add esp, 8
mov eax, 1
jmp 0x402ac4
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x402ac2
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402ab8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ae6
push edx
push ecx
call fcn.00444954
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
call fcn.004538a3
call fcn.004538a3
int3