Function at 0x41d6d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6993
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4b0], esi
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x4a8], 0
push 0
push eax
call fcn.004bd150
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.CalfWallpaper
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d783
push eax
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41d783
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 0x480]
push eax
call fcn.0041d190
push eax
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 1
push eax
call fcn.00419c30
add esp, 8
mov edx, dword [ebp - 0x46c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x41d803
mov ecx, dword [ebp - 0x480]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d7f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dcc7
push edx
push ecx
call fcn.004ba5b1
add esp, 8
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x470], 0
push 0
push eax
mov dword [ebp - 0x46c], 0xf
mov byte [ebp - 0x480], 0
call fcn.004bd150
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x4a0], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
push 0x18
push str.QVZPRURMRUVSSllJSUpKRQ
call fcn.00411ed0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bd150
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 8
push str.LmV4ZQ
call fcn.00411ed0
add esp, 0x38
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x440], 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
je 0x41dadd
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ba5bf
mov esi, eax
add esp, 4
test esi, esi
je 0x41d903
lea ecx, [edi*2 + 2]
push ecx
push 0
push esi
call fcn.004bd150
add esp, 0xc
lea eax, [ebp - 0x114]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
jmp 0x41d90b
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
mov ecx, esi
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
mov dword [ebp - 0x4a8], 1
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d940
mov eax, dword [ebp - 0x440]
sub ecx, edx
sar ecx, 1
add eax, ecx
lea ecx, [ebp - 0x468]
push eax
call fcn.0040ca80
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d970
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x468]
call fcn.00417060
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
push dword [ebp - 0x440]
cmovae eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x468]
push eax
call fcn.00417060
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 0
call edi
mov dword [ebp - 0x49c], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ba5bf
mov esi, eax
add esp, 4
test esi, esi
je 0x41da1c
mov ecx, dword [ebp - 0x49c]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call fcn.004bd150
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x49c]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
jmp 0x41da1e
xor esi, esi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41da23
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x468]
call fcn.00417060
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c0], xmm0
movups xmmword [ebp - 0x498], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x438]
movq qword [ebp - 0x4ac], xmm0
movq qword [ebp - 0x488], xmm0
call fcn.00407200
movups xmm0, xmmword [ebp - 0x4c0]
xor eax, eax
mov dword [ebp - 0x488], 0
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x484], 7
movups xmmword [ebp - 0x438], xmm0
mov word [ebp - 0x498], ax
movq xmm0, qword [ebp - 0x4ac]
movq qword [ebp - 0x428], xmm0
call fcn.00407200
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 3
call fcn.00407200
jmp 0x41dbdc
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
mov dword [ebp - 0x49c], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ba5bf
mov esi, eax
add esp, 4
test esi, esi
je 0x41db3c
mov ecx, dword [ebp - 0x49c]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call fcn.004bd150
add esp, 0xc
lea eax, [ebp - 0x114]
push dword [ebp - 0x49c]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
jmp 0x41db3e
xor esi, esi
push esi
lea ecx, [ebp - 0x438]
call fcn.0040cc30
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 0
call edi
mov dword [ebp - 0x49c], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ba5bf
mov esi, eax
add esp, 4
test esi, esi
je 0x41dbb4
mov ecx, dword [ebp - 0x49c]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call fcn.004bd150
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x49c]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
jmp 0x41dbb6
xor esi, esi
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dbc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.00417060
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x4b0]
lea eax, [ebp - 0x420]
push eax
add ecx, 4
call fcn.0040cc30
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x41dc53
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41dc49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dccc
push edx
push ecx
call fcn.004ba5b1
add esp, 8
mov edx, dword [ebp - 0x424]
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
cmp edx, 8
jb 0x41dcac
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41dca2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dcd1
push edx
push ecx
call fcn.004ba5b1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
call fcn.004c0839
call fcn.004c0839
call fcn.004c0839
int3