Function at 0x461850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567c3c
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xa0]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 4], ebx
call fcn.0042dae0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042dca0
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
call fcn.0042da60
add esp, 4
push eax
add esi, 0xcc
lea eax, [ebp - 0x68]
push esi
push eax
mov byte [ebp - 4], 3
call fcn.00405c30
add esp, 0xc
mov edi, 8
cmp dword [ebp - 0x38], edi
jb 0x4618ea
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b8946
add esp, 4
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
push 0x2001f
push reloc.WS2_32.dll_accept
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.00404ef0
push 0x10
xor eax, eax
push str.DefaultSearchUrl
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
call fcn.00403510
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00416540
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x461963
mov esi, dword [eax]
jmp 0x461965
mov esi, eax
cmp dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x30]
jae 0x461970
lea edi, [ebp - 0x30]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x461988
mov ebx, dword [ebp - 0xac]
mov eax, 0xd
jmp 0x4619a6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
mov ebx, dword [ebp - 0xac]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x38], 8
jb 0x4619bf
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b8946
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [ebp - 0x1c], 8
mov esi, 7
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], dx
mov byte [ebp - 4], 7
jb 0x4619e8
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
push 8
mov word [ebp - 0x30], cx
push str.HomePage
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
call fcn.00403510
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.00416540
add esp, 0xc
mov ecx, 8
cmp dword [eax + 0x14], ecx
jb 0x461a2f
mov esi, dword [eax]
jmp 0x461a31
mov esi, eax
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ecx
jae 0x461a3c
lea edi, [ebp - 0x30]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x461a4e
mov eax, 0xd
jmp 0x461a67
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 8
cmp dword [ebp - 0x38], edi
jb 0x461a84
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b8946
add esp, 4
xor esi, esi
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], edi
jb 0x461aab
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004b8946
add esp, 4
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0x68]
push edx
call fcn.0042efc0
cmp ebx, esi
je 0x461ac5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x54], edi
jb 0x461ad6
mov eax, dword [ebp - 0x68]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
mov edi, 0x10
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x70], edi
jb 0x461aff
mov edx, dword [ebp - 0x84]
push edx
call fcn.004b8946
add esp, 4
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], esi
mov byte [ebp - 0x84], 0
cmp dword [ebp - 0x8c], edi
jb 0x461b27
mov eax, dword [ebp - 0xa0]
push eax
call fcn.004b8946
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret