Function at 0x100a1e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192120
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.100a2b30
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], 0
test ebx, ebx
je 0x100a1ece
push str.IsWow64Process
push 0x101a3dd8
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100a1ec1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0x20119
jne 0x100a1ed5
mov dword [ebp - 0x14], 0x20019
push ebx
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.10042e70
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.100a1120
add esp, 0x10
or ebx, 0xffffffff
test eax, eax
je 0x100a2005
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a2005
cmp dword [ebp - 0x30], eax
jbe 0x100a2005
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10126b8d
mov ecx, dword [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
lea ecx, [ecx*2 + 2]
push ecx
push 0
push ebx
call fcn.1014de30
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x30], esi
je 0x100a1ff9
mov eax, dword [ebp - 0x2c]
push 0
push 0
push 0
inc eax
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100a1fef
push ebx
lea ecx, [ebp - 0x14]
call fcn.10041f60
mov ebx, dword [edi + 4]
mov byte [ebp - 4], 1
cmp dword [edi + 8], ebx
je 0x100a1fc1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.10042e70
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [edi + 4], 4
jmp 0x100a1fcd
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.1005bd80
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1fec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x3c]
inc esi
cmp esi, dword [ebp - 0x30]
jne 0x100a1f70
push ebx
call fcn.1012694d
add esp, 4
or ebx, 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100a2013
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100a2032
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret