Function at 0x1002f100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10047b15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x62], vtable.P_TextureFormat.0
mov byte [esi + 0x82], al
lea ecx, [esi + 0x8d]
mov byte [esp + 0x20], 4
call sym.e2mfc.dll_public:_void___thiscall_P_ZBufferFormat::constructor_void_
mov dword [esi], vtable.P_DisplayMode.0
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov eax, edx
cmp eax, edx
mov byte [esp + 0x20], 5
je 0x1002f18e
mov edi, dword [eax]
mov dword [ecx], edi
add eax, 4
add ecx, 4
cmp eax, edx
jne 0x1002f180
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], ecx
mov ebx, dword [esi + 0x1c]
mov ebp, dword [esi + 0x18]
mov edi, ebx
cmp edi, ebx
mov dword [esp + 0x14], eax
je 0x1002f1b6
push edi
mov ecx, ebp
call sym.e2mfc.dll_public:_class_P_ZBufferFormat____thiscall_P_ZBufferFormat::operator_class_P_ZBufferFormat_const__
add edi, 0x14
add ebp, 0x14
cmp edi, ebx
jne 0x1002f1a4
mov ebx, dword [esi + 0x1c]
cmp ebp, ebx
mov edi, ebp
je 0x1002f1ce
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx]
add edi, 0x14
cmp edi, ebx
jne 0x1002f1bf
mov dword [esi + 0x1c], ebp
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov eax, edx
cmp eax, edx
je 0x1002f1eb
mov edi, dword [eax]
mov dword [ecx], edi
add eax, 4
add ecx, 4
cmp eax, edx
jne 0x1002f1dd
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], ecx
mov ebx, dword [esi + 0x3c]
mov ebp, dword [esi + 0x38]
mov edi, ebx
cmp edi, ebx
mov dword [esp + 0x14], eax
je 0x1002f213
push edi
mov ecx, ebp
call sym.e2mfc.dll_public:_class_P_TextureFormat____thiscall_P_TextureFormat::operator_class_P_TextureFormat_const__
add edi, 0x2b
add ebp, 0x2b
cmp edi, ebx
jne 0x1002f201
mov ebx, dword [esi + 0x3c]
cmp ebp, ebx
mov edi, ebp
je 0x1002f22b
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx]
add edi, 0x2b
cmp edi, ebx
jne 0x1002f21c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov dword [esi + 0x3c], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x30]
mov byte [esi + 0x58], al
mov ebx, 0xff
and eax, ebx
add eax, 7
cdq
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x34]
and edx, 7
add eax, edx
mov dword [esi + 0x4c], ecx
sar eax, 3
push ecx
mov ecx, esi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ebp
mov byte [esi + 0x59], al
call sym.e2mfc.dll_private:_unsigned_int___thiscall_P_TextureFormat::calcBpp_unsigned_int_
push edi
mov ecx, esi
mov byte [esi + 0x5a], al
call sym.e2mfc.dll_private:_unsigned_int___thiscall_P_TextureFormat::calcBpp_unsigned_int_
push ebp
mov ecx, esi
mov byte [esi + 0x5b], al
call sym.e2mfc.dll_private:_unsigned_int___thiscall_P_TextureFormat::calcBpp_unsigned_int_
mov edx, dword [esp + 0x40]
mov byte [esi + 0x5c], al
mov al, byte [esp + 0x44]
test al, al
mov dword [esi + 0x5d], edx
mov dword [esi + 0xa1], 0
je 0x1002f2b2
mov dword [esi + 0xa1], 1
mov al, byte [esp + 0x48]
test al, al
je 0x1002f2c1
or dword [esi + 0xa1], 2
mov al, byte [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0x61], al
pop edi
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov byte [esi + 0xab], bl
mov byte [esi + 0xac], bl
mov byte [esi + 0xad], bl
mov byte [esi + 0xae], bl
mov byte [esi + 0xaf], bl
mov byte [esi + 0xb0], bl
mov byte [esi + 0xb1], bl
mov byte [esi + 0xb2], bl
mov byte [esi + 0xb3], bl
mov byte [esi + 0xb4], bl
mov byte [esi + 0xb5], bl
mov byte [esi + 0xb6], bl
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x28