Function at 0x4056a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e405c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x523060]
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
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.00406e00
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 0x4058c6
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.00402020
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 0x4057ef
lea ecx, [edx - 1]
cmp edx, ecx
jae 0x4057cb
push str.invalid_string_position
call fcn.0040ab56
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405800
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 0x40583e
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405843
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 0x405878
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 0x405880
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push 0x513234
push ebx
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4058c2
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00401ec0
test ebx, ebx
je 0x4058d5
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.00406e00
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 0x405b06
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.00406cf0
add esp, 0xc
push str.uninst.exe
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.00406cf0
add esp, 0xc
push 0x15
push 0x51319c
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 0x4059c4
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 0x405a05
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 0x405a3e
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a43
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 0x405a7c
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a81
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 0x405ac7
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.00401ec0
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 0x405b02
inc eax
lea ecx, [ebp - 0x270]
push eax
push dword [ebp - 0x270]
call fcn.00401ec0
test edi, edi
je 0x405b11
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call esi
jmp 0x405b17
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x405b1e
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.0041141b
mov esp, ebp
pop ebp
ret