Function at 0x5166a1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
push ebx
push edi
push 0xf003f
xor ebx, ebx
lea eax, [ebp - 0x14]
mov edi, ecx
mov dword [ebp - 0x14], ebx
push 2
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.005aace0
add esp, 0xc
test eax, eax
je 0x516bb1
mov ecx, edi
call fcn.00510711
cmp eax, 1
je 0x5167b6
lea eax, [ebp - 0x30]
push eax
call fcn.005b6210
lea eax, [ebp - 0x60]
push eax
call fcn.005b6150
pop ecx
pop ecx
push str.11.4.5234.400
lea ecx, [ebp - 0x48]
call fcn.0040921d
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044922a
pop ecx
pop ecx
test eax, eax
jg 0x516738
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 1
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
push eax
push 0x606938
call fcn.004b5be8
jmp 0x51679e
cmp dword [ebp - 0x50], ebx
je 0x51679e
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push 1
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x14]
push eax
push 0x606938
call fcn.004b5be8
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.004108f3
test al, al
jne 0x51679e
push 0x5f9b84
lea ecx, [ebp - 0x80]
call fcn.0040921d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push 0xfa0
push 0x1fc5
call fcn.004c9830
add esp, 0x20
lea ecx, [ebp - 0x80]
call fcn.00403f80
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea ecx, [ebp - 0x60]
call fcn.00403f80
lea ecx, [ebp - 0x30]
call fcn.00403f80
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.005ad3a0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x5167cc
mov eax, dword [eax]
push esi
xor esi, esi
lea ecx, [ebp - 0x14]
inc esi
push esi
push eax
push str.InstallDir
call fcn.004b5be8
lea ecx, [ebp - 0x48]
call fcn.00403f80
push ebx
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.00510a4e
cmp dword [eax + 0x14], 8
jb 0x5167fb
mov eax, dword [eax]
push esi
push eax
push 0x5ffa88
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea eax, [edi + 0x7d4]
cmp dword [eax + 0x14], 8
jb 0x516820
mov eax, dword [eax]
push esi
push eax
push str.Version
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea eax, [ebp - 0x48]
push eax
call fcn.005b6000
pop ecx
cmp dword [eax + 0x14], 8
jb 0x516841
mov eax, dword [eax]
push esi
push eax
push str.CoreVersion
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea eax, [ebp - 0x48]
push eax
call fcn.005ad130
pop ecx
cmp dword [eax + 0x14], 8
jb 0x51686a
mov eax, dword [eax]
push esi
push eax
push str.InstallPackagePath
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea ecx, [ebp - 0x48]
call fcn.00403f80
call fcn.005b6ab0
movzx eax, ax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0050b050
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
pop ecx
cmovae eax, dword [ebp - 0x30]
pop ecx
push esi
push eax
push str.INSTLANG
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea ecx, [ebp - 0x30]
call fcn.00403f80
mov esi, 0x5d47d8
push esi
call fcn.00553a47
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push str.ListenStatusControl
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 1], 1
call fcn.005b6d70
mov esi, eax
push esi
push str.S_MRpenc
push 2
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0x10
test esi, esi
jne 0x5169ee
lea ecx, [edi + 0xd4]
call fcn.00504c76
mov esi, eax
push esi
push 0x5d4824
push 2
call fcn.005bb560
push eax
call fcn.005bb420
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.0050b050
add esp, 0x18
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x14]
cmovae eax, dword [ebp - 0x30]
push 1
push eax
push str.SupplyID
call fcn.004b5be8
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea esi, [edi + 0xd4]
mov ecx, esi
call fcn.00505793
test al, al
je 0x5169b3
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push ebx
push 0x5d4840
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00504c2a
cmp dword [eax + 0x14], 8
jb 0x516998
mov eax, dword [eax]
push 1
push eax
push 0x5d4854
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea ecx, [ebp - 0x48]
call fcn.00403f80
mov byte [ebp - 1], bl
mov ecx, esi
call fcn.00504c80
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0050b050
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
pop ecx
cmovae eax, dword [ebp - 0x30]
pop ecx
push 1
push eax
push str.UniSupplyID
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea ecx, [ebp - 0x30]
call fcn.00403f80
cmp byte [ebp - 1], bl
je 0x516a66
push 0x208
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.00548bf0
add esp, 0xc
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
mov esi, 0x5d4854
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x490]
push eax
push esi
call fcn.0044a4ca
test eax, eax
jne 0x516a3b
cmp dword [ebp - 8], ebx
je 0x516a36
cmp word [ebp - 0x490], 0x23
jne 0x516a66
cmp byte [ebp - 1], bl
je 0x516a66
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0xd4]
call fcn.00503fc4
cmp dword [eax + 0x14], 8
jb 0x516a52
mov eax, dword [eax]
push 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004b5be8
lea ecx, [ebp - 0x48]
call fcn.00403f80
push ebx
call fcn.00579c00
mov edi, eax
mov dword [esp], 0x208
lea eax, [ebp - 0x288]
mov dword [ebp - 0x68], edi
mov esi, edx
push ebx
push eax
mov dword [ebp - 0x64], esi
call fcn.00548bf0
push esi
push edi
push str._lld
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.0040bb95
lea eax, [ebp - 0x288]
push eax
call fcn.00553a47
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x24
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x288]
push eax
push 1
push ebx
push str.InstallTimeStamp
push dword [ebp - 0x14]
call edi
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x68]
call fcn.004b5df4
push 1
lea ecx, [ebp - 0x14]
push dword [eax]
push str.InstallTimeStr
call fcn.004b5be8
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0040c134
mov esi, dword [ebp - 0x18]
lea ecx, [esi + 0xd4]
call fcn.005058c4
test al, al
jne 0x516b3b
push str.JoinUserExperienceImprovePlan
lea ecx, [ebp - 0x48]
call fcn.0040921d
push dword [esi + 0x748]
lea eax, [ebp - 0x48]
push eax
push 9
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x4c], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareTencentQQBrowserSpeedUp
push SysReAllocString
mov esi, ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x516ba2
mov esi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
push str.NeedImport_Preloaded
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], esi
mov dword [ebp - 8], ebx
call fcn.004bdb10
cmp dword [ebp - 8], ebx
jne 0x516ba2
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
push 4
push ebx
push str.NeedImport_Preloaded
push esi
call edi
xor ebx, ebx
inc ebx
test esi, esi
je 0x516bb0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp dword [ebp - 0x14], 0
je 0x516bc0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret