Function at 0x418370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x564040]
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 0x4185fa
cmp dword [ecx + 0x14], 7
jbe 0x4183cf
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.0041c3f0
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 0x4185cb
cmp dword [edi + 0x14], 7
mov esi, dword [ebp - 0x30]
jbe 0x41842a
mov edi, dword [edi]
test edi, edi
je 0x4185be
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418437
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 0x4185be
cmp dword [0x56fc14], 7
mov edx, 0x56fc00
jbe 0x418485
mov edx, dword [0x56fc00]
test edx, edx
je 0x4185be
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 0x418490
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 0x4185be
cmp dword [ebx + 0x14], 7
jbe 0x4184c5
mov ebx, dword [ebx]
test ebx, ebx
je 0x4185be
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4184d2
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 0x4185be
cmp dword [0x56fd04], 7
mov edx, 0x56fcf0
jbe 0x41851a
mov edx, dword [0x56fcf0]
test edx, edx
je 0x4185be
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418520
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 0x4185be
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x14], 7
jbe 0x418553
mov edx, dword [edx]
test edx, edx
je 0x4185be
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418560
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 0x4185be
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 0x4185be
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 0x4185cb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00415020
test esi, esi
je 0x4185de
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.004d1b1e
mov esp, ebp
pop ebp
ret
call fcn.00401630
int3