Function at 0x452540
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580181
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5e91b4]
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]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xf8], ebx
mov byte [ebp - 0xe1], 0
call fcn.004655e9
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4525aa
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xf0], eax
mov dword [ebp - 4], edi
call fcn.004655e9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4525d9
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xe0], eax
push esi
lea ecx, [ebp - 0xe8]
push 0x5f1fe8
push ecx
mov byte [ebp - 4], 1
call fcn.00404a10
add esp, 0xc
push eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.00401fb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45263a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
push ecx
push 0x20019
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xec], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x45266d
xor eax, eax
mov dword [ebp - 0xec], eax
jmp 0x452673
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xe8], eax
cmp eax, edi
je 0x4527fa
xor esi, esi
add ebx, 0x148
lea esp, [esp]
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x32
or eax, edx
jge 0x4526bb
push 0x32
lea ecx, [ebp - 0xe0]
call fcn.00401dd0
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xf4], 0x32
test ecx, ecx
je 0x4527c4
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0xe8]
push 0
push 0
push 0
lea edx, [ebp - 0xf4]
push edx
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4527be
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax - 8]
push ecx
push eax
inc edi
call fcn.00557e86
add esp, 8
test eax, eax
js 0x4527b4
mov ecx, dword [ebp - 0xe0]
cmp eax, dword [ecx - 8]
jg 0x4527b4
push 0xc8
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0xe0]
lea edx, [ebp - 0xdc]
push 0
push edx
mov byte [eax + ecx], 0
call fcn.0055ade0
mov edx, dword [ebp - 0xfc]
add esp, 0xc
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, dword [ebp - 0x100]
push edx
call fcn.00452870
cmp al, 1
jne 0x452690
cmp esi, 0xf
jae 0x452690
push 0xc8
push 0xc8
lea eax, [ebp - 0xdc]
push eax
push ebx
call fcn.0055a6f0
mov ecx, dword [ebp - 0xf8]
lea eax, [esi + 1]
add esp, 0x10
mov dword [ecx + 0x144], eax
mov esi, eax
add ebx, 0xc8
mov byte [ebp - 0xe1], 1
jmp 0x452690
push 0x80070057
call fcn.00402040
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.00557e86
add esp, 8
test eax, eax
js 0x4527b4
mov ecx, dword [ebp - 0xe0]
cmp eax, dword [ecx - 8]
jg 0x4527b4
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0xe0]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xe1]
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.005578df
mov esp, ebp
pop ebp
ret 4