Function at 0x1000f520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dcffe
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1025e344]
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 dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 1
mov ax, word [0x101fe8a0]
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push 0
push eax
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], 0x104
call fcn.101a08b0
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x1000f608
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 1
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f628
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000f628
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea esi, [ebp - 0x218]
mov dword [ebp - 0x238], esi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1000f8f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov ebx, 1
or ecx, 0xffffffff
mov dword [ebp - 0x220], ebx
cmp word [ebp - 0x218], 0
je 0x1000f8b8
test esi, esi
je 0x1000f89a
call fcn.100049d0
test eax, eax
je 0x1000f8f5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
push esi
call fcn.10004060
test al, al
jne 0x1000f6cc
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000f6b0
sub eax, edx
lea ecx, [ebp - 0x21c]
sar eax, 1
push eax
push esi
call fcn.10006ab0
mov byte [ebp - 4], 5
mov eax, dword [edi]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1000f6e2
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1000f6f6
call fcn.100049d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x1000f8f5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 5
or ebx, 2
mov dword [ebp - 0x220], ebx
mov eax, dword [edi]
push 2
push 0x101ff918
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10004210
add esp, 0x14
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x230]
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov dword [ebp - 0x248], eax
test ecx, ecx
je 0x1000f752
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1000f766
call fcn.100049d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x1000f8f5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 7
or ebx, 4
mov dword [ebp - 0x220], ebx
lea eax, [ebp - 0x234]
mov esi, dword [ebp - 0x21c]
push dword [esi - 0xc]
push esi
push dword [edi - 0xc]
push edi
push eax
call fcn.10004210
mov edx, dword [ebp - 0x224]
add esp, 0x14
mov eax, dword [ebp - 0x234]
mov edx, dword [edx]
sub edx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x240], edx
cmp edi, edx
je 0x1000f824
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x23c], ecx
jl 0x1000f815
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x1000f815
push edi
call fcn.100041a0
mov edx, dword [ebp - 0x23c]
add esp, 4
mov dword [ebp - 0x244], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000f808
mov eax, dword [ebp - 0x240]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x224]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1000f824
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x224]
push eax
call fcn.10006ab0
and ebx, 0xfffffffb
mov dword [ebp - 0x220], ebx
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000f846
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
and ebx, 0xfffffffd
mov dword [ebp - 0x220], ebx
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x248]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000f86e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp - 0x238]
lea edi, [ecx + eax*2]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
add esi, 0xfffffff0
mov eax, ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000f89f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000f89c
xor edi, edi
or ecx, 0xffffffff
cmp word [edi + 2], 0
lea esi, [edi + 2]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x238], esi
jmp 0x1000f667
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000f8d7
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3