Function at 0x4181b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507afd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x565040]
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 edi, edx
mov eax, dword [ebp + 0x14]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
mov eax, 0x7ffffffe
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 0x34
jb 0x41843a
cmp dword [ecx + 0x14], 7
jbe 0x41820f
mov ecx, dword [ecx]
push edx
push ecx
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0041b880
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push 0
push 0x2001f
push 0
push 0
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41840b
cmp dword [edi + 0x14], 7
mov esi, dword [ebp - 0x30]
jbe 0x41826a
mov edi, dword [edi]
test edi, edi
je 0x4183fe
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418277
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.DisplayName
push esi
call edi
test eax, eax
jne 0x4183fe
cmp dword [0x570bd4], 7
mov edx, 0x570bc0
jbe 0x4182c5
mov edx, dword [0x570bc0]
test edx, edx
je 0x4183fe
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4182d0
sub ecx, dword [ebp - 0x30]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DisplayIcon
push esi
call edi
test eax, eax
jne 0x4183fe
cmp dword [ebx + 0x14], 7
jbe 0x418305
mov ebx, dword [ebx]
test ebx, ebx
je 0x4183fe
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418312
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push str.Publisher
push esi
call edi
test eax, eax
jne 0x4183fe
cmp dword [0x570cc4], 7
mov edx, 0x570cb0
jbe 0x41835a
mov edx, dword [0x570cb0]
test edx, edx
je 0x4183fe
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418360
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.InstallLocation
push esi
call edi
test eax, eax
jne 0x4183fe
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x14], 7
jbe 0x418393
mov edx, dword [edx]
test edx, edx
je 0x4183fe
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4183a0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.UninstallString
push esi
call edi
test eax, eax
jne 0x4183fe
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 4
push 0
push str.NoModify
push esi
call edi
test eax, eax
jne 0x4183fe
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 4
push 0
push str.NoRepair
push esi
call edi
test esi, esi
je 0x41840b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00415000
test esi, esi
je 0x41841e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004d2bfe
mov esp, ebp
pop ebp
ret
call fcn.00401610
int3