Function at 0x45b450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce3d7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4fe0a8]
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.00404d50
mov ecx, eax
test ecx, ecx
je 0x45b7ac
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.0041a070
add esp, 0xc
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x45b7b6
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.0041a070
mov edi, dword [ebp - 0x1c]
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov edx, esi
push str.XDCadViewer
push edi
call fcn.0045a530
push str.ApplicationName
push str.XDCadViewer
mov edx, edi
call fcn.0045a530
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 2
push eax
mov edx, 0x4e27a0
lea ecx, [ebp - 0x34]
call fcn.0045d080
push str.___0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00452a10
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 0x45b569
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.0045a530
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 0x45b59b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ApplicationDescription
push 0x4e7548
mov edx, edi
call fcn.0045a530
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.00404d50
mov ecx, eax
test ecx, ecx
je 0x45b7c0
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.0041a070
push ecx
push dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0045a360
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
cmp ebx, eax
je 0x45b728
push ebx
mov edx, str.XDCadViewer.
lea ecx, [ebp - 0x34]
call fcn.0045d080
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 0x45b65f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x45b675
call fcn.00404d50
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x45b7ac
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, 0x4e2a60
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
push dword [eax - 0xc]
push eax
push 1
call fcn.00452be0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x45b6da
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x2c], edx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x45b6b3
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 0x45b6fa
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 0x45b719
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, dword [ebp - 0x3c]
jne 0x45b626
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 0x45b749
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x45b757
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 0x45b772
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 0x45b78e
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.0049d3dd
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
int3