Function at 0x5059b0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 ebx, ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5059f7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.ff_postinstall
lea ecx, [ebp + 0xc]
call fcn.0045a3a0
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
push ecx
mov eax, dword [eax]
mov esi, esp
sub eax, 0x10
mov dword [ebp + 0x14], esp
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00483440
push eax
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.005056e0
mov esi, dword [ebp + 0xc]
mov edi, eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x505a6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x505d4f
mov dword [ebp + 0x14], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x505a96
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 0
push str.ffhpr_prev
push dword [ebx]
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x505b49
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xffffffff
test esi, esi
jns 0x505af6
push 0x80070057
call fcn.0045a8f0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x505b16
push esi
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x28], eax
push ecx
push eax
push str.ffhpr_prev
mov ecx, ebx
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x2c]
sete bl
call fcn.0045c070
test bl, bl
je 0x505b49
lea eax, [ebp - 0x10]
mov ecx, 0x5de07c
push eax
call fcn.00493af0
mov dword [ebp + 0x14], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x505b6c
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 3
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x505b99
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x505bc6
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 5
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x505bf3
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 6
push eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push 0
push str.ffsa_selectengine_prev
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x505c9c
cmp dword [ebp + 0x14], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xffffffff
jge 0x505c48
push 0x80070057
call fcn.0045a8f0
mov eax, dword [ebp + 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, dword [ebp + 0x14]
or ecx, edx
jge 0x505c6b
push dword [ebp + 0x14]
lea ecx, [ebp + 0x10]
call fcn.0045b530
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x28], eax
push ecx
mov ecx, dword [ebp + 8]
push eax
push str.ffsa_selectengine_prev
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x2c]
setne byte [ebp + 0xf]
call fcn.0045c070
cmp byte [ebp + 0xf], 0
je 0x505c9c
lea ecx, [ebp + 0x10]
call fcn.0045abd0
lea eax, [ebp + 0x10]
mov ecx, 0x5de07c
push eax
call fcn.004940b0
mov ecx, 0x5de07c
call fcn.00494500
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 5
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x505cd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x505cf1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x505d0e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x505d2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x505d4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.ffhpr_prev
push dword [ebx]
call esi
push str.ffsa_kwurl_prev
push dword [ebx]
call esi
push str.ffsa_selectengine_prev
push dword [ebx]
call esi
push str.ffsa_order1_prev
push dword [ebx]
call esi
push str.ffsa_defaultengine_prev
push dword [ebx]
call esi
push str.ffsa_defaultenginename_prev
push dword [ebx]
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10