Function at 0x4f9e20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586287
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 1
mov esi, dword [ebp + 8]
mov dword [esi], 0x71f0d0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], 1
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4f9eb3
push str.QSettings:_RegQueryInfoKey___failed
push eax
call fcn.00455420
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
inc ecx
inc eax
mov dword [ebp - 0x28], ecx
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x2c], eax
jne 0x4f9ecc
mov edi, dword [ebp - 0x34]
jmp 0x4f9ed1
mov edi, dword [ebp - 0x38]
mov eax, ecx
push 0
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], edi
push eax
lea ecx, [ebp - 0x14]
call fcn.0043a1e0
xor edx, edx
mov dword [ebp - 4], 1
or ebx, 0xffffffff
mov dword [ebp - 0x1c], edx
test edi, edi
jle 0x4fa0f0
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 0x71f078
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 4]
shr ecx, 1
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
jne 0x4f9f68
cmp ecx, 1
je 0x4f9f2a
test ecx, ecx
jne 0x4f9f30
cmp dword [eax + 0xc], 0x10
je 0x4f9f4a
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
inc ecx
shr eax, 0x1f
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0043b610
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
push 0
push 0
push 0
push 0
add ecx, eax
lea eax, [ebp - 0x20]
push eax
push ecx
push edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4f9fad
cmp ecx, 1
je 0x4f9f71
test ecx, ecx
jne 0x4f9f77
cmp dword [eax + 0xc], 0x10
je 0x4f9f91
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
inc ecx
shr eax, 0x1f
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0043b610
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
push 0
push 0
push 0
push 0
add ecx, eax
lea eax, [ebp - 0x20]
push eax
push ecx
push edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4fa0a4
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
add ecx, eax
lea eax, [ebp - 0x24]
push ecx
push eax
call fcn.0042aa50
add esp, 0xc
mov esi, dword [eax]
mov dword [eax], 0x71f078
mov eax, dword [ebp - 0x18]
or eax, 0xa
mov dword [ebp - 0x18], eax
test al, 4
je 0x4fa011
and eax, 0xfffffffb
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x4fa001
cmp eax, 0xffffffff
je 0x4fa00e
mov eax, ebx
lock xadd dword [edi], eax
dec eax
setne al
test al, al
jne 0x4fa00e
push 4
push 2
push edi
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 2
test al, 2
je 0x4fa050
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x4fa041
cmp eax, 0xffffffff
je 0x4fa050
mov eax, dword [ebp - 0x24]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4fa050
push 4
push 2
push dword [ebp - 0x24]
call fcn.00425140
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ecx]
test eax, eax
je 0x4fa06f
cmp eax, 0xffffffff
je 0x4fa07c
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4fa07c
push 4
push 2
push ecx
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x4fa094
push 0x5c39b8
push 1
lea ecx, [ebp - 0x10]
call fcn.00427430
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00402cb0
jmp 0x4fa0b2
push str.QSettings:_RegEnumValue_failed
push eax
call fcn.00455420
add esp, 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4fa0d1
cmp eax, 0xffffffff
je 0x4fa0e0
mov eax, dword [ebp - 0x10]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4fa0e0
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x30]
jl 0x4f9f00
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4fa10d
cmp eax, 0xffffffff
je 0x4fa11c
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4fa11c
push 4
push 1
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret