Function at 0x40a500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565bc7
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5d51c0]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x5d51c0]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004248f0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00429e63
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x2b60]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push 0x5b23d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebx + 0xa0], ecx
call esi
test eax, eax
jne 0x40a6cd
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push str.SOFTWAREHNCSharedInstall_InformationHOffice96
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x40a6cd
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40a5c8
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x2769
mov ecx, ebx
mov dword [esp + 0xbc], 0
call fcn.0042e5d4
push 0x276b
mov edi, eax
call fcn.004202c9
test eax, eax
je 0x40a610
push 0x276b
push eax
lea ecx, [esp + 0x18]
call fcn.004053d0
mov esi, dword [esp + 0x10]
push esi
mov ecx, edi
call fcn.0042eea0
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40a634
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x276a
mov ecx, ebx
mov byte [esp + 0xbc], 1
call fcn.0042e5d4
push 0x276c
mov dword [esp + 0x24], eax
call fcn.004202c9
test eax, eax
je 0x40a67b
push 0x276c
push eax
lea ecx, [esp + 0x1c]
call fcn.004053d0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push edi
call fcn.0042eea0
lea edx, [edi - 0x10]
mov byte [esp + 0xb8], 0
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a6a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0xb8], 0xffffffff
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a6cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebx + 0x98]
call fcn.004303b3
mov eax, dword [esp + 0x18]
lea esi, [ebx + 0x18c]
mov ecx, esi
test byte [eax + 0x2a18], 8
je 0x40a702
push 0x29
push str.SoftwareHNCSharedExecuteOption96Viewer
jmp 0x40a709
push 0x23
push str.SoftwareHNCSharedExecuteOption96
call fcn.00405780
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 4
push eax
push dword [esi]
mov dword [esp + 0x1c], 0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40a73e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push dword [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40a79a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.RunAppShield
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a789
cmp dword [esp + 0x14], 1
jne 0x40a79a
push 0
push 1
push 0xf1
push dword [ebx + 0xc4]
call edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 4
push eax
push dword [esi]
mov dword [esp + 0x1c], 0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40a7d4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push dword [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a82a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.RunBlackFort
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a819
cmp dword [esp + 0x14], 1
jne 0x40a82a
push 0
push 1
push 0xf1
push dword [ebx + 0x138]
call edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.UxTheme.dll_SetWindowTheme]
push 0x5adca8
push 0x5adca8
push dword [ebx + 0xc4]
call esi
push 0x5adca8
push 0x5adca8
push dword [ebx + 0x138]
call esi
push 0x5ad394
lea ecx, [esp + 0x20]
call fcn.004058d0
mov dword [esp + 0xb8], 2
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004092f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00408c80
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 3
call fcn.00409360
mov byte [esp + 0xb8], 2
or ecx, 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a8d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
movdqa xmm0, xmmword [0x5b2790]
xor esi, esi
movdqu xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa0], 0x3f1
mov dword [esp + 0xa4], 0x3f2
mov dword [esp + 0x14], esi
mov edi, edi
push 0x5c
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0054cbf0
mov esi, dword [esp + esi*4 + 0x9c]
add esp, 0xc
mov ecx, ebx
push esi
call fcn.0042e5d4
push 0
push 0
push 0x31
push dword [eax + 0x20]
call edi
push eax
call fcn.0043062c
lea ecx, [esp + 0x2c]
push ecx
push 0x5c
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CFont.0
lea eax, [esp + 0x2c]
mov byte [esp + 0xb8], 4
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x28]
call fcn.004303b3
push esi
mov ecx, ebx
call fcn.0042e5d4
push 1
push dword [esp + 0x2c]
push 0x30
push dword [eax + 0x20]
call edi
lea ecx, [esp + 0x24]
call fcn.0043052e
mov byte [esp + 0xb8], 2
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CFont.0
call fcn.00409160
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
cmp esi, 6
jl 0x40a900
mov dword [esp + 0xb8], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a9ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret