Function at 0x452240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57efbe
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5e91b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xff
lea eax, [ebp - 0x10f]
mov edi, ecx
mov dword [ebp - 0x130], ebx
push ebx
push eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x114], ebx
mov byte [ebp - 0x110], bl
call fcn.0055ade0
add esp, 0xc
mov dword [ebp - 0x128], pe_nt_image_headers32
call fcn.004655e9
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4522c5
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x5bc360
lea ecx, [ebp - 0x124]
push 0x5f1fd4
mov dword [ebp - 4], ebx
mov edi, 1
push ecx
mov dword [ebp - 0x130], edi
call fcn.00404ad0
push 0x5f1fd8
push eax
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 4], edi
call fcn.00404a10
push 0x5bc360
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 2
call fcn.00404ad0
push esi
push eax
lea ecx, [ebp - 0x118]
push ecx
mov byte [ebp - 4], 3
call fcn.00404a10
add esp, 0x30
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45235d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4523a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x452429
mov edx, dword [0x5f1fdc]
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45241c
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452400
sub eax, edx
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x11c]
call fcn.00401ea0
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45244e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005578df
mov esp, ebp
pop ebp
ret