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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a0a10
mov eax, dword fs:[0]
push eax
sub esp, 0x140
push ebx
push esi
push edi
mov eax, dword [0x831184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 1
call fcn.004962f0
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.00496650
mov eax, dword [esi + 0x64]
lea ebx, [esi + 0x68]
mov dword [edi + 0x84], eax
lea eax, [edi + 0x88]
cmp eax, ebx
je 0x496ada
mov ecx, eax
call fcn.00451eb0
mov eax, dword [ebx]
mov dword [edi + 0x88], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x8c], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0x90], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [esi + 0x74]
lea ebx, [esi + 0x78]
mov dword [edi + 0x94], eax
lea eax, [edi + 0x98]
cmp eax, ebx
je 0x496b25
mov ecx, eax
call fcn.00466160
mov eax, dword [ebx]
mov dword [edi + 0x98], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x9c], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0xa0], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [esi + 0x84]
lea ecx, [edi + 0xc0]
mov dword [edi + 0xa4], eax
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xac], eax
mov eax, dword [esi + 0x90]
mov dword [edi + 0xb0], eax
mov eax, dword [esi + 0x94]
mov dword [edi + 0xb4], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 0xb8], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0xbc], eax
lea eax, [esi + 0xa0]
push eax
call fcn.00494f20
mov eax, dword [esi + 0xc0]
lea ecx, [ebp - 0x9c]
mov dword [edi + 0xe0], eax
mov eax, dword [esi + 0xc4]
mov dword [edi + 0xe4], eax
mov eax, dword [esi + 0xc8]
mov dword [edi + 0xe8], eax
mov eax, dword [esi + 0xcc]
mov dword [edi + 0xec], eax
call fcn.00495650
lea ecx, [ebp - 0xd4]
call fcn.00466160
lea ecx, [ebp - 0xe4]
call fcn.00451eb0
lea ecx, [ebp - 0x13c]
call fcn.0044a1c0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x15]
mov dword [edi + 0x2c], eax
mov dword [edi + 0xf0], 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 + 0xf4]
cmp ebx, esi
je 0x496c43
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 0x496c70
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 0x496c92
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.00496480
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 0x496cc4
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 0x496ce7
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 + 0xf0]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x64
mov ecx, ebx
call fcn.004961e0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0xf4]
push eax
call fcn.0040b4d0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x496f5f
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 + 0xf8]
sub ecx, dword [edi + 0xf4]
mov eax, dword [edi + 0xf0]
sar ecx, 2
inc eax
cmp eax, ecx
jge 0x496d5f
mov dword [edi + 0xf0], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x496d81
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 0x496d9c
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 0x496dc1
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 0x496de3
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.004967c0
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 0x496e15
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 0x496e38
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 + 0xf0]
mov ecx, ebx
mov dword [edi + 0xe0], eax
mov eax, edx
add dword [edi + 0x28], eax
mov dword [edi + 0xe4], edx
lea edx, [edi + 0x14]
mov eax, dword [ebx]
mov dword [eax + esi*4], 0x64
call fcn.004961e0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0xf4]
push eax
call fcn.0040b4d0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x496f64
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 + 0xf8]
sub ecx, dword [edi + 0xf4]
mov eax, dword [edi + 0xf0]
sar ecx, 2
inc eax
cmp eax, ecx
jge 0x496ec6
mov dword [edi + 0xf0], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x496ee8
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 0x496f0a
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 0x496f2c
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 0x496f4b
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