Function at 0x40f5a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5777a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor edi, edi
lea ebx, [esp + 0x1c]
call fcn.00407850
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str.kuninstall.exe
mov dword [esp + 0x4c], edi
call fcn.00404150
add esp, 8
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f60e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
lea edi, [esp + 0x1c]
mov byte [esp + 0x44], 3
call fcn.0040e860
mov edi, dword [eax]
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ebp
je 0x40f635
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
lea ecx, [esp + 0x18]
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x40f65d
mov esi, 1
mov eax, dword [esp + 0x1c]
cmp esi, ebp
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f684
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov eax, dword [esp + 0x14]
je 0x40f6c5
cmp eax, ebp
je 0x40f697
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f851
cmp eax, ebp
je 0x40f6f2
push 0x16
push str._filepath_
push 1
push ebp
push str.DisplayIcon
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebp
je 0x40f720
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40f6f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f851
push 0x5c4510
lea edi, [esp + 0x24]
call fcn.00401150
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x40f73c
mov edi, dword [eax + 4]
jmp 0x40f73f
lea edi, [eax + 4]
push str.DisplayName
lea eax, [esp + 0x18]
call fcn.0040e810
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x40f79d
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40f76f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f851
push str.DisplayVersion
mov edi, str.3.0.0.1
lea eax, [esp + 0x18]
call fcn.0040e810
test eax, eax
jne 0x40f7ea
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40f7c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f851
push str.Publisher
mov edi, 0x5c3a38
lea eax, [esp + 0x18]
call fcn.0040e810
test eax, eax
jne 0x40f816
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40f810
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
jmp 0x40f848
push str.URLInfoAbout
mov edi, 0x5c39ac
lea eax, [esp + 0x18]
call fcn.0040e810
test eax, eax
je 0x40f83f
mov edi, dword [esp + 0x18]
push str.UninstallString
lea eax, [esp + 0x18]
call fcn.0040e810
lea esi, [esp + 0x14]
call fcn.00403b60
lea eax, [esp + 0x18]
call fcn.00401b90
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret