Function at 0x406750
Capabilities:
Get installed programs
Set registry value

Disassembly:
mov eax, 0x421f9f
call fcn.00418758
sub esp, 0x170
push ebx
push esi
push edi
mov edi, 0x42bf4c
push str._t_Registry_
mov ecx, edi
call fcn.00420a31
push eax
call fcn.00404bee
mov eax, dword [0x42be1c]
test eax, eax
pop ecx
jne 0x406788
xor ecx, ecx
jmp 0x40678a
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x18], ecx
je 0x406bf2
mov esi, dword [ebp - 0x18]
add esi, 8
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00404c07
and dword [ebp - 4], 0
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00404c07
lea eax, [esi + 0x3c]
push eax
xor ebx, ebx
lea eax, [ebp - 0x58]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.00404c07
add esp, 0x18
mov eax, dword [esi + 0x1c]
push str._t_t_RegValue_
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
call fcn.00420a31
push eax
call fcn.00404bee
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004121e0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x406810
mov eax, dword [eax + 4]
jmp 0x406813
add eax, 4
push str.__Key_
push eax
push str._t_t_t_Key_
mov ecx, edi
call fcn.00420a31
mov ecx, eax
call fcn.00420a31
mov ecx, eax
call fcn.00420a31
push eax
call fcn.00404bee
pop ecx
push ebx
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 2
call fcn.004017f4
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004121e0
pop ecx
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x40686b
mov eax, dword [eax + 4]
jmp 0x40686e
add eax, 4
push str.__Name_
push eax
push str._t_t_t_Name_
mov ecx, edi
call fcn.00420a31
mov ecx, eax
call fcn.00420a31
mov ecx, eax
call fcn.00420a31
push eax
call fcn.00404bee
pop ecx
push ebx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.004017f4
push str._t_t__RegValue_
mov ecx, edi
call fcn.00420a31
push eax
call fcn.00404bee
pop ecx
push 0xf
pop esi
push 0
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x7c], esi
call fcn.00401985
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 5
call fcn.004065fe
add esp, 0xc
test al, al
je 0x406b15
cmp dword [ebp - 0x7c], 0x10
mov eax, dword [ebp - 0x90]
jae 0x406903
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x10]
push ecx
xor ecx, ecx
push ecx
push 0xf003f
push ecx
push 0x4255ac
push ecx
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor edx, edx
cmp eax, edx
jne 0x406b46
cmp dword [ebp - 0x14], edx
jne 0x406963
cmp dword [ebp - 0x40], 0x10
mov ecx, dword [ebp - 0x54]
jae 0x406942
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40694e
lea eax, [ebp - 0x34]
push dword [ebp - 0x44]
push ecx
push ebx
push edx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x406ac5
cmp dword [ebp - 0x14], ebx
jne 0x406996
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x406974
lea eax, [ebp - 0x54]
push eax
call fcn.004172f0
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
pop ecx
jae 0x40698a
lea eax, [ebp - 0x34]
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
push 0
jmp 0x406954
cmp dword [ebp - 0x14], 2
jne 0x406b77
push edx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd0], esi
call fcn.00401985
xor esi, esi
cmp dword [ebp - 0x44], esi
mov byte [ebp - 4], 0xa
jle 0x406a83
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x4069cd
lea eax, [ebp - 0x54]
cmp byte [eax + esi], 0x20
je 0x406a79
push 2
push esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401667
push eax
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 4], 0xb
call fcn.00412100
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.004017f4
cmp dword [ebp - 0x14c], 2
jne 0x406a3b
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x160]
call fcn.004065c3
test al, al
pop ecx
je 0x406a38
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xe8]
push 1
call fcn.004098c4
xor ebx, ebx
inc ebx
jmp 0x406a68
xor ebx, ebx
inc ebx
push str.Binary_formatting_error_in_registry_value
lea ecx, [ebp - 0x10c]
call fcn.00401644
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 4], 0xe
call fcn.004051cf
pop ecx
push ebx
lea ecx, [ebp - 0x10c]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x160]
inc esi
mov byte [ebp - 4], 0xa
call fcn.004017f4
inc esi
cmp esi, dword [ebp - 0x44]
jl 0x4069c1
cmp dword [ebp - 0xd0], 0x10
mov ecx, dword [ebp - 0xe4]
jae 0x406a98
lea ecx, [ebp - 0xe4]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x406aa4
lea eax, [ebp - 0x34]
push dword [ebp - 0xd4]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
lea ecx, [ebp - 0xe8]
call fcn.004017f4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
push ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x18], esi
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x58]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0xcc]
call fcn.004017f4
cmp esi, dword [0x42be1c]
jne 0x406795
jmp 0x406bf5
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xb0]
push str.Invalid_Key_
push eax
call fcn.004049bf
push 0x4255d4
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 6
call fcn.00404973
mov byte [ebp - 4], 7
jmp 0x406ba3
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xb0]
push str.Failed_to_Create_Key_
push eax
call fcn.004049bf
push 0x4255d4
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 8
call fcn.00404973
mov byte [ebp - 4], 9
jmp 0x406ba3
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xb0]
push str.Invalid_Key_Type_on_
push eax
call fcn.004049bf
push 0x4255d4
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0xf
call fcn.00404973
mov byte [ebp - 4], 0x10
push eax
call fcn.004051cf
add esp, 0x1c
push ebx
lea ecx, [ebp - 0x78]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x94]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x58]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0xcc]
call fcn.004017f4
xor al, al
jmp 0x406dbf
xor ebx, ebx
inc ebx
push str.InstallName
lea ecx, [ebp - 0x10c]
call fcn.00401644
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x42bd90
mov dword [ebp - 4], 0x11
call fcn.0040ede0
push eax
lea eax, [ebp - 0x144]
push eax
mov byte [ebp - 4], 0x12
call fcn.00404c07
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x78]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x14
call fcn.004017f4
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x128]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.004049bf
add esp, 0xc
cmp dword [ebp - 0x110], 0x10
mov eax, dword [ebp - 0x124]
mov byte [ebp - 4], 0x16
jae 0x406c81
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
xor esi, esi
push esi
push 0xf003f
push esi
push 0x4255ac
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406d38
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401625
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x17
jae 0x406cce
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.DisplayName
push dword [ebp - 0x3c]
call esi
lea eax, [ebp - 0x78]
push 0x42be80
push eax
call fcn.00404c07
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x18
call fcn.004016ad
push ebx
lea ecx, [ebp - 0x78]
call fcn.004017f4
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x406d1a
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
push eax
push ebx
push 0
push str.UninstallString
push dword [ebp - 0x3c]
call esi
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x16
call fcn.004017f4
push str._t__Registry_
mov ecx, edi
call fcn.00420a31
push eax
call fcn.00404bee
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004121e0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 0x19
jb 0x406d6f
mov eax, dword [eax + 4]
jmp 0x406d72
add eax, 4
push str.__UninstallDelRegKey_
push eax
push str._t_UninstallDelRegKey_HKLM_
mov ecx, edi
call fcn.00420a31
mov ecx, eax
call fcn.00420a31
mov ecx, eax
call fcn.00420a31
push eax
call fcn.00404bee
pop ecx
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x128]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x144]
call fcn.004017f4
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret