Function at 0x10020d20
Capabilities:
Get number of processors
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043e16
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10059084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
push 2
push esi
call fcn.1002555d
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
movups xmm0, xmmword [ebp + 8]
sub eax, 0x1388
lea ecx, [esi + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x20]
sbb edx, 0
mov dword [esi + 0x34], edx
mov dword [ecx], eax
lea eax, [esi + 0x3c]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
mov dword [ebp - 0x4c], eax
movq xmm0, qword [ebp + 0x18]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x3c]
lea edi, [esi + 0x64]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov dword [esi + 0x54], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x58], 0x2d
mov dword [esi + 0x5c], 0x78
mov dword [esi + 0x60], 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x24], 0
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov edx, dword [ebp + 0x38]
add esi, 0x70
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x50], esi
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x30], 0
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov byte [ebp - 4], 6
call fcn.10023c80
mov edx, eax
mov dword [ebp - 0x48], edx
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], ecx
cmp eax, ecx
je 0x10020f19
nop dword [eax]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10021226
mov eax, dword [ecx]
lea edx, [ebp - 0x64]
push edx
lea edx, [ebp - 0x38]
push edx
call dword [eax + 8]
mov esi, dword [edi + 4]
mov byte [ebp - 4], 7
cmp esi, dword [edi + 8]
je 0x10020eda
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10020ed4
lea eax, [ebp - 0x38]
cmp ecx, eax
jne 0x10020ecc
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x24], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10020ed4
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
xor ecx, ecx
add dword [edi + 4], 0x28
mov dword [ebp - 0x14], ecx
jmp 0x10020ee9
mov dword [esi + 0x24], ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
add dword [edi + 4], 0x28
jmp 0x10020ee9
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push esi
call fcn.1001ffa0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x10020f01
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebp - 0x40]
add eax, 0x28
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x54]
jne 0x10020e60
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x24]
mov edi, dword [edx + 0x20]
mov dword [ebp - 0x54], eax
cmp edi, eax
je 0x10020fea
nop word [eax + eax]
mov ecx, dword [edi + 0x24]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x10021226
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x38]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x3c]
mov esi, dword [esi + 4]
mov byte [ebp - 4], 8
cmp esi, dword [eax + 0x78]
je 0x10020fb3
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10020faa
lea eax, [ebp - 0x38]
cmp ecx, eax
jne 0x10020fa2
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x24], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10020faa
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov esi, dword [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
add dword [esi + 4], 0x28
jmp 0x10020fc5
mov dword [esi + 0x24], ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x50]
add dword [esi + 4], 0x28
jmp 0x10020fc5
lea eax, [ebp - 0x38]
push eax
push esi
mov esi, dword [ebp - 0x50]
mov ecx, esi
call fcn.1001ffa0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x10020fde
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
add edi, 0x28
cmp edi, dword [ebp - 0x54]
jne 0x10020f30
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x68]
cmp dword [0x10059014], 8
mov eax, section..data
push ecx
cmovae eax, dword [section..data]
push edi
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x68], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [edi]
test ecx, ecx
jne 0x10021033
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
nop
jmp 0x1002108f
mov esi, dword [ebp - 0x4c]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10021040
mov eax, dword [esi]
lea edx, [ebp - 0x5c]
push edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x58]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x44]
test eax, eax
je 0x1002108c
mov eax, dword [ecx]
nop
cmp dword [edi], 0
mov dword [ebp - 0x40], eax
je 0x1002108c
mov eax, dword [ecx]
nop
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4c], eax
jb 0x10021076
mov esi, dword [esi]
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
xchg dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
nop
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], edx
movq xmm0, qword [ebp - 0x60]
movq qword [eax + 0x30], xmm0
nop
lock inc dword [ebp - 0x48]
nop
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x100210eb
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100210e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002122b
push edx
push ecx
call fcn.10025ac5
add esp, 8
mov esi, dword [ebp + 0x24]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
test esi, esi
je 0x10021190
mov edi, dword [ebp + 0x28]
cmp esi, edi
je 0x10021137
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1002112d
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
add esi, 0x28
cmp esi, edi
jne 0x10021111
mov esi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x2c]
mov eax, 0x66666667
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x10021171
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002122b
push ecx
push esi
call fcn.10025ac5
add esp, 8
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x10021206
mov edi, dword [ebp + 0x34]
cmp esi, edi
je 0x100211c6
nop
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100211bc
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
add esi, 0x28
cmp esi, edi
jne 0x100211a0
mov esi, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x38]
mov eax, 0x66666667
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x100211fc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002122b
push ecx
push esi
call fcn.10025ac5
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10025a94
mov esp, ebp
pop ebp
ret 0x38
call fcn.10024473
call fcn.1002a52f
int3