Function at 0x7ce2ad07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push esi
mov ebx, dword [ebp + 0xc]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
jne 0x7ce2af0a
cmp dword [ebp - 0x14], esi
je 0x7ce2af0a
cmp dword [ebp - 0x14], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x7ce2ad77
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x7ce2aec5
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x54]
push 0x7cd83300
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push esi
push eax
push dword [ebp + 8]
call edi
cmp eax, esi
je 0x7ce2aed2
mov eax, dword [ebp + 0xc]
and eax, 0x3ff
mov dword [ebp - 0x18], eax
movzx eax, ax
or ah, 4
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x54]
push 0x7cd83300
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push esi
push eax
push dword [ebp + 8]
call edi
cmp eax, esi
je 0x7ce2aed2
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x10
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x7ce2ae47
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
call fcn.7ce2ace3
mov eax, dword [ebp - 8]
and ax, 0x3ff
cmp ax, word [ebp - 0x18]
je 0x7ce2ae47
inc dword [ebp - 0x10]
cmp dword [ebp + 0xc], 0x103
je 0x7ce2ae47
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x10
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x10]
jmp 0x7ce2adf6
cmp dword [ebp + 0xc], esi
je 0x7ce2aed2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x54]
push 0x7cd83300
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push esi
push eax
push dword [ebp + 8]
call edi
cmp eax, esi
je 0x7ce2aed2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x54]
push 0x7cd83300
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push esi
push eax
push dword [ebp + 8]
call edi
cmp eax, esi
je 0x7ce2aed2
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x7ce2af0a
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
call fcn.7ce2ace3
mov eax, dword [ebp - 4]
add eax, eax
push eax
call sym.ole32.dll_CoTaskMemAlloc
mov ebx, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebx], eax
jne 0x7ce2aeed
mov eax, 0x8007000e
jmp 0x7ce2af1f
lea ecx, [ebp - 4]
push ecx
push eax
push esi
lea eax, [ebp - 0x54]
push esi
push eax
push dword [ebp + 8]
call edi
cmp eax, esi
je 0x7ce2af11
push dword [ebx]
call sym.ole32.dll_CoTaskMemFree
mov dword [ebx], esi
mov eax, 0x80040161
jmp 0x7ce2af1f
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x7ce2af1d
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10