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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x105be7d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
mov dword [ebp - 0x68], ecx
mov ecx, esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x64], edi
call fcn.10222700
imul eax, dword [esi + 0x78], 0xfc
mov ecx, edi
push dword [ebp - 0x40]
add eax, dword [esi + 0x70]
mov edx, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x6c], eax
call fcn.10222240
mov eax, dword [ebp - 0x34]
add esp, 4
cmp dword [eax + 8], 0
je 0x102229f5
imul edi, dword [esi + 0x78], 0xfc
add edi, dword [esi + 0x70]
cmp dword [edi + 0x58], 2
jne 0x1022292e
cmp dword [edi + 0x60], 0
je 0x10222920
mov edx, dword [edi + 0x60]
mov ecx, dword [esi]
call fcn.101d8eb0
mov dword [edi + 0x60], 0
mov dword [edi + 0x58], 1
imul edi, dword [esi + 0x78], 0xfc
add edi, dword [esi + 0x70]
cmp dword [edi + 0x20], 2
jne 0x1022295c
cmp dword [edi + 0x28], 0
je 0x1022294e
mov edx, dword [edi + 0x28]
mov ecx, dword [esi]
call fcn.101d8eb0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 1
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x102229aa
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
lea edx, [esi + 0x20]
call fcn.10222160
mov ecx, dword [ebp - 0x30]
lea edx, [esi + 0x58]
call fcn.102220c0
movdqu xmm0, xmmword [esi + 0x58]
mov eax, dword [ebp + 0x14]
movdqu xmmword [esi + 0x20], xmm0
movdqu xmm0, xmmword [esi + 0x68]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmm0, xmmword [esi + 0x78]
movdqu xmmword [esi + 0x40], xmm0
movq xmm0, qword [esi + 0x88]
movq qword [esi + 0x50], xmm0
cmp eax, 1
jne 0x10222a2d
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
lea edx, [esi + 0x58]
call fcn.10222160
mov ecx, dword [ebp - 0x30]
lea edx, [esi + 0x20]
call fcn.102220c0
movdqu xmm0, xmmword [esi + 0x20]
movdqu xmmword [esi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x30]
movdqu xmmword [esi + 0x68], xmm0
movdqu xmm0, xmmword [esi + 0x40]
movdqu xmmword [esi + 0x78], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [esi + 0x88], xmm0
jmp 0x10222a2d
imul eax, dword [esi + 0x78], 0xfc
mov ecx, dword [esi]
add eax, dword [esi + 0x70]
cmp dword [ebp + 0x14], 0
lea esi, [eax + 0x58]
je 0x10222a0d
lea esi, [eax + 0x20]
cmp dword [esi], 2
jne 0x10222a2d
cmp dword [esi + 8], 0
je 0x10222a20
mov edx, dword [esi + 8]
call fcn.101d8eb0
mov dword [esi + 8], 0
mov dword [esi], 1
mov edi, dword [ebp - 0x44]
cmp dword [edi + 0xb4], 0
je 0x10222aa6
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x10222a9c
mov esi, dword [ebp - 0x30]
push 0
mov eax, dword [esi + 4]
push dword [eax]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x38]
add esp, 8
mov eax, dword [ecx]
test eax, eax
js 0x10222a7a
dec eax
mov edx, 1
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
cmove ecx, edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [esi + 4]
push 0
push dword [eax]
mov eax, dword [eax + 8]
call eax
add esp, 8
cmp dword [ebp - 0x3c], 0
je 0x10222a9c
mov eax, dword [ebp - 0x38]
push eax
push esi
mov eax, dword [eax + 4]
call eax
add esp, 8
mov dword [edi + 0xb4], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
movss xmm1, dword [eax + 0x18]
movss xmm6, dword [eax + 0x14]
movaps xmm0, xmm1
movss xmm5, dword [ecx + 8]
movaps xmm2, xmm6
movss xmm4, dword [ecx]
movss xmm3, dword [ecx + 4]
mulss xmm0, xmm5
mulss xmm2, xmm4
mulss xmm6, xmm3
addss xmm2, xmm0
movss dword [ebp - 0x34], xmm2
movss dword [ebp - 0xb0], xmm2
movss xmm2, dword [ecx + 0xc]
mulss xmm1, xmm2
addss xmm6, xmm1
movss xmm1, dword [eax + 0x20]
movaps xmm0, xmm1
mulss xmm1, xmm2
mulss xmm0, xmm5
movss dword [ebp - 0x58], xmm6
movss dword [ebp - 0xac], xmm6
movss xmm6, dword [eax + 0x1c]
movaps xmm7, xmm6
mulss xmm6, xmm3
mulss xmm7, xmm4
addss xmm6, xmm1
movss xmm1, dword [eax + 0x24]
addss xmm7, xmm0
movss dword [ebp - 0x3c], xmm6
movss dword [ebp - 0xa4], xmm6
movss xmm6, dword [eax + 0x28]
movss dword [ebp - 0x38], xmm7
movaps xmm0, xmm6
movss dword [ebp - 0xa8], xmm7
movaps xmm7, xmm1
mulss xmm0, xmm5
movss xmm5, dword [ebp - 0x58]
mulss xmm1, xmm3
movdqu xmm3, xmmword [ebp - 0xb0]
mulss xmm6, xmm2
mulss xmm7, xmm4
addss xmm6, xmm1
movss xmm1, dword [ebp - 0x3c]
mulss xmm1, dword [ebp - 0x34]
addss xmm7, xmm0
movss xmm0, dword [ebp - 0x38]
mulss xmm0, xmm5
addss xmm6, dword [ecx + 0x14]
addss xmm7, dword [ecx + 0x10]
subss xmm1, xmm0
movss xmm0, dword [0x10588d80]
movdqu xmmword [ebp - 0x2c], xmm3
movss xmm2, xmm7
comiss xmm0, xmm1
unpcklps xmm2, xmm6
movq qword [ebp - 0x1c], xmm2
ja 0x10222bd5
comiss xmm1, dword [0x1058887c]
ja 0x10222bd5
movdqu xmmword [ebp - 0x98], xmm3
movq qword [ebp - 0x88], xmm2
jmp 0x10222c59
movss xmm3, dword [0x10588970]
divss xmm3, xmm1
movss xmm1, dword [0x105890e0]
movaps xmm2, xmm3
movaps xmm4, xmm3
mulss xmm4, dword [ebp - 0x3c]
movaps xmm0, xmm3
mulss xmm0, dword [ebp - 0x38]
mulss xmm3, dword [ebp - 0x34]
mulss xmm2, xmm5
xorps xmm0, xmm1
movss dword [ebp - 0x98], xmm4
mulss xmm4, xmm7
xorps xmm2, xmm1
movss dword [ebp - 0x90], xmm0
movss dword [ebp - 0x94], xmm2
mulss xmm2, xmm7
xorps xmm4, xmm1
movss dword [ebp - 0x8c], xmm3
mulss xmm0, xmm6
mulss xmm3, xmm6
xorps xmm2, xmm1
subss xmm4, xmm0
subss xmm2, xmm3
movss dword [ebp - 0x88], xmm4
movss dword [ebp - 0x84], xmm2
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x30]
mov eax, dword [edi + 0x80]
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 0x78]
dec eax
imul ecx, eax, 0xfc
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x70]
movdqu xmm0, xmmword [ecx + eax]
movdqu xmmword [ebp - 0xc8], xmm0
movq xmm0, qword [ecx + eax + 0x10]
movq qword [ebp - 0xb8], xmm0
movdqu xmm0, xmmword [ebp - 0x2c]
movdqu xmmword [ecx + eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ecx + eax + 0x10], xmm0
mov ecx, dword [esi + 0xc]
call fcn.101df6d0
test eax, eax
je 0x10223133
mov edx, dword [esi + 0xc]
push 0
mov ecx, dword [edx]
shl ecx, 4
add ecx, dword [edx]
add edx, 8
lea eax, [edx + ecx*4]
push eax
call sub.MSVCR120.dll__setjmp3
mov ecx, dword [ebp - 0x64]
add esp, 8
mov dword [ebp - 0x30], ecx
mov esi, dword [ecx + 0xc]
mov edx, dword [esi]
shl edx, 4
add edx, dword [esi]
mov dword [esi + edx*4 + 4], eax
test eax, eax
jne 0x10223130
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x14]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp - 0x14], xmm0
call fcn.101e0910
mov eax, dword [ebp - 0x5c]
movss xmm3, dword [ebp - 0x14]
lea ecx, [eax + 0x2c]
movss xmm4, dword [ebp - 0xc]
movss xmm2, dword [ebp - 0x10]
movss xmm1, dword [ebp - 8]
subss xmm3, dword [ecx]
subss xmm4, dword [ecx]
subss xmm2, dword [eax + 0x30]
subss xmm1, dword [eax + 0x30]
movss xmm5, dword [eax + 0xc]
movss xmm6, dword [eax + 0x10]
divss xmm3, xmm5
divss xmm4, xmm5
divss xmm2, xmm6
comiss xmm3, xmm4
divss xmm1, xmm6
movss dword [ebp - 0x54], xmm3
movss dword [ebp - 0x38], xmm2
movss dword [ebp - 0x40], xmm4
movss dword [ebp - 0x34], xmm1
jbe 0x10222d7e
movaps xmm0, xmm3
movaps xmm3, xmm4
movaps xmm4, xmm0
movss dword [ebp - 0x54], xmm3
movss dword [ebp - 0x40], xmm4
comiss xmm2, xmm1
jbe 0x10222d96
movaps xmm0, xmm2
movaps xmm2, xmm1
movaps xmm1, xmm0
movss dword [ebp - 0x38], xmm2
movss dword [ebp - 0x34], xmm1
mov edi, dword [ebp - 0x60]
movaps xmm0, xmm4
movss xmm4, dword [0x10588970]
subss xmm0, xmm3
mov dword [ebp - 0x50], edi
mov esi, dword [edi + 0x78]
mov dword [ebp - 0x3c], esi
comiss xmm0, xmm4
mov dword [ebp - 0x70], esi
ja 0x102230a3
movaps xmm0, xmm1
subss xmm0, xmm2
comiss xmm0, xmm4
ja 0x102230a3
cvtps2pd xmm0, xmm3
addsd xmm0, qword [0x10588948]
cvtpd2ps xmm0, xmm0
call fcn.101a2b80
cvttss2si esi, xmm0
movss xmm0, dword [ebp - 0x38]
cvtps2pd xmm0, xmm0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x78], esi
addsd xmm0, qword [0x10588948]
cvtpd2ps xmm0, xmm0
call fcn.101a2b80
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x40]
cvtps2pd xmm0, xmm0
mov dword [ebp - 0x48], eax
subsd xmm0, qword [0x10588948]
cvtpd2ps xmm0, xmm0
call fcn.1018f670
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x34]
cvtps2pd xmm0, xmm0
mov dword [ebp - 0x44], eax
subsd xmm0, qword [0x10588948]
cvtpd2ps xmm0, xmm0
call fcn.1018f670
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x40]
comiss xmm0, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
jbe 0x10222e61
cmp dword [ebp - 0x44], esi
jne 0x10222e61
lea eax, [esi + 1]
mov dword [ebp - 0x44], eax
movss xmm0, dword [ebp - 0x34]
comiss xmm0, dword [ebp - 0x38]
mov edx, dword [ebp - 0x48]
jbe 0x10222e79
cmp ecx, edx
jne 0x10222e79
lea ecx, [edx + 1]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x34], edx
cmp edx, ecx
jge 0x10223133
mov dword [ebp - 0x38], esi
cmp esi, dword [ebp - 0x44]
jge 0x1022308f
mov eax, dword [ebp - 0x6c]
movdqu xmm0, xmmword [ebp - 0x2c]
mov ecx, dword [ebp - 0x5c]
movd xmm3, esi
movdqu xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
movss xmm1, dword [eax + 8]
cvtdq2ps xmm3, xmm3
mov esi, dword [edi]
mov dword [ebp - 0x40], esi
movd xmm2, edx
mulss xmm3, dword [ecx + 0xc]
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm3
mulss xmm2, dword [ecx + 0x10]
mulss xmm0, dword [eax]
mulss xmm1, xmm2
addss xmm1, xmm0
addss xmm1, dword [eax + 0x10]
movss dword [eax + 0x10], xmm1
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax + 4]
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm1, xmm0
addss xmm1, dword [eax + 0x14]
movss dword [eax + 0x14], xmm1
mov ecx, dword [edi + 0x74]
mov dword [ebp - 0x7c], ecx
lea eax, [ecx - 1]
cmp dword [edi + 0x78], eax
jne 0x10222f7a
lea eax, [ecx + ecx]
mov ecx, dword [edi + 0x70]
mov dword [ebp - 0x54], ecx
test eax, eax
je 0x10222f46
cmp eax, 0x1041041
ja 0x102231d4
imul eax, eax, 0xfc
mov edx, ecx
mov ecx, esi
push eax
call fcn.101f3180
add esp, 4
test eax, eax
jne 0x10222f6f
jmp 0x102231b1
mov eax, dword [esi + 4]
push 0
push dword [eax]
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi]
push dword [ebp - 0x54]
push dword [eax]
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [esi + 4]
push 0
push dword [eax]
mov eax, dword [eax + 8]
call eax
add esp, 0x18
xor eax, eax
mov dword [edi + 0x70], eax
mov eax, dword [edi + 0x74]
add eax, eax
mov dword [edi + 0x74], eax
imul esi, dword [edi + 0x78], 0xfc
mov ecx, 0x3f
add esi, dword [edi + 0x70]
lea edi, [esi + 0xfc]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
inc dword [edi + 0x78]
imul edx, dword [edi + 0x78], 0xfc
add edx, dword [edi + 0x70]
call fcn.102224c0
mov esi, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
call fcn.101df6d0
test eax, eax
je 0x10223019
mov edx, dword [esi + 0xc]
push 0
mov ecx, dword [edx]
shl ecx, 4
add ecx, dword [edx]
add edx, 8
lea eax, [edx + ecx*4]
push eax
call sub.MSVCR120.dll__setjmp3
mov ecx, dword [ebp - 0x64]
add esp, 8
mov dword [ebp - 0x30], ecx
mov esi, dword [ecx + 0xc]
mov edx, dword [esi]
shl edx, 4
add edx, dword [esi]
mov dword [esi + edx*4 + 4], eax
test eax, eax
jne 0x10222fff
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
push dword [eax + 0x40]
mov edx, dword [eax + 0x3c]
call fcn.10220950
add esp, 4
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edi
jmp 0x1022301c
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
shl ecx, 4
add ecx, dword [edx]
mov eax, dword [edx + ecx*4 + 4]
cmp eax, 3
jge 0x1022304f
inc eax
mov dword [edx + ecx*4 + 4], eax
mov ecx, edi
call fcn.10222770
cmp esi, dword [edi + 0x78]
jge 0x1022304f
mov ecx, edi
call fcn.10222770
cmp esi, dword [edi + 0x78]
jl 0x10223043
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0xc]
mov edx, dword [esi]
mov eax, edx
shl eax, 4
add eax, edx
mov ecx, dword [esi + eax*4 + 4]
lea eax, [edx - 1]
mov dword [esi], eax
cmp ecx, 1
jg 0x102231f1
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
inc esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x38], esi
cmp esi, dword [ebp - 0x44]
jl 0x10222e90
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], esi
inc edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x34], edx
cmp edx, ecx
jl 0x10222e84
jmp 0x10223133
push 0
lea eax, [ebp - 0x2c]
movaps xmm3, xmm5
push eax
push ecx
movss dword [esp], xmm6
lea edx, [ebp - 0x14]
push ecx
mov ecx, dword [edi + 4]
call fcn.101f2f90
movdqu xmm0, xmmword [ebp - 0x2c]
mov eax, dword [ebp - 0x6c]
mov ecx, edi
movdqu xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
call fcn.10222700
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
push dword [edx + 0x40]
mov edx, dword [edx + 0x3c]
call fcn.10220950
add esp, 0x14
mov ecx, edi
call fcn.10222770
cmp esi, dword [edi + 0x78]
jge 0x1022310c
jmp 0x10223100
mov ecx, edi
call fcn.10222770
cmp esi, dword [edi + 0x78]
jl 0x10223100
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x10223121
dec eax
mov dword [ecx + 0x74], eax
jne 0x10223133
jmp 0x10223208
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x10223133
push ecx
call eax
add esp, 4
jmp 0x10223133
mov edi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x30]
mov esi, dword [edx + 0xc]
mov ecx, dword [esi]
shl ecx, 4
add ecx, dword [esi]
cmp dword [esi + ecx*4 + 4], 3
jge 0x1022317c
inc dword [esi + ecx*4 + 4]
imul eax, dword [edi + 0x80], 0xfc
mov ecx, dword [edi + 0x70]
movdqu xmm0, xmmword [ebp - 0xc8]
movdqu xmmword [ecx + eax], xmm0
movq xmm0, qword [ebp - 0xb8]
movq qword [ecx + eax + 0x10], xmm0
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x80], eax
mov esi, dword [edx + 0xc]
mov edx, dword [esi]
mov eax, edx
shl eax, 4
add eax, edx
mov ecx, dword [esi + eax*4 + 4]
lea eax, [edx - 1]
mov dword [esi], eax
cmp ecx, 1
jg 0x10223225
mov ecx, edi
call fcn.10222770
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1033d458
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x7c]
push 0xfc
lea eax, [ecx + ecx]
push eax
push str.resize_array___d_x__d_bytes__failed
push 1
push 0xa6
push str...mupdf_source_fitzmemory.c
push esi
call fcn.101df770
push 0xfc
push eax
push str.resize_array___d_x__d_bytes__failed__integer_overflow_
push 1
push 0xa2
push str...mupdf_source_fitzmemory.c
push esi
call fcn.101df770
push str.cannot_render_pattern_tile
push 0x31b
push str...mupdf_sourcepdfpdf_op_run.c
push dword [ebp - 0x30]
call fcn.101df830
lea eax, [ecx + 0x78]
push eax
push 0x1056476c
push 1
push 0x204
push str...mupdf_source_fitzdevice.c
push dword [ecx + 0x10]
call fcn.101df770
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
call fcn.101df680
int3