Credits tim0n
Code:
.text:00490045 call D3DXMatrixPerspectiveFovLH
.text:0049004A mov ecx, dword_7E4CE0 ; D3D device pointer
.text:00490050 mov eax, [ecx]
.text:00490052 mov edx, [eax]
another way if u cant get Engine.exe unpacked with imports or cant debug while running anyways
Code:
___:00580C7F jnz short loc_580CA8
___:00580C81 mov ecx, offset dword_8FFD30 ; D3D device pointer
___:00580C86 call sub_56B840
___:00580C8B mov dword ptr [ebp-16], 0
___:00580C92 mov byte_902B8D, 0
___:00580C99 push offset aD3d_initRend_0 ; "d3d_Init(RenderStructInit *pInit) - 5 "
___:00580C9E call sub_49FB50