Function at 0x1000ca60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001d6e9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10025814]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edi, 1
mov dword [esp + 0x38], edi
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x3c], 4
call fcn.10001350
mov esi, dword [esp + 0x44]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push ecx
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000cbc2
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
xor edi, edi
push ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1000cb33
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x1000cb29
cmp eax, 2
jne 0x1000cb33
mov edi, dword [esp + 0x18]
shr edi, 1
mov dword [esp + 0x1c], edi
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea edx, [edi + 1]
sub eax, edx
or eax, ecx
jge 0x1000cb54
push edx
mov ecx, esi
call fcn.10001780
mov eax, dword [esi]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.1000bdb0
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x1000cb79
xor eax, eax
jmp 0x1000cb8b
push ecx
push eax
call fcn.1000f85a
add esp, 8
cmp eax, ebx
jl 0x1000cc51
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x1000cc51
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
cmp edi, ebx
je 0x1000cbb1
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.100028b0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000cbc2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
cmp ebp, ebx
je 0x1000cbcd
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cbf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cc17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cc3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.10001000
int3