Function at 0x4b6410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e97f2
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x53d9f8]
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 [0x5421c0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x541ce8]
cmp eax, dword [ecx + 4]
jg 0x4b66c9
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x2b4], ax
xor esi, esi
mov dword [ebp - 0x2d0], eax
mov edi, 7
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2a4], esi
push eax
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x2d4], 1
call fcn.004b7c00
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4b64b2
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 0x4b6510
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b6506
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b6506
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
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 0x4b65c0
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 0x4b65b4
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b6586
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b4]
call fcn.004033b0
mov edi, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x2a4]
push dword [ebp - 0x2d0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x541ce4]
cmp ecx, 8
jb 0x4b65ff
mov eax, dword [0x541cd0]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4b65f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6500
mov eax, edx
push ecx
push eax
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x2b4]
mov dword [0x541cd0], eax
mov eax, dword [ebp - 0x2b0]
mov dword [0x541cd4], eax
mov eax, dword [ebp - 0x2ac]
mov dword [0x541cd8], eax
mov eax, dword [ebp - 0x2a8]
mov dword [0x541cdc], eax
mov dword [0x541ce0], esi
mov dword [0x541ce4], edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x4b66a8
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4b66a8
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 0x4b6687
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x90]
push ecx
mov ecx, 0x541cd0
call fcn.004033b0
mov eax, 0x541cd0
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.004bee49
mov esp, ebp
pop ebp
ret
push 0x541ce8
call fcn.004bf206
add esp, 4
cmp dword [0x541ce8], 0xffffffff
jne 0x4b6468
xor eax, eax
mov dword [0x541ce0], 0
push 0x4ec950
mov dword [0x541ce4], 7
mov word [0x541cd0], ax
call fcn.004bf0be
push 0x541ce8
call fcn.004bf1bc
add esp, 8
jmp 0x4b6468