Function at 0x407130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d3bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43a00c]
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 0x40720c
test bl, bl
je 0x4071e3
lea eax, [ebp + 0x68]
push eax
call fcn.0040a240
lea ecx, [ebp + 0x20]
call fcn.00403230
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4071c5
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407404
push edx
push ecx
call fcn.00417807
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.004177f9
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 0x4354f8
mov word [esi], ax
call fcn.0040c560
jmp 0x407183
sub esp, 0xc0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00403100
call fcn.00407410
add esp, 0xc0
test al, al
jne 0x4072b9
test bl, bl
je 0x40739e
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 0x407297
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 0x4072ab
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 0x4072b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x78], 0
je 0x4072c6
mov ecx, esi
jmp 0x40717a
cmp dword [ebp + 0x90], 0
je 0x40739e
cmp dword [ebp + 0xa8], 0
je 0x40739e
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 0x407351
lea eax, [ebp + 0x98]
push eax
call fcn.0040a240
lea ecx, [ebp + 0x20]
call fcn.00403230
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4071c5
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407409
jmp 0x4071bb
lea eax, [ebp + 0x80]
push eax
call fcn.0040a240
lea ecx, [ebp + 0x20]
call fcn.00403230
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4071c5
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407409
jmp 0x4071bb
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x4354f8
mov word [esi], ax
call fcn.0040c560
lea ecx, [ebp + 0x20]
call fcn.00403230
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4071c5
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4071bb
call fcn.0041af8c
call fcn.0041af8c
int3