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

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x24
mov eax, dword [eax + 0x158]
mov dword [esp + 0x14], eax
cmp edx, 8
ja case.0x6c97e21e.0
mov ebx, ecx
jmp dword [edx*4 + 0x6ca2d3a4]
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.6c9eb040
cmp eax, 2
ja 0x6c97e93e
mov ebx, dword [eax*4 + 0x6ca2d80c]
mov eax, dword [edi + 0x158]
lea esi, [esi]
nop
xor edx, edx
call fcn.6c97da40
mov ebp, eax
test eax, eax
je 0x6c97e795
mov eax, dword [edi + 0x158]
mov edx, ebx
call fcn.6c97da40
mov dword [esp + 0x18], eax
test eax, eax
je 0x6c97e8b4
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6c97e291
cmp dword [eax + 4], ebp
je 0x6c97e710
mov esi, dword [edi + 0x158]
mov eax, dword [esi + 0x108]
test eax, eax
je 0x6c97e400
mov ebx, eax
jmp 0x6c97e2be
mov ebx, dword [ebx + 0x98]
test ebx, ebx
je 0x6c97e400
cmp ebp, dword [ebx + 4]
jne 0x6c97e2b0
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebx + 8]
jne 0x6c97e2b0
cmp eax, ebx
je 0x6c97e312
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
test ecx, ecx
je 0x6c97e2ec
mov dword [ecx + 0x94], edx
mov edx, dword [ebx + 0x94]
test edx, edx
je 0x6c97e2f6
mov dword [edx + 0x98], ecx
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], eax
mov dword [eax + 0x94], ebx
mov dword [esi + 0x108], ebx
mov eax, dword [ebx]
mov esi, dword [esp + 0x14]
mov dword [esp], eax
call dword [esi + 0xb8]
mov dword [esi + 0x110], ebx
mov eax, edi
sub esp, 4
call fcn.6c97d560
test eax, eax
js 0x6c97e730
add esp, 0x24
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ebx, 0xf
jmp 0x6c97e250
mov eax, dword [esp + 0x14]
mov ebx, 2
jmp 0x6c97e250
mov eax, dword [esp + 0x14]
mov ebx, 3
jmp 0x6c97e250
mov eax, dword [esp + 0x14]
mov ebx, 5
jmp 0x6c97e250
mov eax, dword [esp + 0x14]
mov ebx, 4
jmp 0x6c97e250
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.6c9eb040
cmp eax, 2
ja 0x6c97e93e
mov ebx, dword [eax*4 + 0x6ca2d824]
mov eax, dword [edi + 0x158]
jmp 0x6c97e250
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.6c9eb040
cmp eax, 2
ja 0x6c97e93e
mov ebx, dword [eax*4 + 0x6ca2d818]
mov eax, dword [edi + 0x158]
jmp 0x6c97e250
mov eax, dword [esp + 0x14]
mov ebx, 1
jmp 0x6c97e250
mov dword [esp + 4], 0x9c
mov dword [esp], 1
call fcn.6c99ed10
mov ebx, eax
test eax, eax
je 0x6c97e722
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], ebp
mov dword [ebx + 8], eax
call dword [esi + 0x34]
mov edx, dword [ebp]
mov dword [ebx], eax
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [esi + 0x14]
sub esp, 8
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x14]
sub esp, 8
mov dword [esp + 8], str.a_position
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x18]
sub esp, 0xc
mov dword [esp + 8], str.a_texCoord
mov dword [esp + 4], 1
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x18]
sub esp, 0xc
mov dword [esp + 8], str.a_angle
mov dword [esp + 4], 2
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x18]
sub esp, 0xc
mov dword [esp + 8], str.a_center
mov dword [esp + 4], 3
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x18]
mov eax, dword [ebx]
sub esp, 0xc
mov dword [esp], eax
call dword [esi + 0x88]
sub esp, 4
lea eax, [esp + 0x20]
mov dword [esp + 4], 0x8b82
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x78]
sub esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6c97e7c0
mov dword [esp + 4], str.u_projection
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x84]
sub esp, 8
mov dword [ebx + 0xc], eax
mov dword [esp + 4], str.u_texture_v
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x84]
sub esp, 8
mov dword [ebx + 0x20], eax
mov dword [esp + 4], str.u_texture_u
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x84]
sub esp, 8
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], str.u_texture
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x84]
sub esp, 8
mov dword [ebx + 0x10], eax
mov dword [esp + 4], str.u_modulation
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x84]
sub esp, 8
mov dword [ebx + 0x14], eax
mov dword [esp + 4], str.u_color
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x84]
mov dword [ebx + 0x4c], 0xffffffff
mov dword [ebx + 0x18], eax
mov eax, dword [ebx]
sub esp, 8
mov dword [ebx + 0x50], 0xffffffff
mov dword [esp], eax
call dword [esi + 0xb8]
sub esp, 4
mov dword [esp + 4], 2
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call dword [esi + 0xac]
sub esp, 8
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [esi + 0xac]
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [esi + 0xac]
lea eax, [ebx + 0x54]
sub esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [esi + 0xb4]
sub esp, 0x10
fld1
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [esi + 0xb0]
sub esp, 0x14
fld1
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [esi + 0xb0]
mov eax, dword [esi + 0x108]
sub esp, 0x14
test eax, eax
je 0x6c97e7b0
mov dword [ebx + 0x98], eax
mov dword [eax + 0x94], ebx
mov eax, dword [esi + 0x104]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x108], ebx
add eax, 1
mov dword [esi + 0x104], eax
add dword [ebp + 0xc], 1
add dword [ecx + 0xc], 1
cmp eax, 8
jle 0x6c97e312
mov edx, dword [esi + 0x10c]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 0xc]
sub eax, 1
mov dword [ecx + 0xc], eax
test eax, eax
jle 0x6c97e850
mov ecx, dword [edx + 8]
mov eax, dword [ecx + 0xc]
sub eax, 1
mov dword [ecx + 0xc], eax
test eax, eax
jle 0x6c97e7e4
mov eax, dword [edx]
mov dword [esp], eax
call dword [esi + 0x3c]
mov eax, dword [esi + 0x10c]
sub esp, 4
mov eax, dword [eax + 0x94]
mov dword [esi + 0x10c], eax
mov eax, dword [eax + 0x98]
mov dword [esp], eax
call fcn.6c99edc0
mov eax, dword [esi + 0x10c]
mov dword [eax + 0x98], 0
sub dword [esi + 0x104], 1
jmp 0x6c97e312
mov ecx, dword [esp + 0x18]
cmp dword [eax + 8], ecx
jne 0x6c97e291
jmp 0x6c97e339
mov dword [esp], 0
call fcn.6c942990
nop
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x6c97e8bf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jg 0x6c97e795
mov eax, dword [edi + 0x158]
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
test ecx, ecx
je 0x6c97e760
mov dword [ecx + 0x14], edx
mov edx, dword [edi + 0x14]
test edx, edx
je 0x6c97e767
mov dword [edx + 0x18], ecx
mov ecx, dword [esp + 0x18]
cmp dword [eax + 0x100], ecx
je 0x6c97e930
mov edi, dword [esp + 0x18]
sub dword [eax + 0xfc], 1
mov edx, dword [edi]
mov dword [esp], edx
call dword [eax + 0x40]
sub esp, 4
mov dword [esp], edi
call fcn.6c99edc0
mov eax, dword [esp + 0x14]
mov dword [eax + 0x110], 0
add esp, 0x24
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esi + 0x10c], ebx
jmp 0x6c97e66c
mov eax, dword [ebx]
mov dword [esp], eax
call dword [esi + 0x3c]
sub esp, 4
mov dword [esp], ebx
call fcn.6c99edc0
mov dword [esp], str.Failed_to_link_shader_program
call fcn.6c9427b0
jmp 0x6c97e730
mov eax, dword [edi + 0x158]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x18]
mov edx, eax
mov eax, dword [ecx + 0x14]
test edx, edx
je 0x6c97e800
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x6c97e807
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x100]
je 0x6c97e910
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x1c], ecx
sub dword [edx + 0xfc], 1
mov dword [esp], eax
call dword [edx + 0x40]
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
call fcn.6c99edc0
mov edx, dword [esi + 0x10c]
jmp 0x6c97e6c4
mov eax, dword [edi + 0x158]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x18]
mov edx, eax
mov eax, dword [ecx + 0x14]
test edx, edx
je 0x6c97e86c
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x6c97e873
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x100]
je 0x6c97e920
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x1c], ecx
sub dword [edx + 0xfc], 1
mov dword [esp], eax
call dword [edx + 0x40]
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
call fcn.6c99edc0
mov edx, dword [esi + 0x10c]
jmp 0x6c97e6b0
mov edx, dword [ebp + 0xc]
test edx, edx
jg 0x6c97e795
mov ecx, dword [ebp + 0x18]
mov eax, dword [edi + 0x158]
mov edx, dword [ebp + 0x14]
test ecx, ecx
je 0x6c97e8d5
mov dword [ecx + 0x14], edx
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x6c97e8dc
mov dword [edx + 0x18], ecx
cmp ebp, dword [eax + 0x100]
je 0x6c97e963
mov edx, dword [ebp]
sub dword [eax + 0xfc], 1
mov dword [esp], edx
call dword [eax + 0x40]
sub esp, 4
mov dword [esp], ebp
call fcn.6c99edc0
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x6c97e73b
jmp 0x6c97e795
mov edx, eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x100], eax
jmp 0x6c97e817
mov edx, eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x100], eax
jmp 0x6c97e883
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x100], edx
jmp 0x6c97e777
mov eax, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6c9eb040
mov dword [esp], str.Unsupported_YUV_conversion_mode:__d_n
mov dword [esp + 4], eax
call fcn.6c9427b0
jmp 0x6c97e795
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x100], edx
jmp 0x6c97e8e4