Function at 0x407c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x520f7e
mov eax, dword fs:[0]
push eax
sub esp, 0xec8
mov eax, dword [0x5c5c30]
xor eax, esp
mov dword [esp + 0xec0], eax
push ebx
push esi
push edi
mov eax, dword [0x5c5c30]
xor eax, esp
push eax
lea eax, [esp + 0xed8]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00427c60
push 0
lea eax, [esi + 0xa8]
push eax
lea ecx, [esi + 0xa4]
push ecx
call sub.gdiplus.dll_GdiplusStartup
call fcn.00405270
call fcn.00431fc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407cbb
push str.__atl_condVal
push ecx
push 0xe2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x407cb1
int3
push 0x80004005
call fcn.004011e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0xac0]
push ecx
mov dword [esp + 0xee8], 0
call fcn.0043a110
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xabc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d00
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xac0]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c800
mov edi, dword [esp + 0x14]
push 0x5c
push edi
call fcn.004d1550
add esp, 8
test eax, eax
je 0x407dbd
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x407dbd
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b010
mov byte [esp + 0xee0], 1
mov ecx, dword [eax]
push ecx
lea edx, [esi + 0xc0]
push 0x5a9cc0
push edx
call fcn.0040db10
mov byte [esp + 0xeec], 0
mov edi, dword [esp + 0x24]
add edi, 0xfffffff0
lea ebx, [edi + 0xc]
add esp, 0xc
cmp dword [ebx], 0
jne 0x407da7
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x407da7
int3
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x407dbd
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
call fcn.00406d40
push 0x10
lea ecx, [esi + 0xc8]
push str.WallpaperService
call fcn.0040c800
push esi
call fcn.00405db0
test eax, eax
mov dword [esi + 0xcc], eax
push 0
je 0x407e14
push 0x1a
lea ecx, [esp + 0xccc]
mov dword [0x5cafd0], 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x407e20
lea ecx, [esp + 0x14]
call fcn.0040ad40
jmp 0x407f5a
push 0x26
lea edx, [esp + 0xccc]
push edx
jmp 0x407dfa
lea eax, [esp + 0x18]
push eax
call fcn.00407750
add esp, 4
mov byte [esp + 0xee0], 2
mov edx, dword [eax]
push edx
lea ecx, [esi + 0xb8]
push str.lxbz__s
push ecx
call fcn.0040db10
mov byte [esp + 0xeec], 0
mov edi, dword [esp + 0x24]
add edi, 0xfffffff0
lea ebx, [edi + 0xc]
add esp, 0xc
cmp dword [ebx], 0
jne 0x407e81
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x407e81
int3
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x407e97
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esi + 0xb8]
push ecx
lea edx, [esp + 0xcc8]
push edx
push str._s_s_
push 0x5cafd8
call fcn.0040db10
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
call fcn.0040e240
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0xee4], 3
push 0x66
mov dword [esi + 0x20], ecx
call fcn.00435e40
cmp dword [esi + 0xcc], 0
jne 0x407eee
push 5
lea ecx, [esp + 0x20]
call fcn.00450e60
push 0
lea ecx, [esp + 0x20]
call fcn.00448c70
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xee4], 0
call fcn.00407f80
mov dword [esp + 0xee0], 0xffffffff
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x407f44
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x407f44
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x407f5a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov ecx, dword [esp + 0xed8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xec0]
xor ecx, esp
call fcn.004d1610
mov esp, ebp
pop ebp
ret