Function at 0x406430
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5cec
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x526060]
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 esi, ecx
mov dword [ebp - 0x278], esi
push str.CInstallCtrl::SaveRegistry____r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
movq qword [ebp - 0x240], xmm0
mov ebx, reloc.WS2_32.dll_bind
mov dword [ebp - method.Registry.virtual_0], vtable.Registry.0
mov dword [ebp - 0x23c], reloc.WS2_32.dll_bind
push str.ZZDS_PC
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push str.Software_s
push eax
call fcn.00407b40
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406666
mov ebx, dword [ebp - 0x274]
lea eax, [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x238], ebx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
call fcn.00401ef0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
mov esi, dword [ebp - 0x21c]
cmp esi, 8
mov edi, dword [ebp - 0x230]
mov edx, dword [ebp - 0x220]
cmovae eax, edi
cmp word [eax + edx*2 - 2], 0x5c
jne 0x40658a
lea ecx, [edx - 1]
cmp edx, ecx
jae 0x406566
push str.invalid_string_position
call fcn.0040c614
cmp esi, 8
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x230]
cmovae eax, edi
xor edx, edx
mov word [eax + ecx*2], dx
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x230]
cmp esi, 8
lea edx, [ebp - 0x230]
cmovae edx, edi
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4065a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.InstPath
push ebx
call edi
mov edx, dword [ebp - 0x278]
add edx, 0x98
cmp dword [edx + 0x14], 8
jb 0x4065de
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4065e3
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.PackageName
push ebx
call edi
mov edx, dword [ebp - 0x278]
add edx, 0x38
cmp dword [edx + 0x14], 8
jb 0x406618
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406620
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push 0x515490
push ebx
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406662
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00401e90
test ebx, ebx
je 0x406675
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x238], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov edi, reloc.WS2_32.dll_bind
mov dword [ebp - method.Registry.virtual_0], vtable.Registry.0
mov dword [ebp - 0x220], reloc.WS2_32.dll_bind
push str.ZZDS_PC
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.00407b40
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4068a6
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x270]
mov edi, dword [ebp - 0x274]
add esi, 4
push str.ZhuanZhuan.exe
push esi
push eax
mov dword [ebp - 0x21c], edi
call fcn.00407c00
add esp, 0xc
push str.uninst.exe
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.00407c00
add esp, 0xc
push 0x15
push 0x5153f8
push 1
push 0
push str.DisplayName
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x244], 8
lea edx, [ebp - 0x258]
cmovae edx, dword [ebp - 0x258]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406764
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.UninstallString
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x25c], 8
lea edx, [ebp - 0x270]
cmovae edx, dword [ebp - 0x270]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067a5
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.DisplayIcon
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x278]
add edx, 0x50
cmp dword [edx + 0x14], 8
jb 0x4067de
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067e3
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Publisher
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x278]
add edx, 0x38
cmp dword [edx + 0x14], 8
jb 0x40681c
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406821
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.DisplayVersion
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x244]
cmp eax, 8
jb 0x406867
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.00401e90
xor eax, eax
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x248], 0
cmp eax, 8
jb 0x4068a2
inc eax
lea ecx, [ebp - 0x270]
push eax
push dword [ebp - 0x270]
call fcn.00401e90
test edi, edi
je 0x4068b1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call esi
jmp 0x4068b7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4068be
push ebx
call esi
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.00412aed
mov esp, ebp
pop ebp
ret