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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x8c
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x54], edi
mov ecx, dword [ebp + 0x14]
test esi, esi
je 0x6ca1c950
test ebx, ebx
je 0x6ca1c950
mov edi, dword [esi + 0x1c]
test edi, edi
jne 0x6ca1c578
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x6ca1c578
test eax, eax
je 0x6ca1ca90
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x44], edx
test ecx, ecx
je 0x6ca1ca18
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x3c], edx
jne 0x6ca1c590
mov edx, dword [esp + 0x44]
cmp edi, edx
jne 0x6ca1c590
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.6ca1ab80
mov dword [ebp + 8], str.Surfaces_must_not_be_locked_during_blit
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.6c942590
fild dword [esp + 0x3c]
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], edi
fld st(1)
fdiv st(1)
fstp qword [esp + 0x3c]
fild dword [esp + 0x4c]
fild dword [esp + 0x44]
fld st(1)
fdiv st(1)
fstp qword [esp + 0x34]
fild dword [ecx]
fild dword [ecx + 4]
fxch st(5)
fadd st(1)
fxch st(3)
fadd st(5)
test eax, eax
je 0x6ca1ca72
jmp 0x6ca1c5d4
fxch st(5)
fxch st(3)
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
fst qword [esp + 0x44]
fild dword [esp + 0x4c]
fst qword [esp + 0x4c]
fxch st(6)
fadd st(1)
fxch st(4)
faddp st(6)
test edx, edx
js 0x6ca1c9f0
fstp st(0)
fild dword [esi + 8]
fxch st(3)
fcomi st(3)
jbe 0x6ca1c620
fsub st(3)
fmul qword [esp + 0x3c]
fsubp st(4)
fxch st(1)
fxch st(2)
jmp 0x6ca1c626
fstp st(3)
fxch st(1)
fxch st(2)
test eax, eax
js 0x6ca1c9d8
fild dword [esi + 0xc]
fxch st(5)
fcomi st(5)
jbe 0x6ca1c650
fsub st(5)
fmul qword [esp + 0x34]
fsubp st(2)
fxch st(1)
fxch st(2)
fxch st(3)
fxch st(4)
jmp 0x6ca1c65a
fstp st(5)
fxch st(1)
fxch st(2)
fxch st(3)
fxch st(4)
fild dword [ebx + 0x24]
fst qword [esp + 0x2c]
fsub st(4), st(0)
fsubp st(5)
fild dword [ebx + 0x28]
fsub st(6), st(0)
fsub st(3), st(0)
fldz
fcompi st(5)
ja 0x6ca1c980
fild dword [ebx + 0x2c]
fxch st(6)
fcomi st(6)
jbe 0x6ca1c690
fsub st(6)
fdiv qword [esp + 0x3c]
fsubp st(3)
jmp 0x6ca1c69c
fstp st(6)
jmp 0x6ca1c69c
fstp st(6)
fxch st(4)
fldz
fcompi st(7)
ja 0x6ca1c9b0
fild dword [ebx + 0x30]
fxch st(4)
fcomi st(4)
ja 0x6ca1c968
fstp st(4)
fxch st(1)
jmp 0x6ca1c6c6
fstp st(4)
fxch st(6)
fxch st(1)
fstp qword [esp + 0x14]
fxch st(1)
lea edi, [esp + 0x6c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x2c]
mov dword [esp + 0x10], ecx
fadd st(3), st(0)
fxch st(3)
fstp qword [esp + 0x3c]
fxch st(3)
faddp st(2)
fxch st(1)
fstp qword [esp + 0x2c]
fxch st(2)
fadd st(1)
fstp qword [esp + 0x34]
faddp st(1)
fstp qword [esp + 0x24]
fld qword [esp + 0x44]
fstp qword [esp]
call fcn.6c9d6500
fnstcw word [esp + 0x5a]
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
fldcw word [esp + 0x58]
fistp dword [esp + 0x6c]
fldcw word [esp + 0x5a]
fld qword [esp + 0x4c]
fstp qword [esp]
call fcn.6c9d6500
fnstcw word [esp + 0x5a]
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
fldcw word [esp + 0x58]
fistp dword [esp + 0x70]
fldcw word [esp + 0x5a]
fld qword [esp + 0x44]
fld qword [esp + 0x1c]
fsubrp st(1)
fstp qword [esp]
call fcn.6c9d6500
fnstcw word [esp + 0x5a]
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
fldcw word [esp + 0x58]
fistp dword [esp + 0x74]
fldcw word [esp + 0x5a]
fld qword [esp + 0x4c]
fld qword [esp + 0x14]
fsubrp st(1)
fstp qword [esp]
call fcn.6c9d6500
fnstcw word [esp + 0x5a]
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
fldcw word [esp + 0x58]
fistp dword [esp + 0x78]
fldcw word [esp + 0x5a]
fld qword [esp + 0x3c]
fstp qword [esp]
call fcn.6c9d6500
fnstcw word [esp + 0x5a]
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
fldcw word [esp + 0x58]
fistp dword [esp + 0x7c]
fldcw word [esp + 0x5a]
fld qword [esp + 0x34]
fstp qword [esp]
call fcn.6c9d6500
fnstcw word [esp + 0x5a]
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
fldcw word [esp + 0x58]
fistp dword [esp + 0x80]
fldcw word [esp + 0x5a]
fld qword [esp + 0x2c]
fsub qword [esp + 0x3c]
fstp qword [esp]
call fcn.6c9d6500
fnstcw word [esp + 0x5a]
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
fldcw word [esp + 0x58]
fistp dword [esp + 0x84]
fldcw word [esp + 0x5a]
fld qword [esp + 0x24]
fsub qword [esp + 0x34]
fstp qword [esp]
call fcn.6c9d6500
mov dword [esp + 0x5c], 0
fnstcw word [esp + 0x5a]
mov dword [esp + 0x60], 0
movzx eax, word [esp + 0x5a]
or ah, 0xc
mov word [esp + 0x58], ax
lea eax, [esp + 0x5c]
movlps xmm0, qword [esi + 8]
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], eax
fldcw word [esp + 0x58]
fistp dword [esp + 0x88]
fldcw word [esp + 0x5a]
movlps qword [esp + 0x64], xmm0
call fcn.6ca16ed0
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [ebx + 0x24]
mov dword [esp], eax
call fcn.6ca16ed0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x6ca1c8d1
mov eax, dword [esp + 0x7c]
mov dword [ecx], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x84]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x84]
test eax, eax
je 0x6ca1c945
mov edx, dword [esp + 0x88]
test edx, edx
je 0x6ca1ca08
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
test ecx, ecx
jle 0x6ca1ca08
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x6ca1ca08
cmp dword [esp + 0x4c], 0xffff
setg byte [esp + 0x4c]
cmp ecx, 0xffff
setg cl
or cl, byte [esp + 0x4c]
cmp eax, 0xffff
setg al
or al, cl
jne 0x6ca1c939
cmp edx, 0xffff
jle 0x6ca1caa8
mov dword [esp], str.Size_too_large_for_scaling
call fcn.6c942590
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 8], str.SDL_UpperBlitScaled:_passed_a_NULL_surface
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.6c942590
fsub st(4)
fdiv qword [esp + 0x34]
fsubp st(2)
fxch st(1)
jmp 0x6ca1c6c6
fxch st(4)
fdiv qword [esp + 0x3c]
fsubr qword [esp + 0x44]
fstp qword [esp + 0x44]
fldz
fild dword [ebx + 0x2c]
fxch st(6)
fcomi st(6)
jbe 0x6ca1c698
fxch st(1)
fxch st(5)
fxch st(1)
jmp 0x6ca1c67f
fxch st(6)
fdiv qword [esp + 0x34]
fsubr qword [esp + 0x4c]
fstp qword [esp + 0x4c]
fldz
fild dword [ebx + 0x30]
fxch st(4)
fcomi st(4)
jbe 0x6ca1c6c0
fxch st(1)
fxch st(7)
fxch st(1)
jmp 0x6ca1c968
fld qword [esp + 0x4c]
fmul qword [esp + 0x34]
fsubp st(6)
fldz
fstp qword [esp + 0x4c]
jmp 0x6ca1c62e
fmul qword [esp + 0x3c]
fsubp st(2)
fldz
fstp qword [esp + 0x44]
jmp 0x6ca1c603
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
cmp edx, edi
jne 0x6ca1ca42
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
cmp edi, edx
je 0x6ca1c55a
fild dword [esp + 0x34]
fild dword [esp + 0x4c]
fld st(1)
fdiv st(1)
fstp qword [esp + 0x3c]
fild dword [esp + 0x2c]
fild dword [esp + 0x44]
fld st(1)
fdiv st(1)
fstp qword [esp + 0x34]
fldz
fld st(0)
test eax, eax
jne 0x6ca1c5d0
fxch st(5)
fxch st(3)
fldz
fst qword [esp + 0x4c]
fstp qword [esp + 0x44]
fxch st(2)
fxch st(1)
fxch st(3)
fxch st(4)
fxch st(1)
jmp 0x6ca1c65a
mov edx, dword [esi + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x44], edx
jmp 0x6ca1c536
mov eax, dword [esp + 0x54]
mov ecx, ebx
mov edx, edi
mov dword [esp + 4], eax
lea eax, [esp + 0x7c]
mov dword [esp], eax
mov eax, esi
call fcn.6ca1be10
jmp 0x6ca1c945