Function at 0x1002eee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10047ac5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x1c], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x14]
mov dword [esp + 0x28], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea ebp, [esi + 0x34]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x62], vtable.P_TextureFormat.0
mov byte [esi + 0x82], bl
lea ecx, [esi + 0x8d]
mov byte [esp + 0x28], 4
call sym.e2mfc.dll_public:_void___thiscall_P_ZBufferFormat::constructor_void_
mov dword [esi], vtable.P_DisplayMode.0
mov eax, dword [esi + 0x2c]
cmp eax, eax
mov ecx, dword [esi + 0x28]
mov byte [esp + 0x28], 5
mov dword [esp + 0x14], eax
je 0x1002ef7a
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
add eax, 4
add ecx, 4
cmp eax, edx
jne 0x1002ef68
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esi + 0x2c], ecx
mov eax, dword [edi + 8]
cmp eax, eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
je 0x1002efc8
jmp 0x1002efa0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
call sym.e2mfc.dll_public:_class_P_ZBufferFormat____thiscall_P_ZBufferFormat::operator_class_P_ZBufferFormat_const__
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
add eax, 0x14
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x1002ef9c
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, edi
call fcn.10030a00
mov ecx, dword [esp + 0x10]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov eax, edx
cmp eax, edx
je 0x1002eff9
mov edi, dword [eax]
mov dword [ecx], edi
add eax, 4
add ecx, 4
cmp eax, edx
jne 0x1002efeb
mov edx, dword [esi + 0xc]
mov dword [esi + 0xc], ecx
mov edi, dword [ebp + 8]
cmp edi, edi
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
je 0x1002f035
mov ecx, dword [esp + 0x10]
push edi
call sym.e2mfc.dll_public:_class_P_TextureFormat____thiscall_P_TextureFormat::operator_class_P_TextureFormat_const__
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add edx, 0x2b
add edi, 0x2b
cmp edi, eax
mov dword [esp + 0x10], edx
jne 0x1002f015
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.10030ba0
mov eax, dword [esp + 0x10]
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x20]
mov al, 0xff
mov byte [esi + 0xa5], al
mov byte [esi + 0xa6], al
mov byte [esi + 0xa7], al
mov byte [esi + 0xa8], al
mov byte [esi + 0xa9], al
mov byte [esi + 0xaa], al
mov byte [esi + 0xab], al
mov byte [esi + 0xac], al
mov byte [esi + 0xad], al
mov byte [esi + 0xae], al
mov byte [esi + 0xaf], al
mov byte [esi + 0xb0], al
mov byte [esi + 0xb1], al
mov byte [esi + 0xb2], al
mov byte [esi + 0xb3], al
mov byte [esi + 0xb4], al
mov byte [esi + 0xb5], al
mov byte [esi + 0xb6], al
pop edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x58], bl
mov byte [esi + 0x59], bl
mov byte [esi + 0x5a], bl
mov byte [esi + 0x5b], bl
mov byte [esi + 0x5c], bl
mov dword [esi + 0x5d], ebx
mov dword [esi + 0xa1], ebx
mov byte [esi + 0x61], bl
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret