Function at 0x5baefb80
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 ebx, ebx
xor eax, eax
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 - 0x14], ebx
mov dword [ebp - 4], ebx
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
je 0x5baefbc3
mov dword [ebp - 8], ebx
jmp 0x5baefcf8
cmp dword [ebp - 4], ebx
je 0x5baefbbb
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5baefbbb
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
test eax, eax
jne 0x5baefbbb
push dword [ebp - 0xc]
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baefbbb
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
je 0x5baefbbb
mov dword [ebp - 4], ebx
cmp byte [eax], bl
push esi
mov esi, eax
je 0x5baefcf4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baefc3f
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 0x5baefc28
cmp dword [ebp - 4], ebx
je 0x5baefcf4
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 0x5baefcf4
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x5baefcae
push dword [ebp + 0xc]
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baefca2
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 0x5baefc77
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 0x5baefcf7
mov dword [ebp - 8], ebx
pop esi
cmp dword [ebp - 0x10], ebx
je 0x5baefd0e
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 - 0x14], ebx
je 0x5baefd21
mov eax, dword [0x5bb73714]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x5baefd36
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