Function at 0x4faf22
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address
Get number of processors

Disassembly:
push 0x64
push 0x4059d0
call fcn.004387e0
and dword [ebp - 0x28], 0
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test bl, 3
je 0x4faf43
call fcn.005115b2
lea ecx, [ebx + 0x14]
cmp ecx, ebx
jb 0x4faf53
mov eax, dword [0x48b134]
cmp ecx, eax
jbe 0x4faf5d
call fcn.005115a2
mov eax, dword [0x48b134]
mov ecx, dword [ebx]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x40], ecx
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x5c], ebx
test ebx, ebx
jne 0x4faf88
mov esi, 0xc000000d
jmp 0x4fb1b1
cmp ebx, eax
jb 0x4faf96
mov edi, dword [eax]
mov dword [ebp - 0x6c], edi
mov ebx, dword [eax + 4]
jmp 0x4faf9e
mov edi, dword [ebx]
mov dword [ebp - 0x6c], edi
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
test di, di
je 0x4faf7e
cmp di, 0x200
ja 0x4faf7e
movzx esi, di
lea ecx, [esi + ebx]
cmp ecx, ebx
jb 0x4fafc1
cmp ecx, eax
jbe 0x4fafc6
call fcn.005115a2
push 4
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call fcn.00512f96
cmp dword [ebp - 0x20], 0x60
jae 0x4fafe3
mov esi, 0xc0000004
jmp 0x4fb1b1
push 0x204d4456
lea eax, [esi + 0x1c]
push eax
push 0
call 0x433cd8
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov word [ebx + 0x10], di
mov word [ebx + 0x12], di
lea edi, [ebx + 0x18]
mov dword [ebx + 0x14], edi
mov ecx, esi
mov esi, dword [ebp - 0x70]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0x38]
push eax
push 1
push dword [0x483d58]
push 1
push dword [ebp - 0x3c]
call fcn.004b80d6
test eax, eax
jge 0x4fb03d
mov esi, eax
jmp 0x4fb083
mov byte [ebx], 1
mov byte [ebx + 2], 4
and dword [ebx + 4], 0
lea eax, [ebx + 8]
mov dword [eax + 4], eax
mov dword [eax], eax
mov edi, dword [ebp - 0x38]
and dword [edi + 0x60], 0
push edi
call 0x3ec362
mov dword [ebp - 0x44], eax
push 1
movsx eax, byte [eax + 0x30]
push eax
call 0x3ebca0
mov esi, eax
mov dword [ebp - 0x34], esi
xor edx, edx
cmp esi, edx
jne 0x4fb090
mov ecx, edi
call fcn.004232ae
mov esi, 0xc000009a
push 0
push ebx
call fcn.00447ee0
jmp 0x4fb1b5
mov dword [esi + 8], 4
mov byte [esi + 0x20], 1
lea eax, [ebp - 0x64]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edx
mov dword [esi + 0xc], edx
mov dword [ebp - 0x30], edx
mov eax, dword fs:[0x124]
mov dword [esi + 0x50], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x54], edx
mov dword [esi + 4], edx
mov eax, dword [esi + 0x60]
sub eax, 0x24
mov byte [eax], 0xc
mov byte [eax + 1], 1
mov dword [eax + 0x18], edi
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 3
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x10], ecx
lea ecx, [ebx + 0x10]
mov di, word [ecx]
neg di
sbb edi, edi
and edi, ecx
mov dword [eax + 8], edi
mov byte [eax + 2], 4
mov edi, dword [ebp - 0x44]
mov eax, dword [edi + 0x1c]
test al, 4
je 0x4fb13a
mov dword [ebp - 4], 1
push 0x204d4456
push dword [ebp - 0x20]
push edx
call 0x433cd8
mov dword [ebp - 0x30], eax
mov dword [esi + 0xc], eax
or dword [ebp - 4], 0xffffffff
jmp 0x4fb1c2
test al, 0x10
je 0x4fb1bc
mov dword [ebp - 4], 2
push esi
push 1
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call 0x3edb4c
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4fb165
push 0xc000009a
call fcn.00443c8c
push 1
push 1
push dword [ebp - 0x4c]
call 0x406480
jmp 0x4fb11b
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x4fb2b3
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x3c], eax
mov cl, 1
call dword [0x40102c]
mov byte [ebp - 0x19], al
lea ecx, [esi + 0x10]
mov edx, dword [esi + 0x50]
add edx, 0x210
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [eax + 4], ecx
mov dword [edx], ecx
mov cl, byte [ebp - 0x19]
call dword [0x401030]
mov edx, esi
mov ecx, edi
call 0x3ebda6
mov dword [ebp - 0x24], eax
cmp eax, 0x103
jne 0x4fb212
push 0
push 0
push 1
push 6
push ebx
call 0x3f7ab6
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x4fb26f
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
test eax, eax
jge 0x4fb229
cmp eax, 0x80000005
jne 0x4fb26f
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x4fb26f
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x2c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebp - 4], 0xffffffff
jmp 0x4fb26f
xor esi, esi
push esi
push ebx
call fcn.00447ee0
cmp dword [ebp - 0x30], esi
je 0x4fb286
push esi
push dword [ebp - 0x30]
call fcn.00447ee0
mov eax, dword [ebp - 0x24]
jmp 0x4fb2b3
call fcn.0043881b
ret 4