Function at 0x499730
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc370
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 5
lea ebx, [esi + 0x14]
jb 0x499778
mov eax, dword [ebx]
mov ecx, ebx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.004999b0
cmp dword [esi + 0x18], 5
jae 0x499763
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push esi
push ecx
push eax
mov ecx, ebx
call fcn.0049a070
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x49979d
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov edi, dword [ebx]
mov edi, dword [edi]
cmp edi, dword [ebx]
je 0x49986d
nop dword [eax + eax]
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
je 0x499793
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 0x4fc504
push eax
call fcn.00421db0
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.0041c490
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49981f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xd], 0
jne 0x499862
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
jne 0x499844
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
jne 0x499862
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x499838
jmp 0x499862
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x499860
nop dword [eax]
cmp edi, dword [eax + 8]
jne 0x499860
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x499850
mov edi, eax
cmp edi, dword [ebx]
jne 0x4997c0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push dword [eax]
call fcn.004918f0
test eax, eax
jne 0x4998c2
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4998a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00491980
test eax, eax
jne 0x4998c9
lea ebx, [eax + 1]
jmp 0x4998cb
mov ebx, 2
jmp 0x4998cb
xor ebx, ebx
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 0x499952
xor edi, edi
test eax, eax
je 0x499944
mov edx, esi
lea ecx, [edx + 2]
mov dword [ebp + 0xc], ecx
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x499910
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 0x499955
or ebx, 8
test eax, eax
je 0x499960
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x499975
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 0x499994
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