Function at 0x100a04e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101897a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101dd594]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100a0743
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push 0x10193fcc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1001d330
test al, al
jne 0x100a0562
push 0
push 0x10193fcc
lea ecx, [ebp - 0x28]
call fcn.10020080
cmp dword [ebp + 0x18], 0
mov byte [ebp - 4], 2
je 0x100a05a8
push str.IsWow64Process
push 0x1019c850
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 0x100a059d
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 0x100a05ad
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 0x100a06da
push edi
lea ecx, [ebp - 0x14]
call fcn.10016670
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 0x100a060e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 3
je 0x100a0674
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100a0622
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10193fcc
mov ecx, ebx
call fcn.10016670
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 0x100a064c
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 0x100a0725
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x100a0725
mov eax, dword [ebp - 0x18]
add eax, 4
push 0x101e8778
push eax
mov dword [ebp - 0x24], eax
call fcn.10128ac8
mov edi, eax
add esp, 8
test edi, edi
je 0x100a06cc
lea eax, [ebp - 0x24]
push eax
push edi
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 0x100a06bd
push 0
push 0x10193fcc
call fcn.10020080
jmp 0x100a06c3
push edi
call fcn.1009f360
push edi
call fcn.101282d1
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100a06da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x28]
add edi, 0xfffffff0
push edi
call fcn.1001d450
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ebx], eax
add esp, 4
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100a0706
mov ecx, dword [edi]
push edi
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 0x100a0725
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.10128191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10017a40
int3