Function at 0x418250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504fdd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x562040]
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 0x4184da
cmp dword [ecx + 0x14], 7
jbe 0x4182af
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.0041c2b0
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 0x4184ab
cmp dword [edi + 0x14], 7
mov esi, dword [ebp - 0x30]
jbe 0x41830a
mov edi, dword [edi]
test edi, edi
je 0x41849e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418317
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 0x41849e
cmp dword [0x56dbbc], 7
mov edx, 0x56dba8
jbe 0x418365
mov edx, dword [0x56dba8]
test edx, edx
je 0x41849e
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 0x418370
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 0x41849e
cmp dword [ebx + 0x14], 7
jbe 0x4183a5
mov ebx, dword [ebx]
test ebx, ebx
je 0x41849e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4183b2
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 0x41849e
cmp dword [0x56dcac], 7
mov edx, 0x56dc98
jbe 0x4183fa
mov edx, dword [0x56dc98]
test edx, edx
je 0x41849e
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418400
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 0x41849e
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x14], 7
jbe 0x418433
mov edx, dword [edx]
test edx, edx
je 0x41849e
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418440
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 0x41849e
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 0x41849e
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 0x4184ab
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00414f80
test esi, esi
je 0x4184be
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.004cfcce
mov esp, ebp
pop ebp
ret
call fcn.00401690
int3