Function at 0x1000f1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dcee1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1000f3f2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1000f214
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x10]
call fcn.10006ab0
mov byte [ebp - 4], 3
cmp dword [ebp + 0x18], 0
je 0x1000f25a
push 0x10200b04
push 0x1020054c
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000f24f
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x18], 0
mov eax, 0xf013f
jne 0x1000f25f
mov eax, 0xf003f
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f382
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edi
call fcn.10003660
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.1000d670
add esp, 0xc
cmp dword [ebp - 0x28], 3
je 0x1000f31e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000f2b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x101fe8a0
call fcn.10003660
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000f2eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1000f30a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
add eax, 4
push 0x10268c5c
push eax
mov dword [ebp - 0x18], eax
call fcn.100d06cc
mov esi, eax
add esp, 8
test esi, esi
je 0x1000f374
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x10]
test eax, eax
je 0x1000f365
push 0
push 0x101fe8a0
call fcn.10006ab0
jmp 0x1000f36b
push esi
call fcn.10007a40
push esi
call fcn.100d06c7
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000f382
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
push edi
call fcn.100041a0
mov ebx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000f3bf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1000f3de
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3