Function at 0x409310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4780e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x497650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x534], 0x10
lea eax, [ebx + 0x520]
mov dword [ebp - 0x20], eax
jb 0x40936b
mov eax, dword [eax]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea edi, [ebp - 0x14]
call fcn.004025a0
mov esi, dword [ebp - 0x14]
add esp, 8
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edx, [eax + 0x10]
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x51c]
lea eax, [ecx - 0x10]
lea edi, [edx - 0x10]
cmp eax, edi
je 0x409413
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x409407
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x409407
call fcn.004026b0
mov dword [ebp - 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4093fc
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x409413
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x10]
call fcn.00401e40
push str.uninstall.exe
mov eax, 0xe
lea ebx, [ebp - 0x10]
call fcn.00401cc0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x51c]
sub eax, 0x10
call fcn.004026b0
add eax, 0x10
mov dword [ebp + 8], eax
push str.uninstall.ico
mov eax, 0xe
lea ebx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00401cc0
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [edi + 0x530]
jb 0x409463
mov ecx, dword [ecx]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push eax
push ecx
push 1
push str.DisplayName
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push 1
push str.UninstallString
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx - 0xc]
push eax
push ebx
push 1
push str.DisplayIcon
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4094c8
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40950e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4