Function at 0x409dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1320
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x54b1b4]
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 [edi]
mov esi, ecx
cmp eax, dword [edi + 4]
je 0x40a00f
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
push 0x34
mov word [ebp - 0x2c], cx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00408440
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407350
movzx eax, byte [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x409e64
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x68]
push edx
push eax
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409ebd
push str.RegWriteList
call fcn.004085f0
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x409e98
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x409eb6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a011
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 2
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409f36
mov dword [ebp - 0x6c], 0
add esi, dword [ebp - 0x6c]
push 0
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00407350
push 1
mov eax, 0x5104e8
mov ecx, esi
call fcn.00407450
mov esi, dword [edi]
mov ecx, dword [edi + 4]
add dword [ebp - 0x6c], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x409ef4
mov ebx, 7
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
mov eax, dword [ebp + 8]
sub eax, edi
mov byte [ebp - 4], 3
je 0x409f6c
dec eax
je 0x409f63
dec eax
jne 0x409f7a
push 0xe
push str.UnsetupCmdList
jmp 0x409f72
push 0xc
push 0x5113b4
jmp 0x409f72
push ebx
push 0x5113a4
lea ecx, [ebp - 0x64]
call fcn.00408440
mov ecx, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x409f8a
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x409f95
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x38]
add edx, edx
push edx
push ecx
push 1
push edi
push eax
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x50], esi
jb 0x409fbb
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004ba3a4
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jb 0x409fd8
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x409ff5
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
cmp eax, edi
je 0x40a00f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.004ba3af
mov esp, ebp
pop ebp
ret