Function at 0x40e600
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566298
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d51c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x24], eax
lea ebx, [eax + 0x2e4]
mov dword [ebp - 0x18], 0
push 0x104
push ebx
lea ecx, [eax + 0x188]
call fcn.0042e9d9
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0x18]
push eax
push str.SoftwareHNCHCell9.6HCellFrameAppState
push SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e688
push 0x104
push ebx
push 1
push 0
push str.StartFileFolder
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
xor bl, bl
push 0
push 0
push 0xf0
push dword [eax + 0x21c]
call dword [sym.imp.USER32.dll_SendMessageW]
dec eax
cmp eax, 1
ja 0x40e81d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], 0
push eax
push str.SoftwareHncHCell9.6HCellFrameAppState
push SysReAllocString
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x1c], 0
call esi
test eax, eax
jne 0x40e703
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DefaultExcelSave
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e703
mov eax, 1
movzx ebx, bl
cmp dword [ebp - 0x1c], eax
cmove ebx, eax
mov dword [ebp - 0x20], vtable.CRegCtrl.0
push str.SoftwareHNCHCell9.6
push SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041f650
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], vtable.CRegCtrl.0
push eax
push 0xf003f
push 0
push str.SoftwareHncHCell
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e7fd
lea eax, [ebp - 0x10]
push eax
push str.SoftwareHncHCell9.6
push SysReAllocString
call esi
test eax, eax
jne 0x40e7fd
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SoftwareHncHCell9.6Macro
push SysReAllocString
call esi
test eax, eax
jne 0x40e7a8
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.EnableExcution
push dword [ebp - 0x10]
call edi
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.ErrorMsgLevel
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x10]
push eax
push str.SoftwareHncHCell9.6HCellFrameAppState
push SysReAllocString
call esi
test eax, eax
jne 0x40e7d0
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.SaveExcelType
push dword [ebp - 0x10]
call edi
cmp bl, 1
jne 0x40e7fd
lea eax, [ebp - 0x10]
push eax
push str.SoftwareHncHCell9.6HCellFrameAppState
push SysReAllocString
call esi
test eax, eax
jne 0x40e7fd
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.DefaultExcelSave
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret