Function at 0x460570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d16b7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5020a8]
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 ebx, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], 0
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x4608cc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str.Capabiliti
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push str.SOFTWAREXDCadViewer_ses
push eax
call fcn.0041a0f0
add esp, 0xc
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x4608d6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.eredApplic
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push str.SOFTWARERegist_sations
push eax
call fcn.0041a0f0
mov edi, dword [ebp - 0x1c]
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov edx, esi
push str.XDCadViewer
push edi
call fcn.0045f650
push str.ApplicationName
push str.XDCadViewer
mov edx, edi
call fcn.0045f650
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 2
push eax
mov edx, 0x4e5a10
lea ecx, [ebp - 0x34]
call fcn.00453db0
push str.___0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00453e90
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x34]
add esp, 8
mov dword [ebp - 0x38], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460689
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ApplicationIcon
push dword [ebp - 0x14]
mov edx, edi
call fcn.0045f650
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4606bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ApplicationDescription
push 0x4ea068
mov edx, edi
call fcn.0045f650
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 4
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x4608e0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.Associati
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push str._sFile_sons
push eax
call fcn.0041a0f0
push ecx
push dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0045f480
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
cmp ebx, eax
je 0x460848
push ebx
mov edx, str.XDCadViewer.
lea ecx, [ebp - 0x34]
call fcn.00453db0
mov esi, dword [ebp - 0x30]
add esp, 4
or esi, 2
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 7
mov eax, dword [ebx]
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x46077f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x460795
call fcn.00404de0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4608cc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
or esi, 4
mov eax, dword [ebx]
mov edx, 0x4e5cd0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
push dword [eax - 0xc]
push eax
push 1
call fcn.00454060
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x4607fa
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x2c], edx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4607d3
sub ecx, dword [ebp - 0x2c]
sar ecx, 1
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
and dword [ebp - 0x30], 0xfffffffb
add esi, 0xfffffff0
mov byte [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46081a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460839
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, dword [ebp - 0x3c]
jne 0x460746
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460869
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x460877
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x460892
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4608ae
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.0049fe2d
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404bc0
push 0x80004005
call fcn.00404bc0
push 0x80004005
call fcn.00404bc0
int3