Function at 0x4ca020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3d73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
call fcn.004caa20
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.004b2950
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ca294
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4ca0b4
cmp eax, 2
je 0x4ca0b4
cmp eax, 6
jne 0x4ca294
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4ca26a
shr edi, 1
xor ecx, ecx
mov edx, 2
mov byte [ebp - 0x20], 1
lea esi, [edi + 1]
mov eax, esi
mov dword [ebp - 0x2c], esi
mul edx
mov dword [ebp - 0x28], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c4b2b
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x30], 7
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
cmova ecx, dword [ebp - 0x44]
push 0
push 0
push ecx
push dword [eax + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp edi, esi
jae 0x4ca2c0
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ecx, edx
xorps xmm0, xmm0
mov word [edx + edi*2], ax
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], eax
lea esi, [ecx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ca137
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.0044e360
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004b2af0
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x74]
add esp, 8
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x5c]
mov byte [ebp - 0x5c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
cmp ecx, 7
jbe 0x4ca1fa
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ca1f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca2d6
push ecx
push edx
call fcn.004c46ad
add esp, 8
push dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.004c4b26
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4ca256
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ca24c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca2d6
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x4ca21c
push edi
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.004ca720
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004aa350
push 0x669c1c
lea eax, [ebp - 0x70]
push eax
call fcn.004cf8ea
push 0
push 0x160
push str.D:_src_rcfl_develop_vendordepends2022PocoFoundationincludePocoBuffer.h
push str.index____used
call fcn.004a9920
call fcn.004d91aa
int3