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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5ccc
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.00407b60
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 0x406688
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 0x4065ba
lea ecx, [edx - 1]
cmp edx, ecx
jae 0x406596
push str.invalid_string_position
call fcn.0040c624
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 0x4065d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
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 0x40660a
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406610
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
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 0x406641
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406646
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push 0x5154a4
push ebx
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406684
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00401e90
test ebx, ebx
je 0x406697
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.00407b60
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 0x4068c1
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.00407c20
add esp, 0xc
push str.uninst.exe
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.00407c20
add esp, 0xc
push 0x14
push 0x51540c
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 0x406786
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
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 0x4067c3
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
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 0x4067f8
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 0x406800
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
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 0x406835
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406840
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
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 0x406882
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 0x4068bd
inc eax
lea ecx, [ebp - 0x270]
push eax
push dword [ebp - 0x270]
call fcn.00401e90
test edi, edi
je 0x4068cc
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call esi
jmp 0x4068d2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4068d9
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.00412b06
mov esp, ebp
pop ebp
ret