Function at 0x100c1690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018f24e
mov eax, dword fs:[0]
push eax
sub esp, 0x7d4
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x135], 0
cmp dword [ebp + 8], 0
je 0x100c19c3
mov eax, dword [ebp + 0xc]
push eax
call fcn.1014eb1c
add esp, 4
test eax, eax
je 0x100c19c3
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1014eb1c
add esp, 4
test eax, eax
je 0x100c19c3
call fcn.100e1f50
test eax, eax
je 0x100c17e1
lea edx, [ebp - 0x13c]
push edx
call fcn.100bc6e0
or eax, 1
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c17dc
mov dword [ebp - 0x148], 0x400
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x141], 0
push 0x101a3a98
mov edx, dword [ebp + 0x10]
push edx
call fcn.10150d88
add esp, 8
test eax, eax
jne 0x100c1760
mov byte [ebp - 0x141], 1
push 0x101a0fe4
push 0x101e3bd8
call fcn.1014eafb
add esp, 8
movzx eax, byte [ebp - 0x141]
test eax, eax
je 0x100c1789
mov dword [ebp - 0x7c4], 0x101a0fe4
jmp 0x100c1792
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x7c4], ecx
lea edx, [ebp - 0x148]
push edx
push 0x101e3bd8
lea eax, [ebp - 0x140]
push eax
push 0
mov ecx, dword [ebp - 0x7c4]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c17cf
cmp dword [ebp - 0x140], 1
jne 0x100c17cf
mov byte [ebp - 0x135], 1
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100c19c3
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x74]
call fcn.100e1330
mov dword [ebp - 0x7c8], eax
mov edx, dword [ebp - 0x7c8]
mov dword [ebp - 0x7cc], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x7cc]
call fcn.100e1870
push eax
lea eax, [ebp - 0x54c]
push eax
call fcn.1014e930
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.10063f10
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.100e1330
mov dword [ebp - 0x7d0], eax
mov edx, dword [ebp - 0x7d0]
mov dword [ebp - 0x7d4], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x7d4]
call fcn.100e1870
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.1014e930
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.10063f10
lea ecx, [ebp - 0x13c]
push ecx
call fcn.100bc6e0
or eax, 1
push eax
push 0
lea edx, [ebp - 0x54c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c196d
mov dword [ebp - 0x758], 0x200
mov dword [ebp - 0x750], 0
mov byte [ebp - 0x751], 0
push 0x101a3a94
lea ecx, [ebp - 0x34c]
push ecx
call fcn.1014f3a0
add esp, 8
test eax, eax
jne 0x100c18ea
mov byte [ebp - 0x751], 1
push 0x101a0fc1
lea edx, [ebp - 0x74c]
push edx
call fcn.1014e930
add esp, 8
movzx eax, byte [ebp - 0x751]
test eax, eax
je 0x100c1915
mov dword [ebp - 0x7d8], 0x101a0fc1
jmp 0x100c1921
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x7d8], ecx
lea edx, [ebp - 0x758]
push edx
lea eax, [ebp - 0x74c]
push eax
lea ecx, [ebp - 0x750]
push ecx
push 0
mov edx, dword [ebp - 0x7d8]
push edx
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c1960
cmp dword [ebp - 0x750], 1
jne 0x100c1960
mov byte [ebp - 0x135], 1
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x74c]
push edx
lea ecx, [ebp - 0x134]
call fcn.100e1250
mov dword [ebp - 0x7dc], eax
mov eax, dword [ebp - 0x7dc]
mov dword [ebp - 0x7e0], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x7e0]
call fcn.100e19e0
push eax
push 0x101e3bd8
call fcn.1014eafb
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.10063f10
movzx eax, byte [ebp - 0x135]
neg eax
sbb eax, eax
and eax, 0x101e3bd8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret