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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49be08
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.0048f7d0
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x2030], eax
mov dword [ebp - 0x2024], ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x415352
xor eax, eax
jmp 0x415605
mov ecx, dword [esi + 8]
lea edi, [esi + 8]
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x201c], ebx
cmp dword [ecx - 0xc], ebx
jne 0x415451
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x2018]
push edx
mov edx, dword [esi + 0xc]
or edx, 8
push edx
push ebx
push ecx
push eax
mov dword [ebp - 0x2028], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4155ff
mov edx, dword [ebp - 0x2018]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2028]
push eax
lea ecx, [ebp - 0x2014]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4155e8
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ebp - 0x2014]
call fcn.00416680
mov edi, dword [ebp - 0x2030]
lea ecx, [ebp - 0x2024]
push ecx
mov dword [ebp - 4], 0
call fcn.00415280
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2024]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415419
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2018]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2028]
push ecx
lea edx, [ebp - 0x2014]
push edx
inc esi
push esi
push eax
mov dword [ebp - 0x2028], 0x1000
call ebx
test eax, eax
je 0x4153c5
jmp 0x4155e8
mov edx, dword [esi + 4]
mov ecx, dword [edx - 0xc]
lea eax, [esi + 4]
cmp ecx, ebx
je 0x415499
push 0x4abdb0
push eax
lea eax, [ebp - 0x2034]
push eax
call fcn.00414ae0
add esp, 0xc
mov ecx, 1
mov dword [ebp - 4], ecx
push edi
mov dword [ebp - 0x2024], ecx
push eax
lea ecx, [ebp - 0x2028]
push ecx
call fcn.004149a0
add esp, 0xc
mov ebx, 3
jmp 0x41549b
mov eax, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
lea edx, [ebp - 0x2018]
push edx
mov edx, dword [esi]
or ecx, 1
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [ebp - 0x201d]
test bl, 2
je 0x4154f0
mov eax, dword [ebp - 0x2028]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x2024], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4154f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x41551e
mov eax, dword [ebp - 0x2034]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41551e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x201d], 0
je 0x4155ff
mov eax, dword [ebp - 0x2018]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor esi, esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x201c]
push ecx
lea edx, [ebp - 0x2014]
push edx
push esi
push eax
mov dword [ebp - 0x201c], 0x1000
call ebx
test eax, eax
jne 0x4155e8
lea ecx, [ebp - 0x202c]
push ecx
lea ecx, [ebp - 0x2014]
call fcn.00416680
mov edi, dword [ebp - 0x2030]
lea edx, [ebp - 0x202c]
push edx
mov dword [ebp - 4], 2
call fcn.00415280
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x202c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4155b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2018]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x201c]
push ecx
lea edx, [ebp - 0x2014]
push edx
inc esi
push esi
push eax
mov dword [ebp - 0x201c], 0x1000
call ebx
test eax, eax
je 0x415561
mov ecx, dword [ebp - 0x2018]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x201c], 1
mov eax, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret