Function at 0x4021e0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0xf
mov esi, str.SoftwareMicrosoftOfficeWordAddinsWordAddIn.KSWordAddIn.1
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x80000001
mov dword [esp + 0x1c], 0
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402277
mov eax, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.LoadBehavior
push edx
mov dword [esp + 0x2c], 0
call ebp
test eax, eax
jne 0x40226c
cmp dword [esp + 0x14], 3
jne 0x40226c
mov dword [ebx + 0xe4], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftOfficeOutlookAddinsOutlkAddin.KSOutlkAddIn.1
lea edi, [esp + 0xe8]
lea edx, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4022f7
mov dword [esp + 0x14], eax
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.LoadBehavior
push eax
call ebp
test eax, eax
jne 0x4022ec
cmp dword [esp + 0x14], 3
jne 0x4022ec
mov dword [ebx + 0xec], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftOfficeExcelAddinsExcelAddin.KSExcelAddin.1
lea edi, [esp + 0x60]
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x60]
push edx
push eax
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40236f
mov dword [esp + 0x14], eax
mov eax, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.LoadBehavior
push ecx
call ebp
test eax, eax
jne 0x402364
cmp dword [esp + 0x14], 3
jne 0x402364
mov dword [ebx + 0xf4], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftOfficePowerPointAddinsPPTAddin.KSPPTAddIn.1
lea edi, [esp + 0xa4]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xa4]
push eax
push ecx
push 0x80000001
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4023ee
mov dword [esp + 0x14], eax
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.LoadBehavior
push edx
call ebp
test eax, eax
jne 0x4023e3
cmp dword [esp + 0x14], 3
jne 0x4023e3
mov dword [ebx + 0xe8], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x11
mov esi, str.SoftwareMicrosoftOfficeFrontPageAddinsFontPGAddin.KSFontPGAddin.1
lea edi, [esp + 0x12c]
lea edx, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40246e
mov dword [esp + 0x14], eax
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.LoadBehavior
push eax
call ebp
test eax, eax
jne 0x402463
cmp dword [esp + 0x14], 3
jne 0x402463
mov dword [ebx + 0xf0], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x174]
push 0x104
push edx
call fcn.004012f0
add esp, 8
test eax, eax
je 0x4024f6
mov edi, str.KAddin.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x174]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Word
push str.Office
call esi
lea ecx, [esp + 0x174]
mov dword [ebx + 0xf8], eax
push ecx
push 0
push str.Outlook
push str.Office
call esi
mov dword [ebx + 0xfc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret