Function at 0x1001e8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1006d570
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
sub eax, 0x10
mov edi, 1
xor ebp, ebp
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
call fcn.10001d80
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10001d80
lea esi, [eax + 0x10]
add esp, 8
mov dword [esp + 0x3c], esi
mov byte [esp + 0x28], 1
cmp dword [ebx - 4], edi
jle 0x1001e934
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.10001bc0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
push 0x20019
push ebp
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
je 0x1001e9aa
lea eax, [esi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x28], 0
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001e970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001e994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp dword [esi - 4], edi
jle 0x1001e9c0
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x40]
call fcn.10001bc0
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x20]
push eax
push ebp
push esi
push ecx
call edi
cmp eax, ebp
je 0x1001ea03
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1001e964
cmp dword [esp + 0x18], 1
je 0x1001ea1a
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001e94f
mov eax, dword [esp + 0x14]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003efb3
mov ebp, eax
mov eax, dword [esp + 0x18]
push eax
push 0
push ebp
call fcn.1004b150
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x1001ea5f
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x40]
call fcn.10001bc0
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x20]
push eax
push 0
push esi
push ecx
call edi
mov edi, dword [esp + 0x30]
mov edx, ebp
call fcn.10001b10
push ebp
call fcn.1003efae
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [esp + 0x28], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1001eab4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ead8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret