Function at 0x100028b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050459
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1006e098]
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.100170de
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 0x10002ac8
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 0x10002abf
cmp dword [ebp - 0x10], 0x104
jbe 0x100029b0
push dword [ebp - 0x14]
call fcn.100170e7
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.100170de
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edx, eax
mov dword [ebp - 0x14], edx
add ecx, 1
je 0x100029b3
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 0x100029b3
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 0x10002a08
mov dword [ebp - 0x1c], ebx
mov ecx, ebx
cmp edi, 8
jb 0x100029e7
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.1002e870
mov eax, dword [ebp - 0x1c]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x10002aae
cmp eax, 0x7ffffffe
ja 0x10002b02
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10002a27
mov esi, 0x7ffffffe
jmp 0x10002a45
mov ecx, edi
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x10002a3d
mov esi, 0x7ffffffe
jmp 0x10002a45
lea eax, [ecx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, ebx
push eax
call fcn.100025e0
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.1002dd30
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
cmp edi, 8
jb 0x10002aac
mov eax, dword [ebx]
lea edi, [edi*2 + 2]
cmp edi, 0x1000
jb 0x10002a9f
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002afd
mov eax, ecx
push edi
push eax
call fcn.10016b0e
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebx], eax
push dword [ebp - 0x14]
call fcn.100170e7
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 0x10002ae9
mov eax, dword [ebp + 0xc]
cmp eax, 0x80000002
jne 0x10002ae9
cmp edi, 0x20019
jne 0x10002ae9
mov edi, 0x20119
jmp 0x10002924
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.100323d9
call fcn.10001e40
int3