Function at 0x5ba6886f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x560
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x524], eax
call fcn.5ba5d2cf
mov dword [ebp - 0x530], eax
lea eax, [ebp - 0x518]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x5ba4cf50
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x510], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba68b0f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x520]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5ba68af0
cmp dword [ebp - 0x520], ebx
jbe 0x5ba68af0
mov dword [ebp - 0x560], 0x2c
mov dword [ebp - 0x55c], 0x32
mov dword [ebp - 0x558], ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x5ba68aea
cmp dword [ebp - 0x520], ebx
mov dword [ebp - 0x514], ebx
jbe 0x5ba68aea
push edi
mov edi, 0x200
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x514]
mov dword [ebp - 0x50c], 0x104
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x5ba68ae9
cmp eax, ebx
jne 0x5ba68ad1
lea eax, [ebp - 0x51c]
push eax
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba68ad1
cmp dword [ebp - 0x530], ebx
mov dword [ebp - 0x50c], 4
je 0x5ba689e7
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x534]
push eax
push ebx
push ebx
push 0x5ba4cfd4
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5ba689e7
cmp dword [ebp - 0x534], ebx
jne 0x5ba68ac5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x52c]
push eax
push ebx
push 0x5ba4cfac
push dword [ebp - 0x51c]
mov dword [ebp - 0x50c], edi
call esi
test eax, eax
jne 0x5ba68ac5
cmp byte [ebp - 0x308], bl
je 0x5ba68ac5
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x52c]
push eax
push ebx
push 0x5ba4cf9c
push dword [ebp - 0x51c]
mov dword [ebp - 0x50c], edi
call esi
test eax, eax
jne 0x5ba68ac5
cmp byte [ebp - 0x308], bl
je 0x5ba68ac5
lea eax, [ebp - 0x108]
push eax
call sub.MSOERT2.dll_PszDupA
mov esi, eax
cmp esi, ebx
je 0x5ba68ac5
push edi
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x308]
push eax
call sub.MSOERT2.dll_PszEscapeMenuStringA
mov eax, dword [ebp - 0x510]
add eax, 0xa67f
mov dword [ebp - 0x550], eax
lea eax, [ebp - 0x508]
mov dword [ebp - 0x53c], eax
lea eax, [ebp - 0x560]
push eax
push 1
push 0xffffffffffffffff
push dword [ebp - 0x528]
mov dword [ebp - 0x540], esi
call dword [sym.imp.USER32.dll_InsertMenuItemA]
inc dword [ebp - 0x510]
push dword [ebp - 0x51c]
call dword [entry0]
inc dword [ebp - 0x514]
mov eax, dword [ebp - 0x514]
cmp eax, dword [ebp - 0x520]
jb 0x5ba6893e
pop edi
mov esi, dword [ebp - 0x528]
push dword [ebp - 0x518]
call dword [entry0]
cmp dword [ebp - 0x510], ebx
jne 0x5ba68b23
cmp esi, ebx
je 0x5ba68b0f
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push ebx
push 0x9c6b
push dword [ebp - 0x524]
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x5ba68b4c
lea eax, [ebp - 0x560]
push eax
push ebx
push 0x9c6b
push dword [ebp - 0x524]
mov dword [ebp - 0x55c], 4
mov dword [ebp - 0x54c], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 4