Function at 0x1000dd10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020769
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1002b130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
call fcn.100021c0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x18], 1
cmp dword [eax - 0xc], 0
je 0x1000ddcb
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push 0x10021298
push eax
call fcn.1000b8c0
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.100084e0
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000ddcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.1000da70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10008770
add esp, 0x10
lea ecx, [ebp - 0x28]
push 0x20019
push dword [eax]
push SysReAllocString
call fcn.100028a0
mov edi, dword [ebp - 0x14]
mov edx, ebx
add edi, 0xfffffff0
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000de1c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000de3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
jne 0x1000def5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
xor edi, edi
lea eax, [ebp - 0x1c]
push edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000de81
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1000de79
cmp eax, 2
jne 0x1000de81
mov edi, dword [ebp - 0x10]
shr edi, 1
mov dword [ebp - 0x14], edi
inc edi
jns 0x1000de8e
push 0x80070057
call fcn.10002190
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x1000dea9
push edi
mov ecx, esi
call fcn.100029c0
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea ecx, [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.1000c320
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x1000ded4
push dword [ecx - 8]
push ecx
call fcn.1000eec0
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1000de84
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1000de84
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
test edi, edi
je 0x1000def5
lea eax, [ebp + 0x14]
mov ecx, esi
push eax
call fcn.100084e0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000df03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000df23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000df43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x14]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000df61
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret