Function at 0x42efc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5bf094]
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]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
push 0x2001f
push reloc.WS2_32.dll_accept
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.00404ef0
push 0x20
push str.browser.search.defaultenginename
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.004028f0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
add edi, 0x1c
push ecx
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x94], edi
call fcn.00497f90
mov ecx, eax
call fcn.00497950
push 0x11
xor edx, edx
push str.DefaultEngineName
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00403510
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00416540
add esp, 0xc
mov ecx, 8
cmp dword [eax + 0x14], ecx
jb 0x42f0b2
mov esi, dword [eax]
jmp 0x42f0b4
mov esi, eax
cmp dword [ebp - 0x18], ecx
jb 0x42f0c4
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x84], edx
jmp 0x42f0cd
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x84], eax
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x42f0df
mov eax, 0xd
jmp 0x42f103
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x84]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x90]
push ecx
push esi
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x6c], 8
jb 0x42f11c
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004b8946
add esp, 4
xor edx, edx
cmp dword [ebp - 0x18], 8
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
jb 0x42f13f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jb 0x42f15d
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 1
jb 0x42f180
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b8946
add esp, 4
push 0x19
push str.browser.search.defaulturl
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004028f0
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00497f90
mov ecx, eax
call fcn.00497950
push 0xa
xor eax, eax
push str.DefaultUrl
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00403510
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.00416540
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x42f1fa
mov esi, dword [eax]
jmp 0x42f1fc
mov esi, eax
cmp dword [ebp - 0x18], 8
mov edi, dword [ebp - 0x2c]
jae 0x42f208
lea edi, [ebp - 0x2c]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x42f21a
mov eax, 0xd
jmp 0x42f238
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x90]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x42f255
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x18], esi
jb 0x42f277
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b8946
add esp, 4
xor edx, edx
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
jb 0x42f295
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b8946
add esp, 4
cmp dword [ebp - 0x34], 0x10
mov esi, 0xf
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 1
jb 0x42f2b9
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b8946
add esp, 4
push 0x1d
push str.browser.search.selectedEngine
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004028f0
mov ecx, dword [ebp - 0x94]
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xa
call fcn.00497f90
mov ecx, eax
call fcn.00497950
xor ecx, ecx
push 0xe
mov word [ebp - 0x2c], cx
push str.SelectedEngine
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00403510
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.00416540
add esp, 0xc
mov ecx, 8
cmp dword [eax + 0x14], ecx
jb 0x42f337
mov esi, dword [eax]
jmp 0x42f339
mov esi, eax
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ecx
jae 0x42f344
lea edi, [ebp - 0x2c]
cmp esi, ebx
jne 0x42f355
mov esi, dword [ebp - 0x90]
mov eax, 0xd
jmp 0x42f373
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
mov esi, dword [ebp - 0x90]
push 1
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x6c], 8
jb 0x42f38c
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
jb 0x42f3af
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b8946
add esp, 4
mov dword [ebp - 0x18], edi
xor edx, edx
mov edi, 0x10
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], edi
jb 0x42f3d1
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b8946
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x34], edi
jb 0x42f3ef
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b8946
add esp, 4
cmp esi, ebx
je 0x42f3fa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004b92b7
mov esp, ebp
pop ebp
ret 4