Function at 0x4f53f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5480a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x58a710]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4f542d
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4f5454
push 0x80004005
call fcn.004049a0
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 0x4f5506
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f5473
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00405640
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x54e2a8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004f87a0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00414200
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 0x4f54ce
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 0x4f5503
xor ebx, ebx
nop dword [eax]
mov eax, dword [ebx*8 + 0x589cb4]
test eax, eax
je 0x4f5423
push eax
push esi
call fcn.0052ae9e
add esp, 8
test eax, eax
je 0x4f555c
inc ebx
cmp ebx, 9
jb 0x4f54e0
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 0x4f552b
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 0x4f5547
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 0x4f5503
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.005268cd
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 0x4f5506
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.004f5fc0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00414200
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 0x4f55dd
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 + 0x589cb0]
call fcn.0040ea30
test eax, eax
je 0x4f571a
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.004198c0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00414200
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 0x4f563f
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 + 0x589cb0]
call fcn.0040ea30
test eax, eax
jne 0x4f56f5
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4f5674
push 0x80004005
call fcn.004049a0
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.004f5fc0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00414200
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 0x4f56c0
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 0x4f56fe
cmp eax, 0xea
je 0x4f56fe
lea ecx, [ebp - 0x18]
call fcn.00413a30
mov dword [ebp - 0x14], 0
jmp 0x4f5721
mov byte [ebp - 4], 3
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4f571a
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 0x4f550d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f550d