Function at 0x40ade0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.004248f0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00429e63
mov esi, eax
push 0xffffff
mov ecx, dword [esi + 0x2b60]
mov dword [edi + 0xa0], ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [edi + 0x98]
call fcn.004303b3
push 0
lea ecx, [esi + 0x29a0]
call fcn.0042e4a6
push 0x2750
mov ecx, edi
call fcn.0042e5d4
push 0
push 0x17
push 0xc5
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0054cbf0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0054cbf0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x41c]
add esp, 0x18
mov dword [ebp - 0x424], 0x104
mov dword [ebp - 0x420], 1
push eax
push 0x20019
push 0
push str.SOFTWAREHNCSharedInstall_InformationHOffice96
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40af47
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.Name
push dword [ebp - 0x41c]
call esi
test eax, eax
jne 0x40af0d
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x118]
call fcn.0042eea0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.Company
push dword [ebp - 0x41c]
call esi
test eax, eax
jne 0x40af47
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0xa4]
call fcn.0042eea0
push dword [ebp - 0x41c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 0x208
call fcn.0041f7ba
add esp, 4
mov edi, eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x428], edi
push eax
push 0xf003f
push 0
push str.SOFTWAREHNCSharedHncUpdateHncUtils_NEOHncUpdate
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x40af92
push dword [ebp - 0x418]
call esi
jmp 0x40afaa
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x428]
call fcn.0040b160
mov edi, dword [ebp - 0x428]
push str.HncCheck96.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push 0
push str.SOFTWAREHNCSharedHncUpdate
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40afef
push 8
push str.Auto
push 1
push eax
push str.CycleType
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call esi
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40b049
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b020
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.HncUpdate96
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054a22c
mov esp, ebp
pop ebp
ret