Function at 0x406350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e57bc
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x525060]
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.004079c0
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 0x406576
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.00401ff0
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 0x40649f
lea ecx, [edx - 1]
cmp edx, ecx
jae 0x40647b
push str.invalid_string_position
call fcn.0040bf24
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 0x4064b0
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 0x4064ee
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4064f3
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 0x406528
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 0x406530
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push 0x51435c
push ebx
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406572
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00401ed0
test ebx, ebx
je 0x406585
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.004079c0
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 0x4067b6
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.00407a30
add esp, 0xc
push 0x5142cc
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.00407a30
add esp, 0xc
push 0x15
push 0x5142e4
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 0x406674
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 0x4066b5
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 0x4066ee
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4066f3
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 0x40672c
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406731
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 0x406777
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.00401ed0
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 0x4067b2
inc eax
lea ecx, [ebp - 0x270]
push eax
push dword [ebp - 0x270]
call fcn.00401ed0
test edi, edi
je 0x4067c1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call esi
jmp 0x4067c7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4067ce
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.00412614
mov esp, ebp
pop ebp
ret