Function at 0x4edaf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541860
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x583384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4edb2d
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4edb54
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 1
test edx, edx
je 0x4edc06
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4edb73
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00407040
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x547a38
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004f0f20
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00413fa0
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4edbce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x4edc03
xor ebx, ebx
nop dword [eax]
mov eax, dword [ebx*8 + 0x582a04]
test eax, eax
je 0x4edb23
push eax
push esi
call fcn.0052747d
add esp, 8
test eax, eax
je 0x4edc5c
inc ebx
cmp ebx, 9
jb 0x4edbe0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4edc2b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4edc47
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 9
jae 0x4edc03
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x10]
push 0x5c
push edi
mov byte [ebp - 4], 3
call fcn.00527131
mov ecx, eax
add esp, 8
sub ecx, edi
test eax, eax
mov eax, 0xffffffff
cmove ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
je 0x4edc06
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.004ee6c0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00413fa0
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4edcdd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push 0x20019
push esi
push dword [ebx*8 + 0x582a00]
call fcn.0040fa60
test eax, eax
je 0x4ede1a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00419a40
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00413fa0
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4edd3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push 0x20019
push esi
push dword [ebx*8 + 0x582a00]
call fcn.0040fa60
test eax, eax
jne 0x4eddf5
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4edd74
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
inc eax
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004ee6c0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00413fa0
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4eddc0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4eddfe
cmp eax, 0xea
je 0x4eddfe
lea ecx, [ebp - 0x18]
call fcn.00406240
mov dword [ebp - 0x14], 0
jmp 0x4ede21
mov byte [ebp - 4], 3
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4ede1a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4edc0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4edc0d