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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4935db
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, dword [0x470798]
call fcn.00405354
push 4
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x470798]
call fcn.00405348
add esp, 4
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xd
mov eax, dword [ebp - 0x1c]
mov byte [eax + 1], 0xa
mov eax, dword [ebp - 0x1c]
mov byte [eax + 2], 0xd
mov eax, dword [ebp - 0x1c]
mov byte [eax + 3], 0xa
push 2
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x470798]
call fcn.00405348
add esp, 4
mov eax, dword [ebp - 0x20]
mov byte [eax], 0xa
mov eax, dword [ebp - 0x20]
mov byte [eax + 1], 0xa
xor edi, edi
xor eax, eax
mov dword [esi + 0xa4], eax
lea eax, [esi + 0x94]
call fcn.00403fbc
mov al, byte [esi + 0x88]
mov byte [esi + 0x89], al
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x78], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x79], 1
mov dl, 1
mov eax, dword [0x4172fc]
call fcn.004031fc
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4935ab
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.00474174
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x484264]
call fcn.004846b0
mov eax, dword [ebp - 0x24]
call fcn.0040518c
push eax
mov ecx, edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.00471bf8
mov ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.0040518c
mov dword [ebp - 0xc], eax
test ebx, ebx
jge 0x493498
mov eax, dword [ebp - 0x24]
call fcn.0040518c
push eax
mov ecx, edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00471bf8
mov ebx, eax
mov eax, dword [ebp - 0x20]
call fcn.0040518c
mov dword [ebp - 0xc], eax
test ebx, ebx
jle 0x49350d
mov dword [ebp - 8], edi
mov al, byte [esi + 0x88]
push eax
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [0x484264]
call fcn.004843c4
mov byte [esi + 0x89], al
inc dword [ebp - 8]
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [0x484264]
call fcn.004844e8
mov dword [esi + 0xa4], eax
inc dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [0x484264]
call fcn.004845d0
mov edx, dword [ebp - 0x30]
lea eax, [esi + 0x94]
call fcn.00404010
cmp dword [esi + 0xa4], 0x64
jne 0x49350d
mov edi, dword [ebp - 0xc]
add edi, ebx
jmp 0x49344e
cmp dword [ebp - 0x10], 0x3e8
jg 0x493544
inc dword [ebp - 0x10]
cmp dword [esi + 0xa4], 0
je 0x49352b
cmp dword [esi + 0xa4], 0x64
jne 0x493544
mov eax, dword [ebp - 0x28]
call fcn.00474148
test al, al
jne 0x493544
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x18], 0
jne 0x493423
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 0x2c]
call fcn.0041b728
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, ebx
sub ecx, edi
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x484264]
call fcn.00484748
mov eax, dword [esi + 0x98]
mov edx, dword [ebp - 4]
call fcn.004876fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4935b2
mov eax, dword [ebp - 0x2c]
call fcn.0040322c
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x79], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x28]
call fcn.00475810
ret