Function at 0x50a630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
push 0xf003f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov edi, ecx
mov dword [ebp - 0x20], 0
push 2
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], 0
call fcn.004bf370
add esp, 0xc
test eax, eax
jne 0x50a674
xor esi, esi
jmp 0x50abbc
mov ecx, edi
call fcn.00503bb0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, 1
je 0x50a6e7
lea eax, [ebp - 0x18]
push eax
call fcn.004b2e00
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 8
jb 0x50a69c
mov edx, dword [edx]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x50a6d6
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a6b0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x5a3830
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 4], 8
jb 0x50a6e7
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
push 0
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.004bc8f0
mov edx, eax
add esp, 0xc
cmp dword [edx + 0x14], 8
jb 0x50a701
mov edx, dword [edx]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x50a737
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a711
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.InstallDir
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 4], 8
jb 0x50a748
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
push 1
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xd
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.QQBrowser.exe
mov word [ecx], ax
call fcn.00408679
lea eax, [ebp - 0x4c]
push eax
call fcn.004f9f40
mov ecx, eax
call fcn.004f9fa0
push eax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.004bc990
add esp, 0x10
cmp dword [ebp - 0x38], 8
jb 0x50a79e
push dword [ebp - 0x4c]
call fcn.00412895
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], 0
cmp eax, 8
jb 0x50a7c3
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x50a7fc
jmp 0x50a7c6
lea edx, [ebp - 0x18]
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x50a7d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a7d0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x5a2440
push dword [ebp - 0x24]
call ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
cmp eax, 8
jb 0x50a80a
push edx
call fcn.00412895
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.004b2d40
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 8
jb 0x50a820
mov edx, dword [edx]
test edx, edx
je 0x50a856
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a830
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Version
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 4], 8
jb 0x50a867
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.004b2f20
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 8
jb 0x50a87d
mov edx, dword [edx]
test edx, edx
je 0x50a8ac
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a886
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.CoreVersion
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 4], 8
jb 0x50a8bd
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.004bcd00
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 8
jb 0x50a8d3
mov edx, dword [edx]
test edx, edx
je 0x50a906
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a8e0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.InstallPackagePath
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 4], 8
jb 0x50a917
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
call sub.KERNEL32.dll_GetSystemDefaultLangID
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004f8e50
mov edx, eax
add esp, 8
cmp dword [edx + 0x14], 8
jb 0x50a936
mov edx, dword [edx]
test edx, edx
je 0x50a966
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a940
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.INSTLANG
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 4], 8
jb 0x50a977
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
call fcn.004b23e0
test eax, eax
jne 0x50aa03
lea esi, [edi + 0xc4]
mov ecx, esi
call fcn.004f4b80
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004f8e50
mov edx, eax
add esp, 8
cmp dword [edx + 0x14], 8
jb 0x50a9a8
mov edx, dword [edx]
test edx, edx
je 0x50a9da
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a9b1
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SupplyID
push dword [ebp - 0x24]
call ebx
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 4], 8
jb 0x50a9eb
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
mov ecx, esi
call fcn.004f5550
test al, al
je 0x50aa03
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004f4af0
jmp 0x50aa62
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x45a]
push eax
call fcn.00538910
add esp, 0xc
mov dword [ebp - 0x28], 0x104
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x45c]
push eax
push str.SubSupplyID
call fcn.0044fe91
test eax, eax
jne 0x50aa53
cmp dword [ebp - 0x28], eax
je 0x50aa53
cmp word [ebp - 0x45c], 0x23
jne 0x50aa8b
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0xc4]
call fcn.004f4620
cmp dword [eax + 0x14], 8
jb 0x50aa6a
mov eax, dword [eax]
push 1
push eax
push str.SubSupplyID
lea ecx, [ebp - 0x24]
call fcn.00461aff
cmp dword [ebp - 4], 8
jb 0x50aa8b
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
push 0
call fcn.0053b07b
mov edi, eax
mov esi, edx
xor eax, eax
mov dword [ebp - 0x34], edi
push 0x206
push eax
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x252]
push eax
mov dword [ebp - 0x30], esi
call fcn.00538910
push esi
push edi
push 0x580bc4
lea eax, [ebp - 0x254]
push 0x104
push eax
call fcn.00537692
lea ecx, [ebp - 0x254]
add esp, 0x24
lea edx, [ecx + 2]
jmp 0x50aae0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50aae0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x254]
push eax
push 1
push 0
push str.InstallTimeStamp
push dword [ebp - 0x24]
call ebx
push 0x580bd0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
call fcn.00461c4a
mov edx, dword [eax]
test edx, edx
je 0x50ab56
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x50ab30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50ab30
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.InstallTimeStr
push dword [ebp - 0x24]
call ebx
mov edx, dword [ebp - 0x28]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50ab73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 0xc4]
call fcn.004f5680
test al, al
jne 0x50abb7
push str.JoinUserExperienceImprovePlan
lea ecx, [ebp - 0x18]
call fcn.00408738
push dword [esi + 0x46c]
lea eax, [ebp - 0x18]
push eax
push 9
call fcn.004bfa00
add esp, 0xc
cmp dword [ebp - 4], 8
jb 0x50abb7
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
mov esi, 1
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x50abca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret