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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557bb7
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
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], 0x6e8124
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 0x4cb063
push str.QSettings:_RegQueryInfoKey___failed
push eax
call fcn.00427810
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 0x4cb07c
mov edi, dword [ebp - 0x34]
jmp 0x4cb081
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.00429880
xor edx, edx
mov dword [ebp - 4], 1
or ebx, 0xffffffff
mov dword [ebp - 0x1c], edx
test edi, edi
jle 0x4cb2a0
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 0x6e80cc
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 0x4cb118
cmp ecx, 1
je 0x4cb0da
test ecx, ecx
jne 0x4cb0e0
cmp dword [eax + 0xc], 0x10
je 0x4cb0fa
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.0042ae40
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 0x4cb15d
cmp ecx, 1
je 0x4cb121
test ecx, ecx
jne 0x4cb127
cmp dword [eax + 0xc], 0x10
je 0x4cb141
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.0042ae40
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 0x4cb254
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.00408df0
add esp, 0xc
mov esi, dword [eax]
mov dword [eax], 0x6e80cc
mov eax, dword [ebp - 0x18]
or eax, 0xa
mov dword [ebp - 0x18], eax
test al, 4
je 0x4cb1c1
and eax, 0xfffffffb
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x4cb1b1
cmp eax, 0xffffffff
je 0x4cb1be
mov eax, ebx
lock xadd dword [edi], eax
dec eax
setne al
test al, al
jne 0x4cb1be
push 4
push 2
push edi
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 2
test al, 2
je 0x4cb200
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x4cb1f1
cmp eax, 0xffffffff
je 0x4cb200
mov eax, dword [ebp - 0x24]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cb200
push 4
push 2
push dword [ebp - 0x24]
call fcn.00403690
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ecx]
test eax, eax
je 0x4cb21f
cmp eax, 0xffffffff
je 0x4cb22c
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4cb22c
push 4
push 2
push ecx
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x4cb244
push 0x59405c
push 1
lea ecx, [ebp - 0x10]
call fcn.004058c0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00406090
jmp 0x4cb262
push str.QSettings:_RegEnumValue_failed
push eax
call fcn.00427810
add esp, 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4cb281
cmp eax, 0xffffffff
je 0x4cb290
mov eax, dword [ebp - 0x10]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cb290
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x30]
jl 0x4cb0b0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4cb2bd
cmp eax, 0xffffffff
je 0x4cb2cc
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4cb2cc
push 4
push 1
push dword [ebp - 0x14]
call fcn.00403690
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