Function at 0x1000cd40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100253e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100370a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x18]
push 0x1002eddc
push edi
xor ebx, ebx
mov byte [ebp - 4], 2
mov byte [ebp - 0xd], 1
call fcn.10003680
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
or eax, 0x20019
push edx
call fcn.1000d560
test eax, eax
je 0x1000ce19
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000cdba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cddd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ce03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x14
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x24]
lea ecx, [ebp + 8]
push ecx
push 0
lea edx, [ebp + 0xc]
push edx
push 0
push eax
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000ce7d
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1000ce4b
cmp eax, 2
jne 0x1000ce7d
mov esi, dword [ebp + 8]
shr esi, 1
mov dword [ebp - 0x18], esi
je 0x1000ce7d
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
call fcn.1000d2a0
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea edi, [ebp - 0x18]
mov esi, eax
call fcn.1000d4e0
mov edi, dword [ebp + 0x18]
test eax, eax
je 0x1000ce7d
mov byte [ebp - 0xd], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1000ce8f
push ebx
call esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x1000cead
push ecx
push eax
call fcn.10014479
add esp, 8
test eax, eax
js 0x1000cf26
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x1000cf26
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
je 0x1000cec6
push ebx
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000cee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cf0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80070057
call fcn.100040a0
int3