Function at 0x531a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, 0x6ae0d4
push esi
push edi
mov dword [esp + 0x10], ebx
mov eax, ebx
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [esp + 0x54]
mov eax, esi
lea edi, [esp + 0x18]
call fcn.00531960
push 1
push 0xffffffffffffffff
push ecx
mov eax, esp
mov edx, 0x5c
mov ecx, esi
mov word [eax], dx
call fcn.004b9600
cmp eax, 0xffffffff
jne 0x531aa5
mov dword [esp + 0x14], ebx
mov eax, ebx
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x531ab3
inc eax
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004b9650
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
call fcn.004b9cd0
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x531af4
mov esi, dword [esp + 0x4c]
mov dword [esi], ebx
mov edx, 1
lock xadd dword [ebx], edx
jmp 0x531e00
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
lea ecx, [esp + 0x28]
call fcn.004b9cd0
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push edx
call esi
test eax, eax
je 0x531b92
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x4c]
mov dword [esi], ebx
mov ecx, 1
lock xadd dword [ebx], ecx
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x531b51
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b7f30
add esp, 4
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x531b6b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004b7f30
add esp, 4
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x531e4e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b7f30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x28]
push 0
push edx
lea ecx, [esp + 0x14]
call fcn.004b5880
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
cmp ecx, 1
jne 0x531bb9
lea edx, [eax + 0x10]
cmp dword [eax + 0xc], edx
je 0x531bca
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0x10]
call fcn.004b5950
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.004b9cd0
mov edx, dword [esp + 0x30]
push eax
push edx
call esi
test eax, eax
je 0x531c29
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x4c]
mov dword [esi], ebx
mov ecx, 1
lock xadd dword [ebx], ecx
mov edx, dword [esp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x531b37
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004be5e0
add esp, 4
jmp 0x531b37
mov eax, dword [esp + 0x34]
cmp eax, 7
ja case.0x531c36.6
jmp dword [eax*4 + 0x531e58]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004bae70
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7f40
lea ecx, [esp + 0x38]
call fcn.004010b0
jmp 0x531dc8
mov dword [esp + 0x24], 0x6ae094
mov ecx, 0x6ae094
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0xc]
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004bae70
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
add esp, 0xc
lea esi, [eax + 1]
test eax, eax
je 0x531cf8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401d91
mov edx, dword [esp + 0x1c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x531ccf
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b7f30
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
lea ecx, [eax + esi*2]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004bae70
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
add esp, 0xc
lea esi, [esi + eax + 1]
test eax, eax
jne 0x531ca7
lea ecx, [esp + 0x1c]
call fcn.004010b0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], 0x681e70
call fcn.004b8d10
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00513cc0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
call fcn.004b7f40
lea ecx, [esp + 0x2c]
call fcn.004010b0
lea ecx, [esp + 0x30]
call fcn.004010b0
lea ecx, [esp + 0x24]
call fcn.00401113
jmp 0x531dc8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea eax, [esp + 0x48]
push eax
call fcn.004bae70
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7f40
lea ecx, [esp + 0x40]
call fcn.004010b0
jmp 0x531dc8
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push 0xa
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004bc560
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7f40
lea ecx, [esp + 0x44]
call fcn.004010b0
jmp 0x531dc8
push eax
push str.QSettings:_unknown_data__u_type_in_windows_registry
call fcn.004b1640
add esp, 8
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x4c]
mov dword [esi], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x531e00
mov edx, dword [esp + 0xc]
push edx
call fcn.004be5e0
add esp, 4
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x531e1a
mov edx, dword [esp + 0x14]
push edx
call fcn.004b7f30
add esp, 4
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x531e34
mov edx, dword [esp + 0x18]
push edx
call fcn.004b7f30
add esp, 4
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x531e4e
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7f30
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret