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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c718e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push 0
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push 0
push 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x52a2ce
push str.QSettings:_RegQueryInfoKey___failed
push eax
call fcn.0049f850
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 8], ecx
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 - 0x24]
mov eax, dword [ebp - 0x28]
inc ecx
mov esi, dword [ebp + 0x10]
inc eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
cmp esi, 1
jne 0x52a2ec
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
jmp 0x52a2f4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, ecx
push 0
lea eax, [eax*2 + 2]
push eax
lea ecx, [ebp - 0x60]
call fcn.004602a0
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x20], edx
jle 0x52a6eb
nop dword [eax + eax]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x58]
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp esi, 1
jne 0x52a37d
test eax, eax
je 0x52a356
cmp dword [eax], esi
jle 0x52a364
mov ecx, dword [ebp - 0x58]
push 1
push ecx
lea ecx, [ebp - 0x60]
call fcn.00461eb0
mov edx, dword [ebp - 0x18]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x5c]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x52a3ae
test eax, eax
je 0x52a389
cmp dword [eax], 1
jle 0x52a397
mov ecx, dword [ebp - 0x58]
push 1
push ecx
lea ecx, [ebp - 0x60]
call fcn.00461eb0
mov edx, dword [ebp - 0x18]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x5c]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x52a7a2
mov eax, dword [ebp - 0x5c]
mov ecx, 0x5e0b28
push dword [ebp - 0x1c]
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x78]
push ecx
push eax
call fcn.00492160
add esp, 0xc
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
or eax, 0xa
mov dword [ebp - 0x14], eax
test al, 4
je 0x52a425
and dword [ebp - 0x14], 0xfffffffb
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x52a425
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52a425
push 4
push 2
push ecx
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 2
test al, 2
je 0x52a45e
and dword [ebp - 0x14], 0xfffffffd
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x52a45e
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52a45e
push 4
push 2
push dword [ebp - 0x78]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
test ecx, ecx
je 0x52a48c
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52a48c
push 4
push 2
push ecx
call fcn.0045fe90
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jne 0x52a4a1
push 0x655f9c
push 1
lea ecx, [ebp - 0x54]
call fcn.0048dcf0
mov esi, dword [ebp - 0x40]
mov edx, esi
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x2c], edx
test edi, edi
je 0x52a566
cmp dword [edi], 1
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
jg 0x52a566
mov ebx, dword [ebp - 0x44]
lea eax, [edi + 0xf]
and eax, 0xfffffffc
mov ecx, ebx
sub ecx, eax
mov dword [ebp - 0x38], eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [edi + 8]
sar edx, 1
sub eax, esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
je 0x52a51a
lea eax, [esi + esi*2]
lea ecx, [ebx + eax*4]
mov eax, dword [ebp - 0x54]
mov dword [ecx], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x52a512
mov eax, 1
lock xadd dword [ecx], eax
inc dword [ebp - 0x40]
jmp 0x52a695
test esi, esi
jne 0x52a563
mov ecx, ebx
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x38]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x52a563
mov eax, dword [ebp - 0x54]
mov dword [ebx - 0xc], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebx - 0xc]
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx - 4], eax
test ecx, ecx
je 0x52a557
mov eax, 1
lock xadd dword [ecx], eax
sub dword [ebp - 0x44], 0xc
inc dword [ebp - 0x40]
jmp 0x52a695
mov edx, dword [ebp - 0x2c]
movq xmm0, qword [ebp - 0x54]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], eax
test ecx, ecx
je 0x52a58c
mov eax, 1
lock xadd dword [ecx], eax
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x48]
mov byte [ebp - 4], 4
test esi, esi
je 0x52a59c
test edx, edx
jne 0x52a59c
mov al, 1
jmp 0x52a59e
xor al, al
mov byte [ebp - 0xd], al
movzx ebx, al
test edi, edi
je 0x52a605
cmp dword [edi], 1
jg 0x52a605
cmp ebx, 1
jne 0x52a5c5
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
add ecx, 0xf
and ecx, 0xfffffffc
sub eax, ecx
cmp eax, 0xc
jmp 0x52a5f2
test al, al
jne 0x52a5f4
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
lea eax, [esi + 0xf]
and eax, 0xfffffffc
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x40]
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
cmp eax, 1
jge 0x52a612
push 0
push 1
push ebx
lea ecx, [ebp - 0x48]
call fcn.00464190
test al, al
jne 0x52a612
push 0
push 1
push ebx
lea ecx, [ebp - 0x48]
call fcn.004801c0
cmp byte [ebp - 0xd], 0
je 0x52a63e
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x6c]
mov dword [ecx - 0xc], eax
mov eax, dword [ebp - 0x68]
mov dword [ecx - 8], eax
mov eax, dword [ebp - 0x64]
mov dword [ecx - 4], eax
xor ecx, ecx
sub dword [ebp - 0x44], 0xc
inc dword [ebp - 0x40]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
jmp 0x52a66f
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x2c]
call fcn.0047f540
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x80]
add dword [ecx + 8], eax
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x52a695
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52a695
push 4
push 2
push ecx
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x52a6a1
cmp dword [eax], 1
jle 0x52a6af
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.004801c0
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x52a6d5
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52a6d5
push 4
push 2
push dword [ebp - 0x54]
call fcn.0045fe90
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jl 0x52a320
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 8], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test ecx, ecx
je 0x52a78e
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52a735
push 4
push eax
push dword [ebp - 0x60]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x52a78e
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52a78e
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
lea eax, [eax + eax*2]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x52a77f
mov ecx, dword [esi]
test ecx, ecx
je 0x52a778
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52a778
push 4
push 2
push dword [esi]
call fcn.0045fe90
add esp, 0xc
add esi, 0xc
cmp esi, edi
jne 0x52a758
push 4
push 0xc
push dword [ebp - 0x48]
call fcn.0045fe90
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.QSettings:_RegEnumValue_failed
push eax
call fcn.0049f850
mov ecx, dword [ebp - 0x54]
add esp, 8
mov byte [ebp - 4], 1
test ecx, ecx
je 0x52a6db
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52a6db
push 4
push 2
push dword [ebp - 0x54]
call fcn.0045fe90
add esp, 0xc
jmp 0x52a6db