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

Disassembly:
mov eax, dword [0xbcaaa8]
sub esp, 0x88
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x50f759
mov ecx, dword [esp + 0x9c]
mov ebp, dword [0xbcaaa0]
movsx edx, word [ecx + 0x10]
movsx eax, word [ecx + 0x12]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x18]
fld st(0)
fmul dword [ecx + 0x44]
fistp qword [esp + 0x10]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x38], edi
fild dword [esp + 0x1c]
fst dword [esp + 0x20]
fmul dword [ecx + 0x48]
fistp qword [esp + 0x10]
mov esi, dword [esp + 0x10]
fmul dword [ecx + 0x64]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
sub eax, edi
mov dword [esp + 0x30], eax
fld dword [esp + 0x20]
fmul dword [ecx + 0x68]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
sub eax, esi
fld dword [ecx + 0x50]
fistp qword [esp + 0x10]
mov edi, dword [esp + 0x10]
fld dword [ecx + 0x4c]
imul ebp, edi
fistp qword [esp + 0x10]
fld dword [0xbcaac0]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
add ebp, ebx
mov ebx, dword [0xbcaaa8]
fistp qword [esp + 0x10]
lea ebx, [ebx + ebp*4]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ebp
fld dword [0xbcaac4]
fistp qword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
fld dword [0xbcaac8]
fistp qword [esp + 0x10]
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x48], ebx
fld dword [0xbcaacc]
fistp qword [esp + 0x10]
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x4c]
cmp ebx, ebp
jge 0x50f759
cmp edi, dword [esp + 0x50]
jge 0x50f759
mov ebp, dword [esp + 0x30]
add ebx, ebp
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
jl 0x50f759
mov ebp, dword [esp + 0x34]
lea ebx, [edi + eax]
cmp ebx, ebp
jl 0x50f759
mov ebp, dword [ecx + 0x58]
mov ebx, 0x3f800000
cmp ebp, ebx
jne 0x50f1c5
cmp dword [ecx + 0x5c], ebx
jne 0x50f1c5
mov ebp, dword [ecx + 0x60]
mov dword [esp + 0x20], 1
cmp ebp, ebx
je 0x50f1cd
mov dword [esp + 0x20], 0
cmp word [ecx + 0x40], 0
je 0x50f327
mov eax, dword [ecx + 0x38]
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
jle 0x50f759
mov eax, edi
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x34]
jl 0x50f2e7
cmp eax, dword [esp + 0x50]
jge 0x50f2e7
xor edi, edi
test edx, edx
jle 0x50f2e7
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
sub ebp, esi
mov dword [esp + 0x38], ebp
mov edx, dword [esp + 0x44]
lea eax, [esi + ebp]
cmp eax, edx
jl 0x50f2ce
cmp eax, dword [esp + 0x48]
jge 0x50f2ce
mov eax, dword [esp + 0x20]
test eax, eax
je 0x50f25e
mov ebp, dword [esp + 0x30]
xor edx, edx
mov dl, byte [esi]
xor eax, eax
mov ax, word [ebp + edx*2]
jmp 0x50f2c8
mov edx, dword [esp + 0x30]
xor eax, eax
mov al, byte [esi]
mov dx, word [edx + eax*2]
mov eax, edx
mov bp, dx
shr eax, 5
and eax, 0x3f
and edx, 0x1f
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
shr bp, 0xb
and ebp, 0xffff
fmul dword [ecx + 0x5c]
mov dword [esp + 0x18], ebp
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fmul dword [ecx + 0x58]
fistp qword [esp + 0x10]
mov ebp, dword [esp + 0x10]
shl ebp, 9
or eax, ebp
shl eax, 7
fild dword [esp + 0x18]
fmul dword [ecx + 0x60]
fistp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
or eax, edx
shl eax, 3
mov ebp, dword [esp + 0x38]
mov dword [ebx], eax
movsx edx, word [ecx + 0x10]
inc edi
inc esi
add ebx, 4
cmp edi, edx
jl 0x50f22c
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edi, dword [0xbcaaa0]
mov ebx, dword [esp + 0x24]
lea edi, [ebx + edi*4]
movsx ebx, word [ecx + 0x12]
mov dword [esp + 0x24], edi
movsx edi, word [ecx + 0x14]
add esi, edi
mov edi, dword [esp + 0x2c]
inc edi
inc eax
cmp edi, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], eax
jl 0x50f200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
movsx edx, word [ecx + 0x16]
sub edx, 2
je 0x50f60f
dec edx
je 0x50f346
push str.OffscreenBufferSprite_RenderSprite___:_Texture_type_not_supported.
call fcn.004af7b0
add esp, 4
jmp 0x50f344
movsx edx, word [ecx + 0x14]
imul edx, esi
mov esi, dword [ecx + 0x18]
shr edx, 2
test eax, eax
lea edx, [esi + edx*4]
mov dword [esp + 0x20], edx
jle 0x50f759
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], eax
cmp edi, dword [esp + 0x34]
jl 0x50f5cd
cmp edi, dword [esp + 0x50]
jge 0x50f5cd
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x50f5cd
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x24]
lea ebp, [edi + edx*4]
mov dword [esp + 0x2c], eax
cmp ebx, dword [esp + 0x44]
jl 0x50f5b3
cmp ebx, dword [esp + 0x48]
jge 0x50f5b3
mov edx, dword [ebp]
xor edi, edi
mov eax, edx
mov dword [esp + 0x6c], edi
shr eax, 0x18
mov dword [esp + 0x68], eax
fild qword [esp + 0x68]
fmul dword [0x534bc0]
fcom dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x50f5b1
fld dword [0x5333e0]
mov eax, edx
mov dword [esp + 0x94], edi
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x7c], edi
fsub st(1)
mov dword [esp + 0x90], eax
mov eax, edx
fild qword [esp + 0x90]
shr eax, 8
and eax, 0xff
and edx, 0xff
fmul dword [ecx + 0x58]
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edi
mov eax, dword [esi]
fmul st(2)
mov edx, eax
mov dword [esp + 0x74], edi
shr edx, 0x10
fmul dword [0x534bc0]
and edx, 0xff
mov dword [esp + 0x84], edi
mov dword [esp + 0x70], edx
mov edx, eax
shr edx, 8
fstp dword [esp + 0x58]
fild qword [esp + 0x78]
and edx, 0xff
and eax, 0xff
mov dword [esp + 0x80], edx
mov dword [esp + 0x10], eax
fmul dword [ecx + 0x5c]
mov dword [esp + 0x14], edi
fmul st(2)
fmul dword [0x534bc0]
fstp dword [esp + 0x60]
fild qword [esp + 0x88]
fmul dword [ecx + 0x60]
fmul st(2)
fmul dword [0x534bc0]
fstp dword [esp + 0x3c]
fild qword [esp + 0x70]
fmul st(1)
fmul dword [0x534bc0]
fstp dword [esp + 0x18]
fild qword [esp + 0x80]
fmul st(1)
fmul dword [0x534bc0]
fstp dword [esp + 0x54]
fild qword [esp + 0x10]
fmul st(1)
fmul dword [0x534bc0]
fstp st(2)
fstp st(0)
fld dword [esp + 0x18]
fadd dword [esp + 0x58]
fld dword [0x5333ec]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x50f4f6
fstp st(0)
fld dword [0x5333ec]
jmp 0x50f50d
fld dword [0x5333e0]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x50f50d
fstp st(0)
fld dword [0x5333e0]
fmul dword [0x5336d4]
fistp qword [esp + 0x58]
mov edx, dword [esp + 0x58]
fld dword [esp + 0x54]
fadd dword [esp + 0x60]
fld dword [0x5333ec]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x50f53c
fstp st(0)
fld dword [0x5333ec]
jmp 0x50f553
fld dword [0x5333e0]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x50f553
fstp st(0)
fld dword [0x5333e0]
fmul dword [0x5336d4]
fistp qword [esp + 0x60]
mov edi, dword [esp + 0x60]
fadd dword [esp + 0x3c]
fld dword [0x5333ec]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x50f57e
fstp st(0)
fld dword [0x5333ec]
jmp 0x50f595
fld dword [0x5333e0]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x50f595
fstp st(0)
fld dword [0x5333e0]
fmul dword [0x5336d4]
shl edx, 8
or edx, edi
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
shl edx, 8
or edx, eax
mov dword [esi], edx
jmp 0x50f5b3
fstp st(0)
mov eax, dword [esp + 0x2c]
inc ebx
add ebp, 4
add esi, 4
dec eax
mov dword [esp + 0x2c], eax
jne 0x50f3a1
mov edi, dword [esp + 0x28]
mov edx, dword [0xbcaaa0]
mov eax, dword [esp + 0x24]
lea edx, [eax + edx*4]
movsx eax, word [ecx + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
shr eax, 2
inc edi
lea eax, [edx + eax*4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x50f36a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
movsx edx, word [ecx + 0x14]
imul edx, esi
mov esi, dword [ecx + 0x18]
shr edx, 1
test eax, eax
lea ebx, [esi + edx*2]
mov dword [esp + 0x28], ebx
jle 0x50f759
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
cmp edi, dword [esp + 0x34]
jl 0x50f728
cmp edi, dword [esp + 0x50]
jge 0x50f728
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x50f728
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
lea ebx, [ebx + edx*2]
cmp esi, dword [esp + 0x44]
jl 0x50f70a
cmp esi, dword [esp + 0x48]
jge 0x50f70a
mov dx, word [ebx]
test dh, 0x80
je 0x50f70a
mov eax, dword [esp + 0x20]
test eax, eax
je 0x50f6af
and edx, 0xffff
mov eax, edx
mov ebp, edx
and eax, 0x7c00
and ebp, 0x3e0
shl eax, 3
or eax, ebp
shl eax, 3
and edx, 0x1f
jmp 0x50f703
mov eax, edx
mov ebp, edx
shr eax, 5
and eax, 0x1f
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
shr ebp, 0xa
and ebp, 0x1f
fmul dword [ecx + 0x5c]
mov dword [esp + 0x3c], ebp
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
fild dword [esp + 0x3c]
fmul dword [ecx + 0x58]
fistp qword [esp + 0x10]
mov ebp, dword [esp + 0x10]
shl ebp, 8
or eax, ebp
shl eax, 8
and edx, 0x1f
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fmul dword [ecx + 0x60]
fistp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
or eax, edx
shl eax, 3
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
add ebx, 2
inc esi
add edi, 4
dec eax
mov dword [esp + 0x2c], eax
jne 0x50f665
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov eax, dword [0xbcaaa0]
mov edx, dword [esp + 0x24]
lea eax, [edx + eax*4]
movsx edx, word [ecx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
shr edx, 1
inc edi
dec eax
lea ebx, [ebx + edx*2]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
jne 0x50f632
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret