Function at 0x40d640
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c0780
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [0x4eab28]
mov edx, dword [eax + 0xc]
mov ecx, 0x4eab28
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, edi
lea eax, [esp + 0x20]
mov dword [esp + 0x50], ebx
call fcn.004101f0
mov ecx, dword [0x4ec05c]
cmp ecx, ebx
je 0x40d6b1
push ebx
push eax
mov eax, dword [ecx + 4]
push 0xbba
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x4ec3ac]
mov edx, dword [0x4ec0b0]
mov eax, dword [edx + 0x24]
push ecx
push 0x4ec0b0
call eax
push eax
push str.install_type:_d__install_version:_s
call fcn.0041aa00
add esp, 0xc
push ebx
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x24]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
cmp ecx, ebx
je 0x40d705
mov ecx, dword [ecx + 4]
push ebx
push eax
push 0xbba
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push str.360wallpaper_quit
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push ebx
push ebx
push eax
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
mov esi, 0x4ec1b0
call fcn.00420170
lea esi, [edi + 4]
mov dword [esp + 0x20], esi
call fcn.00420270
push 2
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x34]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
cmp ecx, ebx
je 0x40d764
mov edx, dword [ecx + 4]
push ebx
push eax
push 0xbba
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
push eax
call fcn.0040d460
push str.remove_all_pending_files
call fcn.0041aa00
add esp, 4
push 3
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x34]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
cmp ecx, ebx
je 0x40d7a9
push ebx
push eax
mov eax, dword [ecx + 4]
push 0xbba
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
push str..tmp
push eax
call fcn.00454260
push 4
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x3c]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 0xc
cmp ecx, ebx
je 0x40d7e6
mov ecx, dword [ecx + 4]
push ebx
push eax
push 0xbba
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
push edx
push str.remove_all_.tmp_files_in__s
call fcn.0041aa00
push str.update
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00402c80
add esp, 0x14
mov byte [esp + 0x50], 1
mov eax, dword [eax]
push eax
call fcn.00453fa0
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d83a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.update
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00402c80
add esp, 0xc
mov byte [esp + 0x50], 2
mov edx, dword [eax]
push edx
push str.Delete_directory_recursively:__s
call fcn.0041aa00
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d886
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 5
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x34]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
cmp ecx, ebx
je 0x40d8b6
mov ecx, dword [ecx + 4]
push ebx
push eax
push 0xbba
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0040db40
and eax, 1
mov dword [esp + 0x18], eax
jne 0x40d8d6
push 0xf
push str.copy_file_fail
lea ecx, [esp + 0x1c]
call fcn.004037b0
push str.start_call_program
call fcn.0041aa00
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
add esp, 4
mov ebx, esi
push eax
mov esi, 0x4ec1b0
call fcn.004148d0
call fcn.0040ebe0
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push eax
call fcn.00420450
add esp, 4
mov esi, edi
call fcn.0040d3b0
test eax, eax
jne 0x40d928
push 0x11
push str.set_autorun_fail
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.004037b0
push 0x60
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x34]
call fcn.00410230
mov ecx, dword [0x4ec05c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
test ecx, ecx
je 0x40d95b
push 0
push eax
mov eax, dword [ecx + 4]
push 0xbba
push eax
call ebx
cmp dword [edi + 0x7c], 0
je 0x40d9b1
push str.birdwallpaper
lea ecx, [esp + 0x20]
call fcn.00403ac0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x4d2bd0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360wpapp.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d9b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.0040d120
test eax, eax
jne 0x40d9d0
push 0x14
push str.write_path_reg_fail
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.004037b0
call fcn.0040f0f0
mov ecx, eax
call fcn.00473c80
test eax, eax
je 0x40da87
mov ecx, dword [edi + 0x7c]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00404130
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.00420a40
mov byte [esp + 0x50], 3
cmp dword [esp + 0x24], 0
lea ecx, [esp + 0x20]
je 0x40da27
call fcn.00420eb0
jmp 0x40da2c
call fcn.00420b10
push 0x61
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x34]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
test ecx, ecx
je 0x40da59
mov ecx, dword [ecx + 4]
push 0
push eax
push 0xbba
push ecx
call ebx
lea eax, [esp + 0x20]
call fcn.00421290
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x62
mov edx, edi
mov ecx, 0x40e8a0
lea eax, [esp + 0x34]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
test ecx, ecx
je 0x40dab4
mov ecx, dword [ecx + 4]
push 0
push eax
push 0xbba
push ecx
call ebx
push str.install_end.
call fcn.0041aa00
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 4
push esi
mov ecx, edi
lea eax, [esp + 0x34]
call fcn.00410210
mov ecx, dword [0x4ec05c]
xor edi, edi
add esp, 4
cmp ecx, edi
je 0x40daf1
mov edx, dword [ecx + 4]
push edi
push eax
push 0xbba
push edx
call ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], vtable.mf_bind_t_2_class_CInstaller__class_CInstaller___void__int__wchar_t_const__.0
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8