Function at 0x50dbf0
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574218
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x5d6b80]
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 ebx, ecx
mov dword [ebp - 0x1c8], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1a4], ecx
lea ecx, [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x1a0], 0
push ecx
push dword [eax + 8]
call fcn.004b1660
add esp, 0xc
test eax, eax
je 0x50e047
mov esi, dword [ebp - 0x1a0]
lea eax, [ebp - 0x194]
push 0xfde9
push esi
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x198], eax
call fcn.004666a0
push esi
mov dword [ebp - 4], 0
call fcn.00525873
add esp, 4
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50dcac
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1b8], eax
push dword [0x5d63f8]
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 1
call fcn.0045a3a0
push 0
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1a0]
mov ecx, ebx
push eax
call fcn.00466310
mov edx, dword [ebp - 0x1a0]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x50dd12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1b8]
push edi
call fcn.005275fc
add esp, 4
mov dword [ebp - 0x1ac], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50dd43
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x1ac]
mov ecx, ebx
push dword [ebp - 0x198]
call fcn.0050d940
mov ebx, dword [ebp - 0x1a0]
test eax, eax
jne 0x50dd8a
mov dword [ebp - 0x1a4], 0
jmp 0x50dff0
push 0xfde9
lea eax, [ebp - 0x90]
push ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.00491750
push dword [ebp - 0x94]
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x19c], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50dde5
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x1ac]
push dword [ebp - 0x1a4]
call fcn.0050b600
mov esi, dword [ebp - 0x1b4]
add esp, 0xc
test eax, eax
je 0x50dfad
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1ac], eax
cmp eax, 0xffffffff
je 0x50dfad
push 0
lea ecx, [ebp - 0x1cc]
push ecx
push dword [ebp - 0x1b0]
push dword [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov eax, dword [ebp - 0x1a4]
push 0x2001f
push ecx
mov dword [ebp - 0x1ac], esp
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x19c], esp
push eax
mov byte [ebp - 4], 6
call fcn.0045a950
mov ecx, dword [ebp - 0x19c]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esp
mov byte [ebp - 4], 7
push str.SoftwareAskPartnerNetworkToolbarUpdater
call fcn.0045a3a0
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 6
push eax
call fcn.00516220
add esp, 0xc
lea ecx, [ebp - 0x1c4]
push dword [eax]
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov edx, dword [ebp - 0x1b0]
test eax, eax
sete byte [ebp - 0x1a5]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50df20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1a5], 0
je 0x50df51
push 4
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 1
push eax
push 4
push 0
push str.schemaIndex
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x1a4]
push ecx
mov dword [ebp - 0x19c], esp
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0045a950
mov ecx, dword [ebp - 0x19c]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
call fcn.0050a960
mov eax, dword [ebp - 0x1c4]
add esp, 4
mov byte [ebp - 4], 5
test eax, eax
je 0x50df94
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c8]
push 0
lea eax, [ecx + 0x70]
push eax
call fcn.0050ce20
mov dword [ebp - 0x1a4], eax
jmp 0x50dfb7
mov dword [ebp - 0x1a4], 0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 4
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50dfd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x50dff0
push eax
call fcn.0052616f
add esp, 4
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50e00d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x50e028
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x198]
lea ecx, [ebp - 0x194]
cmp eax, ecx
je 0x50e041
push eax
call fcn.0052616f
add esp, 4
mov eax, dword [ebp - 0x1a4]
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.00525878
mov esp, ebp
pop ebp
ret 8