Function at 0x4be380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d617
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x567e00]
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 dword [ebp - 0x2d4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x56d69c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x56d1ec]
cmp eax, dword [ecx + 4]
jg 0x4be646
xor eax, eax
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x2b4], ax
xor esi, esi
mov dword [ebp - 0x2d0], eax
mov edi, 7
lea eax, [ebp - 0x2cc]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x2d4], 1
call fcn.004bf490
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4be42c
mov eax, dword [eax]
lea ecx, [ebp - 0x2d0]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x2b8]
mov ebx, eax
cmp edx, 8
jb 0x4be48a
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be480
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4be480
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2b8], edi
mov word [ebp - 0x2cc], ax
test ebx, ebx
jne 0x4be53a
push 0x20a
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x29c]
push ebx
push eax
mov dword [ebp - 0x2d8], 0x208
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2dc]
push eax
push ebx
push str.infoGUID
push dword [ebp - 0x2d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4be52e
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be500
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00403a70
mov edi, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x2a4]
push dword [ebp - 0x2d0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x567d94]
cmp edx, 8
jb 0x4be57c
mov ecx, dword [0x567d80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be572
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4be572
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x2b4]
mov dword [0x567d80], eax
mov eax, dword [ebp - 0x2b0]
mov dword [0x567d84], eax
mov eax, dword [ebp - 0x2ac]
mov dword [0x567d88], eax
mov eax, dword [ebp - 0x2a8]
mov dword [0x567d8c], eax
mov dword [0x567d90], esi
mov dword [0x567d94], edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x4be625
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4be625
push 0x80
lea eax, [ebp - 0x90]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x90]
push 0x40
push eax
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be604
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x90]
push ecx
mov ecx, 0x567d80
call fcn.00403a70
mov eax, 0x567d80
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.004c6f8b
mov esp, ebp
pop ebp
ret
push 0x56d1ec
call fcn.004c7345
add esp, 4
cmp dword [0x56d1ec], 0xffffffff
jne 0x4be3d8
push 0x511ec0
call fcn.004c71fd
push 0x56d1ec
call fcn.004c72fb
add esp, 8
jmp 0x4be3d8