Function at 0x405970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b0ed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
cmp dword [ebp + 0x60], 0
jne 0x405a4c
test bl, bl
je 0x405a23
lea eax, [ebp + 0x68]
push eax
call fcn.00408650
lea ecx, [ebp + 0x20]
call fcn.00402dd0
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x405a05
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c44
push edx
push ecx
call fcn.004165af
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x4335d8
mov word [esi], ax
call fcn.00409f20
jmp 0x4059c3
sub esp, 0xc0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402ca0
call fcn.00405c50
add esp, 0xc0
test al, al
jne 0x405af9
test bl, bl
je 0x405bde
cmp dword [ebp + 0x64], 8
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftBingWallpaperApp
lea edi, [ebp + 0x50]
mov dword [ebp - 0x18], 1
cmovae edi, dword [ebp + 0x50]
push 0x80000001
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405ad7
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SoftwareMicrosoftBingWallpaperApp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405aeb
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405af9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x78], 0
je 0x405b06
mov ecx, esi
jmp 0x4059ba
cmp dword [ebp + 0x90], 0
je 0x405bde
cmp dword [ebp + 0xa8], 0
je 0x405bde
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x14], 0
mov ecx, esi
je 0x405b91
lea eax, [ebp + 0x98]
push eax
call fcn.00408650
lea ecx, [ebp + 0x20]
call fcn.00402dd0
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x405a05
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c49
jmp 0x4059fb
lea eax, [ebp + 0x80]
push eax
call fcn.00408650
lea ecx, [ebp + 0x20]
call fcn.00402dd0
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x405a05
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c49
jmp 0x4059fb
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x4335d8
mov word [esi], ax
call fcn.00409f20
lea ecx, [ebp + 0x20]
call fcn.00402dd0
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x405a05
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4059fb
call fcn.00419a7c
call fcn.00419a7c
int3