Function at 0x495970
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79f240
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 1
call fcn.00495270
mov esi, eax
mov ecx, dword [esi + 4]
mov dword [edi + 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x2c], ecx
lea ecx, [esi + 0x10]
push ecx
lea ecx, [edi + 0x30]
call fcn.00495600
mov eax, dword [esi + 0x40]
lea ebx, [esi + 0x44]
mov dword [edi + 0x60], eax
lea eax, [edi + 0x64]
cmp eax, ebx
je 0x495a0b
mov ecx, eax
call fcn.004513e0
mov eax, dword [ebx]
mov dword [edi + 0x64], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x68], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0x6c], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [esi + 0x50]
lea ebx, [esi + 0x54]
mov dword [edi + 0x70], eax
lea eax, [edi + 0x74]
cmp eax, ebx
je 0x495a47
mov ecx, eax
call fcn.00465450
mov eax, dword [ebx]
mov dword [edi + 0x74], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x78], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0x7c], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [esi + 0x60]
lea ecx, [edi + 0xa0]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x8c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x90], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x94], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x9c], eax
lea eax, [esi + 0x80]
push eax
call fcn.00493ea0
mov eax, dword [esi + 0xa0]
lea ecx, [ebp - 0x9c]
mov dword [edi + 0xc0], eax
mov eax, dword [esi + 0xa4]
mov dword [edi + 0xc4], eax
mov eax, dword [esi + 0xa8]
mov dword [edi + 0xc8], eax
mov eax, dword [esi + 0xac]
mov dword [edi + 0xcc], eax
call fcn.004945d0
lea ecx, [ebp - 0xd8]
call fcn.00465450
lea ecx, [ebp - 0xe8]
call fcn.004513e0
lea ecx, [ebp - 0x11c]
call fcn.0044a150
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x15]
mov dword [edi + 0x2c], eax
mov dword [edi + 0xd0], 0
mov eax, dword [edi + 0x18]
sub eax, dword [edi + 0x14]
push ecx
lea ecx, [ebp - 0x14]
sar eax, 2
push ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
call fcn.0040a180
mov esi, eax
lea ebx, [edi + 0xd4]
cmp ebx, esi
je 0x495b53
mov ecx, ebx
call fcn.004097f0
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x24]
call fcn.004097f0
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x495b80
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x495ba2
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 3
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004953e0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x495bd4
mov eax, dword [ecx]
lea edx, [ebp - 0x7c]
push edx
call dword [eax]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x495bf7
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
call dword [eax]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
lea edx, [edi + 0x14]
mov ecx, dword [edi + 0xd0]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x64
mov ecx, ebx
call fcn.00495160
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 0xd0]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0xd4]
push eax
call fcn.0040b4d0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x495e6f
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x24]
call fcn.004097f0
mov ecx, dword [edi + 0xd8]
sub ecx, dword [edi + 0xd4]
mov eax, dword [edi + 0xd0]
sar ecx, 2
inc eax
cmp eax, ecx
jge 0x495c6f
mov dword [edi + 0xd0], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x495c91
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x54]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x495cac
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x7c]
cmp ecx, eax
setne al
push eax
call edx
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x495cd1
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x495cf3
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 0xe
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00495710
lea eax, [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x495d25
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
call dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x495d48
mov eax, dword [ecx]
lea edx, [ebp - 0x7c]
push edx
call dword [eax]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0x14
call fcn.00429070
mov esi, dword [edi + 0xd0]
mov ecx, ebx
mov dword [edi + 0xc0], eax
mov eax, edx
add dword [edi + 0x28], eax
mov dword [edi + 0xc4], edx
lea edx, [edi + 0x14]
mov eax, dword [ebx]
mov dword [eax + esi*4], 0x64
call fcn.00495160
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 0xd0]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0xd4]
push eax
call fcn.0040b4d0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x495e74
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x24]
call fcn.004097f0
mov ecx, dword [edi + 0xd8]
sub ecx, dword [edi + 0xd4]
mov eax, dword [edi + 0xd0]
sar ecx, 2
inc eax
cmp eax, ecx
jge 0x495dd6
mov dword [edi + 0xd0], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x495df8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x7c]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x495e1a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x54]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x495e3c
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 0x19
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x495e5b
mov edx, dword [ecx]
lea eax, [ebp + 0x34]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x54
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3