Function at 0x48a940
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c429
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x5de00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [edi], vtable.LayerBase.0
lea esi, [edi + 0x114]
mov dword [edi + 4], 0
lea ecx, [edi + 0x11c]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0x3f800000
mov dword [edi + 0x24], 0x3f800000
mov dword [edi + 0x28], 0x3f800000
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0x3f800000
mov dword [edi + 0x3c], 0x3f800000
mov dword [edi + 0x40], 0x3f800000
mov dword [edi + 0x44], 0x3f800000
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0x3f800000
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], 0xffffffff
movss dword [edi + 0xf8], xmm3
mov dword [edi + 0xfc], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0
mov dword [esi], 0
mov dword [edi + 0x118], 0
call fcn.00423bb0
mov dword [ebp - 4], 0
mov dword [edi + 0x150], 0
mov dword [edi + 0x154], 0
mov dword [edi + 0x158], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x160], 0
mov dword [edi + 0x164], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x168], xmm0
xor eax, eax
mov dword [edi + 0x178], 0
mov dword [edi + 0x17c], 7
mov word [edi + 0x168], ax
mov dword [edi + 0x180], eax
mov dword [edi + 0x184], eax
movups xmmword [edi + 0x19c], xmm0
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x1b0], 7
mov word [edi + 0x19c], ax
mov dword [edi + 0x1b4], eax
mov dword [edi + 0x1b8], eax
mov dword [edi + 0x1bc], eax
mov dword [edi + 0x1c0], eax
mov dword [edi + 0x1c4], eax
mov dword [edi + 0x1c8], eax
movups xmmword [edi + 0x1d4], xmm0
mov dword [edi + 0x1e4], eax
mov dword [edi + 0x1e8], 7
mov word [edi + 0x1d4], ax
movups xmmword [edi + 0x1ec], xmm0
mov dword [edi + 0x1fc], eax
mov dword [edi + 0x200], 7
mov word [edi + 0x1ec], ax
movups xmmword [edi + 0x204], xmm0
mov dword [edi + 0x214], eax
mov dword [edi + 0x218], 7
mov word [edi + 0x204], ax
mov dword [edi + 0x220], eax
mov dword [edi + 0x224], eax
movups xmmword [edi + 0x230], xmm0
mov dword [edi + 0x240], eax
mov dword [edi + 0x244], 7
mov word [edi + 0x230], ax
movups xmmword [edi + 0x248], xmm0
mov dword [edi + 0x258], eax
mov dword [edi + 0x25c], 7
mov word [edi + 0x248], ax
movups xmmword [edi + 0x260], xmm0
mov dword [edi + 0x270], eax
mov dword [edi + 0x274], 7
mov word [edi + 0x260], ax
push eax
mov byte [ebp - 4], 5
mov ecx, dword [0x5e45d0]
test ecx, ecx
mov dword [edi + 0x280], eax
mov dword [edi + 0x284], eax
sete al
push esi
push eax
mov dword [edi + 0x27c], 0x3f800000
mov esi, 8
mov edi, dword [ebx + 8]
test ecx, ecx
push 0
mov eax, esi
mov dword [ebp - 0x14], 0x208
cmovne eax, dword [ebp - 0x14]
mov edx, dword [edi]
push eax
push 0x30
push edi
call dword [edx + 0x68]
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x5e45d0]
add eax, 0x118
mov edx, dword [edi]
push 0
push eax
xor eax, eax
test ecx, ecx
sete al
test ecx, ecx
push eax
cmovne esi, dword [ebp - 0x14]
push 0
push esi
push 0x20
push edi
call dword [edx + 0x68]
mov esi, dword [ebp - 0x18]
sub esp, 0xc
mov ecx, esi
movss xmm0, dword [esi + 0x6c]
lea eax, [esi + 0x58]
movss dword [esp + 8], xmm0
movss xmm0, dword [esi + 0x68]
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + 0x64]
movss dword [esp], xmm0
push eax
call fcn.00490e30
lea eax, [esi + 0xb8]
mov dword [eax + 0x38], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
sub esp, 0x10
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 0x3c], 0x3f800000
mov dword [eax + 0x28], 0x3f800000
mov dword [eax + 0x14], 0x3f800000
mov dword [eax], 0x3f800000
movss xmm0, dword [esi + 0xf8]
mulss xmm0, dword [0x5c6e74]
mov dword [esp + 0xc], 0x42c80000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f800000
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixPerspectiveFovLH]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8