Function at 0x5a2320
Capabilities:
Check if file exists
Copy file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67af40
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x40
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5a2367
xor eax, eax
jmp 0x5a25a2
cmp dword [ebp + 0x10], 0
jne 0x5a2376
mov dword [ebp - 0x30], 1
jmp 0x5a237d
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.006066d2
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0x6ad3b0
push 1
push 0
push 0x6ad3a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], 0
jne 0x5a23c0
xor eax, eax
jmp 0x5a25a2
cmp dword [ebp + 0x10], 0
je 0x5a23fd
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004131e0
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.005a2dc0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040dc90
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 8
mov dword [ebp - 0x4c], 3
push 0
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 0x1c]
call edx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00422c50
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x5a2490
mov dword [ebp - 4], 0xffffffff
jmp 0x5a2574
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push str.WallpaperStyle
push 0x6a5d6c
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5a24c6
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.005a22b0
cmp dword [ebp + 0x10], 0
je 0x5a2506
mov dword [ebp - 0x48], 8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x44], 2
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x5a2506
mov dword [ebp - 4], 0xffffffff
jmp 0x5a2574
call fcn.005a6770
test eax, eax
je 0x5a2524
push 0xf
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x28], eax
jmp 0x5a2537
push 7
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x5a2546
mov dword [ebp - 4], 0xffffffff
jmp 0x5a2574
mov dword [ebp - 0x38], 1
jmp 0x5a255c
mov dword [ebp - 4], 0xffffffff
jmp 0x5a256c
xor eax, eax
jne 0x5a2439
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x2c]
call fcn.00413870
lea ecx, [ebp - 0x3c]
call fcn.00413870
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 0xc