Function at 0x1000fa60
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c130
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x10024018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push str.SOFTWAREMicrosoftVBA
push 0x80000002
call fcn.1000f430
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push str.VBA7.1
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000f430
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push str.InstalledBy
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1000f430
add esp, 0xc
call fcn.1000ef60
mov byte [ebp - 0x41], al
movzx edx, byte [ebp - 0x41]
test edx, edx
je 0x1000fb13
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
cmp dword [ebp + 8], 0
je 0x1000fba0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1000fb9e
mov dword [ebp - 0x2c], 0
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1000fb9e
cmp dword [ebp - 0x14], 0
jg 0x1000fb72
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], ecx
jmp 0x1000fb8a
mov edx, dword [ebp - 0x14]
and edx, 0xffff
or edx, 0x70000
or edx, 0x80000000
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
push 0x10020f78
lea ecx, [ebp - 0x34]
push ecx
call sub.MSVCR100.dll__CxxThrowException
jmp 0x1000fc10
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000fc10
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1000fc10
cmp dword [ebp - 0x14], 0
jg 0x1000fbe4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
jmp 0x1000fbfc
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
or ecx, 0x70000
or ecx, 0x80000000
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], edx
push 0x10020f78
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR100.dll__CxxThrowException
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
call fcn.1000ef60
mov byte [ebp - 0x4d], al
movzx eax, byte [ebp - 0x4d]
test eax, eax
je 0x1000fc59
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
cmp dword [ebp - 0x14], 0
je 0x1000fc99
cmp dword [ebp - 0x14], 0
jg 0x1000fc6d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
jmp 0x1000fc85
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
or ecx, 0x70000
or ecx, 0x80000000
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], edx
push 0x10020f78
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR100.dll__CxxThrowException
xor ecx, ecx
cmp ecx, dword [ebp - 0x28]
sbb edx, edx
neg edx
mov dword [ebp - 0x24], edx
jmp 0x1000fcec
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x1c]
push edx
call fcn.1000f4c0
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.1000f4c0
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
call fcn.1000f4c0
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret