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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x6c]
imul eax, dword [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x44], eax
xor eax, eax
cmp edi, ebx
setg al
cmp edi, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], eax
jle 0x10034926
mov eax, 1
mov ecx, edi
shl eax, cl
jmp 0x10034928
xor eax, eax
lea ecx, [eax*4 + 0x1104]
push ecx
push 0
push 1
call sym.libwebp.dll_WebPSafeCalloc
push 0x410c
mov ebp, eax
push 0
push 1
mov dword [esp + 0x40], ebp
call sym.libwebp.dll_WebPSafeCalloc
fld dword [0x10069310]
mov esi, eax
fstp dword [esp + 0x50]
or eax, 0xffffffff
add esp, 0x18
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ebx
test ebp, ebp
je 0x10035b72
test esi, esi
je 0x10035b72
lea edx, [ebp + 0xca4]
mov dword [ebp + 0xca0], edx
cmp dword [esp + 0x30], ebx
je 0x100349ab
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.10031180
add esp, 8
mov dword [esp + 0x50], eax
test eax, eax
je 0x10035b72
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x7c]
push edi
push ecx
push ebp
call fcn.100341d0
add esp, 0xc
test eax, eax
je 0x10035b5e
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x80]
push ebp
push edx
call fcn.100344a0
add esp, 8
test eax, eax
je 0x10035b5e
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x74]
xor eax, eax
cmp dword [esp + 0x30], 0
mov word [ebx], ax
mov edi, dword [esi + 0x400c]
mov eax, dword [ecx]
je 0x10034a39
mov ecx, dword [esp + 0x60]
mov edx, eax
imul edx, edx, 0x1e35a7bd
shr edx, cl
mov ecx, dword [esp + 0x5c]
cmp dword [ecx + edx*4], eax
jne 0x10034a32
test edx, edx
jl 0x10034a32
mov eax, dword [ebp + 0xca0]
fld dword [eax + edx*4 + 0x460]
fmul qword [0x100692f8]
jmp 0x10034a82
mov ecx, dword [esp + 0x5c]
mov dword [ecx + edx*4], eax
mov edx, eax
shr edx, 0x10
and edx, 0xff
fld dword [ebp + edx*4 + 0x400]
mov ecx, eax
shr ecx, 0x18
fadd dword [ebp + ecx*4]
mov ecx, dword [ebp + 0xca0]
mov edx, eax
shr edx, 8
and edx, 0xff
fadd dword [ecx + edx*4]
and eax, 0xff
fadd dword [ebp + eax*4 + 0x800]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fmul qword [0x100692f0]
fadd qword [0x10069308]
fstp dword [esp + 0x70]
fld dword [edi]
fld dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10034aa9
mov edx, 1
fstp dword [edi]
mov word [ebx], dx
jmp 0x10034aab
fstp st(0)
mov eax, 1
cmp dword [esp + 0x44], eax
mov dword [esp + 0x70], eax
jle 0x10035b4e
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov ecx, eax
jmp 0x10034ad0
mov eax, dword [esp + 0x78]
mov edx, dword [eax]
mov eax, dword [edx + ecx*4]
mov edi, dword [esi + 0x400c]
fld dword [edi + ecx*4 - 4]
mov edx, eax
and eax, 0xfff
fstp dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax + ecx*4]
shr edx, 0xc
cmp dword [esp + 0x30], 0
mov dword [esp + 0x2c], edx
je 0x10034b3e
mov ecx, dword [esp + 0x60]
mov edx, eax
imul edx, edx, 0x1e35a7bd
shr edx, cl
mov ecx, dword [esp + 0x5c]
cmp dword [ecx + edx*4], eax
jne 0x10034b3b
test edx, edx
jl 0x10034b3b
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0xca0]
fld dword [eax + edx*4 + 0x460]
fmul qword [0x100692f8]
jmp 0x10034b8e
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x28]
mov edx, eax
shr edx, 0x10
and edx, 0xff
fld dword [ecx + edx*4 + 0x400]
mov edx, eax
shr edx, 0x18
fadd dword [ecx + edx*4]
mov ecx, dword [ecx + 0xca0]
mov edx, eax
shr edx, 8
and edx, 0xff
fadd dword [ecx + edx*4]
mov edx, dword [esp + 0x28]
and eax, 0xff
fadd dword [edx + eax*4 + 0x800]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fmul qword [0x100692f0]
fadd dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
fstp dword [esp + 0x40]
fld dword [edi + ecx*4]
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10034bc1
mov edx, dword [esp + 0x80]
fstp dword [edi + ecx*4]
mov eax, 1
mov word [edx + ecx*2], ax
jmp 0x10034bc3
fstp st(0)
cmp dword [esp + 0x24], 2
jl 0x10034dd5
cmp dword [esp + 0x2c], ebp
je 0x100352ea
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call fcn.10035dd0
add esp, 8
cmp eax, 0x200
jge 0x10034c11
mov dx, word [eax*2 + 0x1006da90]
mov word [esp + 0x48], dx
mov ecx, dword [esp + 0x48]
shr ecx, 8
movsx eax, dl
movsx edx, cl
mov dword [esp + 0x40], edx
jmp 0x10034c2a
dec eax
bsr ecx, eax
mov edx, ecx
mov dword [esp + 0x4c], ecx
lea ecx, [edx - 1]
sar eax, cl
mov dword [esp + 0x40], ecx
and eax, 1
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x28]
fld dword [edx + eax*4 + 0xc00]
mov edi, dword [esp + 0x24]
cmp edi, 0xa
fiadd dword [esp + 0x40]
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov dword [esp + 0x34], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x38]
fld dword [esp + 0x20]
fadd dword [esp + 0x38]
fstp dword [esp + 0x40]
jge 0x10034e0e
mov ecx, dword [esp + 0x70]
fld dword [esp + 0x40]
lea eax, [edi + ecx]
mov dword [esp + 0x20], eax
sub eax, ecx
cmp eax, 4
jl 0x10034d7f
mov ebp, dword [esp + 0x20]
add ebp, 0xfffffffd
mov edi, 2
lea edx, [esi + 0x18]
fld dword [edx - 8]
mov eax, dword [esi + 0x400c]
fadd st(1)
lea ebx, [eax + ecx*4]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10034cc8
fstp dword [ebx]
mov ebx, dword [esi + 0x4010]
lea eax, [edi - 1]
mov word [ebx + ecx*2], ax
jmp 0x10034cca
fstp st(0)
fld dword [edx - 4]
mov eax, dword [esi + 0x400c]
fadd st(1)
lea ebx, [eax + ecx*4 + 4]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10034cfd
fstp dword [ebx]
mov eax, dword [esi + 0x4010]
mov word [eax + ecx*2 + 2], di
jmp 0x10034cff
fstp st(0)
fld dword [edx]
mov eax, dword [esi + 0x400c]
fadd st(1)
lea ebx, [eax + ecx*4 + 8]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10034d34
fstp dword [ebx]
mov ebx, dword [esi + 0x4010]
lea eax, [edi + 1]
mov word [ebx + ecx*2 + 4], ax
jmp 0x10034d36
fstp st(0)
fld dword [edx + 4]
mov eax, dword [esi + 0x400c]
fadd st(1)
lea ebx, [eax + ecx*4 + 0xc]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10034d6c
fstp dword [ebx]
mov ebx, dword [esi + 0x4010]
lea eax, [edi + 2]
mov word [ebx + ecx*2 + 6], ax
jmp 0x10034d6e
fstp st(0)
add ecx, 4
add edx, 0x10
add edi, 4
cmp ecx, ebp
jl 0x10034c94
cmp ecx, dword [esp + 0x20]
jge 0x10034dd3
mov ebp, dword [esp + 0x20]
mov eax, ecx
sub eax, dword [esp + 0x70]
mov edi, eax
lea ebx, [esi + eax*4 + 0x10]
fld dword [ebx]
mov edx, dword [esi + 0x400c]
fadd st(1)
lea edx, [edx + ecx*4]
fstp dword [esp + 0x14]
fld dword [edx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10034dc8
fstp dword [edx]
mov edx, dword [esi + 0x4010]
lea eax, [edi + 1]
mov word [edx + ecx*2], ax
jmp 0x10034dca
fstp st(0)
inc ecx
inc edi
add ebx, 4
cmp ecx, ebp
jl 0x10034d95
fstp st(0)
mov eax, dword [esi]
test eax, eax
je 0x10035b33
mov ebx, dword [esp + 0x70]
or ebp, 0xffffffff
cmp dword [eax + 4], ebx
jg 0x10035b33
cmp dword [eax + 8], ebx
mov edi, dword [eax + 0x14]
jg 0x10035af2
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10035aad
mov dword [ecx + 0x14], edi
jmp 0x10035aaf
xor eax, eax
mov dword [esp + 0x3c], eax
cmp dword [esi + 0xc], eax
jbe 0x10034dd5
jmp 0x10034e24
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x70]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 4]
cmp ecx, edi
jge 0x10034dd5
lea ebp, [ecx + ebx]
mov ecx, dword [eax + 8]
cmp ecx, edi
jle 0x10034e45
mov ecx, edi
fld dword [esp + 0x40]
add ecx, ebx
fadd dword [eax]
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
test edx, edx
je 0x10035163
mov edi, dword [edx + 4]
cmp edi, dword [esp + 0x14]
jge 0x10035163
mov ebx, dword [edx + 8]
cmp ebp, ebx
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x20], ecx
jge 0x10035025
fld dword [edx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10034fbf
cmp ebp, edi
jge 0x10034f25
cmp dword [esi + 4], 0x1f4
jl 0x10034ed3
mov ecx, ebp
mov ebp, dword [esp + 0x70]
mov edx, dword [esi + 0x400c]
fld dword [edx + ecx*4]
lea edx, [edx + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10034ecc
mov eax, ecx
fst dword [edx]
mov edx, dword [esi + 0x4010]
sub eax, ebp
inc eax
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, edi
jl 0x10034ea6
jmp 0x10034f1d
mov eax, dword [esi + 0x4104]
test eax, eax
je 0x10034f36
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x4104], ecx
mov ecx, dword [esp + 0x70]
fst dword [eax]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
cmp ebp, dword [ecx + 4]
jge 0x10034f96
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x10034ef9
mov edx, dword [esi]
mov dword [eax + 0x14], edx
test edx, edx
je 0x10034f15
mov dword [edx + 0x10], eax
mov dword [esi], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x14]
mov ebp, ebx
jge 0x100351ab
jmp 0x10035025
mov eax, dword [esi + 0x4108]
test eax, eax
je 0x10034f4b
mov edx, dword [eax + 0x14]
mov dword [esi + 0x4108], edx
jmp 0x10034ee6
push 0x18
fstp st(0)
push 0
push 1
call sym.libwebp.dll_WebPSafeMalloc
fld dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x10034ee6
mov ecx, ebp
mov ebp, dword [esp + 0x70]
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10034f8f
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, ebp
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, edi
jl 0x10034f69
jmp 0x10034f1d
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x10034fad
cmp dword [edx + 4], ebp
jge 0x10034fad
mov ecx, edx
test ecx, ecx
jne 0x10034f96
jmp 0x10034f09
mov dword [eax + 0x14], edx
test edx, edx
je 0x10034fb7
mov dword [edx + 0x10], eax
mov dword [ecx + 0x14], eax
jmp 0x10034f17
cmp ebp, edi
jg 0x1003501c
mov eax, dword [esp + 0x14]
cmp ebx, eax
jg 0x10035038
mov eax, dword [edx + 0x10]
test eax, eax
je 0x10034fd7
mov dword [eax + 0x14], ecx
jmp 0x10034fd9
mov dword [esi], ecx
test ecx, ecx
je 0x10034fe0
mov dword [ecx + 0x10], eax
lea eax, [esi + 0x4014]
cmp edx, eax
jb 0x10035008
lea eax, [esi + 0x40ec]
cmp edx, eax
ja 0x10035008
mov eax, dword [esi + 0x4104]
mov dword [edx + 0x14], eax
dec dword [esi + 4]
mov dword [esi + 0x4104], edx
jmp 0x10035025
mov eax, dword [esi + 0x4108]
mov dword [edx + 0x14], eax
dec dword [esi + 4]
mov dword [esi + 0x4108], edx
jmp 0x10035025
cmp dword [esp + 0x14], ebx
jl 0x10035040
mov dword [edx + 8], ebp
mov edx, ecx
mov dword [esp + 0x10], edx
test ecx, ecx
jne 0x10034e61
jmp 0x10035163
mov dword [edx + 4], eax
jmp 0x10035163
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 8]
fld dword [eax]
cmp dword [esp + 0x14], ebx
fstp dword [esp + 0x20]
mov edi, dword [eax + 0xc]
mov dword [eax + 8], ebp
jge 0x10035158
cmp dword [esi + 4], 0x1f4
jl 0x100350a0
mov ecx, dword [esp + 0x14]
fld dword [esp + 0x20]
mov edx, dword [esi + 0x400c]
fld dword [edx + ecx*4]
lea edx, [edx + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10035094
mov eax, ecx
fst dword [edx]
mov edx, dword [esi + 0x4010]
sub eax, edi
inc eax
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jl 0x1003506e
fstp st(0)
jmp 0x10035158
mov eax, dword [esi + 0x4104]
test eax, eax
je 0x100350b5
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x4104], ecx
jmp 0x1003511d
mov eax, dword [esi + 0x4108]
test eax, eax
je 0x100350ca
mov edx, dword [eax + 0x14]
mov dword [esi + 0x4108], edx
jmp 0x1003511d
push 0x18
fstp st(0)
push 0
push 1
call sym.libwebp.dll_WebPSafeMalloc
add esp, 0xc
test eax, eax
jne 0x10035119
mov ecx, dword [esp + 0x14]
fld dword [esp + 0x20]
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003510c
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, edi
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jl 0x100350e6
fstp st(0)
fld dword [esp + 0x18]
jmp 0x10035158
fld dword [esp + 0x18]
fld dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
fstp dword [eax]
mov dword [eax + 0xc], edi
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
cmp edx, dword [ecx + 4]
jge 0x100351c4
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x10035134
mov edx, dword [esi]
mov dword [eax + 0x14], edx
test edx, edx
je 0x10035150
mov dword [edx + 0x10], eax
mov dword [esi], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0x14]
jge 0x100351ab
cmp dword [esi + 4], 0x1f4
jl 0x100351f1
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100351a2
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, edi
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jl 0x1003517c
mov edx, dword [esp + 0x10]
fstp st(0)
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esi + 0xc]
jb 0x10034e20
jmp 0x10034dd5
mov edi, dword [esp + 0x14]
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x100351df
cmp dword [edx + 4], edi
jge 0x100351df
mov ecx, edx
test ecx, ecx
jne 0x100351c8
jmp 0x10035144
mov dword [eax + 0x14], edx
test edx, edx
je 0x100351e9
mov dword [edx + 0x10], eax
mov dword [ecx + 0x14], eax
jmp 0x10035152
mov eax, dword [esi + 0x4104]
test eax, eax
je 0x1003523e
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x4104], ecx
mov ecx, dword [esp + 0x70]
fstp dword [eax]
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
test ecx, ecx
jne 0x10035230
mov ecx, dword [esi]
test ecx, ecx
je 0x100352b7
lea esp, [esp]
cmp ebp, dword [ecx + 4]
jge 0x100352a5
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x10035230
jmp 0x100352b7
mov eax, dword [esi + 0x4108]
test eax, eax
je 0x10035253
mov edx, dword [eax + 0x14]
mov dword [esi + 0x4108], edx
jmp 0x10035204
push 0x18
fstp st(0)
push 0
push 1
call sym.libwebp.dll_WebPSafeMalloc
fld dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x10035204
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003529b
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, edi
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jl 0x10035275
jmp 0x100351a7
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x100352bb
cmp dword [edx + 4], ebp
jge 0x100352b9
mov ecx, edx
test ecx, ecx
jne 0x100352a5
mov edx, dword [esi]
test edx, edx
mov dword [eax + 0x14], edx
je 0x100352c3
mov dword [edx + 0x10], eax
test ecx, ecx
je 0x100352d9
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
jmp 0x100351ad
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
jmp 0x100351ad
cmp dword [esp + 0x34], 0
je 0x10035305
mov eax, dword [esp + 0x70]
lea ecx, [eax + ebx - 2]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
lea ecx, [edx + eax - 1]
cmp ecx, dword [esp + 0x1c]
jle 0x10034dd5
cmp eax, dword [esp + 0x1c]
mov ebp, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebp
jg 0x1003537d
mov edx, dword [esp + 0x78]
mov edx, dword [edx]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
lea ecx, [edx + eax*4 + 4]
mov eax, dword [ecx]
mov ebp, eax
and ebp, 0xfff
shr eax, 0xc
mov dword [esp + 0x20], ebp
cmp eax, ebx
jne 0x10035368
mov eax, dword [esp + 0x10]
inc eax
add ecx, 4
cmp eax, edi
mov dword [esp + 0x10], eax
jle 0x10035341
jmp 0x10035379
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + ecx*4]
and edx, 0xfff
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 1]
test eax, eax
je 0x100353d0
cmp dword [eax + 4], ecx
jg 0x100353d0
cmp dword [eax + 8], ecx
mov ebx, dword [eax + 0x14]
jle 0x100353ca
fld dword [eax]
mov edx, ecx
sub edx, dword [eax + 0xc]
fstp dword [esp + 0x4c]
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edi, [eax + ecx*4]
fld dword [esp + 0x4c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100353c8
fstp dword [edi]
mov eax, dword [esi + 0x4010]
inc edx
mov word [eax + ecx*2], dx
jmp 0x100353ca
fstp st(0)
mov eax, ebx
test ebx, ebx
jne 0x10035386
mov eax, dword [esi]
test eax, eax
je 0x1003541f
cmp dword [eax + 4], ebp
jg 0x1003541f
cmp dword [eax + 8], ebp
mov edi, dword [eax + 0x14]
jle 0x10035419
fld dword [eax]
mov edx, dword [esi + 0x400c]
fstp dword [esp + 0x4c]
lea edx, [edx + ebp*4]
fld dword [edx]
mov ecx, ebp
fld dword [esp + 0x4c]
sub ecx, dword [eax + 0xc]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10035417
fstp dword [edx]
mov eax, dword [esi + 0x4010]
inc ecx
mov word [eax + ebp*2], cx
jmp 0x10035419
fstp st(0)
mov eax, edi
test edi, edi
jne 0x100353d6
mov ecx, dword [esi + 0x400c]
mov eax, dword [esi + 8]
fld dword [ecx + ebp*4 - 4]
fadd dword [esp + 0x38]
mov edx, dword [esi]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xa
fstp dword [esp + 0x4c]
mov dword [esp + 0x18], edx
jge 0x100355c7
fld dword [esp + 0x4c]
add eax, ebp
mov dword [esp + 0x1c], eax
sub eax, ebp
cmp eax, 4
mov ecx, ebp
jl 0x1003555c
mov ebp, dword [esp + 0x1c]
add ebp, 0xfffffffd
mov edi, 2
lea edx, [esi + 0x18]
fld dword [edx - 8]
mov eax, dword [esi + 0x400c]
fadd st(1)
lea ebx, [eax + ecx*4]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100354a5
fstp dword [ebx]
mov ebx, dword [esi + 0x4010]
lea eax, [edi - 1]
mov word [ebx + ecx*2], ax
jmp 0x100354a7
fstp st(0)
fld dword [edx - 4]
mov eax, dword [esi + 0x400c]
fadd st(1)
lea ebx, [eax + ecx*4 + 4]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100354da
fstp dword [ebx]
mov eax, dword [esi + 0x4010]
mov word [eax + ecx*2 + 2], di
jmp 0x100354dc
fstp st(0)
mov eax, dword [esi + 0x400c]
fld st(0)
fadd dword [edx]
lea ebx, [eax + ecx*4 + 8]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10035511
fstp dword [ebx]
mov ebx, dword [esi + 0x4010]
lea eax, [edi + 1]
mov word [ebx + ecx*2 + 4], ax
jmp 0x10035513
fstp st(0)
fld dword [edx + 4]
mov eax, dword [esi + 0x400c]
fadd st(1)
lea ebx, [eax + ecx*4 + 0xc]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10035549
fstp dword [ebx]
mov ebx, dword [esi + 0x4010]
lea eax, [edi + 2]
mov word [ebx + ecx*2 + 6], ax
jmp 0x1003554b
fstp st(0)
add ecx, 4
add edx, 0x10
add edi, 4
cmp ecx, ebp
jl 0x10035471
cmp ecx, dword [esp + 0x1c]
jge 0x100355b0
mov ebp, dword [esp + 0x1c]
mov eax, ecx
sub eax, dword [esp + 0x10]
mov edi, eax
lea ebx, [esi + eax*4 + 0x10]
fld dword [ebx]
mov edx, dword [esi + 0x400c]
fadd st(1)
lea edx, [edx + ecx*4]
fstp dword [esp + 0x14]
fld dword [edx]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100355a5
fstp dword [edx]
mov edx, dword [esi + 0x4010]
lea eax, [edi + 1]
mov word [edx + ecx*2], ax
jmp 0x100355a7
fstp st(0)
inc ecx
inc edi
add ebx, 4
cmp ecx, ebp
jl 0x10035572
fstp st(0)
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx - 1]
mov dword [esp + 0x1c], edx
jmp 0x10034dd5
cmp dword [esi + 0xc], 0
mov dword [esp + 0x40], 0
jbe 0x100355b2
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 4]
cmp ecx, dword [esp + 0x20]
jge 0x100355b2
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
lea ebp, [ecx + edx]
mov ecx, dword [eax + 8]
cmp ecx, edi
jle 0x10035600
mov ecx, edi
fld dword [eax]
mov ebx, dword [esp + 0x18]
fadd dword [esp + 0x4c]
add ecx, edx
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
test ebx, ebx
je 0x10035924
mov edi, dword [ebx + 4]
cmp edi, dword [esp + 0x14]
jge 0x10035924
mov edx, dword [ebx + 8]
cmp ebp, edx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], edx
jge 0x100357e4
fld dword [ebx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1003577e
cmp ebp, edi
jge 0x100356de
cmp dword [esi + 4], 0x1f4
jl 0x10035696
mov ebx, dword [esp + 0x10]
mov ecx, ebp
mov edx, dword [esi + 0x400c]
fld dword [edx + ecx*4]
lea edx, [edx + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003568f
mov eax, ecx
fst dword [edx]
mov edx, dword [esi + 0x4010]
sub eax, ebx
inc eax
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, edi
jl 0x10035669
jmp 0x100356de
mov eax, dword [esi + 0x4104]
test eax, eax
je 0x100356f5
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x4104], ecx
mov ecx, dword [esp + 0x10]
fst dword [eax]
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
mov ecx, ebx
cmp ebp, dword [ecx + 4]
jge 0x10035755
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x100356ba
mov edx, dword [esi]
mov dword [eax + 0x14], edx
test edx, edx
je 0x100356d6
mov dword [edx + 0x10], eax
mov dword [esi], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
mov ebp, dword [esp + 0x3c]
cmp ebp, dword [esp + 0x14]
jge 0x1003596c
mov ecx, dword [esp + 0x58]
jmp 0x100357e4
mov eax, dword [esi + 0x4108]
test eax, eax
je 0x1003570a
mov edx, dword [eax + 0x14]
mov dword [esi + 0x4108], edx
jmp 0x100356a9
push 0x18
fstp st(0)
push 0
push 1
call sym.libwebp.dll_WebPSafeMalloc
fld dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x100356a9
mov ebx, dword [esp + 0x10]
mov ecx, ebp
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003574e
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, ebx
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, edi
jl 0x10035728
jmp 0x100356de
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x1003576c
cmp dword [edx + 4], ebp
jge 0x1003576c
mov ecx, edx
test ecx, ecx
jne 0x10035755
jmp 0x100356ca
mov dword [eax + 0x14], edx
test edx, edx
je 0x10035776
mov dword [edx + 0x10], eax
mov dword [ecx + 0x14], eax
jmp 0x100356d8
cmp ebp, edi
jg 0x100357db
mov eax, dword [esp + 0x14]
cmp edx, eax
jg 0x100357f7
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10035796
mov dword [eax + 0x14], ecx
jmp 0x10035798
mov dword [esi], ecx
test ecx, ecx
je 0x1003579f
mov dword [ecx + 0x10], eax
lea edx, [esi + 0x4014]
cmp ebx, edx
jb 0x100357c7
lea eax, [esi + 0x40ec]
cmp ebx, eax
ja 0x100357c7
mov edx, dword [esi + 0x4104]
mov dword [ebx + 0x14], edx
dec dword [esi + 4]
mov dword [esi + 0x4104], ebx
jmp 0x100357e4
mov eax, dword [esi + 0x4108]
mov dword [ebx + 0x14], eax
dec dword [esi + 4]
mov dword [esi + 0x4108], ebx
jmp 0x100357e4
cmp dword [esp + 0x14], edx
jl 0x100357ff
mov dword [ebx + 8], ebp
mov ebx, ecx
mov dword [esp + 0x18], ebx
test ecx, ecx
jne 0x10035620
jmp 0x10035924
mov dword [ebx + 4], eax
jmp 0x10035924
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 8]
fld dword [eax]
cmp dword [esp + 0x14], ebx
fstp dword [esp + 0x3c]
mov edi, dword [eax + 0xc]
mov dword [eax + 8], ebp
jge 0x10035917
cmp dword [esi + 4], 0x1f4
jl 0x1003585f
mov ecx, dword [esp + 0x14]
fld dword [esp + 0x3c]
mov edx, dword [esi + 0x400c]
fld dword [edx + ecx*4]
lea edx, [edx + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10035853
mov eax, ecx
fst dword [edx]
mov edx, dword [esi + 0x4010]
sub eax, edi
inc eax
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jl 0x1003582d
fstp st(0)
jmp 0x10035917
mov eax, dword [esi + 0x4104]
test eax, eax
je 0x10035874
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x4104], ecx
jmp 0x100358dc
mov eax, dword [esi + 0x4108]
test eax, eax
je 0x10035889
mov edx, dword [eax + 0x14]
mov dword [esi + 0x4108], edx
jmp 0x100358dc
push 0x18
fstp st(0)
push 0
push 1
call sym.libwebp.dll_WebPSafeMalloc
add esp, 0xc
test eax, eax
jne 0x100358d8
mov ecx, dword [esp + 0x14]
fld dword [esp + 0x3c]
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100358cb
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, edi
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jl 0x100358a5
fstp st(0)
fld dword [esp + 0x1c]
jmp 0x10035917
fld dword [esp + 0x1c]
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
fstp dword [eax]
mov dword [eax + 0xc], edi
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
cmp edx, dword [ecx + 4]
jge 0x10035995
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x100358f3
mov edx, dword [esi]
mov dword [eax + 0x14], edx
test edx, edx
je 0x1003590f
mov dword [edx + 0x10], eax
mov dword [esi], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x18], edx
mov ebx, edx
cmp ebp, dword [esp + 0x14]
jge 0x1003596c
cmp dword [esi + 4], 0x1f4
jl 0x100359c2
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10035967
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, edi
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jl 0x10035941
fstp st(0)
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esi + 0xc]
jb 0x100355d5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx - 1]
mov dword [esp + 0x1c], edx
jmp 0x10034dd5
mov edi, dword [esp + 0x14]
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x100359b0
cmp dword [edx + 4], edi
jge 0x100359b0
mov ecx, edx
test ecx, ecx
jne 0x10035999
jmp 0x10035903
mov dword [eax + 0x14], edx
test edx, edx
je 0x100359ba
mov dword [edx + 0x10], eax
mov dword [ecx + 0x14], eax
jmp 0x10035911
mov eax, dword [esi + 0x4104]
test eax, eax
je 0x10035a06
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x4104], ecx
mov ecx, dword [esp + 0x10]
fstp dword [eax]
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov ecx, ebx
test ebx, ebx
jne 0x100359f8
mov ecx, dword [esi]
test ecx, ecx
je 0x10035a82
cmp ebp, dword [ecx + 4]
jge 0x10035a70
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x100359f8
jmp 0x10035a82
mov eax, dword [esi + 0x4108]
test eax, eax
je 0x10035a1b
mov edx, dword [eax + 0x14]
mov dword [esi + 0x4108], edx
jmp 0x100359d5
push 0x18
fstp st(0)
push 0
push 1
call sym.libwebp.dll_WebPSafeMalloc
fld dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x100359d5
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [esi + 0x400c]
fld dword [eax + ecx*4]
lea edx, [eax + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10035a63
fst dword [edx]
mov eax, dword [esi + 0x4010]
mov edx, ecx
sub edx, edi
inc edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jl 0x10035a3d
jmp 0x1003596c
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x10035a86
cmp dword [edx + 4], ebp
jge 0x10035a84
mov ecx, edx
test ecx, ecx
jne 0x10035a70
mov edx, dword [esi]
test edx, edx
mov dword [eax + 0x14], edx
je 0x10035a8e
mov dword [edx + 0x10], eax
test ecx, ecx
je 0x10035aa0
mov dword [ecx + 0x14], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
jmp 0x1003596e
mov dword [esi], eax
mov dword [eax + 0x10], ecx
inc dword [esi + 4]
jmp 0x1003596e
mov dword [esi], edi
test edi, edi
je 0x10035ab6
mov dword [edi + 0x10], ecx
lea ecx, [esi + 0x4014]
cmp eax, ecx
jb 0x10035ade
lea edx, [esi + 0x40ec]
cmp eax, edx
ja 0x10035ade
mov ecx, dword [esi + 0x4104]
mov dword [eax + 0x14], ecx
add dword [esi + 4], ebp
mov dword [esi + 0x4104], eax
jmp 0x10035b29
mov edx, dword [esi + 0x4108]
mov dword [eax + 0x14], edx
add dword [esi + 4], ebp
mov dword [esi + 0x4108], eax
jmp 0x10035b29
fld dword [eax]
mov ecx, ebx
sub ecx, dword [eax + 0xc]
fstp dword [esp + 0x58]
mov eax, dword [esi + 0x400c]
fld dword [eax + ebx*4]
lea edx, [eax + ebx*4]
fld dword [esp + 0x58]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10035b27
fstp dword [edx]
mov edx, dword [esi + 0x4010]
inc ecx
mov word [edx + ebx*2], cx
jmp 0x10035b29
fstp st(0)
mov eax, edi
test edi, edi
jne 0x10034de6
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
inc ecx
cmp ecx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
jl 0x10034ad0
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x28]
xor ebx, ebx
cmp dword [eax + 4], ebx
sete bl
cmp dword [esp + 0x50], 0
je 0x10035b72
lea ecx, [esp + 0x5c]
push ecx
call fcn.100311c0
add esp, 4
call fcn.10034440
push ebp
call sym.libwebp.dll_WebPFree
push esi
call sym.libwebp.dll_WebPFree
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x58
ret