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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100471cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
mov dword [esi], vtable.P_MaterialDefinitions.0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea edi, [esi + 0x34]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.10005040
mov ecx, edi
call fcn.10005040
lea ecx, [esi + 0x44]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0x437f0000
call fcn.10005040
lea ecx, [esi + 0x44]
call fcn.10005040
lea ecx, [esi + 0x44]
call fcn.10005040
lea ecx, [esi + 0x54]
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0x437f0000
call fcn.10005040
lea ecx, [esi + 0x54]
call fcn.10005040
lea ecx, [esi + 0x54]
call fcn.10005040
lea ecx, [esi + 0x64]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], 0x437f0000
call fcn.10005040
lea ecx, [esi + 0x64]
call fcn.10005040
lea ecx, [esi + 0x64]
call fcn.10005040
lea ecx, [esi + 0x74]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], 0x437f0000
call fcn.10005040
lea ecx, [esi + 0x74]
call fcn.10005040
lea ecx, [esi + 0x74]
call fcn.10005040
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], 0x437f0000
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea ecx, [esi + 0xb4]
mov dword [ebp - 0x1c], ecx
push ebx
mov byte [ebp - 4], 3
call dword [sym.imp.rlmfc.dll_private:_void___thiscall_std::rs::_Tidy_bool_]
lea ecx, [esi + 0xc4]
mov dword [ebp - 0x1c], ecx
push ebx
mov byte [ebp - 4], 7
call dword [sym.imp.rlmfc.dll_private:_void___thiscall_std::rs::_Tidy_bool_]
mov ecx, esi
mov byte [ebp - 4], 9
mov dword [esi], vtable.P_Material.0
call fcn.10023b40
mov eax, dword [sym.e2mfc.dll_enum_P_MaterialDefinitions::FogSource_P_Material::m_defaultFogSource]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0x437f0000
mov dword [ebp - 0x14], 0x437f0000
mov dword [ebp - 0x18], 0x437f0000
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
lea eax, [esi + 0x44]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0x437f0000
mov dword [ebp - 0x18], 0x437f0000
mov dword [ebp - 0x14], 0x437f0000
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
lea eax, [esi + 0x54]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0x437f0000
mov dword [ebp - 0x18], 0x437f0000
mov dword [ebp - 0x14], 0x437f0000
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
lea eax, [esi + 0x64]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [sym.e2mfc.dll_class_G_FColor_P_Material::m_defaultFogColor]
lea eax, [esi + 0x74]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [0x10065c44]
mov dword [ecx + 4], edx
mov edx, dword [0x10065c48]
mov dword [ecx + 8], edx
mov ecx, dword [0x10065c4c]
mov dword [eax + 0xc], ecx
mov dword [esi + 0x84], 0x41000000
mov dword [esi + 0x88], ebx
mov byte [esi + 0x8c], bl
mov dword [esi + 0x98], 0x3f800000
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
lea edi, [esi + 8]
push eax
mov edx, ecx
call fcn.100310d0
mov ecx, dword [edi + 8]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], eax
call sym.e2mfc.dll_public_virtual:_void___thiscall_P_CPUDriver::prepareSceneDirectionalLight_class_P_DirectionalLight___int_
mov edx, dword [ebp - 0x1c]
mov dword [edi + 8], edx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
push 0x48
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], 1
mov dword [esi + 0xa8], 3
mov byte [esi + 0xb0], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 0xa
je 0x100233a4
mov ecx, eax
call fcn.10028a00
jmp 0x100233a6
xor eax, eax
mov ecx, dword [sym.imp.rlmfc.dll_int_R_Memory::sm_iNewCount]
mov edx, dword [ecx]
inc edx
cmp eax, ebx
mov byte [ebp - 4], 9
mov dword [ecx], edx
jne 0x10023430
lea ecx, [ebp - 0x2c]
call fcn.100028a0
lea eax, [ebp - 0x2c]
push str.Out_of_system_memory_resources
push eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x2c], vtable.R_MemoryException_Allocation.0
call dword [sym.imp.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__]
add esp, 8
mov al, byte [0x10066e50]
test al, 1
mov byte [ebp - 4], 0xc
jne 0x1002340d
mov dl, al
or dl, 1
mov ecx, 0x10066e60
mov byte [0x10066e50], dl
call fcn.100028c0
push 0x10002880
call fcn.100455b8
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, 0x10066e60
call fcn.100339d0
push 0x1004c038
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 0x10066e60
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret