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

Disassembly:
sub esp, 0x15c
push ebx
mov ebx, dword [esp + 0x164]
push ebp
mov ebp, dword [esp + 0x178]
push esi
mov esi, dword [esp + 0x188]
mov ecx, dword [esi + 8]
push edi
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
push ebp
mov dword [esp + 0x18], ecx
push ecx
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x7c], eax
call fcn.1003e9c0
add esp, 0xc
cmp ebx, dword [esp + 0x178]
mov dword [esp + 0x54], eax
sbb ecx, ecx
neg ecx
mov dword [esp + 0x80], ecx
mov ecx, eax
neg ecx
sbb ecx, ecx
mov eax, 4
and ecx, eax
cmp dword [esp + 0x10], eax
mov dword [esi + 4], ecx
mov dword [esi], 0
jl 0x1003f0c9
cmp dword [esp + 0x70], eax
jge 0x1003f0d4
mov dword [esp + 0x188], 0
push esi
call fcn.1003e300
add esp, 4
test eax, eax
jne 0x1003f0ee
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret
cmp dword [esp + 0x188], 0
je 0x1003f164
mov edx, dword [sym.libwebp.dll_VP8GetCPUInfo]
push edx
call sub.libsharpyuv.dll_SharpYuvInit
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
push edi
push ebp
push eax
push ecx
push ebx
call fcn.1003ee10
add esp, 0x18
test eax, eax
je 0x1003f0e1
cmp dword [esp + 0x54], 0
je 0x10040763
mov ecx, dword [esp + 0x70]
mov eax, esi
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x184]
push ecx
push edx
push edi
push eax
call dword [0x10078754]
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x15c
ret
mov eax, dword [esp + 0x10]
inc eax
sar eax, 1
xor ecx, ecx
mov dword [esp + 0x68], eax
cmp ebp, 3
sete cl
add eax, eax
add eax, eax
cdq
push 2
push edx
push eax
mov dword [esp + 0x88], ecx
call sym.libwebp.dll_WebPSafeMalloc
fldz
mov edx, dword [esi + 0x10]
fld dword [esp + 0x190]
mov ecx, dword [esi + 0x18]
fcom st(1)
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x24]
fnstsw ax
add esp, 0xc
mov dword [esp + 0x50], ecx
fstp st(1)
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], 0
test ah, 0x41
jne 0x1003f1f4
push ecx
lea eax, [esp + 0x88]
fstp dword [esp]
push eax
call fcn.10032340
lea ecx, [esp + 0x8c]
add esp, 8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x7c], 0
jmp 0x1003f1f6
fstp st(0)
call fcn.10025950
mov edx, dword [0x10076044]
cmp edx, dword [sym.libwebp.dll_VP8GetCPUInfo]
je 0x1003f218
call fcn.1003ead0
mov eax, dword [sym.libwebp.dll_VP8GetCPUInfo]
mov dword [0x10076044], eax
cmp dword [esp + 0x2c], 0
jne 0x1003f235
push 1
push esi
call fcn.1004c5d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret
mov eax, dword [esp + 0x70]
sar eax, 1
test eax, eax
jle 0x1003fee1
mov edx, dword [esp + 0x10]
mov ecx, edx
sar ecx, 1
mov dword [esp + 0x78], ecx
mov ecx, edx
and ecx, 1
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], eax
jmp 0x1003f264
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x7c], 0
je 0x1003f2de
cmp dword [esp + 0x80], 0
push edx
je 0x1003f2a6
mov esi, dword [esp + 0x38]
push esi
push ebx
call dword [0x10078444]
mov edx, dword [esp + 0x198]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
push ecx
add eax, esi
push eax
lea ecx, [ebx + edi]
push ecx
call dword [0x10078444]
add esp, 0x18
jmp 0x1003f3c9
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x17c]
push edx
push esi
call dword [0x10078438]
mov ecx, dword [esp + 0x198]
mov edx, dword [ecx + 0x1c]
mov eax, dword [esp + 0x1c]
add edx, dword [esp + 0x40]
push eax
push edx
add esi, edi
push esi
call dword [0x10078438]
add esp, 0x18
jmp 0x1003f3c9
mov dword [esp + 0x18], 0
test edx, edx
jle 0x1003f349
mov esi, dword [esp + 0x174]
mov eax, dword [esp + 0x178]
sub eax, esi
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, esi
mov dword [esp + 0x24], eax
jmp 0x1003f310
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + esi]
movzx edx, byte [esi]
mov eax, dword [esp + 0x24]
push ecx
movzx ecx, byte [eax + esi]
mov eax, dword [esp + 0x40]
push edx
call fcn.1003eba0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov byte [ecx + edx], al
inc ecx
add esp, 8
add esi, ebp
cmp ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jl 0x1003f310
mov eax, dword [esp + 0x18c]
mov eax, dword [eax + 0x1c]
add eax, dword [esp + 0x34]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
jle 0x1003f3c9
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x178]
sub ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, ebx
sub ecx, eax
lea esi, [eax + edi]
mov dword [esp + 0x24], ecx
lea esp, [esp]
mov ecx, dword [esp + 0x20]
movzx edx, byte [ecx + esi]
movzx eax, byte [esi]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [ecx + esi]
push edx
push eax
mov eax, dword [esp + 0x44]
call fcn.1003eba0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov byte [ecx + edx], al
inc ecx
add esp, 8
add esi, ebp
cmp ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jl 0x1003f390
cmp dword [esp + 0x54], 0
mov eax, dword [esp + 0x18c]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + 0x1c]
lea eax, [edx + ecx*2]
mov dword [esp + 0x34], eax
je 0x1003f432
mov ecx, dword [esp + 0x18c]
mov edx, dword [ecx + 0x28]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x17c]
push edx
push eax
push 2
push ecx
push edi
push esi
call dword [0x10078754]
mov edx, dword [esp + 0x1a4]
mov ecx, dword [esp + 0x58]
add esp, 0x18
neg eax
sbb eax, eax
inc eax
and eax, dword [esp + 0x54]
mov eax, dword [edx + 0x28]
lea edx, [ecx + eax*2]
mov dword [esp + 0x40], edx
jne 0x1003f76b
cmp dword [esp + 0x78], 0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], 0
jle 0x1003f660
mov ecx, dword [esp + 0x174]
lea edx, [ecx + ebp]
mov ecx, dword [esp + 0x178]
add ecx, ebp
lea eax, [ebx + ebp]
mov dword [esp + 0x1c], ecx
lea ecx, [ebp + ebp]
mov ebp, edx
sub ebp, eax
add ebp, edi
sub edx, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x174]
mov ebp, edx
sub ebp, eax
add ebp, edi
sub edx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], ebp
mov ebp, edx
sub ebp, eax
sub edx, eax
add ebp, edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x178]
mov dword [esp + 0x4c], ebp
mov ebp, edx
mov ecx, ebx
sub ecx, eax
add ecx, edi
sub ebp, eax
add ebp, edi
sub edx, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x6c]
mov ecx, ebx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x78]
sub ecx, eax
imul edx, ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], edx
jmp 0x1003f4f4
mov ecx, dword [esp + 0x74]
movzx edx, byte [ecx + eax]
movzx ecx, word [edx*2 + 0x10077308]
mov edx, dword [esp + 0x5c]
movzx edx, byte [edx + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
movzx edx, byte [edi + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
movzx edx, byte [eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
mov edx, ecx
sar edx, 9
and ecx, 0x1ff
mov ebp, 0x200
sub ebp, ecx
imul ebp, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, ecx
lea ecx, [edx + ebp + 0x40]
mov edx, dword [esp + 0x44]
sar ecx, 7
mov word [esi], cx
movzx ecx, byte [edx + eax]
movzx ecx, word [ecx*2 + 0x10077308]
mov edx, dword [esp + 0x60]
movzx edx, byte [edx + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
mov edx, dword [esp + 0x30]
movzx edx, byte [edx + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
mov edx, dword [esp + 0x24]
movzx edx, byte [edx + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
mov edx, ecx
sar edx, 9
and ecx, 0x1ff
mov ebp, 0x200
sub ebp, ecx
imul ebp, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, ecx
lea ecx, [edx + ebp + 0x40]
mov edx, dword [esp + 0x1c]
sar ecx, 7
mov word [esi + 2], cx
movzx ecx, byte [edx + eax]
movzx ecx, word [ecx*2 + 0x10077308]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
mov edx, dword [esp + 0x48]
movzx edx, byte [edx + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
mov edx, dword [esp + 0x4c]
movzx edx, byte [edx + eax]
movzx edx, word [edx*2 + 0x10077308]
add ecx, edx
mov edx, ecx
and ecx, 0x1ff
sar edx, 9
mov ebp, 0x200
sub ebp, ecx
imul ebp, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, ecx
lea ecx, [edx + ebp + 0x40]
mov ebp, dword [esp + 0x180]
sar ecx, 7
mov word [esi + 4], cx
lea ecx, [ebp + ebp]
add eax, ecx
add esi, 8
sub dword [esp + 0x18], 1
jne 0x1003f4f0
cmp dword [esp + 0x64], 0
je 0x1003fde7
mov edx, dword [esp + 0x38]
lea ecx, [edx + ebx]
movzx eax, byte [ecx + edi]
movzx ecx, byte [ecx]
movzx edx, word [ecx*2 + 0x10077308]
movzx eax, word [eax*2 + 0x10077308]
add eax, edx
add eax, eax
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov edx, 0x200
sub edx, eax
imul edx, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
mov eax, dword [esp + 0x174]
lea edx, [edx + ecx + 0x40]
mov ecx, dword [esp + 0x38]
add ecx, eax
sar edx, 7
mov word [esi], dx
movzx edx, byte [ecx + edi]
movzx ecx, byte [ecx]
movzx eax, word [edx*2 + 0x10077308]
movzx edx, word [ecx*2 + 0x10077308]
add eax, edx
add eax, eax
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov edx, 0x200
sub edx, eax
imul edx, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
mov eax, dword [esp + 0x178]
lea edx, [edx + ecx + 0x40]
mov ecx, dword [esp + 0x38]
add ecx, eax
sar edx, 7
mov word [esi + 2], dx
movzx edx, byte [ecx + edi]
movzx ecx, byte [ecx]
movzx eax, word [edx*2 + 0x10077308]
movzx edx, word [ecx*2 + 0x10077308]
add eax, edx
add eax, eax
mov ecx, eax
and eax, 0x1ff
sar ecx, 9
mov edx, 0x200
sub edx, eax
imul edx, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
lea edx, [edx + ecx + 0x40]
sar edx, 7
mov word [esi + 4], dx
jmp 0x1003fde7
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp dword [esp + 0x78], ecx
mov dword [esp + 0x44], eax
jle 0x1003fb92
mov eax, dword [esp + 0x174]
sub eax, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x178]
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x174]
lea edx, [ebx + 4]
mov ebx, dword [esp + 0x178]
sub eax, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x174]
sub eax, esi
mov dword [esp + 0x38], eax
mov eax, ebx
sub eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov ebp, esi
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + ebp]
movzx ebx, byte [ebp]
movzx esi, byte [edi + ebp + 4]
add ebx, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
movzx eax, byte [edx + eax]
add ebx, esi
add eax, ebx
mov dword [esp + 0x30], eax
cmp eax, 0x3fc
je 0x1003f9d8
test eax, eax
je 0x1003f9d8
movzx eax, byte [edi + edx]
movzx eax, word [eax*2 + 0x10077308]
movzx esi, byte [edi + ebp + 4]
imul eax, esi
movzx esi, byte [edx + edi - 4]
movzx esi, word [esi*2 + 0x10077308]
imul esi, dword [esp + 0x60]
add eax, esi
movzx esi, byte [edx]
movzx ebx, word [esi*2 + 0x10077308]
mov esi, dword [esp + 0x24]
movzx esi, byte [edx + esi]
imul ebx, esi
add eax, ebx
movzx esi, byte [edx - 4]
movzx ebx, word [esi*2 + 0x10077308]
movzx esi, byte [ebp]
imul ebx, esi
add eax, ebx
mov esi, dword [esp + 0x30]
imul eax, dword [esi*4 + 0x10069ff8]
shr eax, 0x11
mov esi, eax
sar esi, 9
and eax, 0x1ff
mov ebx, 0x200
sub ebx, eax
imul ebx, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [ebx + esi + 0x40]
mov ebx, dword [esp + 0x20]
sar eax, 7
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
add eax, ebp
movzx eax, byte [edi + eax + 4]
movzx eax, word [eax*2 + 0x10077308]
lea esi, [edi + ebp]
add ebx, esi
movzx esi, byte [edi + ebp + 4]
imul eax, esi
mov esi, dword [esp + 0x4c]
movzx esi, byte [ebx + esi]
movzx esi, word [esi*2 + 0x10077308]
imul esi, dword [esp + 0x60]
add eax, esi
mov esi, dword [esp + 0x5c]
movzx esi, byte [edx + esi]
mov dword [esp + 0x48], ebx
movzx ebx, word [esi*2 + 0x10077308]
mov esi, dword [esp + 0x24]
movzx esi, byte [edx + esi]
imul ebx, esi
mov esi, dword [esp + 0x38]
add eax, ebx
add esi, ebp
movzx esi, byte [esi]
movzx ebx, word [esi*2 + 0x10077308]
movzx esi, byte [ebp]
imul ebx, esi
mov esi, dword [esp + 0x30]
add eax, ebx
imul eax, dword [esi*4 + 0x10069ff8]
shr eax, 0x11
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov ebx, 0x200
sub ebx, eax
imul ebx, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [ebx + esi + 0x40]
movzx esi, byte [edi + ebp + 4]
sar eax, 7
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
add eax, ebp
movzx eax, byte [edi + eax + 4]
movzx eax, word [eax*2 + 0x10077308]
imul eax, esi
mov esi, dword [esp + 0x18]
movzx esi, byte [edx + esi]
movzx ebx, word [esi*2 + 0x10077308]
mov esi, dword [esp + 0x24]
movzx esi, byte [edx + esi]
imul ebx, esi
mov esi, dword [esp + 0x48]
movzx esi, byte [esi]
movzx esi, word [esi*2 + 0x10077308]
imul esi, dword [esp + 0x60]
add eax, ebx
add eax, esi
mov esi, dword [esp + 0x20]
add esi, ebp
movzx esi, byte [esi]
movzx ebx, word [esi*2 + 0x10077308]
movzx esi, byte [ebp]
imul ebx, esi
mov esi, dword [esp + 0x30]
add eax, ebx
imul eax, dword [esi*4 + 0x10069ff8]
shr eax, 0x11
jmp 0x1003fb12
mov ebx, dword [esp + 0x170]
lea esi, [ebx + edi]
movzx eax, byte [ecx + esi + 4]
movzx esi, byte [ecx + esi]
movzx esi, word [esi*2 + 0x10077308]
movzx eax, word [eax*2 + 0x10077308]
add eax, esi
lea esi, [ebx + 4]
movzx esi, byte [esi + ecx]
movzx esi, word [esi*2 + 0x10077308]
add eax, esi
movzx esi, byte [edx - 4]
movzx esi, word [esi*2 + 0x10077308]
add eax, esi
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov ebx, 0x200
sub ebx, eax
imul ebx, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [ebx + esi + 0x40]
sar eax, 7
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x174]
lea esi, [eax + edi]
movzx ebx, byte [ecx + esi + 4]
movzx esi, byte [ecx + esi]
movzx esi, word [esi*2 + 0x10077308]
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + ebp]
movzx eax, word [eax*2 + 0x10077308]
movzx ebx, word [ebx*2 + 0x10077308]
add eax, ebx
add eax, esi
mov esi, dword [esp + 0x174]
movzx esi, byte [ecx + esi + 4]
movzx esi, word [esi*2 + 0x10077308]
add eax, esi
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov ebx, 0x200
sub ebx, eax
imul ebx, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [ebx + esi + 0x40]
sar eax, 7
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x178]
lea esi, [eax + edi]
movzx ebx, byte [ecx + esi + 4]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + ebp]
movzx esi, byte [ecx + esi]
movzx eax, word [eax*2 + 0x10077308]
movzx esi, word [esi*2 + 0x10077308]
movzx ebx, word [ebx*2 + 0x10077308]
add eax, ebx
add eax, esi
mov esi, dword [esp + 0x178]
movzx esi, byte [ecx + esi + 4]
movzx esi, word [esi*2 + 0x10077308]
add eax, esi
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov ebx, 0x200
sub ebx, eax
imul ebx, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [ebx + esi + 0x40]
mov esi, dword [esp + 0x44]
movzx ebx, word [esp + 0x74]
mov word [esi], bx
movzx ebx, word [esp + 0x6c]
sar eax, 7
mov word [esi + 2], bx
mov ebx, dword [esp + 0x28]
mov word [edx + ebx], ax
mov ax, word [esp + 0x30]
mov word [esi + 6], ax
add esi, 8
add ecx, 8
add ebp, 8
add edx, 8
sub dword [esp + 0x1c], 1
mov dword [esp + 0x44], esi
jne 0x1003f7e1
mov ebx, dword [esp + 0x170]
mov ebp, dword [esp + 0x180]
mov esi, dword [esp + 0x17c]
cmp dword [esp + 0x64], 0
je 0x1003fde7
lea edx, [ecx + esi]
movzx eax, byte [edx + edi]
movzx esi, byte [edx]
add eax, esi
add eax, eax
mov dword [esp + 0x30], eax
cmp eax, 0x3fc
je 0x1003fce1
test eax, eax
je 0x1003fce1
movzx ebp, byte [edx + edi]
lea eax, [ecx + ebx]
movzx esi, byte [eax + edi]
movzx eax, byte [eax]
movzx esi, word [esi*2 + 0x10077308]
movzx eax, word [eax*2 + 0x10077308]
imul esi, ebp
movzx ebp, byte [edx]
imul eax, ebp
add esi, eax
mov eax, dword [esp + 0x30]
imul esi, dword [eax*4 + 0x10069ff8]
add esi, esi
mov eax, esi
shr eax, 0x11
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov ebp, 0x200
sub ebp, eax
imul ebp, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [esi + ebp + 0x40]
movzx ebp, byte [edx + edi]
sar eax, 7
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x174]
add eax, ecx
movzx esi, byte [eax + edi]
movzx eax, byte [eax]
movzx esi, word [esi*2 + 0x10077308]
movzx eax, word [eax*2 + 0x10077308]
imul esi, ebp
movzx ebp, byte [edx]
imul eax, ebp
add esi, eax
mov eax, dword [esp + 0x30]
imul esi, dword [eax*4 + 0x10069ff8]
add esi, esi
mov eax, esi
shr eax, 0x11
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov ebp, 0x200
sub ebp, eax
imul ebp, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
mov eax, dword [esp + 0x178]
add ecx, eax
movzx eax, byte [ecx + edi]
movzx ecx, byte [ecx]
movzx eax, word [eax*2 + 0x10077308]
movzx ecx, word [ecx*2 + 0x10077308]
lea esi, [esi + ebp + 0x40]
movzx ebp, byte [edx + edi]
movzx edx, byte [edx]
imul eax, ebp
mov ebp, dword [esp + 0x180]
imul ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x30]
imul eax, dword [ecx*4 + 0x10069ff8]
add eax, eax
shr eax, 0x11
jmp 0x1003fd9d
lea edx, [ecx + ebx]
movzx eax, byte [edx + edi]
movzx edx, byte [edx]
movzx eax, word [eax*2 + 0x10077308]
movzx edx, word [edx*2 + 0x10077308]
add eax, edx
add eax, eax
mov edx, eax
and eax, 0x1ff
sar edx, 9
mov esi, 0x200
sub esi, eax
imul esi, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
lea eax, [esi + edx + 0x40]
sar eax, 7
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x174]
lea edx, [ecx + eax]
movzx eax, byte [edx + edi]
movzx edx, byte [edx]
movzx eax, word [eax*2 + 0x10077308]
movzx edx, word [edx*2 + 0x10077308]
add eax, edx
add eax, eax
mov edx, eax
and eax, 0x1ff
sar edx, 9
mov esi, 0x200
sub esi, eax
imul esi, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
mov eax, dword [esp + 0x178]
add ecx, eax
lea esi, [esi + edx + 0x40]
movzx edx, byte [ecx + edi]
movzx ecx, byte [ecx]
movzx eax, word [edx*2 + 0x10077308]
movzx edx, word [ecx*2 + 0x10077308]
add eax, edx
add eax, eax
mov ecx, eax
and eax, 0x1ff
sar ecx, 9
mov edx, 0x200
sub edx, eax
imul edx, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
lea eax, [edx + ecx + 0x40]
mov ecx, dword [esp + 0x44]
mov dx, word [esp + 0x1c]
sar esi, 7
sar eax, 7
mov word [ecx + 4], ax
mov ax, word [esp + 0x30]
mov word [ecx], dx
mov word [ecx + 2], si
mov word [ecx + 6], ax
cmp dword [esp + 0x3c], 0
jne 0x1003fe10
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call dword [0x10078448]
add esp, 0x10
jmp 0x1003fe9c
cmp dword [esp + 0x68], 0
jle 0x1003fe9c
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x68]
add esi, 4
sub ecx, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea esp, [esp]
movzx edx, word [esi - 2]
movzx eax, word [esi - 4]
movzx ecx, word [esi]
push edx
mov dword [esp + 0x4c], eax
push eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], ecx
call fcn.1003ec50
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x58]
call fcn.1003ed30
mov ecx, dword [esp + 0x54]
mov byte [ecx], al
inc ecx
add esp, 0x10
add esi, 8
sub dword [esp + 0x1c], 1
mov dword [esp + 0x44], ecx
jne 0x1003fe40
mov edx, dword [esp + 0x18c]
mov eax, dword [edx + 0x20]
add dword [esp + 0x58], eax
add dword [esp + 0x50], eax
lea eax, [edi + edi]
add dword [esp + 0x178], eax
add dword [esp + 0x174], eax
add ebx, eax
cmp dword [esp + 0x54], 0
mov dword [esp + 0x170], ebx
je 0x1003fed6
add dword [esp + 0x17c], eax
sub dword [esp + 0x14], 1
jne 0x1003f260
test byte [esp + 0x70], 1
je 0x10040756
cmp dword [esp + 0x7c], 0
je 0x1004019d
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x34]
cmp ebx, eax
jae 0x1004018b
mov eax, dword [esp + 0x10]
push eax
push ecx
push ebx
call dword [0x10078444]
add esp, 0xc
mov edi, dword [esp + 0x174]
cmp dword [esp + 0x54], 0
je 0x1003ff58
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x17c]
push 0
push eax
push 1
push ecx
push 0
push edx
call dword [0x10078754]
add esp, 0x18
neg eax
sbb eax, eax
inc eax
and eax, dword [esp + 0x54]
jne 0x1004020e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
sar eax, 1
xor esi, esi
test eax, eax
jle 0x100400bb
mov esi, edi
sub esi, ebx
add esi, ebp
sub edi, ebx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x178]
mov dword [esp + 0x5c], edi
mov edi, esi
sub esi, ebx
sub edi, ebx
mov dword [esp + 0x18], esi
add edi, ebp
lea esi, [ebp + ebp]
mov dword [esp + 0x14], eax
imul eax, esi
mov ecx, ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], eax
jmp 0x1003ffb0
movzx eax, byte [ecx + ebp]
movzx eax, word [eax*2 + 0x10077308]
movzx esi, byte [ecx]
movzx esi, word [esi*2 + 0x10077308]
add eax, esi
add eax, eax
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov edi, 0x200
sub edi, eax
imul edi, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [edi + esi + 0x40]
mov esi, dword [esp + 0x28]
sar eax, 7
mov word [edx], ax
movzx esi, byte [esi + ecx]
movzx esi, word [esi*2 + 0x10077308]
mov eax, dword [esp + 0x5c]
movzx eax, byte [ecx + eax]
movzx eax, word [eax*2 + 0x10077308]
add eax, esi
add eax, eax
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov edi, 0x200
sub edi, eax
imul edi, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [edi + esi + 0x40]
mov esi, dword [esp + 0x4c]
sar eax, 7
mov word [edx + 2], ax
movzx esi, byte [esi + ecx]
mov eax, dword [esp + 0x18]
movzx eax, byte [ecx + eax]
movzx eax, word [eax*2 + 0x10077308]
movzx esi, word [esi*2 + 0x10077308]
add eax, esi
add eax, eax
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov edi, 0x200
sub edi, eax
imul edi, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
lea eax, [edi + esi + 0x40]
sar eax, 7
mov word [edx + 4], ax
lea eax, [ebp + ebp]
add ecx, eax
add edx, 8
sub dword [esp + 0x14], 1
jne 0x1003ffb0
mov edi, dword [esp + 0x174]
mov esi, dword [esp + 0x48]
test byte [esp + 0x10], 1
je 0x100406cd
movzx ecx, byte [esi + ebx]
movzx eax, word [ecx*2 + 0x10077308]
add eax, eax
add eax, eax
mov ecx, eax
and eax, 0x1ff
sar ecx, 9
mov ebx, 0x200
sub ebx, eax
imul ebx, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
lea eax, [ebx + ecx + 0x40]
sar eax, 7
mov word [edx], ax
movzx ecx, byte [esi + edi]
movzx eax, word [ecx*2 + 0x10077308]
add eax, eax
add eax, eax
mov ecx, eax
and eax, 0x1ff
sar ecx, 9
mov edi, 0x200
sub edi, eax
imul edi, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
lea eax, [edi + ecx + 0x40]
mov ecx, dword [esp + 0x178]
sar eax, 7
mov word [edx + 2], ax
movzx eax, byte [esi + ecx]
movzx eax, word [eax*2 + 0x10077308]
add eax, eax
add eax, eax
mov ecx, eax
and eax, 0x1ff
sar ecx, 9
mov esi, 0x200
sub esi, eax
imul esi, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
lea eax, [esi + ecx + 0x40]
sar eax, 7
mov word [edx + 4], ax
jmp 0x100406cd
mov edx, dword [esp + 0x10]
push edx
push ecx
push eax
call dword [0x10078438]
jmp 0x1003ff17
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x1003ff1a
mov edi, dword [esp + 0x174]
mov eax, dword [esp + 0x178]
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, edi
mov esi, edi
mov dword [esp + 0x24], eax
mov edi, edi
mov edx, dword [esp + 0x20]
movzx eax, byte [edx + esi]
movzx ecx, byte [esi]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
push ecx
movzx ecx, byte [edx + esi]
call fcn.1003eba0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov byte [ecx + edx], al
inc ecx
add esp, 8
add esi, ebp
cmp ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jl 0x100401d0
jmp 0x1003ff21
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x2c]
sar eax, 1
xor ecx, ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x28], eax
test eax, eax
jle 0x10040502
mov esi, dword [esp + 0x174]
mov eax, dword [esp + 0x17c]
mov edi, esi
sub edi, eax
mov dword [esp + 0x38], edi
mov edi, ebp
sub edi, eax
lea edx, [eax + 4]
mov eax, dword [esp + 0x178]
mov dword [esp + 0x80], edi
mov edi, ebx
sub edi, esi
sub eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
jmp 0x10040275
mov edi, dword [esp + 0x24]
movzx eax, byte [edx]
movzx ebp, byte [edx - 4]
add eax, ebp
add eax, eax
mov dword [esp + 0x40], eax
cmp eax, 0x3fc
je 0x100403c9
test eax, eax
je 0x100403c9
mov eax, dword [esp + 0x38]
lea ebp, [edx + eax]
movzx eax, byte [edx]
movzx edx, byte [edx - 4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx*4 + 0x10069ff8]
mov dword [esp + 0x28], edx
movzx edx, byte [edi + ebp]
movzx edx, word [edx*2 + 0x10077308]
imul edx, eax
mov dword [esp + 0x4c], eax
movzx eax, byte [edi + esi]
movzx eax, word [eax*2 + 0x10077308]
imul eax, dword [esp + 0x14]
add edx, eax
imul edx, dword [esp + 0x28]
add edx, edx
mov eax, edx
shr eax, 0x11
mov edx, eax
and eax, 0x1ff
sar edx, 9
mov edi, 0x200
sub edi, eax
imul edi, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
movzx eax, byte [esi]
movzx eax, word [eax*2 + 0x10077308]
imul eax, dword [esp + 0x14]
lea edi, [edi + edx + 0x40]
movzx edx, byte [ebp]
movzx edx, word [edx*2 + 0x10077308]
imul edx, dword [esp + 0x4c]
add eax, edx
mov edx, dword [esp + 0x40]
imul eax, dword [edx*4 + 0x10069ff8]
add eax, eax
shr eax, 0x11
mov edx, eax
and eax, 0x1ff
mov dword [esp + 0x48], ebp
sar edx, 9
mov ebp, 0x200
sub ebp, eax
imul ebp, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
lea eax, [edx + ebp + 0x40]
mov edx, dword [esp + 0x20]
sar eax, 7
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
movzx eax, byte [edx + eax]
movzx ebp, word [eax*2 + 0x10077308]
mov eax, dword [esp + 0x18]
movzx edx, byte [eax]
movzx eax, byte [eax - 4]
imul ebp, edx
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + esi]
movzx edx, word [edx*2 + 0x10077308]
imul edx, eax
mov eax, dword [esp + 0x40]
add ebp, edx
imul ebp, dword [eax*4 + 0x10069ff8]
add ebp, ebp
mov eax, ebp
sar edi, 7
shr eax, 0x11
jmp 0x10040489
movzx edx, byte [edi + esi]
movzx edx, word [edx*2 + 0x10077308]
movzx eax, byte [ecx + ebx + 4]
movzx eax, word [eax*2 + 0x10077308]
add eax, edx
add eax, eax
mov edx, eax
sar edx, 9
and eax, 0x1ff
mov edi, 0x200
sub edi, eax
imul edi, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
mov eax, dword [esp + 0x174]
lea edi, [edi + edx + 0x40]
movzx edx, byte [ecx + eax + 4]
movzx eax, word [edx*2 + 0x10077308]
movzx edx, byte [esi]
movzx edx, word [edx*2 + 0x10077308]
add eax, edx
add eax, eax
mov edx, eax
and eax, 0x1ff
sar edx, 9
mov ebp, 0x200
sub ebp, eax
imul ebp, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
lea eax, [edx + ebp + 0x40]
sar eax, 7
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x178]
movzx edx, byte [ecx + eax + 4]
movzx eax, word [edx*2 + 0x10077308]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + esi]
movzx edx, word [edx*2 + 0x10077308]
add eax, edx
sar edi, 7
add eax, eax
mov edx, eax
and eax, 0x1ff
sar edx, 9
mov ebp, 0x200
sub ebp, eax
imul ebp, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
lea eax, [edx + ebp + 0x40]
mov ebp, dword [esp + 0x64]
mov dx, word [esp + 0x14]
mov word [ebp + 2], dx
mov edx, dword [esp + 0x18]
sar eax, 7
mov word [ebp], di
mov edi, dword [esp + 0x80]
mov word [edi + edx], ax
mov ax, word [esp + 0x40]
mov word [ebp + 6], ax
add edx, 8
add ebp, 8
add ecx, 8
add esi, 8
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x64], ebp
jne 0x10040271
mov edi, dword [esp + 0x174]
test byte [esp + 0x10], 1
je 0x100406cd
mov edx, dword [esp + 0x17c]
movzx eax, byte [ecx + edx]
add eax, eax
add eax, eax
mov dword [esp + 0x14], eax
cmp eax, 0x3fc
je 0x10040603
test eax, eax
je 0x10040603
mov esi, dword [eax*4 + 0x10069ff8]
movzx edx, byte [ecx + ebx]
movzx eax, word [edx*2 + 0x10077308]
mov edx, dword [esp + 0x17c]
movzx edx, byte [ecx + edx]
imul eax, edx
imul eax, esi
add eax, eax
add eax, eax
shr eax, 0x11
mov edx, eax
and eax, 0x1ff
sar edx, 9
mov ebx, 0x200
sub ebx, eax
imul ebx, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
movzx eax, byte [ecx + edi]
movzx eax, word [eax*2 + 0x10077308]
mov edi, dword [esp + 0x17c]
movzx edi, byte [ecx + edi]
imul eax, edi
imul eax, esi
add eax, eax
add eax, eax
shr eax, 0x11
lea edx, [ebx + edx + 0x40]
mov ebx, eax
and eax, 0x1ff
sar ebx, 9
mov edi, 0x200
sub edi, eax
imul edi, dword [ebx*4 + 0x10077508]
mov ebx, dword [ebx*4 + 0x1007750c]
imul ebx, eax
mov eax, dword [esp + 0x178]
movzx eax, byte [ecx + eax]
movzx eax, word [eax*2 + 0x10077308]
lea ebx, [edi + ebx + 0x40]
mov edi, dword [esp + 0x17c]
movzx ecx, byte [ecx + edi]
imul eax, ecx
imul eax, esi
add eax, eax
add eax, eax
sar edx, 7
shr eax, 0x11
jmp 0x1004068b
movzx edx, byte [ecx + ebx]
movzx eax, word [edx*2 + 0x10077308]
add eax, eax
add eax, eax
mov edx, eax
and eax, 0x1ff
sar edx, 9
mov esi, 0x200
sub esi, eax
imul esi, dword [edx*4 + 0x10077508]
mov edx, dword [edx*4 + 0x1007750c]
imul edx, eax
movzx eax, byte [ecx + edi]
movzx eax, word [eax*2 + 0x10077308]
add eax, eax
add eax, eax
lea edx, [esi + edx + 0x40]
mov esi, eax
and eax, 0x1ff
sar esi, 9
mov edi, 0x200
sub edi, eax
imul edi, dword [esi*4 + 0x10077508]
mov esi, dword [esi*4 + 0x1007750c]
imul esi, eax
mov eax, dword [esp + 0x178]
movzx ecx, byte [ecx + eax]
movzx eax, word [ecx*2 + 0x10077308]
add eax, eax
sar edx, 7
lea ebx, [edi + esi + 0x40]
add eax, eax
mov ecx, eax
and eax, 0x1ff
sar ecx, 9
mov esi, 0x200
sub esi, eax
imul esi, dword [ecx*4 + 0x10077508]
mov ecx, dword [ecx*4 + 0x1007750c]
imul ecx, eax
sar ebx, 7
lea eax, [esi + ecx + 0x40]
mov word [ebp], dx
mov dx, word [esp + 0x14]
sar eax, 7
mov word [ebp + 2], bx
mov word [ebp + 4], ax
mov word [ebp + 6], dx
cmp dword [esp + 0x3c], 0
jne 0x100406f3
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [0x10078448]
add esp, 0x10
jmp 0x10040756
mov ecx, dword [esp + 0x68]
test ecx, ecx
jle 0x10040756
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
add esi, 4
sub eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
movzx ebp, word [esi - 2]
movzx edi, word [esi - 4]
movzx ecx, word [esi]
mov eax, dword [esp + 0x3c]
push ebp
push edi
mov dword [esp + 0x30], ecx
call fcn.1003ec50
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov byte [ecx + ebx], al
mov eax, dword [esp + 0x44]
push edx
push ebp
mov ecx, edi
call fcn.1003ed30
mov byte [ebx], al
add esp, 0x10
inc ebx
add esi, 8
sub dword [esp + 0x14], 1
jne 0x10040714
mov eax, dword [esp + 0x2c]
push eax
call sym.libwebp.dll_WebPFree
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x15c
ret