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

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov ebx, 1
push edi
mov dword [esp + 0x14], 0x6c3094
mov eax, 0x6c3094
mov ecx, ebx
lock xadd dword [eax], ecx
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x58]
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x68]
push edx
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x50e51c
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x3c]
call fcn.0050c8a0
mov ecx, eax
call fcn.004c7a70
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax]
cmp edx, ebx
jne 0x50e49d
mov eax, dword [esi]
lea ecx, [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x50e4aa
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
mov ecx, esi
call fcn.004c3b70
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push edx
push str.QSettings:_RegQueryInfoKey___failed:__s
call fcn.004bf6c0
mov eax, dword [esp + 0x3c]
add esp, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e4d7
mov edx, dword [esp + 0x34]
push edx
call fcn.004cc7c0
add esp, 4
mov eax, dword [esp + 0x38]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e4f1
mov edx, dword [esp + 0x38]
push edx
call fcn.004c6150
add esp, 4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
mov dword [edi], eax
mov ecx, ebx
lock xadd dword [eax], ecx
mov eax, dword [edi]
test byte [eax + 0x10], bl
jne 0x50e810
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00401e74
jmp 0x50e810
add dword [esp + 0x28], ebx
add dword [esp + 0x24], ebx
cmp dword [esp + 0x60], ebx
jne 0x50e538
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
jmp 0x50e544
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], edx
add eax, ebx
push 0
add eax, eax
push eax
lea ecx, [esp + 0x24]
call fcn.004c3aa0
xor edi, edi
cmp dword [esp + 0x30], edi
jle 0x50e7d4
mov dword [esp + 0x18], 0x6c30d4
mov ecx, 0x6c30d4
mov edx, ebx
lock xadd dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
lea ecx, [edx + 8]
shr eax, 1
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x60], ebx
jne 0x50e5c6
mov eax, dword [edx]
cmp eax, ebx
jne 0x50e59b
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x10]
cmp dword [eax + 0xc], edx
je 0x50e5ab
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0x20]
call fcn.004c3b70
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push eax
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x50e601
mov edx, dword [edx]
cmp edx, ebx
jne 0x50e5d8
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x10]
cmp dword [eax + 0xc], edx
je 0x50e5e8
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0x20]
call fcn.004c3b70
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push eax
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x50e6c3
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0xc]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004c9050
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.004c3960
mov eax, dword [esp + 0x3c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e647
mov edx, dword [esp + 0x3c]
push edx
call fcn.004c6150
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
jne 0x50e689
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push 0x691e14
push ecx
call fcn.004c7b10
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.004c3960
mov edx, dword [esp + 0x44]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x50e689
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004c6150
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp eax, ebx
je 0x50e791
push ebx
push closesocket
lea ecx, [esp + 0x1c]
call fcn.00401dec
test eax, eax
je 0x50e7ae
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov edx, dword [esp + 0x18]
mov eax, ebx
lock xadd dword [edx], eax
jmp 0x50e7ae
push 0
push 0
push 0
push 0
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004c9050
add esp, 0xc
mov ecx, 0xa
push ebx
lea edx, [esp + 0x16]
mov word [esp + 0x16], cx
push edx
lea ecx, [esp + 0x28]
call fcn.004c62d0
test al, al
je 0x50e719
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
dec eax
push eax
lea ecx, [esp + 0x24]
call fcn.004c9f10
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.004c7a70
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax]
cmp edx, ebx
jne 0x50e73b
mov eax, dword [esi]
lea ecx, [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x50e748
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
mov ecx, esi
call fcn.004c3b70
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push edx
push str.QSettings:_RegEnumValue_failed:__s
call fcn.004bf6c0
mov eax, dword [esp + 0x48]
add esp, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e775
mov edx, dword [esp + 0x40]
push edx
call fcn.004cc7c0
add esp, 4
mov eax, dword [esp + 0x20]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e7ae
mov edx, dword [esp + 0x20]
push edx
call fcn.004c6150
add esp, 4
jmp 0x50e7ae
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov ecx, ebx
lock xadd dword [eax], ecx
lea ecx, [esp + 0x14]
call fcn.004c3270
mov edx, dword [esp + 0x50]
mov dword [eax], edx
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e7c8
mov edx, dword [esp + 0x18]
push edx
call fcn.004c6150
add esp, 4
add edi, ebx
cmp edi, dword [esp + 0x30]
jl 0x50e560
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
mov dword [edi], eax
mov ecx, ebx
lock xadd dword [eax], ecx
mov eax, dword [edi]
test byte [eax + 0x10], bl
jne 0x50e7f6
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00401e74
mov eax, dword [esp + 0x1c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e810
mov edx, dword [esp + 0x1c]
push edx
call fcn.004cc7c0
add esp, 4
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50e845
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f5c
push esi
call fcn.004cc7c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret