Function at 0x10002890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fd89
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1006e090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
xor eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
push 0x208
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 1
call fcn.100169fe
mov edx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], edx
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x20019
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x18]
push ecx
push edi
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10002aa8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10002a9f
cmp dword [ebp - 0x10], 0x104
jbe 0x10002990
push dword [ebp - 0x14]
call fcn.10016a07
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100169fe
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edx, eax
mov dword [ebp - 0x14], edx
add ecx, 1
je 0x10002993
xor eax, eax
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x10002993
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edx
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebx + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
cmp eax, edi
ja 0x100029e8
mov dword [ebp - 0x1c], ebx
mov ecx, ebx
cmp edi, 8
jb 0x100029c7
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], ecx
lea esi, [eax + eax]
mov dword [ebx + 0x10], eax
push esi
push dword [ebp - 0x14]
push ecx
call fcn.1002e1a0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x10002a8e
cmp eax, 0x7ffffffe
ja 0x10002ae2
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10002a07
mov esi, 0x7ffffffe
jmp 0x10002a25
mov ecx, edi
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x10002a1d
mov esi, 0x7ffffffe
jmp 0x10002a25
lea eax, [ecx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, ebx
push eax
call fcn.100025c0
mov ecx, eax
mov dword [ebx + 0x14], esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebx + 0x10], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x14]
push ecx
call fcn.1002d660
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
cmp edi, 8
jb 0x10002a8c
mov eax, dword [ebx]
lea edi, [edi*2 + 2]
cmp edi, 0x1000
jb 0x10002a7f
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002add
mov eax, ecx
push edi
push eax
call fcn.1001642e
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebx], eax
push dword [ebp - 0x14]
call fcn.10016a07
mov esi, dword [ebp - 0x2c]
add esp, 4
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x10002ac9
mov eax, dword [ebp + 0xc]
cmp eax, 0x80000002
jne 0x10002ac9
cmp edi, 0x20019
jne 0x10002ac9
mov edi, 0x20119
jmp 0x10002904
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
call fcn.10031d09
call fcn.10001e20
int3