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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x208]
push ecx
xor esi, esi
lea ecx, [ebp - 0x104]
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
push 0x5ba474dc
push eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jne 0x5baf109d
lea eax, [ebp - 0x104]
push eax
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baf109d
lea eax, [ebp - 0x20c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x220]
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push 0x5ba474f0
push dword [ebp - 0x224]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
jne 0x5baf10f4
lea eax, [ebp - 0x204]
push eax
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baf10f4
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x21c]
call edi
cmp dword [ebp - 0x210], esi
jne 0x5baf1145
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x208], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5baf1145
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x21c]
call edi
cmp dword [ebp - 0x20c], esi
jne 0x5baf11a2
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x208], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5baf1196
lea eax, [ebp - 0x20c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x220]
call edi
cmp dword [ebp - 0x20c], esi
je 0x5baf1294
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
mov edi, 0x5ba4e72c
push edi
push dword [ebp - 0x20c]
mov dword [ebp - 0x208], 4
call ebx
cmp dword [ebp - 0x210], esi
je 0x5baf1288
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x208], 4
call ebx
cmp dword [ebp - 0x218], esi
jne 0x5baf127c
cmp dword [ebp - 0x214], esi
jne 0x5baf127c
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call fcn.5baf0e16
test eax, eax
jl 0x5baf127c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push edi
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], 1
call ebx
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push esi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 1
call ebx
push dword [ebp - 0x210]
call dword [entry0]
push dword [ebp - 0x20c]
call dword [entry0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.5bb3f314
leave
ret 0x10