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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x486992
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x486992
cmp dword [edi + 0x18], 0
push ebx
mov ebx, dword [ebp + 0x18]
jne 0x4866da
test ebx, ebx
jne 0x4866da
push dword [0x648fa4]
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x10], str.CommonDirectGraphicsDrawSprite.cpp
mov dword [ebp - 0xc], 0xcd3
call fcn.00437d10
add esp, 0xc
mov eax, 0x80070057
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0xc]
ja 0x4866ef
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x20]
mov edx, 0xff
cmp ax, dx
cmova eax, edx
mov edx, dword [ebp + 0x1c]
movzx eax, al
push esi
mov esi, dword [ecx]
push eax
mov eax, edx
shr eax, 0x10
push eax
mov eax, edx
shr eax, 8
push eax
push edx
lea eax, [ebp + 0x18]
push eax
call dword [esi + 8]
mov eax, dword [edi + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
pop esi
addsd xmm0, qword [eax*8 + 0x647d60]
cvtpd2ps xmm1, xmm0
xorps xmm0, xmm0
movss dword [ebp - 0xc], xmm1
movss dword [ebp + 0x20], xmm0
test ebx, ebx
jne 0x486759
movss dword [ebp + 0x1c], xmm0
movss dword [ebp - 4], xmm1
movss dword [ebp - 8], xmm1
jmp 0x48678c
movd xmm0, dword [ebx]
cvtdq2ps xmm0, xmm0
movss dword [ebp + 0x20], xmm0
movd xmm0, dword [ebx + 4]
cvtdq2ps xmm0, xmm0
movss dword [ebp + 0x1c], xmm0
movd xmm0, dword [ebx + 8]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 4], xmm0
movd xmm0, dword [ebx + 0xc]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 8], xmm0
movd xmm1, dword [ebp + 8]
movd xmm0, dword [ebp + 0x10]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
sub esp, 8
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.00631534
movd xmm0, dword [ebp + 0x14]
fstp qword [ebp - 0x20]
movd xmm1, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.00631534
movd xmm4, dword [ebp + 8]
fstp qword [ebp - 0x18]
movsd xmm7, qword [ebp - 0x18]
movd xmm5, dword [ebp + 0xc]
movsd xmm6, qword [ebp - 0x20]
movss xmm0, dword [0x6ae4b4]
movss xmm1, dword [0x6ae530]
cvtpd2ps xmm7, xmm7
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
cvtpd2ps xmm6, xmm6
add esp, 8
cmp dword [edi + 0x18], 0
subss xmm4, xmm0
subss xmm5, xmm0
subss xmm6, xmm0
subss xmm7, xmm0
je 0x486858
divss xmm1, dword [ebp - 0xc]
movaps xmm0, xmm1
mulss xmm0, dword [ebp + 0x20]
movaps xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ebp + 0x1c]
movaps xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ebp - 4]
mulss xmm1, dword [ebp - 8]
jmp 0x48686c
movss xmm2, dword [ebp + 0x20]
movss xmm3, dword [ebp + 0x1c]
movss xmm0, dword [ebp - 4]
movss xmm1, dword [ebp - 8]
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp + 0x18]
imul ecx, ecx, 0xa8
add ecx, dword [edi + 4]
pop ebx
mov dword [ecx + 0x10], eax
movss dword [ecx], xmm4
movss dword [ecx + 4], xmm5
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0x3f800000
movss dword [ecx + 0x14], xmm2
movss dword [ecx + 0x18], xmm3
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x2c], eax
movss dword [ecx + 0x1c], xmm6
movss dword [ecx + 0x20], xmm5
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0x3f800000
movss dword [ecx + 0x30], xmm0
movss dword [ecx + 0x34], xmm3
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x48], eax
movss dword [ecx + 0x38], xmm4
movss dword [ecx + 0x3c], xmm7
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0x3f800000
movss dword [ecx + 0x4c], xmm2
movss dword [ecx + 0x50], xmm1
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x64], eax
movss dword [ecx + 0x54], xmm6
movss dword [ecx + 0x58], xmm5
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0x3f800000
movss dword [ecx + 0x68], xmm0
movss dword [ecx + 0x6c], xmm3
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x80], eax
movss dword [ecx + 0x70], xmm6
movss dword [ecx + 0x74], xmm7
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x7c], 0x3f800000
movss dword [ecx + 0x84], xmm0
movss dword [ecx + 0x88], xmm1
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x9c], eax
movss dword [ecx + 0x8c], xmm4
movss dword [ecx + 0x90], xmm7
mov dword [ecx + 0x94], 0
mov dword [ecx + 0x98], 0x3f800000
movss dword [ecx + 0xa0], xmm2
movss dword [ecx + 0xa4], xmm1
inc dword [edi + 0xc]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x1c
push dword [0x648fa4]
lea eax, [ebp - 0x10]
push 0
push eax
mov dword [ebp - 0x10], str.CommonDirectGraphicsDrawSprite.cpp
mov dword [ebp - 0xc], 0xccc
call fcn.00437d10
add esp, 0xc
mov eax, 0x80040203
pop edi
mov esp, ebp
pop ebp
ret 0x1c