Function at 0x531740
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, 0x6bb0d4
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.00531650
push 1
push 0xffffffffffffffff
push ecx
mov eax, esp
mov edx, 0x5c
mov ecx, esi
mov word [eax], dx
call fcn.004b9370
cmp eax, 0xffffffff
jne 0x531795
mov dword [esp + 0x14], ebx
mov eax, ebx
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x5317a3
inc eax
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004b93c0
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
call fcn.004b9a40
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x5317e4
mov esi, dword [esp + 0x4c]
mov dword [esi], ebx
mov edx, 1
lock xadd dword [ebx], edx
jmp 0x531af0
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
lea ecx, [esp + 0x28]
call fcn.004b9a40
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push edx
call esi
test eax, eax
je 0x531882
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 0x531841
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b7ca0
add esp, 4
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x53185b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004b7ca0
add esp, 4
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x531b3e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b7ca0
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.004b55f0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
cmp ecx, 1
jne 0x5318a9
lea edx, [eax + 0x10]
cmp dword [eax + 0xc], edx
je 0x5318ba
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0x10]
call fcn.004b56c0
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.004b9a40
mov edx, dword [esp + 0x30]
push eax
push edx
call esi
test eax, eax
je 0x531919
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 0x531827
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004be350
add esp, 4
jmp 0x531827
mov eax, dword [esp + 0x34]
cmp eax, 7
ja case.0x531926.6
jmp dword [eax*4 + 0x531b48]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004babe0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7cb0
lea ecx, [esp + 0x38]
call fcn.004010b0
jmp 0x531ab8
mov dword [esp + 0x24], 0x6bb094
mov ecx, 0x6bb094
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.004babe0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
add esp, 0xc
lea esi, [eax + 1]
test eax, eax
je 0x5319e8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401d88
mov edx, dword [esp + 0x1c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5319bf
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b7ca0
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.004babe0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
add esp, 0xc
lea esi, [esi + eax + 1]
test eax, eax
jne 0x531997
lea ecx, [esp + 0x1c]
call fcn.004010b0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], 0x68e740
call fcn.004b8a80
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00513990
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
call fcn.004b7cb0
lea ecx, [esp + 0x2c]
call fcn.004010b0
lea ecx, [esp + 0x30]
call fcn.004010b0
lea ecx, [esp + 0x24]
call fcn.00401113
jmp 0x531ab8
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.004babe0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7cb0
lea ecx, [esp + 0x40]
call fcn.004010b0
jmp 0x531ab8
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.004bc2d0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7cb0
lea ecx, [esp + 0x44]
call fcn.004010b0
jmp 0x531ab8
push eax
push str.QSettings:_unknown_data__u_type_in_windows_registry
call fcn.004b1320
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 0x531af0
mov edx, dword [esp + 0xc]
push edx
call fcn.004be350
add esp, 4
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x531b0a
mov edx, dword [esp + 0x14]
push edx
call fcn.004b7ca0
add esp, 4
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x531b24
mov edx, dword [esp + 0x18]
push edx
call fcn.004b7ca0
add esp, 4
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x531b3e
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7ca0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret