Function at 0x10176930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10176959
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
mov ebx, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x1017697b
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x20]
push 0
push ebx
push dword [ebp + 8]
call eax
jmp 0x1017698e
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x20]
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
test esi, esi
je 0x1017699c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
test eax, eax
je 0x101769f3
cmp eax, 5
jne 0x10176b4c
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x10176b4c
call fcn.100de050
test eax, eax
jne 0x10176b4c
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.100dc890
add esp, 8
test eax, eax
je 0x10176b4c
lea eax, [ebp - 4]
push eax
push ebx
push esi
call fcn.100e5610
test eax, eax
jne 0x10176b4c
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10176a0f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x41
call fcn.10003680
add esp, 4
test eax, eax
je 0x10176a33
lea ecx, [ebp + 0x1c]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call eax
jmp 0x10176a4b
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x10176a59
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10176a75
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push dword [ebp - 8]
test eax, eax
je 0x10176a8a
call eax
jmp 0x10176a90
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10176a9b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10176acb
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x10176ab1
cmp eax, 2
jne 0x10176abf
shr edi, 1
push edi
push dword [ebp + 0x18]
call fcn.100d9f60
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x10176b4c
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x10176b4c
call fcn.100de050
test eax, eax
jne 0x10176b4c
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.100dc890
add esp, 8
test eax, eax
je 0x10176b4c
lea eax, [ebp - 4]
push eax
push ebx
push esi
call fcn.100e5610
test eax, eax
jne 0x10176b4c
mov ebx, dword [ebp + 0x18]
lea eax, [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
push eax
push ebx
push esi
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10023dd0
push dword [ebp - 4]
call fcn.10034ac0
mov eax, dword [esi]
cmp eax, 1
je 0x10176b34
cmp eax, 2
jne 0x10176abf
shr edi, 1
push edi
push ebx
call fcn.100d9f60
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret