Function at 0x500c20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572e60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x500c66
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
lea ecx, [edi + 0x78]
call fcn.004ecca0
or ebx, 0xffffffff
test eax, eax
je 0x500d27
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.0045a950
lea esi, [eax + 0x10]
push esi
call fcn.005275fc
add esi, 0xfffffff0
add esp, 8
mov ebx, eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x500cc6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
cmp esi, 0xfffffff4
jl 0x500ce1
cmp esi, 0xfffffff6
jle 0x500d1c
test esi, esi
jne 0x500ce1
lea eax, [ebx + 8]
cmp eax, 3
ja 0x500ce1
mov esi, ebx
or ebx, 0xffffffff
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x144]
push dword [eax]
call fcn.004e0110
test eax, eax
je 0x500d36
cmp esi, 1
jne 0x500d2c
cmp dword [eax + 4], 0
mov esi, 0xffffffec
mov ecx, 5
cmovne esi, ecx
jmp 0x500d36
lea eax, [ebx + 0xc]
cmp eax, 2
cmovbe esi, ebx
jmp 0x500ce1
mov esi, dword [ebp + 0x10]
jmp 0x500ce4
test esi, esi
mov eax, 0xffffffeb
cmovle esi, eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x174]
push dword [eax]
call fcn.004e0110
test eax, eax
je 0x500d61
cmp esi, 1
mov eax, 6
cmove esi, eax
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.004e6ce0
add esp, 8
push eax
push dword [ebp + 8]
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 1
call fcn.004ed030
mov edx, dword [ebp + 0x10]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x500d9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push 2
push dword [edi + 0x204]
mov dword [ebp + 0x10], esi
mov eax, dword [ebx]
push reloc.WS2_32.dll_accept
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0045b220
test eax, eax
mov eax, dword [ebp - 0x24]
jne 0x500df1
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x500dfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.ie_browserRestarted
push dword [ebx]
call fcn.00526fc5
add esp, 8
test eax, eax
je 0x500e5d
push str.ff_browserRestarted
push dword [ebx]
call fcn.00526fc5
add esp, 8
test eax, eax
je 0x500e5d
push str.cr_browserRestarted
push dword [ebx]
call fcn.00526fc5
add esp, 8
test eax, eax
je 0x500e5d
mov eax, dword [edi + 0x280]
test eax, eax
je 0x500e44
cmp eax, 1
jne 0x500e5d
xor eax, eax
lea ecx, [edi + 0x238]
cmp esi, 0xfffffffd
setne al
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.004ff810
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x500e81
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 esp, ebp
pop ebp
ret 0xc