Function at 0x49a960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510e75
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], 5
jb 0x49a9b0
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x14]
push dword [eax]
call fcn.0049af90
push 0x14
push eax
call fcn.004de0ea
add esp, 8
cmp dword [esi + 0x18], 5
jae 0x49a992
lea edi, [esi + 0x14]
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edi
push eax
mov ecx, edi
call fcn.0049b3e0
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x49abd0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov edi, dword [eax]
cmp edi, eax
je 0x49aa9d
nop
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x49abd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x10]
xor eax, 0xf1f1f1
push eax
lea eax, [ebp - 0x18]
push 0x539cc8
push eax
call fcn.0048d020
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.0048c830
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49aa53
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
je 0x49aa79
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x49aa75
cmp edi, dword [eax + 8]
jne 0x49aa75
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x49aa65
mov edi, eax
jmp 0x49aa8f
mov edi, eax
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x49aa8f
mov eax, dword [ecx]
mov edi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x49aa83
mov eax, dword [ebp - 0x24]
cmp edi, dword [eax]
jne 0x49a9f0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
push 0x80
push 2
push 1
push 0
mov byte [ebp - 4], 2
push dword [eax]
call fcn.004919f0
test eax, eax
jne 0x49aaf2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49aad0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00491c80
test eax, eax
jne 0x49aaf7
lea ebx, [eax + 1]
jmp 0x49aaf7
mov ebx, 2
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentReport
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x49ab78
xor edi, edi
test eax, eax
je 0x49ab6a
mov edx, esi
lea ecx, [edx + 2]
mov dword [ebp + 0xc], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x49ab36
sub edx, dword [ebp + 0xc]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push esi
push 1
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0x14]
cmove edi, ecx
mov ecx, ebx
or ecx, 4
test edi, edi
cmovne ecx, ebx
mov ebx, ecx
jmp 0x49ab7b
or ebx, 8
test eax, eax
je 0x49ab86
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x49ab9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49abba
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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
push 0x80004005
call fcn.00450260
int3