Function at 0x10011640
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f0a40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1013b7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor edi, edi
call fcn.100063a0
mov ecx, eax
test ecx, ecx
je 0x10011a32
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 0x100119b5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100116e0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10006d60
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
jl 0x10011a3c
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.100cc32e
add esp, 8
test eax, eax
js 0x10011a3c
cmp eax, dword [esi - 8]
jg 0x10011a3c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
jne 0x100119a9
cmp ebx, 0xea
je 0x100119a9
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 0x100118f1
push ecx
mov edi, esp
mov dword [ebp - 0x2c], edi
call fcn.100063a0
test eax, eax
je 0x10011a32
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.100060e0
test al, al
jne 0x100117b0
push str.DisplayName
mov ecx, edi
call fcn.10010e00
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.10011a50
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 4
test ecx, ecx
jne 0x100117d3
or edi, 0xffffffff
jmp 0x100117fb
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jge 0x100117e1
or edi, 0xffffffff
jmp 0x100117fb
push ecx
push eax
call fcn.100c58bd
mov edi, eax
add esp, 8
test edi, edi
jne 0x100117f6
or edi, 0xffffffff
jmp 0x100117fb
sub edi, dword [ebp - 0x18]
sar edi, 1
not edi
shr edi, 0x1f
test edi, edi
je 0x100118bf
push ecx
mov edi, esp
mov dword [ebp - 0x30], edi
call fcn.100063a0
test eax, eax
je 0x10011a32
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.100060e0
test al, al
jne 0x10011847
push str.DisplayVersion
mov ecx, edi
call fcn.10010e00
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.10011a50
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x10011a32
mov ecx, dword [ebp - 0x28]
mov edx, ecx
nop word [eax + eax]
mov di, word [edx]
cmp di, word [eax]
jne 0x10011896
test di, di
je 0x10011892
mov di, word [edx + 2]
cmp di, word [eax + 2]
jne 0x10011896
add edx, 4
add eax, 4
test di, di
jne 0x10011870
xor eax, eax
jmp 0x1001189b
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 0x100118c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100118c2
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 0x10011a21
test eax, eax
jg 0x100118f1
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 0x10011948
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10011927
cmp dword [esi - 8], 0
jl 0x10011a3c
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x10011948
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1001193b
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 0x1001196c
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10006d60
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
jl 0x10011a3c
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 0x10011741
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 0x100119d0
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 0x100119ee
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 0x10011a0d
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 0x100119ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100119ac
push 0x80004005
call fcn.100060c0
push 0x80070057
call fcn.100060c0
int3