Function at 0x5422f0
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x542582
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404af0]
call fcn.0040c808
add esp, 4
mov eax, dword [ebp - 4]
mov byte [eax], 0xd
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0xa
mov eax, dword [ebp - 4]
mov byte [eax + 2], 0xd
mov eax, dword [ebp - 4]
mov byte [eax + 3], 0xa
push 2
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x404af0]
call fcn.0040c808
add esp, 4
mov eax, dword [ebp - 8]
mov byte [eax], 0xa
mov eax, dword [ebp - 8]
mov byte [eax + 1], 0xa
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0xb4], eax
lea eax, [esi + 0xa4]
call fcn.0040a41c
movzx eax, byte [esi + 0x98]
mov byte [esi + 0x99], al
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x48]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x78], 0
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], 0
mov dl, 1
mov eax, dword [0x490214]
call fcn.0040855c
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x542552
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.00504c04
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [0x51e4a0]
call fcn.0051ec74
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x54241c
sub eax, 4
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004fff14
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x542439
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test ebx, ebx
jge 0x54246a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x54244b
sub eax, 4
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004fff14
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x542468
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test ebx, ebx
jle 0x5424e3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, byte [esi + 0x98]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x51e4a0]
call fcn.0051e954
mov byte [esi + 0x99], al
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x51e4a0]
call fcn.0051ea8c
mov dword [esi + 0xb4], eax
inc dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x51e4a0]
call fcn.0051eb80
mov edx, dword [ebp - 0x2c]
lea eax, [esi + 0xa4]
call fcn.0040a7fc
cmp dword [esi + 0xb4], 0x64
jne 0x5424e3
add edi, ebx
mov dword [ebp - 0x14], edi
jmp 0x542410
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x5423e5
cmp eax, 0x64
je 0x5423e5
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
call fcn.004b224c
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [edi + ebx]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, dword [0x51e4a0]
call fcn.0051ed18
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x10]
call fcn.00523880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x542559
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x28]
call fcn.0040858c
ret