Function at 0x10013680
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012a810
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1017d4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
call fcn.10013020
mov ecx, eax
test ecx, ecx
je 0x10013aa2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push edi
mov dword [ebp - 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ecx, 0xffffffff
test eax, eax
jne 0x10013a38
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10013734
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.100052b0
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x10013aac
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x34]
push eax
push esi
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.100ec86a
add esp, 8
test eax, eax
js 0x10013aac
cmp eax, dword [esi - 8]
jg 0x10013aac
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x10013a2c
nop word [eax + eax]
cmp edi, 0xea
je 0x10013a2c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10013972
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100137f4
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.100052b0
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x10013aac
mov ecx, esi
mov dword [esi - 0xc], 0x104
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [esi + 0x208], ax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013824
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1001d020
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x1001386e
movups xmm0, xmmword [ebp - 0x28]
xor ecx, ecx
mov word [ebp - 0x28], cx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
mov eax, 7
add dword [edi + 4], 0x18
jmp 0x1001387d
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.1000c1b0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x100138b8
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100138ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013ab6
push edx
push ecx
call fcn.100845f9
add esp, 8
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10013969
push 4
push str.none
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1001d020
mov eax, dword [edi + 4]
mov byte [ebp - 4], 3
cmp dword [edi + 8], eax
je 0x1001391f
movups xmm0, xmmword [ebp - 0x28]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x1001392e
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.1000c1b0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x10013969
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001395f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013ab6
push edx
push ecx
call fcn.100845f9
add esp, 8
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x38]
lea edx, [esi - 0x10]
mov dword [ebp - 0x34], 0x208
cmp dword [edx + 4], 0
mov edi, dword [edx]
je 0x100139cb
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x100139a8
cmp dword [esi - 8], 0
jl 0x10013aac
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x100139cb
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100139bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100139ef
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.100052b0
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x10013aac
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
push esi
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
je 0x100137a0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10013a51
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x10013a87
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013a7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013ab6
push edx
push ecx
call fcn.100845f9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100845e8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100042d0
push 0x80070057
call fcn.100042d0
call fcn.100eb9d0
int3