Function at 0x409590
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4259f0
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallhao123desk
push SysReAllocString
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4095e5
xor eax, eax
pop edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [0x432844]
push ebp
push esi
mov ecx, 0x432844
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x4285f0
mov dword [esp + 0x24], 0
call fcn.004195c1
add esp, 4
push eax
push 0x4285f0
lea ecx, [esp + 0x1c]
call fcn.004021e0
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403c80
push 0x4285f0
call fcn.004195c1
add esp, 4
push eax
push 0x4285f0
lea ecx, [esp + 0x1c]
call fcn.00403c80
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push 0
push str.DisplayIcon
push ecx
call esi
push str.Hao123
call fcn.004195c1
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push edx
push str.Hao123
push 1
push 0
push str.DisplayName
push eax
call esi
push str.1.0.0.1097
call fcn.004195c1
mov edx, dword [esp + 0x10]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push str.1.0.0.1097
push 1
push 0
push str.DisplayVersion
push edx
call esi
push str.http:__www.hao123.com_desk.html
call fcn.004195c1
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push str.http:__www.hao123.com_desk.html
push 1
push 0
push str.HelpLink
push ecx
call esi
push 0x4280f8
call fcn.004195c1
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push edx
push 0x4280f8
push 1
push 0
push str.Publisher
push eax
call esi
mov edx, dword [0x432844]
mov ecx, 0x432844
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x4285f0
mov byte [esp + 0x24], 1
call fcn.004195c1
add esp, 4
push eax
push 0x4285f0
lea ecx, [esp + 0x18]
call fcn.004021e0
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403c80
push 0x4285e8
call fcn.004195c1
add esp, 4
push eax
push 0x4285e8
lea ecx, [esp + 0x18]
call fcn.00403c80
push str.uninstall
call fcn.004195c1
add esp, 4
push eax
push str.uninstall
lea ecx, [esp + 0x18]
call fcn.00403c80
mov edi, dword [esp + 0x10]
push edi
call fcn.004195c1
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.UninstallString
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebp
jg 0x4097fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x18
ret