Function at 0x40b510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479d2e
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4a3140]
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
push 0x33
xor eax, eax
mov edi, 7
xor esi, esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], ax
call fcn.004042f0
mov dword [ebp - 4], esi
xor ecx, ecx
push 0x34
mov word [ebp - 0x48], cx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.004042f0
push 0x26
push str.170376B4_5B8D_404E_BFA2_76BE9EBF9079
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040c300
mov eax, dword [ebp - 0x9c]
mov ebx, 8
cmp dword [ebp - 0x88], ebx
jae 0x40b5b6
lea eax, [ebp - 0x9c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xbc]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SysReAllocStringLen
call edi
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], ebx
jae 0x40b5ef
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0xbc]
push edx
push 0x20006
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push SysReAllocStringLen
call esi
test eax, eax
jne 0x40b82b
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x40b61d
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xbc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocStringLen
call edi
test eax, eax
jne 0x40b82b
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x40b653
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0xbc]
push ecx
push 0x20006
push 0
push eax
push SysReAllocStringLen
call esi
test eax, eax
jne 0x40b82b
call fcn.0040c170
lea edi, [ebp - 0xb8]
call fcn.004251e0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], ebx
jb 0x40b68c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404290
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa4], ebx
jb 0x40b6b1
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 9
xor eax, eax
mov esi, 7
xor edi, edi
push str.Unins.exe
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], ax
call fcn.0040c300
xor ecx, ecx
push 9
mov word [ebp - 0x2c], cx
push str.Unins.exe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
call fcn.004042f0
mov byte [ebp - 4], 5
push 3
xor edx, edx
push 0x48449c
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.004042f0
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], ebx
jae 0x40b721
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0xbc]
push 1
push edi
push str.DisplayIcon
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x40b74b
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0xbc]
push 1
push 0
push str.DisplayName
push eax
call esi
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x40b770
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0xbc]
push 1
push 0
push str.DisplayVersion
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x40b795
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0xbc]
push 1
push 0
push str.Publisher
push eax
call esi
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], ebx
jae 0x40b7ba
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x70]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0xbc]
push 1
push 0
push str.UninstallString
push eax
call esi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x50], ebx
jb 0x40b7e8
mov ecx, dword [ebp - 0x64]
push ecx
call edi
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x18], ebx
jb 0x40b80b
mov eax, dword [ebp - 0x2c]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x6c], ebx
jb 0x40b831
mov edx, dword [ebp - 0x80]
push edx
call edi
add esp, 4
jmp 0x40b831
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], ebx
jb 0x40b84c
mov ecx, dword [ebp - 0x48]
push ecx
call edi
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x88], ebx
jb 0x40b874
mov eax, dword [ebp - 0x9c]
push eax
call edi
add esp, 4
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.00456bde
mov esp, ebp
pop ebp
ret