Function at 0x41510c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
xor edx, edx
inc edx
mov dword [ebp - 0x10], edi
mov ecx, 0x4068bc
mov dword [ebp - 0x24], edi
mov esi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call fcn.004192b8
cmp dword [ebp + 8], esi
jne 0x41514d
mov ecx, 0x80070057
mov ebx, ecx
call fcn.0041802b
jmp 0x415388
cmp dword [ebp + 0xc], esi
je 0x41513c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
push eax
push 0x20019
push edi
push dword [ebp + 8]
mov dword [ebp - 0x2c], edi
push 0x80000002
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00417da6
test eax, eax
jne 0x415194
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
jmp 0x415143
push edi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00417da6
test eax, eax
je 0x41518d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
xor edx, edx
push eax
inc edx
call fcn.00420cb1
mov ebx, eax
test ebx, ebx
js 0x415190
mov ecx, dword [ebp - 4]
mov ebx, edi
test ecx, ecx
je 0x4151fb
lea edx, [ecx + ecx]
mov eax, edx
shr eax, 1
cmp eax, ecx
je 0x4151f6
mov ebx, 0x80070216
mov ecx, ebx
call fcn.0041802b
jmp 0x4151fe
mov dword [ebp - 4], edx
jmp 0x4151fe
mov dword [ebp - 4], edi
mov ecx, ebx
call fcn.00418048
test ebx, ebx
js 0x415190
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x41522c
mov esi, edi
mov ecx, 0x8007000e
jmp 0x415141
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00419799
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x41525e
mov ecx, 0x8007000e
mov ebx, ecx
call fcn.0041802b
jmp 0x415386
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
and dword [ebp - 0x1c], 0
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x41534b
mov ecx, dword [ebp - 0x1c]
dec ecx
je 0x4152d1
dec ecx
je 0x4152d1
dec ecx
dec ecx
jne 0x41534b
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.00417dc4
mov ebx, eax
test ebx, ebx
js 0x415367
push dword [edi]
lea eax, [ebp - 8]
push 0x4068fc
push eax
call fcn.0041473e
add esp, 0xc
jmp 0x415316
push 0xffffffffffffffff
push 0x4068ac
push 0xffffffffffffffff
push esi
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
dec eax
jne 0x4152fc
mov edx, dword [ebp + 0xc]
mov ecx, edi
call fcn.00417dc4
mov ebx, eax
test ebx, ebx
js 0x415367
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.00417dc4
mov ebx, eax
test ebx, ebx
js 0x415367
lea edx, [ebp - 8]
mov ecx, edi
call fcn.00417dc4
mov ebx, eax
test ebx, ebx
js 0x415367
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ecx + 4]
call fcn.0041941f
test eax, eax
jne 0x415348
push dword [ebp - 8]
push dword [ebp - 0xc]
push 2
push 0x4067a0
call fcn.004191c1
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x415261
cmp eax, 0x103
je 0x415379
test eax, eax
jg 0x41536e
mov ebx, eax
mov ecx, ebx
jmp 0x415254
movzx ebx, ax
or ebx, 0x80070000
jmp 0x415367
xor edx, edx
mov ecx, 0x406904
inc edx
call fcn.004192b8
xor edi, edi
mov ecx, ebx
call fcn.00418048
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41539b
call fcn.00417eee
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4153a7
call fcn.00417eee
lea ecx, [ebp - 0x24]
call fcn.0041543f
test esi, esi
je 0x4153c2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x10], 0
je 0x4153d1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8