Function at 0x4520a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5816c8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x634384]
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 dword [ebp - 0x68], ecx
movzx eax, byte [ebp + 0x10]
lea edx, [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
shl eax, 8
push edx
or eax, 0x20019
mov dword [ebp - 0x40], 0
push eax
push 0
call fcn.0041ba50
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4522c1
push eax
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4522b8
cmp dword [ebp - 0x3c], eax
je 0x4522b8
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4522b8
cmp dword [ebp - 0x34], eax
je 0x4522b8
lea ecx, [ebp - 0x41]
mov dword [ebp - 0x48], eax
call fcn.0041c120
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x64]
call fcn.00449eb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x42]
push eax
lea eax, [ebp - 0x2d]
mov byte [ebp - 0x2d], 0
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x58]
call fcn.0044a110
mov byte [ebp - 4], 1
xor esi, esi
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x3c], esi
jbe 0x452222
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x54]
sub eax, edi
sar eax, 1
sub ecx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], ecx
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push edi
push esi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x452213
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041bac0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x68]
push dword [ebp - 0x34]
push ebx
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0041ba60
test bl, bl
je 0x45221f
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x48]
inc esi
mov ecx, dword [ebp - 0x6c]
cmp dword [ebp - 0x3c], esi
ja 0x4521b8
mov ebx, dword [ebp - 0x58]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x45226c
mov ecx, dword [ebp - 0x50]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x45224d
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4522df
push ecx
push ebx
call fcn.00539070
add esp, 8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4522b8
mov ecx, dword [ebp - 0x5c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x452299
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4522e4
push ecx
push edi
call fcn.00539070
add esp, 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.005395e6
mov esp, ebp
pop ebp
ret 0xc
call fcn.00555b08
call fcn.00555b08
int3