Function at 0x4b9d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cf15
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ecx
jb 0x4b9d7e
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b9dd0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 7
jmp 0x4b9e42
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4b9dda
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4b9e60
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402e80
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4b9e42
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b9e38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9f52
push edx
push ecx
call fcn.004c6f6f
add esp, 8
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.004c6f8b
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x30]
add esi, 2
push esi
call fcn.004c6f7d
mov ebx, eax
mov dword [ebp - 0x3c], ebx
push esi
push 0
push ebx
mov byte [ebp - 4], 1
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x38]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4b9e8c
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push ebx
push 0
push 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4b9ecd
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402e80
test ebx, ebx
je 0x4b9e08
push ebx
call fcn.004c6f86
add esp, 4
jmp 0x4b9e08
mov eax, dword [ebp - 0x34]
sub eax, 1
je 0x4b9eda
sub eax, 1
jne 0x4b9ef9
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9ee0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403a70
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402e80
test ebx, ebx
je 0x4b9f1a
push ebx
call fcn.004c6f86
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4b9e42
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b9e38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b9e38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3