Function at 0x52a500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x78], ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x8c], 0
call fcn.0052aad0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00505700
add esp, 8
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x74]
push ecx
push 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x52a72c
mov eax, dword [ebp - 0x74]
cmp eax, 1
je 0x52a5ab
cmp eax, 2
je 0x52a5ab
cmp eax, 6
jne 0x52a72c
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x52a70f
shr ebx, 1
xor ecx, ecx
mov edx, 2
mov byte [ebp - 0x7c], 1
lea esi, [ebx + 1]
mov eax, esi
mov dword [ebp - 0x88], esi
mul edx
mov dword [ebp - 0x84], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052b7a0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x70]
push edx
push ecx
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push 0
push eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp ebx, esi
jb 0x52a62d
push 0
push 0x130
push str.F:WorkspacemicroclientpocoFoundationincludePoco_Buffer.h
push str.index____used
call fcn.004f8f00
add esp, 0x10
mov esi, dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call fcn.00415b20
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00505820
add esp, 8
mov dword [edi + 0x14], 0xf
lea eax, [ebp - 0x58]
mov dword [edi + 0x10], 0
mov ecx, edi
mov byte [edi], 0
push eax
call fcn.00409d70
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x52a696
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040b090
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x52a6bd
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040b0e0
xor eax, eax
mov dword [ebp - 0x2c], 7
push esi
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00447d00
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, 8
jb 0x52a6ef
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040b0e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x52a6ef
inc eax
push eax
jmp 0x52a6e4
push esi
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0052a930
push 0
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.004fa060
push 0x5ff878
lea eax, [ebp - 0x6c]
push eax
call fcn.0054e0d6
int3