Function at 0x406b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415ef3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x41d358]
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 eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x94]
push ecx
push 0x419fdc
xor ebx, ebx
push eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], ebx
call fcn.00408c99
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x406e94
mov ecx, 0x41a268
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406c1d
cmp dx, bx
je 0x406c19
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406c1d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x406bf7
xor eax, eax
jmp 0x406c22
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x406c29
mov dword [edi + 0x24], ebx
mov ecx, str._nostart
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406c56
cmp dx, bx
je 0x406c52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406c56
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x406c30
xor eax, eax
jmp 0x406c5b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x406c63
mov byte [edi + 0x28], 0
mov ecx, str._showoptionaldlg
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406c96
cmp dx, bx
je 0x406c92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406c96
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x406c70
xor eax, eax
jmp 0x406c9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406ca3
mov byte [edi + 0x29], 1
push 9
push str._channel:
push esi
call fcn.00408d77
add esp, 0xc
test eax, eax
jne 0x406e75
xor edx, edx
mov eax, esi
mov word [ebp - 0x90], dx
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406cd3
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x90]
call fcn.00403f20
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff7
push eax
mov ecx, 9
lea esi, [ebp - 0x74]
lea edx, [ebp - 0x90]
call fcn.00405df0
mov esi, eax
lea ebx, [edi + 8]
mov edi, 8
cmp ebx, esi
je 0x406d7c
cmp dword [ebx + 0x14], edi
jb 0x406d2b
mov eax, dword [ebx]
push eax
call fcn.00408630
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
cmp dword [esi + 0x14], edi
jae 0x406d57
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
push esi
push ebx
call fcn.00408640
add esp, 0xc
jmp 0x406d5d
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x14], edx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x60], edi
jb 0x406d91
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00408630
add esp, 4
mov ecx, 0x11
mov esi, str.SoftwareMicrosoftBingDictConfig
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x98]
push edx
push 0x2001f
movsw word es:[edi], word [esi]
xor edi, edi
push edi
lea eax, [ebp - 0x58]
push eax
push 0x80000001
mov dword [ebp - 0x98], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
push edi
mov word [ebp - 0x74], cx
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], edi
call fcn.004039a0
mov esi, dword [ebp - 0x98]
cmp esi, edi
jne 0x406df9
cmp dword [ebp - 0x60], 8
jb 0x406e51
mov edx, dword [ebp - 0x74]
push edx
jmp 0x406e49
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x74]
mov eax, edi
cmp ebx, 8
jae 0x406e09
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406e10
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov ecx, edi
cmp ebx, 8
jae 0x406e2d
lea ecx, [ebp - 0x74]
push eax
push ecx
push 1
push 0
push str.Channel
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x60], 8
jb 0x406e51
mov eax, dword [ebp - 0x74]
push eax
call fcn.00408630
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x7c], 8
jb 0x406e6d
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00408630
add esp, 4
mov edi, dword [ebp - 0x9c]
xor ebx, ebx
lea edx, [ebp - 0x94]
push edx
push 0x419fdc
push ebx
call fcn.00408c99
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x406bf0
cmp dword [edi + 0x24], ebx
je 0x406ec4
lea ecx, [ebp - 0x74]
call fcn.00401960
cmp dword [eax + 0x10], ebx
setne bl
cmp dword [ebp - 0x60], 8
jb 0x406eb9
mov eax, dword [ebp - 0x74]
push eax
call fcn.00408630
add esp, 4
xor ecx, ecx
test bl, bl
sete cl
inc ecx
mov dword [edi + 0x24], ecx
mov al, 1
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.004084ab
mov esp, ebp
pop ebp
ret 4