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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x681a6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esi], 0x4c5770
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x6c], ebx
mov dword [esi + 0xcc], ebx
mov dword [esp + 0x3c], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
push 0x401c20
push 0x401a40
push 0x10
push 4
lea eax, [esi + 0x180]
push eax
mov byte [esp + 0x50], 4
call fcn.006718d6
lea eax, [esi + 0x2a0]
mov dword [esi + 0x268], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x274], ebx
lea ecx, [eax + 8]
mov dword [eax], ecx
mov dword [eax + 0xc], eax
mov dword [ecx], ebx
mov dword [eax + 4], ebx
lea edi, [esi + 0x390]
mov ecx, edi
mov byte [esp + 0x3c], 6
mov dword [esi + 0x2b0], ebx
call fcn.004b12f0
lea ecx, [esi + 0x1190]
mov byte [esp + 0x3c], 7
call fcn.004b12f0
mov ecx, edi
mov byte [esp + 0x3c], 8
call fcn.004b0d90
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [0x68b500]
movss dword [esp + 0x2c], xmm0
movaps xmm2, xmmword [esp + 0x20]
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x39
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x39
movaps xmm3, xmm1
shufps xmm3, xmm1, 0x39
movaps xmmword [esi + 0x10], xmm3
movaps xmmword [esi + 0x20], xmm1
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x40], xmm2
mov dword [esi + 0xac], 0x7203a0
mov dword [esi + 0x288], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x284], ebx
mov byte [esi + 0x1d5], bl
mov byte [esi + 0x1d6], bl
mov byte [esi + 0x347], bl
mov byte [esi + 0x348], bl
mov byte [esi + 0x34d], 1
mov byte [esi + 0x34e], bl
push 0x61
push str.c:_activision_truecrime_truecrimeQuadTree.h
push 0x10
push 0xbe0
mov byte [esi + 0x344], bl
call fcn.0061fe40
mov edi, eax
mov edx, edi
xor eax, eax
mov ecx, 0x2f8
add esp, 0x10
mov dword [esp + 0x1c], edx
rep stosd dword es:[edi], eax
cmp edx, ebx
mov byte [esp + 0x3c], 9
je 0x4c5947
push ebx
push ebx
mov ecx, edx
call fcn.004e3be0
jmp 0x4c5949
xor eax, eax
push 0x61
push str.c:_activision_truecrime_truecrimeQuadTree.h
push 0x10
push 0xc
mov byte [esp + 0x4c], 8
mov dword [esi + 0xdc], eax
xor edi, edi
call fcn.0061fe40
mov ecx, eax
mov dword [ecx], edi
add esp, 0x10
cmp eax, ebx
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
je 0x4c5989
mov dword [eax], 0x4af3a0
mov dword [eax + 4], 1
mov dword [eax + 8], ebx
jmp 0x4c598b
xor eax, eax
push 0x61
push str.c:_activision_truecrime_truecrimeQuadTree.h
push 0x10
push 0x20
mov dword [esi + 0xe0], eax
xor edi, edi
call fcn.0061fe40
mov edx, eax
mov dword [edx], edi
mov dword [edx + 4], edi
mov dword [edx + 8], edi
mov dword [edx + 0xc], edi
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], edi
add esp, 0x10
cmp eax, ebx
mov dword [edx + 0x18], edi
mov dword [edx + 0x1c], edi
je 0x4c59d5
mov dword [eax], 0x4af380
mov dword [eax + 8], 2
mov dword [eax + 4], ebx
jmp 0x4c59d7
xor eax, eax
push 0x61
push str.c:_activision_truecrime_truecrimeQuadTree.h
push 0x10
push 0x38
mov dword [esi + 0xe4], eax
call fcn.0061fe40
mov edi, eax
mov edx, edi
xor eax, eax
add esp, 0x10
cmp edx, ebx
mov ecx, 0xe
rep stosd dword es:[edi], eax
je 0x4c5a0c
mov dword [edx], 0x4af3c0
mov dword [edx + 0x34], ebx
jmp 0x4c5a0e
xor edx, edx
push 0xc0
push str.c:_activision_truecrimeluxengine2LuxDefs.h
push 0x10
push 0x10
mov dword [esi + 0xe8], edx
call fcn.0061fe40
add esp, 0x10
cmp eax, ebx
je 0x4c5a3d
lea ecx, [eax + 8]
mov dword [eax], ecx
mov dword [eax + 0xc], eax
mov dword [ecx], ebx
mov dword [eax + 4], ebx
jmp 0x4c5a3f
xor eax, eax
mov dword [esi + 0xb0], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0x394]
or edi, 0xffffffff
mov byte [esi + 0x341], bl
mov dword [esi + 0x1dc], ebx
mov word [esi + 0x35c], bx
mov word [esi + 0x35e], bx
mov dword [esi + 0x368], ebx
mov dword [esi + 0x36c], ebx
mov dword [esi + 0x29c], ebx
mov dword [esi + 0x370], ebx
mov dword [esi + 0x378], ebx
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov byte [esi + 0x345], 1
mov byte [esi + 0x346], 1
mov byte [esi + 0x1d0], 1
mov dword [esi + 0x360], 0xc
mov word [esi + 0x35a], di
mov ecx, dword [0x76cc9c]
mov dword [esi + 0xa8], ecx
cdq
mov ecx, 0x64
idiv ecx
mov ecx, dword [esi + 0x3a4]
sub ecx, dword [esi + 0x3a8]
push ecx
mov ecx, dword [esi + 0xdc]
push eax
push edx
call fcn.004d08e0
lea eax, [esi + 0x2b8]
mov ecx, 8
lea ebx, [ebx]
mov word [eax + 0x10], di
mov word [eax], di
add eax, 2
dec ecx
jne 0x4c5b00
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4