Function at 0x40a510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e71e0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53f1e4]
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 0x40a74f
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.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403e00
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 0x40a5a4
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 0x40a5fd
push str.RegWriteList
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x40a5d8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
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 0x40a5f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a751
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 0x40a676
mov dword [ebp - 0x6c], 0
add esi, dword [ebp - 0x6c]
push 0
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00403e00
push 1
mov eax, 0x506a80
mov ecx, esi
call fcn.00403f00
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 0x40a634
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 0x40a6ac
dec eax
je 0x40a6a3
dec eax
jne 0x40a6ba
push 0xe
push str.UnsetupCmdList
jmp 0x40a6b2
push 0xc
push 0x50706c
jmp 0x40a6b2
push ebx
push 0x50705c
lea ecx, [ebp - 0x64]
call fcn.00404960
mov ecx, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x40a6ca
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x40a6d5
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 0x40a6fb
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b1676
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 0x40a718
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b1676
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 0x40a735
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
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 0x40a74f
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.004b1681
mov esp, ebp
pop ebp
ret