Function at 0x10017b70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e8
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x11
mov esi, 0x1001e380
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
push 0x20019
mov ecx, 0x14
mov esi, 0x1001e3e8
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 1], bl
call esi
test eax, eax
je 0x10017be1
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x28]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10017bd6
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x28], ebx
jbe 0x10017e9e
mov edi, dword [sym.imp.MSVCR100.dll_wcscat_s]
mov eax, dword [ebp - 0x20]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x2e0]
push edx
push eax
push ecx
mov dword [ebp - 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10017e8e
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x2e0]
push eax
push ecx
call esi
test eax, eax
jne 0x10017e8e
mov eax, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10017e8e
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x10017e7f
lea esp, [esp]
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x2e0]
push edx
push eax
push ecx
mov dword [ebp - 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10017e6f
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x2e0]
push eax
push ecx
call esi
test eax, eax
jne 0x10017e6f
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x2e0]
push eax
push ebx
push ebx
push 0x1001e374
push ecx
mov dword [ebp - 0x44], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017e65
lea ecx, [ebp - 0x2e0]
mov eax, 0x1001e438
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10017d37
cmp dx, bx
je 0x10017d33
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10017d37
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10017d11
xor eax, eax
jmp 0x10017d3c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10017e65
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push ebx
push 0x1001e448
push eax
call esi
test eax, eax
jne 0x10017e65
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push ebx
push 0x1001e3c4
push eax
call esi
test eax, eax
je 0x10017d8d
mov ecx, dword [ebp - 8]
push ecx
jmp 0x10017e69
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x2e0]
push eax
push ebx
push ebx
push 0x1001e458
push ecx
mov dword [ebp - 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017e4a
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x8e8]
push 0x50
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
lea ecx, [ebp - 0x2e0]
push ecx
lea edx, [ebp - 0x8e8]
push 0x200
push edx
call edi
push 0x1001e468
lea eax, [ebp - 0x8e8]
push 0x200
push eax
call edi
add esp, 0x24
lea ecx, [ebp - 0x24]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x8e8]
push edx
push 0x80000002
call esi
test eax, eax
jne 0x10017e40
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x4e8]
push ecx
push ebx
push ebx
push 0x1001e474
push edx
mov dword [ebp - 0x4c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017e40
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
jne 0x10017e7f
jmp 0x10017e6f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x1c]
jb 0x10017c90
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
jne 0x10017e9e
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x28]
jb 0x10017c12
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x10017bd6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4e8]
push 0x1001e490
push ecx
call dword [sym.imp.MSVCR100.dll_swscanf_s]
mov eax, dword [ebp - 0x48]
xor edx, edx
shld edx, eax, 0x10
shl eax, 0x10
or eax, dword [ebp - 0x40]
xor esi, esi
or edx, esi
shld edx, eax, 0x10
shl eax, 0x10
or eax, dword [ebp - 0x30]
or edx, esi
shld edx, eax, 0x10
add esp, 0x18
shl eax, 0x10
or eax, dword [ebp - 0x38]
pop edi
or edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret