Function at 0x496700
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6a15e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00492210
mov esi, dword [esp + 0x80]
lea ecx, [edi + 4]
mov eax, dword [esi + 0xe0]
lea edx, [esi + 4]
push edx
mov dword [edi + 0xe0], eax
call fcn.00571160
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x58]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x14]
push ecx
lea ecx, [edi + 0x58]
mov dword [edi + 0x14], eax
call fcn.004b09e0
mov edx, dword [esi + 0x18]
mov dword [esp + 0x10], 0
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x20]
mov dword [edi + 0x20], ecx
mov edx, dword [esi + 0x24]
mov dword [edi + 0x24], edx
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x2c], ecx
mov edx, dword [esi + 0x30]
mov dword [edi + 0x30], edx
mov eax, dword [esi + 0xe4]
mov dword [edi + 0xe4], eax
mov eax, dword [esi + 0x68]
test eax, eax
jle 0x496880
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x10]
push 0x20
mov eax, dword [ecx + edx*4]
mov ebp, dword [eax]
call fcn.00658ea0
mov ebx, eax
add esp, 4
mov dword [esp + 0x80], ebx
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x78], eax
je 0x4967f5
mov ecx, ebx
call fcn.00403c60
lea ecx, [ebx + 0x14]
mov byte [esp + 0x78], 1
call fcn.00514b50
mov dword [esp + 0x80], ebx
jmp 0x4967fc
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
lea ebx, [eax + 0x14]
mov ecx, ebx
call fcn.004b0760
mov ecx, ebx
call fcn.005758b0
mov ecx, dword [esp + 0x80]
push ebp
call fcn.00433310
mov eax, dword [ebp + 0x18]
xor ebx, ebx
test eax, eax
jle 0x496852
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x80]
push 1
mov eax, dword [ecx + ebx*4]
lea ecx, [edx + 0x14]
push eax
call fcn.004b0820
mov eax, dword [ebp + 0x18]
inc ebx
cmp ebx, eax
jl 0x496832
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [edi + 0x64]
mov dword [esp + 0x1c], eax
call fcn.00687a50
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4967af
mov eax, dword [esi + 0x78]
mov dl, byte [esi + 0x74]
test eax, eax
mov byte [esp + 0x1c], dl
je 0x4968a6
mov ecx, dword [esi + 0x7c]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
test eax, eax
jge 0x4968ac
xor eax, eax
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
call fcn.00658ea0
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
add esp, 4
mov dword [esp + 0x20], eax
push eax
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004adf70
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea edx, [esi + 0x84]
lea ecx, [esp + 0x2c]
push edx
mov dword [esp + 0x7c], 2
call fcn.004add80
lea eax, [esi + 0x94]
mov dword [esp + 0x18], vtable.CCollision.0
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xa0]
mov edx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0xac]
mov dword [esp + 0x40], edx
mov eax, dword [eax + 8]
mov edx, dword [esi + 0xa4]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0xb0]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0xb8]
mov dword [esp + 0x58], edx
mov dl, byte [esi + 0xbc]
mov dword [esp + 0x5c], eax
mov al, byte [esi + 0xbd]
mov dword [esp + 0x60], ecx
mov cl, byte [esi + 0xbe]
mov byte [esp + 0x64], dl
mov dl, byte [esi + 0xbf]
mov byte [esp + 0x65], al
mov al, byte [esi + 0xc0]
mov byte [esp + 0x66], cl
mov cl, byte [esi + 0xc1]
mov byte [esp + 0x67], dl
mov byte [esp + 0x68], al
mov byte [esp + 0x69], cl
lea edx, [esp + 0x1c]
lea ecx, [edi + 0x74]
push edx
mov dword [esp + 0x7c], 3
call fcn.004adb10
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea eax, [edi + 0x94]
mov dword [edi + 0x94], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [edi + 0xa0], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [edi + 0xa4], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0xa8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edi + 0xac], edx
mov edx, dword [esp + 0x60]
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], ecx
mov cl, byte [esp + 0x65]
mov al, byte [esp + 0x64]
mov dword [edi + 0xb8], edx
mov dl, byte [esp + 0x66]
mov byte [edi + 0xbd], cl
mov cl, byte [esp + 0x68]
mov byte [edi + 0xbc], al
mov al, byte [esp + 0x67]
mov byte [edi + 0xbe], dl
mov dl, byte [esp + 0x69]
mov byte [edi + 0xc0], cl
lea ecx, [esp + 0x18]
mov byte [edi + 0xbf], al
mov byte [edi + 0xc1], dl
mov dword [esp + 0x78], 0xffffffff
call fcn.00476bc0
mov eax, dword [esi + 0xe8]
mov dword [edi + 0xe8], eax
mov ecx, dword [esi + 0xec]
mov dword [edi + 0xec], ecx
mov edx, dword [esi + 0xf0]
lea ecx, [esi + 0x34]
mov dword [edi + 0xf0], edx
mov eax, dword [esi + 0xf4]
push ecx
lea ecx, [edi + 0x34]
mov dword [edi + 0xf4], eax
call fcn.00490880
sub esp, 0x10
lea edx, [esi + 0x44]
mov ebx, esp
mov dword [esp + 0x90], esp
push edx
lea ecx, [ebx + 4]
call fcn.004c83d0
lea ecx, [edi + 0x40]
mov dword [ebx], vtable.CSplitPiece.0
call fcn.004ca590
lea eax, [esi + 0xc4]
lea ecx, [edi + 0xc4]
push eax
call fcn.00491130
mov ecx, dword [esi + 0xf8]
mov dword [edi + 0xf8], ecx
mov edx, dword [esi + 0xfc]
mov dword [edi + 0xfc], edx
mov eax, dword [esi + 0x100]
mov dword [edi + 0x100], eax
mov ecx, dword [esi + 0x104]
mov dword [edi + 0x104], ecx
mov edx, dword [esi + 0x108]
mov dword [edi + 0x108], edx
mov al, byte [esi + 0x10c]
mov byte [edi + 0x10c], al
mov ecx, dword [esi + 0x110]
mov dword [edi + 0x110], ecx
mov dl, byte [esi + 0x50]
lea eax, [esi + 0x158]
lea ecx, [edi + 0x158]
push eax
mov byte [edi + 0x50], dl
call fcn.00490930
lea ecx, [esi + 0x164]
push ecx
lea ecx, [edi + 0x164]
call fcn.00490a90
mov dl, byte [esi + 0x170]
lea ecx, [esi + 0x120]
mov byte [edi + 0x170], dl
mov eax, dword [esi + 0x174]
push ecx
lea ecx, [edi + 0x120]
mov dword [edi + 0x174], eax
call fcn.00490e70
lea edx, [esi + 0x12c]
lea ecx, [edi + 0x12c]
push edx
call fcn.00490e70
lea eax, [esi + 0x114]
lea ecx, [edi + 0x114]
push eax
call fcn.00490880
lea ecx, [esi + 0x138]
push ecx
lea ecx, [edi + 0x138]
call fcn.00572f00
mov edx, dword [esi + 0x54]
lea ebx, [esi + 0x148]
lea esi, [edi + 0x148]
mov dword [edi + 0x54], edx
cmp esi, ebx
je 0x496cfe
mov eax, dword [ebx + 4]
test eax, eax
jne 0x496bd7
mov dword [esp + 0x80], eax
jmp 0x496bf4
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x80], edx
mov ebp, dword [esi + 4]
test ebp, ebp
jne 0x496bff
xor edx, edx
jmp 0x496c15
mov ecx, dword [esi + 8]
mov eax, 0x66666667
sub ecx, ebp
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp dword [esp + 0x80], edx
ja 0x496c53
mov eax, dword [ebx + 8]
push ebp
push eax
mov eax, dword [ebx + 4]
push eax
call fcn.00435a10
mov edx, dword [esi + 8]
add esp, 0xc
mov ecx, esi
push edx
push eax
call fcn.004359a0
mov ecx, ebx
call fcn.00435940
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x496cfe
mov ecx, ebx
call fcn.00435940
mov ecx, esi
mov ebp, eax
call fcn.00435970
cmp ebp, eax
ja 0x496cae
mov ebp, dword [ebx + 4]
mov ecx, esi
call fcn.00435940
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 4]
lea eax, [eax + eax*4]
push ecx
lea ebp, [ebp + eax*4]
push ebp
push edx
call fcn.00435a10
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 8]
add esp, 0xc
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004359d0
mov ecx, ebx
call fcn.00435940
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea ecx, [eax + edx*4]
mov dword [esi + 8], ecx
jmp 0x496cfe
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.004359a0
mov ecx, dword [esi + 4]
push ecx
call fcn.00658bf0
add esp, 4
mov ecx, ebx
call fcn.00435940
test eax, eax
jge 0x496cd6
xor eax, eax
lea edx, [eax + eax*4]
shl edx, 2
push edx
call fcn.00658ea0
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov ebx, dword [ebx + 4]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004359d0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x70]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 4