Function at 0x10010aa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e8790
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101302a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor edi, edi
call fcn.10005810
mov ecx, eax
test ecx, ecx
je 0x10010e92
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
xor eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x20], 0x208
push edi
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x10010e15
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10010b40
push 0x104
lea ecx, [ebp - 0x10]
call fcn.100061d0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
jl 0x10010e9c
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.100c608e
add esp, 8
test eax, eax
js 0x10010e9c
cmp eax, dword [esi - 8]
jg 0x10010e9c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
jne 0x10010e09
cmp ebx, 0xea
je 0x10010e09
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010d51
push ecx
mov edi, esp
mov dword [ebp - 0x2c], edi
call fcn.10005810
test eax, eax
je 0x10010e92
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
push str.DisplayName
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10005550
test al, al
jne 0x10010c10
push str.DisplayName
mov ecx, edi
call fcn.10010260
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.10010eb0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 4
test ecx, ecx
jne 0x10010c33
or edi, 0xffffffff
jmp 0x10010c5b
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jge 0x10010c41
or edi, 0xffffffff
jmp 0x10010c5b
push ecx
push eax
call fcn.100bf61d
mov edi, eax
add esp, 8
test edi, edi
jne 0x10010c56
or edi, 0xffffffff
jmp 0x10010c5b
sub edi, dword [ebp - 0x18]
sar edi, 1
not edi
shr edi, 0x1f
test edi, edi
je 0x10010d1f
push ecx
mov edi, esp
mov dword [ebp - 0x30], edi
call fcn.10005810
test eax, eax
je 0x10010e92
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
push str.DisplayVersion
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10005550
test al, al
jne 0x10010ca7
push str.DisplayVersion
mov ecx, edi
call fcn.10010260
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.10010eb0
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x10010e92
mov ecx, dword [ebp - 0x28]
mov edx, ecx
nop word [eax + eax]
mov di, word [edx]
cmp di, word [eax]
jne 0x10010cf6
test di, di
je 0x10010cf2
mov di, word [edx + 2]
cmp di, word [eax + 2]
jne 0x10010cf6
add edx, 4
add eax, 4
test di, di
jne 0x10010cd0
xor eax, eax
jmp 0x10010cfb
sbb eax, eax
or eax, 1
shr eax, 0x1f
lea edx, [ecx - 0x10]
xor al, 1
or ebx, 0xffffffff
movzx edi, al
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10010d22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10010d22
or ebx, 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test edi, edi
jne 0x10010e81
test eax, eax
jg 0x10010d51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc dword [ebp - 0x24]
lea edx, [esi - 0x10]
mov dword [ebp - 0x20], 0x208
cmp dword [edx + 4], 0
mov ebx, dword [edx]
je 0x10010da8
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10010d87
cmp dword [esi - 8], 0
jl 0x10010e9c
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x10010da8
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10010d9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10010dcc
push 0x104
lea ecx, [ebp - 0x10]
call fcn.100061d0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
jl 0x10010e9c
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
je 0x10010ba1
or ebx, 0xffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10010e30
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10010e4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10010e6d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jg 0x10010e0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10010e0c
push 0x80004005
call fcn.10005530
push 0x80070057
call fcn.10005530
int3