Function at 0x10020b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x10020bbd
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov edi, dword [ebp + 8]
push eax
push 0x20019
push 0
push ebx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x10020d2e
cmp eax, 3
je 0x10020d2e
test eax, eax
je 0x10020c2e
push ebx
push edi
lea eax, [ebp - 0x10]
push str.Error_accessing_Windows_Registry_key__0x_08x_s_
push eax
call fcn.1000f1d0
mov esi, dword [ebp - 0x10]
push esi
push 0
call fcn.10033a50
push dword [ebp - 0x20]
push 0
call fcn.100333e0
add esp, 0x20
jmp 0x10020d4c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0xffffffff
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp + 0x10]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x10020d0b
cmp eax, 3
je 0x10020d0b
test eax, eax
je 0x10020c99
mov eax, dword [ebp + 0x10]
push eax
push ebx
push edi
lea eax, [ebp - 0x10]
push str.Error_accessing_Windows_Registry_key_Value__0x_08x_s_s__to_get_size
push eax
call fcn.1000f1d0
mov esi, dword [ebp - 0x10]
push esi
push 0
call fcn.10033a50
push dword [ebp - 0x20]
push 0
call fcn.100333e0
add esp, 0x24
jmp 0x10020d4c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10020ca3
shr eax, 1
dec eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x14]
push eax
call fcn.10016ad0
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x10]
push 2
push eax
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [ebp + 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x20], eax
call fcn.1000c380
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x10020d07
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push dword [ebp + 8]
push str.Error_accessing_Windows_Registry_key_Value__0x_08x_s_s_
push eax
call fcn.1000f1d0
mov esi, dword [ebp - 0x10]
push esi
push 0
call fcn.10033a50
push edi
push 0
call fcn.100333e0
add esp, 0x24
jmp 0x10020d4c
mov bl, 1
jmp 0x10020d4e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push edi
push str.Could_not_find_Windows_Registry_key_Value__0x_08x_s_s_
push eax
call fcn.1000f1d0
mov esi, dword [ebp - 0x10]
push esi
push 0
call fcn.10033a50
add esp, 0x1c
jmp 0x10020d4c
push ebx
push edi
lea eax, [ebp - 0x10]
push str.Could_not_find_Windows_Registry_key__0x_08x_s_
push eax
call fcn.1000f1d0
mov esi, dword [ebp - 0x10]
push esi
push 0
call fcn.10033a50
add esp, 0x18
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10020d6d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret