Function at 0x10071ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021922d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x102c6100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov eax, ebx
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 7
jbe 0x10071efc
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], ecx
jne 0x10071f1c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 0x13]
push eax
push 0x200
lea ecx, [ebp - 0x24]
mov byte [ebp + 0x13], 0
call fcn.10060660
mov esi, dword [ebp - 0x20]
mov eax, esi
mov edi, dword [ebp - 0x24]
sub eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0x14], 0
cmp dword [eax + 0x14], 7
jbe 0x10071f62
mov ecx, dword [eax]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x10071f8c
test ecx, ecx
jne 0x10071f8c
mov bl, 1
jmp 0x1007216e
cmp ecx, 1
je 0x10071fa4
cmp ecx, 2
je 0x10071fa4
test ecx, ecx
je 0x10071fa4
mov eax, 0x490
jmp 0x10072169
cmp eax, 0xea
jne 0x1007203c
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
jbe 0x10072169
mov eax, esi
mov edx, edi
cmp edi, eax
cmove edx, eax
cmovne esi, edi
mov dword [ebp - 0x18], edx
add ecx, 8
sub edx, edi
mov dword [ebp - 0x20], esi
mov byte [ebp + 0x13], 0
cmp ecx, edx
jae 0x10071fdf
lea esi, [edi + ecx]
jmp 0x10072016
jbe 0x10072019
mov eax, dword [ebp - 0x1c]
sub eax, edi
cmp ecx, eax
jbe 0x10071fff
lea eax, [ebp + 0x13]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.10060660
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x10072019
mov esi, dword [ebp - 0x18]
sub ecx, edx
push ecx
push 0
push esi
mov dword [ebp + 0x10], ecx
call fcn.1012de20
add esp, 0xc
add esi, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 7
jbe 0x10072024
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x1007216b
mov byte [ebp + 0xb], al
cmp esi, dword [ebp - 0x1c]
je 0x10072054
mov byte [esi], al
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10072067
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.100607f0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov byte [ebp + 0xb], 0
cmp esi, dword [ebp - 0x1c]
je 0x10072079
mov byte [esi], 0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10072089
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.100607f0
mov edi, dword [ebp - 0x24]
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10072090
mov edx, dword [ebx + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x18], edx
cmp esi, edx
ja 0x100720d6
mov dword [ebp + 8], ebx
mov eax, ebx
cmp edx, 7
jbe 0x100720b8
mov eax, dword [ebx]
mov dword [ebp + 8], eax
mov dword [ebx + 0x10], esi
add esi, esi
push esi
push edi
push eax
call fcn.1012d8a0
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x10072166
cmp esi, 0x7ffffffe
ja 0x100721cd
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x100720f6
mov ecx, SysReAllocString
jmp 0x1007211a
mov eax, edx
shr eax, 1
mov dword [ebp + 8], eax
mov eax, SysReAllocString
sub eax, dword [ebp + 8]
cmp edx, eax
jbe 0x10072110
mov ecx, SysReAllocString
jmp 0x1007211a
mov eax, dword [ebp + 8]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp + 8]
mov dword [ebp + 8], ecx
push eax
push ebx
call fcn.1004d090
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x10], esi
add esi, esi
push esi
push edi
push eax
mov dword [ebp + 0xc], eax
mov dword [ebx + 0x14], ecx
call fcn.1012d8a0
mov ecx, dword [ebp + 0xc]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x18]
cmp eax, 7
jbe 0x10072164
push eax
push dword [ebx]
push ebx
call fcn.1004cf40
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebx], eax
jmp 0x10072166
mov dword [ebx], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100721b7
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x10072198
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100721d2
push ecx
push edi
call fcn.1010693f
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
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 0xc
call fcn.1004cdb0
call fcn.1013823f
int3