Function at 0x5baad8a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x5bb70c3c]
and dword [ebp - 0xa8], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esi + 4], eax
call sub.MSOERT2.dll_PszDupA
push 0x1d
mov dword [esi + 0xc], eax
pop eax
cmp dword [esi], eax
jbe 0x5baad8ec
mov dword [esi], eax
lea eax, [ebp - 0xa8]
push eax
lea edi, [esi + 8]
push edi
push 0xf003f
push ebx
mov dword [ebp - 0x9c], edi
call fcn.5ba7bd2a
test eax, eax
jne 0x5baadacf
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
push 0x5ba54534
push dword [edi]
mov dword [ebp - 0x98], 0x7e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5baad949
mov byte [ebp - 0x90], 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [ebp + 8]
shl eax, 2
push eax
lea ebx, [esi + 0x10]
push ebx
mov dword [ebp - 0x94], eax
call fcn.5ba561af
test eax, eax
je 0x5baadacf
mov ecx, dword [ebp - 0x94]
mov edi, dword [ebx]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
inc eax
push eax
lea ebx, [esi + 0x14]
push ebx
call fcn.5ba561af
test eax, eax
je 0x5baadac9
mov ecx, dword [esi]
mov edi, dword [ebx]
inc ecx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebx]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov al, byte [ebp - 0x90]
jmp 0x5baada9f
movsx eax, byte [ebp - 0x10]
lea ecx, [eax - 0x61]
cmp ecx, dword [esi]
jae 0x5baada91
mov edx, dword [esi + 0x10]
xor ecx, ecx
cmp dword [edx + eax*4 - 0x184], ecx
jne 0x5baada91
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x98]
push eax
push ecx
lea eax, [ebp - 0xa0]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax]
mov dword [ebp - 0x98], ecx
call ebx
test eax, eax
jne 0x5baada91
cmp dword [ebp - 0xa0], 1
jne 0x5baada91
push dword [ebp - 0x98]
lea eax, [ebp - 0xa4]
push eax
call fcn.5ba561af
test eax, eax
je 0x5baada91
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax]
call ebx
test eax, eax
jne 0x5baada91
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx], al
je 0x5baada85
movsx eax, byte [ebp - 0x10]
mov edx, dword [esi + 0x10]
mov dword [edx + eax*4 - 0x184], ecx
mov al, byte [ebp - 0x10]
mov byte [edi], al
inc edi
jmp 0x5baada91
mov eax, dword [0x5bb73714]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
inc dword [ebp - 0x94]
mov eax, dword [ebp - 0x94]
mov al, byte [eax]
test al, al
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0
jne 0x5baad9cf
cmp dword [ebp + 0x14], 0
mov byte [edi], al
je 0x5baadac9
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x5baadac9
test byte [esi + 5], 0x80
jne 0x5baadac9
or dword [eax], 0xffffffff
mov edi, dword [ebp - 0x9c]
cmp dword [esi + 0x10], 0
jne 0x5baadae5
mov eax, dword [edi]
test eax, eax
je 0x5baadae5
push eax
call dword [entry0]
and dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.5bb3f314
leave
ret 0x18