Function at 0x1000f900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dd079
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
push dword [0x1025e088]
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x10], 0
call fcn.10003660
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x14], 1
je 0x1000f99d
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 0x1000f992
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 0x1000f9a2
mov eax, 0xf003f
lea ecx, [ebp - 0x10]
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 0x1000fad8
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], eax
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1000fb1c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
call fcn.10004060
test al, al
jne 0x1000fa19
test edi, edi
jne 0x1000f9f9
xor ecx, ecx
jmp 0x1000fa0f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000fa00
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp + 0x18]
call fcn.10006ab0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push 0
push dword [ebp + 0x18]
movlpd qword [ebp - 0x20], xmm0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb esi, esi
inc esi
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000fa66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1000fad8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000fad8
add eax, 0x10
push 0x10268c5c
push eax
mov dword [ebp + 0x18], eax
call fcn.100d06cc
mov esi, eax
add esp, 8
test esi, esi
je 0x1000fad8
push dword [ebp + 0x18]
push 0
push esi
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
push esi
push 0
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000facf
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000fab5
sub ecx, edx
sar ecx, 1
je 0x1000facf
push ecx
push esi
mov ecx, ebx
call fcn.10006ab0
push esi
call fcn.100d06c7
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000fae6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
or al, 0x49
test ecx, ecx
jg 0x1000fb08
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