Function at 0x10017910
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10076f56
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1008e418]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x1008e418]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov edi, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x258], ecx
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0xc], ecx
je 0x100179c5
mov ebx, dword [eax]
mov eax, dword [0x100902c0]
cmp eax, 1
jne 0x10017992
call fcn.100152c0
neg eax
sbb eax, eax
and eax, 0x100
mov dword [0x100902c0], eax
xor ecx, ecx
lea edx, [esp + 0x14]
push edx
or eax, 0x20019
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
add eax, 1
je 0x10017c02
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
jmp 0x100179f3
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100179ea
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
xor edx, edx
test eax, eax
sete dl
mov eax, edx
test eax, eax
je 0x10017bf3
mov dword [esp + 0x18], 0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x46]
push ecx
mov word [esp + 0x48], ax
call fcn.10061ab0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
mov dword [esp + 0x44], 0x104
call ebx
test eax, eax
jne 0x10017b0f
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
call fcn.10016190
mov ebx, eax
mov byte [esp + 0x258], 1
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp edx, eax
jne 0x10017ab4
mov ecx, dword [esi]
cmp ebx, ecx
jb 0x10017a87
lea edi, [ecx + eax*4]
cmp ebx, edi
jb 0x10017bdf
test eax, eax
jne 0x10017a90
lea edi, [eax + 1]
jmp 0x10017a9f
lea edi, [edx + edx]
test edi, edi
jl 0x10017ada
cmp edi, 0x1fffffff
ja 0x10017ada
push 4
push edi
push ecx
call fcn.1005771f
add esp, 0xc
test eax, eax
je 0x10017ada
mov dword [esi + 8], edi
mov dword [esi], eax
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea edi, [edx + eax*4]
mov byte [esp + 0x258], 2
test edi, edi
je 0x10017ad7
mov eax, dword [ebx]
sub eax, 0x10
call fcn.10016af0
add eax, 0x10
mov dword [edi], eax
inc dword [esi + 4]
mov byte [esp + 0x258], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10017bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x18]
jmp 0x10017a03
cmp eax, 0xea
jne 0x10017bf3
mov edx, dword [0x1009238c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1009238c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x258], 3
mov dword [esp + 0x24], 0x400
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, 0x400
or eax, ecx
jge 0x10017b68
mov ecx, 0x400
lea eax, [esp + 0x14]
call fcn.10016aa0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push edi
push eax
push ecx
call ebx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.1005723d
add esp, 8
test eax, eax
jl 0x10017be9
cmp eax, dword [edi - 8]
jg 0x10017be9
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
cmp dword [edi - 0xc], edx
je 0x10017bb2
lea ebx, [esp + 0x14]
call fcn.100164b0
add edi, 0xfffffff0
mov byte [esp + 0x258], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017bd6
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
inc dword [esp + 0x18]
jmp 0x10017a03
push 0x80004005
call fcn.100125e0
push 0x80070057
call fcn.100125e0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10017c02
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10055232
mov esp, ebp
pop ebp
ret