Function at 0x513650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.00511610
mov byte [ebx + 0x3ea8], 1
xorps xmm0, xmm0
mov ecx, dword [esi + 0x118]
sub esp, 0x28
movsd qword [esi + 0x100], xmm0
mov dword [esi + 0xf8], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
mov eax, esp
mov dword [eax], 0x737254
mov dword [eax + 4], esi
mov dword [eax + 0x24], eax
call edx
mov ecx, dword [esi + 0x118]
push 1
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x320
call fcn.005ab82c
add esp, 4
mov ecx, eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005175d0
mov ecx, dword [esi + 0x118]
mov dword [esi], eax
push 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, esi
call fcn.00514eb0
mov ecx, dword [esi]
test byte [ecx + 0x78], 4
je 0x513709
mov eax, dword [ecx + 0x1c4]
cmp eax, dword [ecx + 0x1c8]
je 0x513709
push str.materials_util_fade.json
lea ecx, [esi + 0x2978]
call fcn.004f58c0
mov dword [esi + 0x3f44], eax
mov eax, dword [esi]
mov edx, dword [esi + 0x3ed0]
mov ebx, dword [eax + 0x78]
mov cl, byte [eax + 0x78]
mov eax, dword [esi + 0x164]
shr ebx, 0xb
and ebx, 0xffffff01
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xe0]
mov dword [ebp + 0xc], ebx
mov ebx, eax
shr ebx, 0x11
and bl, 1
test cl, 1
je 0x513773
test edx, edx
jne 0x51378d
push edx
and eax, 1
lea ecx, [esi + 0x29c8]
push 2
lea eax, [eax*4 + 0x15]
push eax
push 1
push str._rt_Reflection
push 1
push dword [esi + 0x40]
push dword [esi + 0x3c]
call fcn.0052d0f0
mov dword [esi + 0x3ed0], eax
jmp 0x51378d
test edx, edx
je 0x51378d
push edx
lea ecx, [esi + 0x29c8]
call fcn.0052d290
mov dword [esi + 0x3ed0], 0
cmp byte [ebp + 0xc], 0
mov edi, 1
mov eax, dword [esi + 0x3f04]
lea ecx, [edi + 0xe]
je 0x513875
test eax, eax
jne 0x513894
push 0x10
push 2
push 0x1a
test bl, bl
mov eax, edi
cmovne eax, ecx
lea ecx, [esi + 0x29c8]
push eax
push str._rt_MipMappedFrameBuffer
push edi
push dword [esi + 0x40]
push dword [esi + 0x3c]
call fcn.0052d0f0
test byte [esi + 0xe0], 0x80
mov ecx, eax
mov dword [esi + 0x3f04], ecx
jne 0x51388f
mov eax, dword [ecx + 4]
add dword [eax + 0xc], 4
mov eax, dword [eax + 0xc]
mov dword [eax], ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esi + 0x28ec]
sub esp, 0x10
mov eax, dword [ecx]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [eax + 0x7c]
mov ecx, dword [esi + 0x28ec]
push 0
push edi
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [esi + 0x3f04]
mov eax, dword [ecx + 4]
add dword [eax + 0xc], 0xfffffffc
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
test edx, edx
je 0x513863
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x24]
mov ecx, dword [esi + 0x3f04]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x51388f
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 0x3f04]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x51388f
test eax, eax
je 0x513894
push eax
lea ecx, [esi + 0x29c8]
call fcn.0052d290
mov dword [esi + 0x3f04], 0
mov ecx, 0xf
cmp dword [ebp + 8], 0
mov eax, dword [esi + 0x3f08]
je 0x5138d0
test eax, eax
jne 0x5138ea
push 0x20
push 2
push 0x17
test bl, bl
cmovne edi, ecx
lea ecx, [esi + 0x29c8]
push edi
push str._rt_FullFrameBufferMultiSampled
push 1
push dword [esi + 0x40]
push dword [esi + 0x3c]
call fcn.0052d0f0
mov dword [esi + 0x3f08], eax
jmp 0x5138ea
test eax, eax
je 0x5138ea
push eax
lea ecx, [esi + 0x29c8]
call fcn.0052d290
mov dword [esi + 0x3f08], 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x3f800000
push eax
lea ecx, [ebp - 0x68]
call fcn.00449760
mov ecx, dword [esi + 0x10]
mov dword [ebp + 0xc], 0x3f800000
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
lea eax, [ebp + 0xc]
push eax
movups xmmword [ecx + 0x30], xmm0
lea ecx, [ebp - 0x68]
call fcn.00449760
mov ecx, dword [esi + 0x14]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
mov ecx, esi
call fcn.005149f0
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x73726c
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push edx
push 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 4]
mov edi, dword [esi]
test ecx, ecx
je 0x513994
mov esi, dword [ecx]
lea eax, [ebp - 0x28]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8