Function at 0x12e63eb0
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 0x12e64131
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 0x12e64131
push 0x5c
push ebx
call fcn.12f5ce61
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x12e64105
inc ebp
push 0x2e
push ebp
call fcn.12f5ce61
add esp, 8
cmp eax, esi
je 0x12e63f27
push 0x13119468
push eax
call fcn.12f5e02c
add esp, 8
test eax, eax
jne 0x12e63f27
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 0x12e64105
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 0x12e64105
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x12e64140
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 0x12e64093
mov edx, dword [esp + 0x18]
cmp edx, esi
jbe 0x12e64093
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 0x12e64093
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 0x12e6407d
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
call fcn.12f5ea92
add esp, 0xc
test eax, eax
jne 0x12e6407d
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 0x12e6407d
mov ecx, dword [esp + 0x340]
lea eax, [esp + 0x134]
push eax
push ecx
call fcn.12f5e02c
add esp, 8
test eax, eax
je 0x12e64125
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x12e63fe0
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.12f5f699
push eax
call fcn.12f5f66a
add esp, 8
call fcn.12f5f677
push eax
push ebp
lea edx, [esp + 0x240]
push 0x13119460
push edx
call fcn.12f5cf6d
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 0x12e64105
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x12e64140
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 0x12e64105
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