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

Disassembly:
sub esp, 0x458
mov eax, dword [0x100d92b4]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
mov ebp, dword [esp + 0x464]
xor ebx, ebx
push esi
xorps xmm0, xmm0
mov dword [esp + 0x20], ebp
push edi
mov eax, dword [ebp]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x54], 0
movss dword [esp + 0x4c], xmm0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], ebx
cmp eax, 0x4a
je 0x10049cf7
mov dword [esp + 0x64], ebx
cmp eax, 0x6e
jne 0x10049cff
mov dword [esp + 0x64], 1
movss xmm1, dword [0x10086e30]
maxss xmm1, dword [ebp + 8]
movaps xmm0, xmm1
movss dword [esp + 0x7c], xmm1
addss xmm0, xmm1
movss dword [esp + 0x48], xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x3cc], xmm0
fld qword [esp + 0x3cc]
fld1
call fcn.1005fe70
fstp qword [esp + 0x3cc]
movsd xmm0, qword [esp + 0x3cc]
cvtpd2ps xmm0, xmm0
ucomiss xmm0, dword [0x10086e20]
lahf
test ah, 0x44
jp 0x10049d6a
cvttss2si edi, dword [esp + 0x48]
mov dword [esp + 0x5c], 1
jmp 0x10049d73
mov dword [esp + 0x5c], ebx
mov edi, 2
lea eax, [esp + 0x84]
mov dword [esp + 0x1c], edi
push eax
lea eax, [esp + 0xa8]
push eax
push edi
push ebp
call fcn.1004dbe0
mov eax, dword [ebp + 0x294]
fstp st(0)
push dword [ebp]
mov dword [esp + 0x94], eax
call fcn.1003edc0
add esp, 0x14
test eax, eax
je 0x10049dd5
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c8]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x8c]
push eax
push ebp
call fcn.1004dfb0
add esp, 0x14
mov dword [esp + 0x60], eax
mov ebx, eax
cmp dword [ebp + 0x1c4], 0
movss xmm0, dword [0x10089b40]
je 0x10049e06
lea ecx, [ebp + 0x210]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049df0
sub ecx, edx
je 0x10049e06
comiss xmm0, dword [esp + 0x7c]
ja 0x10049e06
xor esi, esi
jmp 0x10049e0b
mov esi, 1
lea eax, [esp + 0x90]
movd xmm0, edi
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x4c], esi
push eax
lea eax, [esp + 0x7c]
push eax
cvtdq2ps xmm0, xmm0
lea eax, [esp + 0x40]
push eax
push ecx
lea eax, [esp + 0xac]
movss dword [esp], xmm0
push eax
lea eax, [esp + 0xb4]
movss dword [esp + 0x90], xmm0
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xb4]
push eax
push esi
push ebp
call fcn.1004e860
mov eax, dword [esp + 0x60]
mov ecx, edi
imul ecx, dword [esp + 0x98]
add esp, 0x2c
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x18]
test ebx, ebx
je 0x10049ea8
and ecx, 0x20
or ecx, 1
mov dword [esp + 0x28], ecx
mov ecx, 7
mov dword [esp + 0x58], ecx
cmp ebx, 2
je 0x10049ebe
cmp ebx, 5
je 0x10049ebe
movss xmm1, dword [ebp + 0x1dc]
jmp 0x10049ec1
and ecx, 0x60
mov dword [esp + 0x28], ecx
shr ecx, 4
not ecx
and ecx, 2
or ecx, 5
mov dword [esp + 0x58], ecx
xorps xmm1, xmm1
movss dword [esp + 0x3c], xmm1
test esi, esi
je 0x10049ed0
movaps xmm0, xmm1
jmp 0x10049ee3
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x10089b40]
maxss xmm0, xmm1
movss xmm1, dword [esp + 0x78]
mulss xmm1, xmm0
mov ecx, dword [ebp + 0x294]
movd xmm0, dword [esp + 0x84]
cvtdq2ps xmm0, xmm0
mov ebx, dword [esp + 0x70]
imul ecx, edi
addss xmm1, xmm0
movd xmm0, dword [esp + 0x74]
cvtdq2ps xmm0, xmm0
add ecx, eax
add ebx, ecx
mov dword [esp + 0x18], ebx
addss xmm1, xmm0
movd xmm0, dword [esp + 0x90]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si eax, xmm1
mov esi, eax
mov dword [esp + 0x20], eax
imul esi, ebx
push esi
call fcn.1005b981
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10049f90
movups xmm0, xmmword [str.658:_Insufficient_memory_for_pixel_buffer]
movups xmmword [ebp + 0x7638], xmm0
movups xmm0, xmmword [0x100c1868]
movups xmmword [ebp + 0x7648], xmm0
movq xmm0, qword [0x100c1878]
movq qword [ebp + 0x7658], xmm0
mov ax, word [0x100c1880]
mov word [ebp + 0x7660], ax
mov eax, 0xb
jmp 0x1004b302
push esi
push 0x30
push eax
call fcn.10058d80
mov esi, dword [esp + 0x80]
add esp, 0xc
cmp dword [ebp], 0x90
mov eax, dword [ebp + 0x290]
mov dword [esp + 0x40], esi
jne 0x1004a113
xor ecx, ecx
mov dword [esp + 0x30], ecx
test eax, eax
jle 0x1004a5ae
mov edx, ebp
mov dword [esp + 0x50], ebp
nop
mov eax, dword [esp + ecx*4 + 0xa4]
xor ebp, ebp
mov dword [esp + 0x38], eax
mov ecx, esi
mov eax, dword [esp + 0x24]
imul ecx, ebx
mov edi, dword [eax + 0x294]
test edi, edi
jle 0x1004a084
mov dword [esp + 0x2c], ecx
nop dword [eax + eax]
movzx ebx, byte [edx + ebp + 0x298]
mov esi, 1
lea edx, [ebp + 1]
cmp edx, edi
jge 0x1004a036
mov ecx, dword [esp + 0x50]
add ecx, 0x299
add ecx, ebp
movzx eax, byte [ecx]
cmp eax, ebx
jne 0x1004a02e
inc edx
inc esi
inc ecx
cmp edx, edi
jl 0x1004a020
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
test ebx, ebx
je 0x1004a068
mov eax, dword [esp + 0x1c]
imul eax, esi
push eax
movsx eax, byte [ebx + 0x100c07a4]
push eax
mov eax, ebp
imul eax, dword [esp + 0x24]
add eax, ecx
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x3c]
push eax
call fcn.10058d80
mov eax, dword [esp + 0x30]
add esp, 0xc
mov edi, dword [eax + 0x294]
add ebp, esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
cmp ebp, edi
jl 0x1004a000
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
sub ebx, dword [esp + 0x34]
lea edi, [esi + 1]
mov eax, dword [esp + 0x38]
sub ebx, dword [esp + 0x70]
add eax, esi
mov ebp, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x58], eax
cmovle ebp, eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x38], eax
cmp edi, ebp
jge 0x1004a0df
mov esi, edi
imul esi, dword [esp + 0x18]
add esi, dword [esp + 0x14]
add esi, ecx
push ebx
push eax
push esi
call fcn.10058800
add esi, dword [esp + 0x24]
inc edi
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp edi, ebp
jl 0x1004a0c3
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
add edx, 0x90
mov ebp, dword [esp + 0x24]
inc ecx
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], edx
cmp ecx, dword [ebp + 0x290]
jl 0x10049fd0
jmp 0x1004a5a6
xor edx, edx
cmp dword [esp + 0x60], 6
jl 0x1004a41c
mov dword [esp + 0x30], edx
test eax, eax
jle 0x1004a5ae
xor ecx, ecx
mov dword [esp + 0x2c], ecx
nop dword [eax]
nop word [eax + eax]
mov edi, dword [esp + edx*4 + 0xa4]
xor edx, edx
mov esi, dword [ebp + 0x294]
mov dword [esp + 0x68], edi
mov dword [esp + 0x50], edx
test esi, esi
jle 0x1004a33e
nop
mov eax, edx
mov ebx, 1
sar eax, 3
add eax, ebp
mov dword [esp + 0x88], ebx
movzx eax, byte [eax + ecx + 0x298]
movzx ecx, dl
inc edx
and ecx, 7
shr eax, cl
and eax, 1
mov dword [esp + 0x38], eax
cmp edx, esi
jge 0x1004a1c7
mov edi, eax
mov ecx, dword [esp + 0x2c]
mov eax, edx
sar eax, 3
add eax, ebp
movzx eax, byte [eax + ecx + 0x298]
mov cl, bl
add cl, byte [esp + 0x50]
and ecx, 7
shr eax, cl
and eax, 1
cmp eax, edi
jne 0x1004a1bc
inc edx
inc ebx
cmp edx, esi
jl 0x1004a191
mov edi, dword [esp + 0x68]
mov dword [esp + 0x88], ebx
mov eax, dword [ebp + 0x290]
dec eax
cmp dword [esp + 0x30], eax
jne 0x1004a2e6
mov ebx, dword [esp + 0x80]
cmp dword [esp + 0x50], ebx
jle 0x1004a2df
cmp dword [esp + 0x44], 0
mov esi, dword [esp + 0x40]
jne 0x1004a2d6
movd xmm0, dword [esp + 0x58]
lea eax, [edi + esi]
imul ebx, dword [esp + 0x1c]
lea edi, [esi + 1]
mov ebp, dword [esp + 0x20]
cmp eax, ebp
movss xmm1, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
cmovle ebp, eax
cvtdq2ps xmm0, xmm0
mov eax, esi
imul eax, edx
addss xmm0, dword [0x10089b40]
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x34]
mulss xmm0, xmm1
mov dword [esp + 0x44], eax
cvttss2si ecx, xmm0
mov dword [esp + 0x4c], ecx
cmp edi, ebp
jge 0x1004a27b
mov esi, edi
imul esi, edx
add esi, dword [esp + 0x14]
add esi, dword [esp + 0x34]
push ebx
push eax
push esi
call fcn.10058800
add esi, dword [esp + 0x24]
inc edi
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp edi, ebp
jl 0x1004a255
movss xmm1, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
sub edi, ecx
movd xmm0, esi
add esi, ecx
mov dword [esp + 0x40], esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x4c], xmm0
cmp eax, 0xc
je 0x1004a2b7
cmp eax, 6
je 0x1004a2b7
mulss xmm1, dword [esp + 0x3c]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si edi, xmm1
mov ebx, dword [esp + 0x88]
test edi, edi
mov ebp, dword [esp + 0x24]
mov eax, 1
cmove edi, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x68], edi
jmp 0x1004a2ea
mov ebx, dword [esp + 0x88]
jmp 0x1004a2ea
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x38], 0
je 0x1004a31e
mov eax, dword [esp + 0x1c]
mov ecx, esi
imul ecx, dword [esp + 0x18]
imul eax, ebx
push eax
mov eax, dword [esp + 0x54]
imul eax, dword [esp + 0x20]
push 0x31
add eax, ecx
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x3c]
push eax
call fcn.10058d80
add esp, 0xc
mov edx, dword [esp + 0x50]
mov esi, dword [ebp + 0x294]
add edx, ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
cmp edx, esi
jl 0x1004a160
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
mov edx, ebx
mov eax, esi
add esi, edi
mov edi, dword [esp + 0x20]
imul edx, eax
cmp dword [esp + 0x44], 0
mov dword [esp + 0x40], esi
lea ecx, [eax + 1]
je 0x1004a3ac
mov eax, dword [esp + 0x80]
imul eax, dword [esp + 0x1c]
sub ebx, eax
add eax, dword [esp + 0x34]
sub ebx, dword [esp + 0x34]
sub ebx, dword [esp + 0x70]
cmp esi, edi
lea ebp, [eax + edx]
cmovle edi, esi
mov edx, dword [esp + 0x14]
add ebp, edx
cmp ecx, edi
jge 0x1004a3ec
mov esi, ecx
imul esi, dword [esp + 0x18]
add esi, eax
add esi, edx
sub edi, ecx
push ebx
push ebp
push esi
call fcn.10058800
add esi, dword [esp + 0x24]
add esp, 0xc
sub edi, 1
jne 0x1004a396
jmp 0x1004a3ec
mov eax, dword [esp + 0x34]
sub ebx, eax
sub ebx, dword [esp + 0x70]
cmp esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
cmovle edi, esi
add ebp, edx
add ebp, eax
cmp ecx, edi
jge 0x1004a3ec
mov esi, ecx
imul esi, dword [esp + 0x18]
add esi, dword [esp + 0x14]
add esi, eax
sub edi, ecx
push ebx
push ebp
push esi
call fcn.10058800
add esi, dword [esp + 0x24]
add esp, 0xc
sub edi, 1
jne 0x1004a3d8
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
inc edx
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
add ecx, 0x90
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
cmp edx, dword [ebp + 0x290]
jl 0x1004a140
jmp 0x1004a5a6
mov dword [esp + 0x58], edx
test eax, eax
jle 0x1004a5ae
mov ecx, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x30], ebp
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0xa4]
xor edx, edx
mov esi, dword [ecx + 0x294]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], edx
test esi, esi
jle 0x1004a515
mov eax, dword [esp + 0x40]
imul eax, ebx
mov dword [esp + 0x38], eax
nop word [eax + eax]
mov eax, edx
mov ebx, 1
sar eax, 3
add eax, ecx
movzx ecx, dl
and ecx, 7
inc edx
movzx edi, byte [eax + ebp + 0x298]
shr edi, cl
and edi, 1
cmp edx, esi
jge 0x1004a4bd
mov eax, edx
mov cl, bl
add cl, byte [esp + 0x2c]
sar eax, 3
and ecx, 7
add eax, dword [esp + 0x24]
movzx eax, byte [eax + ebp + 0x298]
shr eax, cl
and eax, 1
cmp eax, edi
jne 0x1004a4bd
inc edx
inc ebx
cmp edx, esi
jl 0x1004a494
test edi, edi
mov edi, dword [esp + 0x38]
je 0x1004a4eb
mov eax, dword [esp + 0x1c]
imul eax, ebx
push eax
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x20]
push 0x31
add eax, edi
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x3c]
push eax
call fcn.10058d80
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
add edx, ebx
mov dword [esp + 0x2c], edx
mov esi, dword [ecx + 0x294]
cmp edx, esi
jl 0x1004a470
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
jmp 0x1004a51e
mov esi, dword [esp + 0x40]
mov edi, esi
imul edi, ebx
mov edx, dword [esp + 0x34]
add eax, esi
mov ebp, dword [esp + 0x20]
sub ebx, edx
sub ebx, dword [esp + 0x70]
cmp eax, ebp
mov dword [esp + 0x44], eax
cmovle ebp, eax
mov eax, dword [esp + 0x14]
add eax, edi
lea edi, [esi + 1]
add eax, edx
mov dword [esp + 0x38], eax
cmp edi, ebp
jge 0x1004a573
mov esi, edi
imul esi, dword [esp + 0x18]
add esi, dword [esp + 0x14]
add esi, edx
push ebx
push eax
push esi
call fcn.10058800
add esi, dword [esp + 0x24]
inc edi
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp edi, ebp
jl 0x1004a557
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x30]
inc edx
mov eax, dword [esp + 0x44]
add ebp, 0x90
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], ebp
cmp edx, dword [ecx + 0x290]
jl 0x1004a440
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
movss xmm1, dword [esp + 0x3c]
ucomiss xmm1, dword [0x10086e20]
mov edx, dword [esp + 0x60]
lahf
test ah, 0x44
jnp 0x1004a9a8
cmp edx, 6
jl 0x1004a9a8
movss xmm0, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x84]
mulss xmm0, xmm1
mov dword [esp + 0x38], eax
imul ebx, eax
cvttss2si ecx, xmm0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], ecx
cmp edx, 6
jne 0x1004a66e
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x31
lea esi, [ebx + ebp]
add eax, esi
push eax
call fcn.10058d80
lea eax, [ebx + edi*2]
push edi
add eax, ebp
add eax, dword [esp + 0x20]
push 0x31
push eax
call fcn.10058d80
imul eax, edi, 0x2e
push edi
push 0x31
add eax, ebx
add eax, ebp
add eax, dword [esp + 0x30]
push eax
call fcn.10058d80
lea eax, [edi + edi*2]
shl eax, 4
add eax, ebx
push edi
add eax, ebp
add eax, dword [esp + 0x38]
push 0x31
push eax
call fcn.10058d80
imul eax, edi, 0x32
push edi
push 0x31
add eax, ebx
add eax, ebp
add eax, dword [esp + 0x48]
push eax
call fcn.10058d80
add esp, 0x3c
jmp 0x1004a94c
cmp edx, 8
jne 0x1004a6ef
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x31
lea esi, [ebx + ebp]
add eax, esi
push eax
call fcn.10058d80
lea eax, [ebx + edi*2]
push edi
add eax, ebp
add eax, dword [esp + 0x20]
push 0x31
push eax
call fcn.10058d80
mov eax, edi
shl eax, 5
add eax, ebx
push edi
add eax, ebp
add eax, dword [esp + 0x2c]
push 0x31
push eax
call fcn.10058d80
mov eax, edi
shl eax, 4
add eax, edi
push edi
push 0x31
lea eax, [ebx + eax*2]
add eax, ebp
add eax, dword [esp + 0x3c]
push eax
call fcn.10058d80
mov eax, edi
shl eax, 6
add eax, ebx
push edi
add eax, ebp
add eax, dword [esp + 0x44]
push 0x31
push eax
call fcn.10058d80
mov eax, edi
shl eax, 5
add eax, edi
lea eax, [ebx + eax*2]
jmp 0x1004a93a
cmp edx, 0xc
jne 0x1004a8ce
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x3c], edx
lea eax, [edx + 0xb]
cmp edx, eax
jge 0x1004a7c2
jmp 0x1004a714
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x290]
mov ebx, 1
movzx ecx, dl
and ecx, 7
lea edi, [eax + eax*8]
mov eax, edx
sar eax, 3
add edi, edi
add eax, ebp
inc edx
mov ebp, dword [ebp + 0x294]
movzx esi, byte [eax + edi*8 + 0x208]
shr esi, cl
and esi, 1
cmp edx, ebp
jge 0x1004a779
nop dword [eax]
mov eax, edx
mov cl, bl
add cl, byte [esp + 0x3c]
sar eax, 3
and ecx, 7
add eax, dword [esp + 0x24]
movzx eax, byte [eax + edi*8 + 0x208]
shr eax, cl
and eax, 1
cmp eax, esi
jne 0x1004a779
inc edx
inc ebx
cmp edx, ebp
jl 0x1004a750
test esi, esi
je 0x1004a7a5
mov eax, dword [esp + 0x1c]
imul eax, ebx
push eax
mov eax, dword [esp + 0x40]
imul eax, dword [esp + 0x20]
push 0x31
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x3c]
push eax
call fcn.10058d80
add esp, 0xc
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x6c]
add edx, ebx
add eax, 0xb
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x1004a710
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
imul eax, edi, 0x2e
push edi
push 0x31
add eax, ebx
add eax, ebp
add eax, dword [esp + 0x18]
push eax
call fcn.10058d80
lea eax, [edi + edi*2]
shl eax, 4
add eax, ebx
push edi
add eax, ebp
add eax, dword [esp + 0x20]
push 0x31
push eax
call fcn.10058d80
mov eax, dword [esp + 0x84]
add esp, 0x18
lea edx, [eax + 0x55]
add eax, 0x60
mov dword [esp + 0x3c], edx
cmp edx, eax
jge 0x1004a8c6
mov ecx, dword [esp + 0x24]
mov ebx, 1
mov eax, dword [ecx + 0x290]
lea edi, [eax + eax*8]
mov eax, edx
sar eax, 3
add edi, edi
add eax, ecx
movzx ecx, dl
and ecx, 7
inc edx
movzx esi, byte [eax + edi*8 + 0x208]
shr esi, cl
mov ecx, dword [esp + 0x24]
and esi, 1
mov ebp, dword [ecx + 0x294]
cmp edx, ebp
jge 0x1004a87b
nop
mov eax, edx
sar eax, 3
add eax, ecx
mov cl, bl
add cl, byte [esp + 0x3c]
and ecx, 7
movzx eax, byte [eax + edi*8 + 0x208]
shr eax, cl
and eax, 1
cmp eax, esi
jne 0x1004a87b
mov ecx, dword [esp + 0x24]
inc edx
inc ebx
cmp edx, ebp
jl 0x1004a850
mov ebp, dword [esp + 0x14]
test esi, esi
je 0x1004a8a9
mov eax, dword [esp + 0x1c]
imul eax, ebx
push eax
mov eax, dword [esp + 0x40]
imul eax, dword [esp + 0x20]
push 0x31
add eax, dword [esp + 0x34]
add eax, ebp
add eax, dword [esp + 0x3c]
push eax
call fcn.10058d80
add esp, 0xc
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x6c]
add edx, ebx
add eax, 0x60
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x1004a811
mov ebx, dword [esp + 0x2c]
lea esi, [ebx + ebp]
jmp 0x1004a94c
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x31
lea esi, [ebx + ebp]
add eax, esi
push eax
call fcn.10058d80
lea eax, [ebx + edi*2]
push edi
add eax, ebp
add eax, dword [esp + 0x20]
push 0x31
push eax
call fcn.10058d80
imul eax, edi, 0x2e
push edi
push 0x31
add eax, ebx
add eax, ebp
add eax, dword [esp + 0x30]
push eax
call fcn.10058d80
lea eax, [edi + edi*2]
shl eax, 4
add eax, ebx
push edi
add eax, ebp
add eax, dword [esp + 0x38]
push 0x31
push eax
call fcn.10058d80
imul eax, edi, 0x5c
push edi
push 0x31
add eax, ebx
add eax, ebp
add eax, dword [esp + 0x48]
push eax
call fcn.10058d80
imul eax, edi, 0x5e
add eax, ebx
push edi
add eax, ebp
add eax, dword [esp + 0x50]
push 0x31
push eax
call fcn.10058d80
add esp, 0x48
mov edx, dword [esp + 0x18]
mov ebx, edx
sub ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x58]
sub ebx, dword [esp + 0x70]
add eax, ecx
mov edi, dword [esp + 0x20]
cmp eax, edi
mov ebp, dword [esp + 0x10]
cmovle edi, eax
lea eax, [ecx + 1]
add ebp, esi
cmp eax, edi
jge 0x1004a9a4
mov esi, eax
imul esi, edx
add esi, dword [esp + 0x14]
add esi, dword [esp + 0x10]
sub edi, eax
nop dword [eax]
push ebx
push ebp
push esi
call fcn.10058800
add esi, dword [esp + 0x24]
add esp, 0xc
sub edi, 1
jne 0x1004a990
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x48], 0
jne 0x1004af0e
cvttss2si ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
add ebp, dword [esp + 0x74]
add ebp, dword [esp + 0x84]
test eax, eax
jle 0x1004a9de
test byte [ecx + 0x18], 6
je 0x1004a9de
imul eax, ebx
add ebp, eax
lea edi, [ecx + 0x210]
cmp edx, 6
jl 0x1004ae56
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x3d0]
sar esi, 1
push eax
lea eax, [esp + 0x3e4]
push eax
lea eax, [esp + 0x3e0]
push eax
push edi
mov edi, dword [esp + 0x74]
push edi
call fcn.1004e9a0
add esp, 0x18
cmp edi, 6
jne 0x1004ab42
mov eax, dword [esp + 0x1c]
add esi, ebp
mov edi, dword [esp + 0x28]
push ebx
push dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
lea ecx, [eax*8]
push ebx
sub ecx, eax
or edi, 0x20
mov eax, dword [esp + 0x1c]
push edi
push esi
sub eax, ecx
push eax
lea eax, [esp + 0x3ec]
push eax
push dword [esp + 0x30]
call fcn.10049600
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push eax
push dword [esp + 0x44]
lea eax, [eax + eax*2]
push ebx
push dword [esp + 0x54]
lea eax, [ecx + eax*8]
push ebp
push eax
lea eax, [esp + 0x414]
push eax
push dword [esp + 0x50]
call fcn.10049600
mov ebp, dword [esp + 0x60]
add esp, 0x40
mov ecx, dword [esp + 0x10]
push dword [esp + 0x1c]
push ebp
push ebx
push edi
mov edi, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x30]
lea eax, [esi*8]
sub eax, esi
lea eax, [ecx + eax*8]
push eax
lea eax, [esp + 0x3e4]
push eax
push edi
call fcn.10049600
lea ecx, [esp + 0x3e4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004aad5
sub ecx, edx
sub ecx, 2
je 0x1004ab17
sub ecx, 3
jne 0x1004af0e
cvttss2si eax, dword [esp + 0x4c]
push esi
push ebp
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x4b
imul eax, esi
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
cvttss2si eax, dword [esp + 0x4c]
push esi
push ebp
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x3d
imul eax, esi
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
cmp edi, 8
jne 0x1004ac1f
mov esi, dword [esp + 0x1c]
mov eax, esi
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push esi
push dword [esp + 0x24]
shl eax, 4
add eax, dword [esp + 0x18]
push ebx
push dword [esp + 0x34]
add eax, esi
push ebp
push eax
lea eax, [esp + 0x3ec]
push eax
push edi
call fcn.10049600
push esi
push dword [esp + 0x44]
imul eax, esi, 0x32
push ebx
push dword [esp + 0x54]
push ebp
mov ebp, dword [esp + 0x44]
add eax, ebp
push eax
lea eax, [esp + 0x414]
push eax
push edi
call fcn.10049600
lea ecx, [esp + 0x404]
add esp, 0x40
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004abb0
sub ecx, edx
sub ecx, 2
je 0x1004abf3
sub ecx, 3
jne 0x1004af0e
cvttss2si eax, dword [esp + 0x4c]
push esi
push dword [esp + 0x24]
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x5b
imul eax, esi
add eax, ebp
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
cvttss2si eax, dword [esp + 0x4c]
push esi
push dword [esp + 0x24]
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x4d
imul eax, esi
add eax, ebp
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
cmp edi, 0xc
jne 0x1004ad5d
mov eax, dword [esp + 0x1c]
add esi, ebp
mov edi, dword [esp + 0x28]
push ebx
push dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
lea ecx, [eax*8]
push ebx
sub ecx, eax
or edi, 0x20
mov eax, dword [esp + 0x1c]
push edi
push esi
sub eax, ecx
push eax
lea eax, [esp + 0x3ec]
push eax
push dword [esp + 0x30]
call fcn.10049600
mov eax, dword [esp + 0x3c]
push eax
push dword [esp + 0x44]
imul eax, eax, 0x1b
push ebx
push dword [esp + 0x54]
push ebp
add eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x414]
push eax
push dword [esp + 0x50]
call fcn.10049600
mov eax, dword [esp + 0x5c]
add esp, 0x40
push eax
push dword [esp + 0x24]
imul eax, eax, 0x43
push ebx
push dword [esp + 0x34]
push ebp
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x3e4]
push eax
push dword [esp + 0x30]
call fcn.10049600
push dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
push ebp
push ebx
push edi
mov edi, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x50]
imul eax, esi, 0x66
add eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0xc4]
push eax
push edi
call fcn.10049600
lea ecx, [esp + 0x404]
add esp, 0x40
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004acf0
sub ecx, edx
sub ecx, 2
je 0x1004ad32
sub ecx, 3
jne 0x1004af0e
cvttss2si eax, dword [esp + 0x4c]
push esi
push ebp
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x77
imul eax, esi
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
cvttss2si eax, dword [esp + 0x4c]
push esi
push ebp
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x69
imul eax, esi
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push esi
push dword [esp + 0x24]
lea eax, [esi*8]
push ebx
push dword [esp + 0x34]
sub ecx, eax
lea eax, [esp + 0x3e4]
push ebp
push ecx
push eax
push edi
call fcn.10049600
mov ecx, dword [esp + 0x30]
lea eax, [esi + esi*2]
push esi
push dword [esp + 0x44]
push ebx
push dword [esp + 0x54]
lea eax, [ecx + eax*8]
push ebp
push eax
lea eax, [esp + 0x414]
push eax
push edi
call fcn.10049600
add esp, 0x40
imul eax, esi, 0x47
push esi
push dword [esp + 0x24]
push ebx
push dword [esp + 0x34]
push ebp
mov ebp, dword [esp + 0x24]
add eax, ebp
push eax
lea eax, [esp + 0x3e4]
push eax
push edi
call fcn.10049600
lea ecx, [esp + 0x3e4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004ade7
sub ecx, edx
sub ecx, 2
je 0x1004ae2a
sub ecx, 3
jne 0x1004af0e
cvttss2si eax, dword [esp + 0x4c]
push esi
push dword [esp + 0x24]
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x77
imul eax, esi
add eax, ebp
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
cvttss2si eax, dword [esp + 0x4c]
push esi
push dword [esp + 0x24]
push ebx
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x69
imul eax, esi
add eax, ebp
push eax
lea eax, [esp + 0x3dc]
push eax
push edi
jmp 0x1004af06
mov eax, dword [esp + 0x80]
cdq
sub eax, edx
sar eax, 1
imul eax, ebx
push 0x80
push 0
add eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3ec]
push eax
call fcn.10058d80
mov esi, edi
add esp, 0xc
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1004ae90
sub esi, ecx
xor edx, edx
xor ecx, ecx
test esi, esi
jle 0x1004aee0
mov bl, byte [ecx + edi]
movzx eax, bl
sub eax, 0xc2
je 0x1004aeca
sub eax, 1
je 0x1004aec1
cmp bl, 0x80
jae 0x1004aed7
mov byte [esp + edx + 0x3e4], bl
jmp 0x1004aed6
mov al, byte [ecx + edi + 1]
inc ecx
add al, 0x40
jmp 0x1004aecf
mov al, byte [ecx + edi + 1]
inc ecx
mov byte [esp + edx + 0x3e4], al
inc edx
inc ecx
cmp ecx, esi
jl 0x1004aea1
mov ebx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x3ec]
mov byte [esp + edx + 0x3ec], 0
push dword [esp + 0x20]
push dword [esp + 0x34]
push ebp
push dword [esp + 0x5c]
push eax
push dword [esp + 0x30]
call fcn.10049600
add esp, 0x20
mov ebx, dword [esp + 0x24]
test byte [ebx + 0x18], 2
je 0x1004b031
cmp dword [ebx + 0x290], 1
jle 0x1004b031
push dword [ebx]
call fcn.1003efc0
add esp, 4
test eax, eax
je 0x1004b031
mov ecx, dword [ebx + 0x1c0]
mov eax, dword [esp + 0x34]
mov edi, eax
mov ebp, dword [ebx + 0x294]
imul ebp, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
lea eax, [ecx - 1]
cmp eax, 3
ja 0x1004af67
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
jmp 0x1004af6f
movss xmm0, dword [0x10089b40]
mulss xmm0, dword [esp + 0x78]
mov ebx, dword [esp + 0xa4]
cvttss2si esi, xmm0
mov eax, esi
mov dword [esp + 0x38], esi
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
add ebx, dword [esp + 0x74]
cmp dword [esp + 0x64], 0
mov dword [esp + 0x48], ebx
je 0x1004afb0
imul edx, dword [esp + 0x1c], 0xb
imul eax, dword [esp + 0x1c], 0xffffffe8
add edx, edi
mov dword [esp + 0x30], edx
add ebp, eax
jmp 0x1004afb2
mov edx, edi
mov eax, dword [esp + 0x24]
mov ecx, 1
mov dword [esp + 0x64], ecx
cmp dword [eax + 0x290], ecx
jle 0x1004b02f
mov edi, dword [esp + 0x20]
lea eax, [ebx + esi]
cmp eax, edi
mov esi, ebx
cmovle edi, eax
imul esi, dword [esp + 0x18]
add esi, edx
add esi, dword [esp + 0x14]
cmp ebx, edi
jge 0x1004b00f
sub edi, ebx
mov ebx, dword [esp + 0x18]
nop word [eax + eax]
push ebp
push 0x31
push esi
call fcn.10058d80
add esp, 0xc
add esi, ebx
sub edi, 1
jne 0x1004aff0
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
add ebx, dword [esp + ecx*4 + 0xa4]
inc ecx
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], ecx
cmp ecx, dword [eax + 0x290]
jl 0x1004afc7
mov ebx, eax
push dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
push esi
push ebp
push 0
push dword [esp + 0x94]
push dword [esp + 0x88]
push dword [esp + 0x4c]
push dword [esp + 0x30]
push ebx
call fcn.10049160
add esp, 0x24
cmp dword [esp + 0x5c], 0
jne 0x1004b2bb
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
push ecx
mulss xmm0, dword [esp + 0x80]
movss dword [esp], xmm0
call fcn.1003f3d0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
fstp dword [esp + 0x60]
mulss xmm0, dword [esp + 0x80]
cvttss2si edi, dword [esp + 0x60]
movss dword [esp], xmm0
call fcn.1003f3d0
fstp dword [esp + 0x6c]
cvttss2si ebx, dword [esp + 0x6c]
mov esi, ebx
imul esi, edi
push esi
call fcn.1005b981
mov ebp, eax
add esp, 8
mov dword [esp + 0x64], ebp
test ebp, ebp
jne 0x1004b11d
push dword [esp + 0x14]
call fcn.1005b966
movups xmm0, xmmword [str.659:_Insufficient_memory_for_pixel_buffer]
mov ecx, dword [esp + 0x28]
add esp, 4
movups xmmword [ecx + 0x7638], xmm0
movups xmm0, xmmword [0x100c1894]
movups xmmword [ecx + 0x7648], xmm0
movq xmm0, qword [0x100c18a4]
movq qword [ecx + 0x7658], xmm0
mov ax, word [0x100c18ac]
mov word [ecx + 0x7660], ax
lea eax, [ebp + 0xb]
jmp 0x1004b302
push esi
push 0x30
push ebp
call fcn.10058d80
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x1004b277
mov esi, dword [esp + 0x94]
mov ecx, ebp
sub ecx, edi
mov ebx, ebp
mov dword [esp + 0x44], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push ecx
divss xmm0, dword [esp + 0x80]
movss dword [esp], xmm0
call fcn.1003f3d0
add esp, 4
fstp dword [esp + 0x5c]
movss xmm0, dword [esp + 0x5c]
call fcn.100579b0
mov ebp, eax
imul ebp, dword [esp + 0x18]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x48], ebp
je 0x1004b208
cmp ebp, esi
je 0x1004b1f8
mov ecx, dword [esp + 0x14]
lea edx, [esi + ecx]
mov esi, dword [esp + 0x18]
lea eax, [ecx + ebp]
mov dword [esp + 0x5c], eax
mov ecx, eax
sub esi, 4
jb 0x1004b1b9
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004b1be
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1004b1a8
cmp esi, 0xfffffffc
je 0x1004b1f2
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1004b1eb
cmp esi, 0xfffffffd
je 0x1004b1f2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1004b1eb
cmp esi, 0xfffffffe
je 0x1004b1f2
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1004b1eb
cmp esi, 0xffffffff
je 0x1004b1f2
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1004b1f2
sbb eax, eax
or eax, 1
jmp 0x1004b1f4
xor eax, eax
test eax, eax
jne 0x1004b212
push edi
push dword [esp + 0x48]
push ebx
call fcn.10058800
add esp, 0xc
jmp 0x1004b252
mov eax, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x5c], eax
xor esi, esi
test edi, edi
jle 0x1004b252
mov ebp, dword [esp + 0x5c]
nop dword [eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push ecx
divss xmm0, dword [esp + 0x80]
movss dword [esp], xmm0
call fcn.1003f3d0
add esp, 4
call fcn.10057920
mov al, byte [eax + ebp]
mov byte [ebx + esi], al
inc esi
cmp esi, edi
jl 0x1004b220
mov ebp, dword [esp + 0x48]
cvttss2si ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x30]
add ebx, edi
add dword [esp + 0x44], edi
inc eax
mov esi, ebp
mov dword [esp + 0x30], eax
cmp eax, ecx
jl 0x1004b148
cvttss2si ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x474]
mov esi, dword [esp + 0x470]
push ebp
push esi
push dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x34]
push ebx
push edi
call fcn.1004be40
add esp, 0x18
mov ebx, eax
test esi, esi
jne 0x1004b2ad
test ebp, ebp
jne 0x1004b2ad
test dword [edi + 0x18], 0x400
jne 0x1004b2f4
push dword [esp + 0x64]
call fcn.1005b966
add esp, 4
jmp 0x1004b2f4
mov edi, dword [esp + 0x474]
mov esi, dword [esp + 0x470]
push edi
push esi
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x30]
push ebx
call fcn.1004be40
add esp, 0x18
mov ebx, eax
test esi, esi
jne 0x1004b2f4
test edi, edi
jne 0x1004b2f4
mov eax, dword [esp + 0x24]
test dword [eax + 0x18], 0x400
jne 0x1004b300
push dword [esp + 0x14]
call fcn.1005b966
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10057052
add esp, 0x458
ret