Function at 0x100a2260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101922d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x100a24c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push 0x1019e5ec
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10042d30
test al, al
jne 0x100a22e2
push 0
push 0x1019e5ec
lea ecx, [ebp - 0x28]
call fcn.10043c10
cmp dword [ebp + 0x18], 0
mov byte [ebp - 4], 2
je 0x100a2328
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 0x100a231d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x14], 0
mov eax, 0xf013f
jne 0x100a232d
mov eax, 0xf003f
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or esi, 0xffffffff
test eax, eax
jne 0x100a245a
push ebx
lea ecx, [ebp - 0x14]
call fcn.10041f60
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x1c]
movlpd qword [ebp - 0x1c], xmm0
push eax
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a238e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 3
je 0x100a23f4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100a23a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1019e5ec
mov ecx, edi
call fcn.10041f60
mov edx, dword [ebp - 0x28]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a23cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100a24a5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x100a24a5
mov eax, dword [ebp - 0x18]
add eax, 4
push 0x101f3f0c
push eax
mov dword [ebp - 0x24], eax
call fcn.10126b96
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100a244c
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x28]
test eax, eax
je 0x100a243d
push 0
push 0x1019e5ec
call fcn.10043c10
jmp 0x100a2443
push ebx
call fcn.1005c3d0
push ebx
call fcn.1012694d
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100a245a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x28]
add ebx, 0xfffffff0
push ebx
call fcn.10042e70
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x100a2486
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100a24a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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
push 0x80004005
call fcn.10042d10
int3