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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503d78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x53f030]
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.004c1bb0
add esp, 0xc
test eax, eax
je 0x4c5557
mov esi, dword [ebp - 0x1a0]
lea eax, [ebp - 0x194]
push 0xfde9
push esi
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x198], eax
call fcn.00445c90
push esi
mov dword [ebp - 4], 0
call fcn.004d89f6
add esp, 4
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c51bc
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1b8], eax
push dword [0x53eab4]
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 1
call fcn.0043a420
push 0
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1a0]
mov ecx, ebx
push eax
call fcn.00445900
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 0x4c5222
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1b8]
push edi
call fcn.004dad74
add esp, 4
mov dword [ebp - 0x1ac], eax
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c5253
push 0x80004005
call fcn.0043a9b0
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.004c4e50
mov ebx, dword [ebp - 0x1a0]
test eax, eax
jne 0x4c529a
mov dword [ebp - 0x1a4], 0
jmp 0x4c5500
push 0xfde9
lea eax, [ebp - 0x90]
push ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.00465ce0
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.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c52f5
push 0x80004005
call fcn.0043a9b0
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.004c28c0
mov esi, dword [ebp - 0x1b4]
add esp, 0xc
test eax, eax
je 0x4c54bd
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 0x4c54bd
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.0043a9d0
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.0043a420
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 6
push eax
call fcn.004c4580
add esp, 0xc
lea ecx, [ebp - 0x1c4]
push dword [eax]
push reloc.WS2_32.dll_accept
call fcn.0043b290
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 0x4c5430
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1a5], 0
je 0x4c5461
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.0043a9d0
mov ecx, dword [ebp - 0x19c]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
call fcn.004c1c20
mov eax, dword [ebp - 0x1c4]
add esp, 4
mov byte [ebp - 4], 5
test eax, eax
je 0x4c54a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c8]
push 0
lea eax, [ecx + 0x70]
push eax
call fcn.004c40e0
mov dword [ebp - 0x1a4], eax
jmp 0x4c54c7
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 0x4c54e7
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 0x4c5500
push eax
call fcn.004d92bb
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 0x4c551d
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 0x4c5538
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 0x4c5551
push eax
call fcn.004d92bb
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.004d89fb
mov esp, ebp
pop ebp
ret 8