Function at 0x5baef7eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 8
pop ecx
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
jne 0x5baef858
cmp dword [ebp - 4], ebx
je 0x5baef858
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5baef858
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHQueryValueExA
push dword [ebp - 0xc]
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
je 0x5baef860
mov dword [ebp - 8], ebx
jmp 0x5baef977
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CharLowerA]
push dword [ebp - 0xc]
call fcn.5bacd8cd
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x5baef880
mov dword [ebp - 8], ebx
jmp 0x5baef964
mov dword [ebp - 4], ebx
cmp byte [eax], bl
push esi
mov esi, eax
je 0x5baef960
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baef8ab
push esi
call edi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x5baef894
cmp dword [ebp - 4], ebx
je 0x5baef960
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5baef960
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x5baef91a
push dword [ebp + 0xc]
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baef90e
push dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call edi
or ecx, 0xffffffff
sub ecx, eax
add dword [ebp + 8], ecx
push esi
call edi
lea esi, [esi + eax + 1]
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax + 1]
cmp byte [eax], bl
mov dword [ebp + 0xc], eax
jne 0x5baef8e3
mov eax, dword [ebp + 0x10]
mov byte [esi], bl
mov byte [esi + 1], bl
push 2
pop ecx
lea esi, [ebp - 8]
push esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
push 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0x34]
push esi
push ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x2c], 0x41
call dword [edx + 0x20]
test eax, eax
jge 0x5baef963
mov dword [ebp - 8], ebx
pop esi
cmp dword [ebp - 0x14], ebx
je 0x5baef977
mov eax, dword [0x5bb73714]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x10], ebx
je 0x5baef98d
mov eax, dword [0x5bb73714]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x5baef9a2
mov eax, dword [0x5bb73714]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
leave
ret 0x10