Function at 0x10024b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10047431
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push str.E2_Library
lea ecx, [esp + 0x14]
call dword [sym.imp.rlmfc.dll_public:_void___thiscall_R_MemoryScope::constructor_char_const__]
mov al, byte [esp + 0x34]
xor ebx, ebx
test al, al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
je 0x10024b5f
cmp eax, 0x80000
mov dword [esp + 0xc], eax
je 0x10024b54
cmp eax, 0x100000
jne 0x10024bc6
push 1
mov ecx, esi
call sym.e2mfc.dll_public:_void___thiscall_P_Material::enableSpecular_bool_
jmp 0x10024bc6
cmp eax, 0x60000
jg 0x10024b94
je 0x10024b8a
cmp eax, 0x20000
je 0x10024b80
cmp eax, 0x40000
jne 0x10024bc6
mov dword [esp + 0xc], 0x420000
jmp 0x10024bc6
mov dword [esp + 0xc], 0x20000
jmp 0x10024bc6
mov dword [esp + 0xc], 0x220000
jmp 0x10024bc6
cmp eax, 0x80000
je 0x10024bb5
cmp eax, 0x100000
jne 0x10024bc6
push 1
mov ecx, esi
call sym.e2mfc.dll_public:_void___thiscall_P_Material::enableSpecular_bool_
mov dword [esp + 0xc], 0x280000
jmp 0x10024bc6
push 1
mov ecx, esi
call sym.e2mfc.dll_public:_void___thiscall_P_Material::enableSpecular_bool_
mov dword [esp + 0xc], 0x80000
test dword [esp + 0xc], 0x60000
je 0x10024bd9
push 1
mov ecx, esi
call sym.e2mfc.dll_public:_void___thiscall_P_Material::enableLighting_bool_
test dword [esp + 0xc], 0x180000
je 0x10024bf5
push 1
mov ecx, esi
call sym.e2mfc.dll_public:_void___thiscall_P_Material::enableLighting_bool_
push 1
mov ecx, esi
call sym.e2mfc.dll_public:_void___thiscall_P_Material::enableSpecular_bool_
mov esi, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
add esi, 0x10
sub ecx, eax
sar ecx, 2
cmp ecx, 1
mov edi, eax
jae 0x10024cf7
mov edx, dword [esi + 4]
cmp edx, ebx
je 0x10024c24
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x10024c29
mov ecx, 1
cmp edx, ebx
jne 0x10024c31
xor eax, eax
jmp 0x10024c36
sub eax, edx
sar eax, 2
lea ebx, [eax + ecx]
xor edx, edx
cmp edx, ebx
sbb eax, eax
and eax, ebx
shl eax, 2
push ebp
push eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [sym.imp.rlmfc.dll_int_R_Memory::sm_iNewCount]
mov ecx, dword [eax]
add esp, 4
inc ecx
test ebp, ebp
mov dword [eax], ecx
jne 0x10024c82
lea ecx, [esp + 0x18]
call fcn.100028c0
mov ecx, eax
mov byte [esp + 0x2c], 1
call fcn.10002820
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call dword [sym.imp.rlmfc.dll_public_virtual:_void___thiscall_R_Exception::destructor_void_]
mov ecx, dword [esi + 4]
push ebp
push edi
push ecx
mov ecx, esi
call fcn.100261d0
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.100309a0
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 8]
add eax, 4
push eax
push ecx
push edi
mov ecx, esi
call fcn.100261d0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call sym.e2mfc.dll_public_virtual:_void___thiscall_P_CPUDriver::prepareSceneDirectionalLight_class_P_DirectionalLight___int_
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
push ecx
push eax
mov ecx, esi
call fcn.10030b80
lea edx, [ebp + ebx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.10030370
lea eax, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
pop ebp
jmp 0x10024d85
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x10024d45
lea edx, [edi + 4]
push edx
push eax
push edi
mov ecx, esi
call fcn.100261d0
mov eax, dword [esi + 8]
mov edx, eax
lea ecx, [esp + 0xc]
push ecx
sub edx, edi
sar edx, 2
mov ecx, 1
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.100309a0
mov eax, dword [esi + 8]
cmp edi, eax
je 0x10024d81
mov edx, dword [esp + 0xc]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x10024d36
jmp 0x10024d81
push eax
push eax
add eax, 0xfffffffc
push eax
mov ecx, esi
call fcn.100261d0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x10024d6b
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x10024d5c
lea ecx, [edi + 4]
cmp edi, ecx
mov eax, edi
je 0x10024d81
mov edx, dword [esp + 0xc]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x10024d74
add dword [esi + 8], 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.rlmfc.dll_public:_void___thiscall_R_MemoryScope::destructor_void_]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8