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

Disassembly:
mov eax, 0x422bcc
call fcn.00419178
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, 0x42cf4c
push str._t_Registry_
mov ecx, edi
call fcn.00421451
push eax
call fcn.00404c20
mov eax, dword [0x42ce1c]
xor esi, esi
cmp eax, esi
pop ecx
jne 0x4071ff
xor ecx, ecx
jmp 0x407201
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x10], ecx
je 0x407675
mov esi, dword [ebp - 0x10]
add esi, 8
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00405135
and dword [ebp - 4], 0
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00405135
lea eax, [esi + 0x3c]
push eax
xor ebx, ebx
lea eax, [ebp - 0x54]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.00405135
add esp, 0x18
cmp dword [ebp - 0xb8], 0
mov eax, dword [esi + 0x1c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], eax
jbe 0x40754f
push str._t_t_RegValue_
mov ecx, edi
call fcn.00421451
push eax
call fcn.00404c20
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00413400
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x407294
mov eax, dword [eax + 4]
jmp 0x407297
add eax, 4
push str.__Key_
push eax
push str._t_t_t_Key_
mov ecx, edi
call fcn.00421451
mov ecx, eax
call fcn.00421451
mov ecx, eax
call fcn.00421451
push eax
call fcn.00404c20
pop ecx
push ebx
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 2
call fcn.004017f0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00413400
pop ecx
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x4072ef
mov eax, dword [eax + 4]
jmp 0x4072f2
add eax, 4
push str.__Name_
push eax
push str._t_t_t_Name_
mov ecx, edi
call fcn.00421451
mov ecx, eax
call fcn.00421451
mov ecx, eax
call fcn.00421451
push eax
call fcn.00404c20
pop ecx
push ebx
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 2
call fcn.004017f0
push str._t_t__RegValue_
mov ecx, edi
call fcn.00421451
push eax
call fcn.00404c20
pop ecx
push 0xf
pop esi
push 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x98], esi
call fcn.00401981
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 5
call fcn.00407073
add esp, 0xc
test al, al
je 0x40758c
cmp dword [ebp - 0x98], 0x10
mov eax, dword [ebp - 0xac]
jae 0x40738d
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x14]
push ecx
xor ecx, ecx
push ecx
push 0xf003f
push ecx
push 0x426680
push ecx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor edx, edx
cmp eax, edx
jne 0x4075c0
cmp dword [ebp - 0x1c], edx
jne 0x4073ea
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
jae 0x4073c9
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4073d5
lea eax, [ebp - 0x34]
push dword [ebp - 0x40]
push ecx
push ebx
push edx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40753a
cmp dword [ebp - 0x1c], ebx
jne 0x40741d
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x4073fb
lea eax, [ebp - 0x50]
push eax
call fcn.00417d10
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
pop ecx
jae 0x407411
lea eax, [ebp - 0x34]
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
jmp 0x4073db
cmp dword [ebp - 0x1c], 2
jne 0x4075f4
push edx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x5c], esi
call fcn.00401981
xor esi, esi
cmp dword [ebp - 0x40], esi
mov byte [ebp - 4], 0xa
jle 0x407507
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x40744e
lea eax, [ebp - 0x50]
cmp byte [eax + esi], 0x20
je 0x4074fd
push 2
push esi
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401663
push eax
lea eax, [ebp - 0xe8]
push eax
mov byte [ebp - 4], 0xb
call fcn.00413320
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xd
call fcn.004017f0
cmp dword [ebp - 0xd4], 2
jne 0x4074bf
lea eax, [ebp - 0x18]
push eax
lea ebx, [ebp - 0xe8]
call fcn.00407038
test al, al
pop ecx
je 0x4074bc
push dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
push 1
call fcn.0040a4ec
xor ebx, ebx
inc ebx
jmp 0x4074ec
xor ebx, ebx
inc ebx
push str.Binary_formatting_error_in_registry_value
lea ecx, [ebp - 0x120]
call fcn.00401640
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 0xe
call fcn.00404c39
pop ecx
push ebx
lea ecx, [ebp - 0x120]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0xe8]
inc esi
mov byte [ebp - 4], 0xa
call fcn.004017f0
inc esi
cmp esi, dword [ebp - 0x40]
jl 0x407442
cmp dword [ebp - 0x5c], 0x10
mov ecx, dword [ebp - 0x70]
jae 0x407513
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40751f
lea eax, [ebp - 0x34]
push dword [ebp - 0x60]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
lea ecx, [ebp - 0x74]
call fcn.004017f0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004017f0
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], esi
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0xcc]
call fcn.004017f0
cmp esi, dword [0x42ce1c]
jne 0x40720c
xor esi, esi
jmp 0x407678
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x104]
push str.Invalid_Key_
push eax
call fcn.004049f1
push 0x4266a8
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.004049a5
mov byte [ebp - 4], 7
jmp 0x407623
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x104]
push str.Failed_to_Create_Key_
push eax
call fcn.004049f1
push 0x4266a8
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 8
call fcn.004049a5
mov byte [ebp - 4], 9
jmp 0x407623
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x104]
push str.Invalid_Key_Type_on_
push eax
call fcn.004049f1
push 0x4266a8
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xf
call fcn.004049a5
mov byte [ebp - 4], 0x10
push eax
call fcn.00404c39
add esp, 0x1c
push ebx
lea ecx, [ebp - 0x94]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x104]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0xcc]
call fcn.004017f0
xor al, al
jmp 0x40785a
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x13c]
push 0x42ce80
push eax
call fcn.00405135
pop ecx
pop ecx
cmp dword [ebp - 0x128], esi
mov dword [ebp - 4], 0x11
jbe 0x407839
push str.InstallName
lea ecx, [ebp - 0x120]
call fcn.00401640
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x94]
push eax
mov ecx, 0x42cd90
mov byte [ebp - 4], 0x12
call fcn.00410000
push eax
lea eax, [ebp - 0xe8]
push eax
mov byte [ebp - 4], 0x13
call fcn.00405135
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x94]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0x15
call fcn.004017f0
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x74]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.004049f1
add esp, 0xc
cmp dword [ebp - 0x5c], 0x10
mov eax, dword [ebp - 0x70]
mov byte [ebp - 4], 0x17
jae 0x407721
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0xf003f
push esi
push 0x426680
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4077b8
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401621
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x18
jae 0x407765
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 - 0x10]
call esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.004016a9
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40779a
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
push eax
push ebx
push 0
push str.UninstallString
push dword [ebp - 0x10]
call esi
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x17
call fcn.004017f0
push str._t__Registry_
mov ecx, edi
call fcn.00421451
push eax
call fcn.00404c20
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00413400
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 0x19
jb 0x4077ec
mov eax, dword [eax + 4]
jmp 0x4077ef
add eax, 4
push str.__UninstallDelRegKey_
push eax
push str._t_UninstallDelRegKey_HKLM_
mov ecx, edi
call fcn.00421451
mov ecx, eax
call fcn.00421451
mov ecx, eax
call fcn.00421451
push eax
call fcn.00404c20
pop ecx
push ebx
lea ecx, [ebp - 0x94]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x74]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0xe8]
call fcn.004017f0
jmp 0x40784c
push str._t__Registry_
mov ecx, edi
call fcn.00421451
push eax
call fcn.00404c20
pop ecx
push ebx
lea ecx, [ebp - 0x13c]
call fcn.004017f0
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret