Function at 0x40ba00
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c810
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x461fec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x24]
call fcn.00401880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401880
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00401880
mov byte [ebp - 4], 4
xor eax, eax
mov word [ebp - 0x20], ax
push 1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x150]
push edx
call fcn.0041db30
add esp, 8
push eax
lea ecx, [ebp - 0x24]
call fcn.004018c0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x4c8]
call fcn.0040cc40
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004018a0
push 0x450f88
lea ecx, [ebp - 0x18]
call fcn.00401920
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00421c90
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004018a0
push 0x120
lea ecx, [ebp - 0x28]
call fcn.004018e0
movzx ecx, byte [0x45445d]
push ecx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401920
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0042d681
lea ecx, [ebp - 0x2c]
call fcn.00401920
push eax
lea ecx, [ebp - 0x18]
call fcn.00401920
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00421c90
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.004018a0
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bbde
mov ecx, 0x33
mov word [ebp - 0x3a], cx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004018a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004018a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004018a0
mov ax, word [ebp - 0x3a]
jmp 0x40bd93
lea edx, [ebp - 0x1c]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x24]
call fcn.00401920
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bc13
lea ecx, [ebp - 0x24]
call fcn.00401920
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00401920
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40bc98
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x33
mov word [ebp - 0x3c], dx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004018a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004018a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004018a0
mov ax, word [ebp - 0x3c]
jmp 0x40bd93
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x24]
call fcn.00401db0
push eax
lea ecx, [ebp - 0x24]
call fcn.00401920
push eax
push 1
push 0
push str.DisplayName
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bcda
mov eax, 0x33
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x2c]
call fcn.00401db0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401920
push eax
push 1
push 0
push str.DisplayIcon
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bd0c
mov edx, 0x33
mov word [ebp - 0x20], dx
lea ecx, [ebp - 0x14]
call fcn.00401db0
push eax
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
push 1
push 0
push str.UninstallString
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bd3e
mov ecx, 0x33
mov word [ebp - 0x20], cx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [ebp - 0x20]
mov word [ebp - 0x3e], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004018a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004018a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004018a0
mov ax, word [ebp - 0x3e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret