Function at 0x408e40
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44d9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4628d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408e83
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 0
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408eb5
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x38], 1
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408ee4
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x34
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 2
call fcn.00403830
mov eax, dword [ebx + 0xb8]
mov ecx, dword [eax - 0xc]
lea edi, [ebx + 0xb8]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00405830
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x408fcc
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x38], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [ebx + 0xd4]
mov eax, dword [ecx - 0xc]
lea esi, [ebx + 0xd4]
lea edx, [eax + 1]
mov eax, ecx
sub eax, 0x10
mov dword [esp + 0x1c], edx
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x409004
push edx
mov ecx, esi
call fcn.00403760
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add edx, edx
push edx
push eax
mov eax, dword [esp + 0x2c]
push 1
push 0
push str.ApplicationName
push eax
call ebp
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40903b
push ecx
push eax
call fcn.0042c4f9
add esp, 8
test eax, eax
jl 0x409311
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x409311
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea edx, [eax + 1]
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x1c], edx
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x40907f
push edx
mov ecx, esi
call fcn.00403760
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x24]
push ecx
push eax
push 1
push 0
push str.AppToUninstall
push edx
call ebp
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4090b1
push ecx
push eax
call fcn.0042c4f9
add esp, 8
test eax, eax
jl 0x409311
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x409311
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea edx, [eax + 1]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x1c], edx
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x4090f5
push edx
mov ecx, edi
call fcn.00403760
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x24]
push ecx
push eax
push 1
push 0
push str.DisplayName
push edx
call ebp
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x409127
push ecx
push eax
call fcn.0042c4f9
add esp, 8
test eax, eax
jl 0x409311
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x409311
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [ebx + 0xc4]
push eax
lea ecx, [esp + 0x24]
call fcn.00403dd0
push 0x451774
lea ecx, [esp + 0x24]
call fcn.00406dc0
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x4091b1
push 0x451770
push esi
call fcn.0042c196
add esp, 8
test eax, eax
je 0x4091b1
sub eax, esi
sar eax, 1
js 0x4091b1
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18], 0x22
mov byte [esp + 0x19], 0
call fcn.00405230
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00405830
push 0x22
lea ecx, [esp + 0x1c]
call fcn.004052c0
jmp 0x4091bf
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.00403dd0
push 1
push 0x451770
lea ecx, [esp + 0x20]
call fcn.00405830
mov eax, dword [ebx + 0xc0]
mov eax, dword [eax - 0xc]
lea esi, [ebx + 0xc0]
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00405620
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 3
call fcn.00403dd0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
cmp dword [edi - 0xc], 0
jl 0x409268
push 0x451770
push edi
call fcn.0042c196
add esp, 8
test eax, eax
je 0x409268
sub eax, edi
sar eax, 1
js 0x409268
push 0x22
lea ecx, [esp + 0x1c]
call fcn.004052c0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00405830
push 0x22
lea ecx, [esp + 0x1c]
call fcn.004052c0
jmp 0x409278
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00405830
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
lea edx, [eax + 1]
mov dword [esp + 0x1c], edx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4092a9
push edx
lea ecx, [esp + 0x1c]
call fcn.00403760
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x24]
push ecx
push esi
push 1
push 0
push str.UninstallString
push edx
call ebp
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042c4f9
add esp, 8
test eax, eax
jl 0x409311
cmp eax, dword [esi - 8]
jg 0x409311
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409309
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x408f72
push 0x80070057
call fcn.004037e0
int3