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

Disassembly:
sub esp, 0x64
movss xmm1, dword [0x10088f48]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
push edi
movss xmm0, dword [ebx + 8]
sub esp, 8
addss xmm0, xmm0
maxss xmm1, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x18], xmm1
mulss xmm0, dword [ebx + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x74], xmm0
fld qword [esp + 0x74]
fstp qword [esp]
call fcn.1005fc50
fstp qword [esp + 0x74]
movsd xmm0, qword [esp + 0x74]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x10]
movaps xmm1, xmm0
mov dword [esp + 0x5c], esi
mulss xmm1, dword [ebx + 0x1d8]
mulss xmm1, dword [0x10086e30]
cvttss2si eax, xmm1
movss dword [esp + 0x20], xmm1
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
movss dword [esp], xmm0
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
push ebx
call fcn.1004e860
movss xmm0, dword [ebx + 0x1d8]
add esp, 0x2c
movss xmm1, dword [0x10089b40]
comiss xmm1, xmm0
jbe 0x1004b410
movss xmm1, dword [esp + 0x10]
mulss xmm1, dword [0x10086e30]
movss dword [esp + 0x20], xmm1
jmp 0x1004b44f
subss xmm0, xmm1
sub esp, 8
mulss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x5c], xmm0
fld qword [esp + 0x5c]
fstp qword [esp]
call fcn.1005fc50
fstp qword [esp + 0x5c]
movsd xmm0, qword [esp + 0x5c]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si ecx, xmm0
mov dword [esp + 0x38], ecx
test ecx, ecx
jne 0x1004b458
mov ecx, 1
mov dword [esp + 0x38], ecx
movd xmm1, dword [ebx + 0x294]
movd xmm0, dword [esp + 0x1c]
cvtdq2ps xmm1, xmm1
mov ebp, dword [esp + 0x18]
add ebp, ecx
add ebp, dword [esp + 0x40]
add ebp, esi
cvtdq2ps xmm0, xmm0
mov esi, ebp
mov dword [esp + 0x34], ebp
mulss xmm1, dword [esp + 0x10]
addss xmm1, xmm0
movd xmm0, dword [esp + 0x3c]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si ebx, xmm1
imul esi, ebx
mov dword [esp + 0x28], ebx
push esi
call fcn.1005b981
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1004b506
mov ebp, dword [esp + 0x78]
movups xmm0, xmmword [str.657:_Insufficient_memory_for_pixel_buffer]
movups xmmword [ebp + 0x7638], xmm0
movups xmm0, xmmword [0x100c183c]
movups xmmword [ebp + 0x7648], xmm0
movq xmm0, qword [0x100c184c]
movq qword [ebp + 0x7658], xmm0
mov ax, word [0x100c1854]
mov word [ebp + 0x7660], ax
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push esi
push 0x30
push edi
call fcn.10058d80
mov esi, dword [esp + 0x84]
xor eax, eax
movss xmm2, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x290], eax
jle 0x1004b69a
movss xmm3, dword [esp + 0x20]
xor ebp, ebp
mov dword [esp + 0x30], ebp
nop dword [eax]
movd xmm0, dword [esp + 0x18]
xor edx, edx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov dword [esp + 0x10], edx
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
addss xmm1, xmm0
addss xmm1, xmm3
cvttss2si ecx, xmm1
mov dword [esp + 0x48], ecx
cmp dword [esi + 0x294], edx
jle 0x1004b677
mov eax, edx
mov cl, dl
sar eax, 3
and cl, 7
add eax, ebp
mov al, byte [eax + esi + 0x298]
shr al, cl
test al, 1
je 0x1004b662
movd xmm0, dword [esp + 0x1c]
movd xmm1, edx
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
addss xmm1, xmm0
movd xmm0, dword [esp + 0x44]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm3
cvttss2si edi, xmm0
cvttss2si edx, xmm1
mov eax, edi
mov dword [esp + 0x50], edi
mov ecx, edi
neg ecx
mov dword [esp + 0x54], ecx
imul eax, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov eax, ecx
mov dword [esp + 0x24], eax
cmp eax, edi
jg 0x1004b65e
mov esi, dword [esp + 0x48]
add esi, eax
mov ebp, esi
imul ebp, ebx
nop
mov ebx, eax
imul ebx, eax
cmp ecx, edi
jg 0x1004b642
add edx, ecx
nop dword [eax + eax]
mov eax, ecx
imul eax, ecx
add eax, ebx
cmp eax, dword [esp + 0x4c]
jg 0x1004b634
test edx, edx
js 0x1004b634
cmp edx, dword [esp + 0x28]
jge 0x1004b634
test esi, esi
js 0x1004b634
cmp esi, dword [esp + 0x34]
jge 0x1004b634
mov edi, dword [esp + 0x14]
lea eax, [ecx + ebp]
add eax, dword [esp + 0x20]
mov byte [eax + edi], 0x31
mov edi, dword [esp + 0x50]
inc ecx
inc edx
cmp ecx, edi
jle 0x1004b600
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x54]
inc esi
add ebp, ebx
mov dword [esp + 0x24], eax
cmp eax, edi
jle 0x1004b5f0
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [esi + 0x294]
jl 0x1004b576
mov eax, dword [esp + 0x2c]
inc eax
add ebp, 0x90
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
cmp eax, dword [esi + 0x290]
jl 0x1004b540
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
cvttss2si eax, xmm2
push eax
push ebp
push ebx
push dword [esp + 0x44]
push dword [esp + 0x6c]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push edi
push esi
call fcn.10049160
mov edi, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
push edi
push esi
push dword [esp + 0x40]
push ebx
push ebp
mov ebp, dword [esp + 0xb0]
push ebp
call fcn.1004be40
add esp, 0x3c
mov ebx, eax
test esi, esi
jne 0x1004b6f1
test edi, edi
jne 0x1004b6f1
test dword [ebp + 0x18], 0x400
jne 0x1004b6fd
push dword [esp + 0x14]
call fcn.1005b966
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x64
ret