Function at 0x407050
Capabilities:
Check for foreground window switch
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb9ce
mov eax, dword fs:[0]
push eax
sub esp, 0xa9c
mov eax, dword [0x633ef8]
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 dword [ebp - 0x2c], edx
mov dword [ebp - 0xaa8], ecx
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push eax
push 4
push str.InstalledIE
push str.SoftwareITB
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], 0
call edi
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push str.Installed
push str.SoftwareITB
push reloc.OLEAUT32.dll_SysReAllocString
call edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
lea eax, [ebp - 0xa8c]
push 0x98c
push 0
push eax
mov dword [ebp - 0xa98], ebx
call fcn.0058f590
add esp, 0xc
lea ecx, [ebp - 0xa8c]
call fcn.0041a620
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xa8c]
mov dword [ebp - 0x24], 0
call fcn.00428300
push ebx
mov byte [ebp - 4], 6
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
sete byte [ebp - 0xa91]
call fcn.004087a0
call fcn.00408860
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x407154
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004163d0
call fcn.00408ec0
add esp, 4
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.004163d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.004163d0
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.004163d0
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x40733c
lea ecx, [ebp - 0x14]
call fcn.0040cf20
mov ecx, eax
call fcn.0040ce80
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x407216
push str.http:__
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x4071e7
sub ecx, eax
jne 0x4071e7
push 7
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040b100
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x407216
push str.www.
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x407216
sub ecx, eax
jne 0x407216
push 4
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040b100
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x609340
push eax
call fcn.00415ec0
mov ebx, dword [ebp - 0x20]
add esp, 0xc
cmp dword [ebx - 0xc], 0
jl 0x40725d
push 0x6094d8
push ebx
call fcn.0059bf87
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40725d
sub ecx, ebx
test ecx, ecx
jle 0x40725d
mov eax, dword [ebx - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040b100
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x407292
push 0x6094dc
push eax
call fcn.0059bf87
mov edx, eax
add esp, 8
test edx, edx
je 0x407292
mov ecx, dword [ebp - 0x14]
sub edx, ecx
test edx, edx
jle 0x407292
mov eax, dword [ecx - 0xc]
lea ecx, [ebp - 0x14]
sub eax, edx
push eax
push edx
call fcn.0040b100
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
jl 0x40731f
push str.http:__
push esi
call fcn.0059bf87
add esp, 8
test eax, eax
je 0x4072c3
sub eax, esi
jne 0x4072c3
push 7
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b100
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
jl 0x40731f
push str.www.
push esi
call fcn.0059bf87
add esp, 8
test eax, eax
je 0x4072ed
sub eax, esi
jne 0x4072ed
push 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b100
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
jl 0x40731f
push 0x6094d8
push esi
call fcn.0059bf87
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40731f
sub ecx, esi
test ecx, ecx
jle 0x40731f
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040b100
mov esi, dword [ebp - 0x1c]
push str.Search_shield_powered_by_Bing
call fcn.0059e3a0
add esp, 4
lea ecx, [ebp - 0x14]
push eax
push str.Search_shield_powered_by_Bing
call fcn.00416780
jmp 0x407342
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x407365
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004163d0
lea ecx, [ebp - 0xa8c]
call fcn.00428200
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x407388
push ecx
mov ecx, esp
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004163d0
lea ecx, [ebp - 0xa8c]
call fcn.00426880
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x407423
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
lea eax, [ebp + 0x14]
mov dword [ebp - 0xa9c], ecx
push eax
call fcn.004163d0
push ecx
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0xa9c], esp
push eax
mov dword [ebp - 0xaa0], ecx
call fcn.004163d0
push ecx
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0xaa0], esp
push eax
mov dword [ebp - 0xaa4], ecx
call fcn.004163d0
push ecx
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0xaa4], esp
push eax
mov dword [ebp - 0xa90], ecx
call fcn.004163d0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x14]
mov dword [ebp - 0xa90], ecx
push eax
call fcn.004163d0
lea ecx, [ebp - 0xa8c]
mov byte [ebp - 4], 9
call fcn.00429470
mov eax, dword [ebp + 0x18]
cmp dword [eax - 0xc], 0
je 0x407472
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x407472
call fcn.0042b620
test eax, eax
je 0x407472
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
jle 0x407452
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
push ecx
mov ecx, esp
push eax
mov dword [ebp - 0xa90], ecx
call fcn.004163d0
lea ecx, [ebp - 0xa8c]
call fcn.0042b740
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], 0
cmp dword [eax - 0xc], 0
jle 0x4074fa
push ecx
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esp
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xa90], ecx
call fcn.004163d0
lea ecx, [ebp - 0xa8c]
call fcn.00428480
cmp byte [ebp - 0xa91], 0
jne 0x4074fa
xor edi, edi
nop
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
je 0x4074e9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x12c
jl 0x4074b0
jmp 0x4074f4
mov ecx, dword [ebp - 0xa98]
call fcn.004174e0
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp byte [ebp + 0x1c], 0
je 0x407584
push 0xd4
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.0058f590
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.0042dc50
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x40754f
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0xa90], ecx
call fcn.004163d0
lea ecx, [ebp - 0x100]
call fcn.00430360
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x407575
push ecx
mov ecx, esp
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0xa90], ecx
call fcn.004163d0
lea ecx, [ebp - 0x100]
call fcn.00430520
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 9
call fcn.0042e1d0
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x407674
push 0xd4
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.0058f590
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.0042dc50
push ecx
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x14]
mov ecx, esp
mov dword [ebp - 0xa90], esp
push eax
mov dword [ebp - 0xaa4], ecx
call fcn.004163d0
push ecx
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0xaa4], esp
push eax
mov dword [ebp - 0xaa0], ecx
call fcn.004163d0
push ecx
mov byte [ebp - 4], 0x11
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0xaa0], esp
push eax
mov dword [ebp - 0xa9c], ecx
call fcn.004163d0
push ecx
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0xa9c], esp
push eax
mov dword [ebp - 0xa98], ecx
call fcn.004163d0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x14]
mov dword [ebp - 0xa98], ecx
push eax
call fcn.004163d0
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xf
call fcn.00430620
push ecx
mov ecx, esp
push 0x6097b3
call fcn.004160f0
push dword [ebp - 0xaa8]
lea ecx, [ebp - 0x100]
call fcn.00430870
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 9
call fcn.0042e1d0
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push 4
push str.InstalledIE
push str.SoftwareITB
push reloc.OLEAUT32.dll_SysReAllocString
call edi
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x4076a9
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov eax, 0x609500
mov byte [ebp - 4], 0x14
test eax, 0xffff0000
jne 0x4076e5
movzx eax, ax
push eax
call fcn.004551eb
test eax, eax
je 0x407703
mov edx, 0x609500
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00415fc0
jmp 0x407700
push 0x609500
call fcn.0059e3a0
add esp, 4
lea ecx, [ebp - 0x18]
push eax
push 0x609500
call fcn.00416780
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0x15
push dword [edi - 0xc]
push edi
push 1
push str.InstallState
push str.SoftwareBrowserSafer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push 0x609514
call fcn.00405890
lea edx, [edi - 0x10]
mov byte [ebp - 4], 9
or edi, 0xffffffff
add esp, 4
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40774d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407768
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x407783
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4077a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4077bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xa8c]
call fcn.0041f5d0
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4077e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407806
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407824
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407842
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x407861
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.005892bc
mov esp, ebp
pop ebp
ret