Function at 0x10002ecb
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1007816a
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x10099790]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10099790]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov edi, ecx
and dword [esp + 0x20], 0
push 0x6f
pop esi
push 0x68
pop eax
push 0x79
pop ecx
push 0x54
mov word [esp + 0x7e], ax
pop eax
push 0x73
mov word [esp + 0x4a], ax
pop eax
push 0x66
mov word [esp + 0x60], ax
pop eax
push 0x74
pop ebp
push 0x52
mov word [esp + 0x64], ax
pop eax
push 0x45
mov word [esp + 0x50], ax
pop eax
push 0x53
mov word [esp + 0x52], ax
pop eax
push 0x46
mov word [esp + 0x44], ax
pop eax
push 0x57
mov word [esp + 0x48], ax
pop eax
push 0x70
mov word [esp + 0x4c], ax
pop eax
push 0x67
mov word [esp + 0x70], ax
mov word [esp + 0x7c], ax
xor eax, eax
mov word [esp + 0x82], ax
pop eax
push 0x72
pop edx
push 0x41
mov word [esp + 0x76], ax
pop eax
push 0x4d
pop ebx
push 0x5c
mov word [esp + 0x6e], cx
mov word [esp + 0x80], cx
pop ecx
push 0x43
mov word [esp + 0x4e], ax
pop eax
push 0x63
mov word [esp + 0x62], si
mov word [esp + 0x74], si
mov word [esp + 0x5e], si
pop esi
push 0x4f
mov word [esp + 0x6a], ax
pop eax
push 0x69
mov word [esp + 0x6c], dx
mov word [esp + 0x5c], dx
mov word [esp + 0x78], dx
pop edx
push 0x61
mov word [esp + 0x68], cx
mov word [esp + 0x54], cx
pop ecx
mov dword [esp + 0x24], edi
mov word [esp + 0x62], bp
mov word [esp + 0x52], bx
mov word [esp + 0x56], si
mov word [esp + 0x6e], bp
mov word [esp + 0x42], ax
mov word [esp + 0x54], dx
mov word [esp + 0x76], cx
push 0x6e
pop eax
push 0x64
mov word [esp + 0x36], ax
xor eax, eax
mov word [esp + 0x42], ax
pop eax
push 0x75
mov word [esp + 0x40], ax
pop eax
push 0x68
mov word [esp + 0x3c], ax
pop eax
push 0x65
mov word [esp + 0x32], ax
pop eax
push 0x47
mov word [esp + 0x38], ax
mov word [esp + 0x2e], cx
pop eax
mov ecx, edi
mov word [esp + 0x28], bx
mov word [esp + 0x2c], si
mov word [esp + 0x36], ax
mov word [esp + 0x3a], dx
mov word [esp + 0x30], dx
call fcn.10008646
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x85]
mov dword [esp + 0x290], ebx
push ebx
push eax
mov dword [esp + 0x2c], 1
mov byte [esp + 0x8c], bl
call fcn.1005b850
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x4c]
push eax
mov ebp, reloc.WS2_32.dll_bind
push ebp
mov dword [esp + 0x2c], 0x200
call ebx
test eax, eax
jne 0x1000312a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x28]
call esi
test eax, eax
je 0x10003111
lea eax, [esp + 0x14]
push eax
push 0x20119
push 0
lea eax, [esp + 0x4c]
push eax
push ebp
call ebx
test eax, eax
jne 0x1000312a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x1000312a
lea eax, [esp + 0x80]
push eax
mov ecx, edi
call fcn.10008caa
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.1005801c
add esp, 0x27c
ret