Function at 0x10051cab
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x260
mov eax, 0x10078e36
call fcn.10060cc6
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x24c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
or eax, 0x20019
push ecx
lea ecx, [ebp - 0x228]
call fcn.1000568a
test eax, eax
jne 0x10052003
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x10051d29
lea esi, [ebp - 0x228]
call fcn.100056c8
push dword [ebp + 0xc]
push edi
call fcn.10005408
jmp 0x10052003
ja 0x10051d35
push 0x80070057
call fcn.10003159
mov eax, dword [esi]
mov eax, dword [eax]
sub eax, 0x10
call fcn.100030df
add eax, 0x10
mov dword [ebp - 0x220], eax
xor edi, edi
inc edi
mov byte [ebp - 4], 2
call fcn.1000545e
push 0x100aab3c
lea esi, [ebp - 0x220]
call fcn.10009af7
cmp eax, 0xffffffff
setne al
cmp al, bl
je 0x10051f47
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
xor edi, edi
mov byte [ebp - 4], 3
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x268]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x228]
mov dword [ebp - 0x244], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10051de7
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.10005408
xor eax, eax
inc edi
jmp 0x10051d99
lea esi, [ebp - 0x228]
call fcn.100056c8
xor esi, esi
mov dword [ebp - 0x21c], esi
cmp dword [ebp - 0x258], ebx
jbe 0x10051f3c
jmp 0x10051e0e
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.10016ecf
cmp esi, dword [ebp - 0x258]
jae 0x10051d2b
mov eax, dword [ebp - 0x25c]
lea eax, [eax + esi*4]
mov eax, dword [eax]
sub eax, 0x10
call fcn.100030df
lea esi, [eax + 0x10]
mov dword [ebp - 0x260], esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x220]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esp
mov edi, esp
call fcn.100030df
add eax, 0x10
mov dword [edi], eax
push ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 6
mov eax, esi
mov dword [ebp - 0x264], esp
mov edi, esp
call fcn.100030df
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
call fcn.1004fe44
pop ecx
pop ecx
cmp al, bl
je 0x10051f0e
push dword [ebp + 0x18]
lea eax, [ebp - 0x23c]
push dword [ebp - 0x24c]
lea ecx, [ebp + 0xc]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10002663
add esp, 4
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x264], esp
push 0x100a8b9c
push ecx
mov ecx, eax
call fcn.100026b4
pop ecx
pop ecx
push dword [ebp - 0x240]
call fcn.10051cab
mov eax, dword [ebp - 0x22c]
add esp, 0x14
add eax, 0xfffffff0
call fcn.10003137
mov eax, esi
call fcn.10003137
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.10002876
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x258]
jb 0x10051e08
lea esi, [ebp - 0x25c]
jmp 0x10051ff0
lea esi, [ebp - 0x228]
call fcn.100056c8
lea eax, [ebp - 0x22c]
push 0x100a8b9c
push eax
lea ecx, [ebp - 0x220]
call fcn.100026b4
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
push ecx
mov byte [ebp - 4], 8
call fcn.100099f6
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.10003137
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 9
call fcn.10016ecf
push dword [ebp + 0x18]
lea eax, [ebp - 0x23c]
push dword [ebp - 0x24c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov esi, esp
call fcn.100030df
push dword [ebp - 0x240]
add eax, 0x10
mov dword [esi], eax
call fcn.10051cab
add esp, 0x14
lea esi, [ebp - 0x23c]
call fcn.10002876
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.10003137
lea esi, [ebp - 0x228]
call fcn.100056c8
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10003137
call fcn.10060d49
ret