Function at 0x12e63ea0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x32c
push ebx
mov ebx, dword [esp + 0x334]
push ebp
push esi
xor esi, esi
xor edx, edx
cmp ebx, esi
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
je 0x12e64121
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
je 0x12e64121
push 0x5c
push ebx
call fcn.12f5cd91
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x12e640f5
inc ebp
push 0x2e
push ebp
call fcn.12f5cd91
add esp, 8
cmp eax, esi
je 0x12e63f17
push 0x13119418
push eax
call fcn.12f5df5c
add esp, 8
test eax, eax
jne 0x12e63f17
mov ebp, str.notes.ini
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
je 0x12e640f5
lea eax, [esp + 0x10]
push eax
push 0x2001f
push esi
push str.softwareTECOcular.3ShareDataPROC
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x12e640f5
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x12e64130
push esi
push esi
lea ecx, [esp + 0x34]
push esi
lea edx, [esp + 0x24]
push ecx
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x12e64083
mov edx, dword [esp + 0x18]
cmp edx, esi
jbe 0x12e64083
mov ecx, 0x40
lea edi, [esp + 0x31]
mov byte [esp + 0x30], al
mov byte [esp + 0x134], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
cmp edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x1c], esi
jbe 0x12e64083
mov ebx, 0x104
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov ecx, 0x41
lea edi, [esp + 0x34]
push eax
push eax
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x12e6406d
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
call fcn.12f5e9c2
add esp, 0xc
test eax, eax
jne 0x12e6406d
mov ecx, 0x41
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x134]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x12e6406d
mov ecx, dword [esp + 0x340]
lea eax, [esp + 0x134]
push eax
push ecx
call fcn.12f5df5c
add esp, 8
test eax, eax
je 0x12e64115
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x12e63fd0
mov ebx, dword [esp + 0x340]
xor esi, esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x239]
mov byte [esp + 0x238], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call fcn.12f5f5c9
push eax
call fcn.12f5f59a
add esp, 8
call fcn.12f5f5a7
push eax
push ebp
lea edx, [esp + 0x240]
push 0x13119410
push edx
call fcn.12f5ce9d
mov eax, dword [esp + 0x34]
add esp, 0x10
lea edx, [esp + 0x238]
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push ecx
push ebx
push 1
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x12e640f5
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x12e64130
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret 4
mov dword [esp + 0x14], 1
xor esi, esi
jmp 0x12e640f5
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x32c
ret 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret 4