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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1200fec5
cmp byte [eax], bl
je 0x1200fec5
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x1200fec5
cmp byte [edi], bl
je 0x1200fec5
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1200fec5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x1200feb9
cmp byte [ebp + 0x18], bl
push esi
je 0x1200fdad
mov dword [ebp - 8], ebx
mov esi, 0x120aaf68
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x1c]
push ebx
inc dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x1200fdad
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x53c]
push dword [ebp + 0xc]
push esi
push eax
call fcn.12055b74
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
push edi
lea eax, [ebp - 0x334]
push esi
push eax
call fcn.12055b74
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 0x10]
call fcn.1200fb1d
push dword [ebp + 0x18]
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x53c]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.1200fc8d
add esp, 0x2c
mov dword [ebp - 4], eax
jmp 0x1200fd1b
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp + 0x14], ebx
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1200feaa
cmp dword [ebp - 0x18], ebx
je 0x1200feaa
inc dword [ebp + 0x14]
push dword [ebp + 0x14]
call fcn.1207403b
push dword [ebp - 0xc]
mov edi, eax
call fcn.1207403b
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x1200fe95
cmp eax, ebx
je 0x1200fe95
mov ecx, dword [ebp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp + 0x18], 1
push eax
lea eax, [ebp + 8]
push ebx
push eax
push edi
push ebx
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x1200fe98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1200fe5b
mov dword [ebp - 4], ebx
mov byte [edi], bl
push dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
call fcn.12055850
add esp, 0xc
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x18]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
inc dword [ebp + 0x18]
push ecx
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
push eax
push dword [ebp - 0x10]
jmp 0x1200fe3a
mov dword [ebp - 4], ebx
push edi
call fcn.12074064
push dword [ebp + 0xc]
call fcn.12074064
pop ecx
pop ecx
jmp 0x1200fead
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
jmp 0x1200febc
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret