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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 4]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
add esi, eax
shl esi, 3
push edi
mov edi, ecx
movss xmm1, dword [0x101f768c]
mov ecx, dword [ebx]
lea edx, [eax*8]
mov eax, dword [ebx + 8]
shl ecx, 3
test ecx, ecx
movss xmm7, dword [0x101f7788]
mov dword [esp + 0x30], edi
lea eax, [ecx + eax*8]
lea ebx, [ecx - 4]
cmove ebx, ecx
cmp eax, dword [esp + 0x3c]
lea ecx, [eax + 4]
mov dword [esp + 0x28], ebx
cmove ecx, eax
test edx, edx
lea eax, [edx - 4]
mov dword [esp + 0x2c], ecx
cmove eax, edx
cmp esi, dword [esp + 0x50]
mov dword [esp + 0x38], eax
lea edx, [esi + 4]
mov eax, dword [ebp + 0x18]
cmove edx, esi
mov dword [esp + 0x54], edx
sub ecx, ebx
sub edx, dword [esp + 0x38]
shr ecx, 2
lea esi, [eax + eax*2]
shr edx, 2
mov eax, dword [edi]
shl esi, 3
add eax, esi
mov dword [esp + 0x58], esi
cmp ecx, dword [eax + 8]
ja 0x1002a544
cmp edx, dword [eax + 0xc]
jbe 0x10029cf0
push str.ysize___orig_ysize_
push 0x39
jmp 0x1002a54b
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x54]
jae 0x1002a42d
movss xmm5, dword [0x101f470c]
mov ecx, eax
movsd xmm6, qword [0x101f7798]
mov dword [esp + 0x1c], ecx
nop dword [eax]
mov eax, dword [ebp + 0x10]
lea esi, [ecx - 1]
mov edx, dword [eax + 0x10]
mov edi, edx
mov eax, dword [eax + 0x2c]
imul edi, ecx
test ecx, ecx
cmove esi, ecx
imul esi, edx
lea ebx, [edi + eax]
lea ecx, [eax + esi]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, dword [esp + 0x50]
cmovae ecx, dword [esp + 0x1c]
imul ecx, edx
mov edx, dword [ebp + 0x10]
add eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x14]
lea edx, [edi + eax]
mov dword [esp + 0x1c], edx
lea edx, [eax + esi]
add eax, ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x28]
mov esi, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x34]
imul edi, dword [ebp + 0x18]
add edi, dword [eax + 0x38]
test ecx, ecx
jne 0x10029f32
mov eax, dword [esp + 0x40]
mov edx, 1
cmp dword [esp + 0x3c], edx
movss xmm4, dword [ebx]
cmovbe edx, ecx
movaps xmm0, xmm4
movss xmm3, dword [eax]
addss xmm0, xmm1
mov eax, dword [esp + 0x44]
xorps xmm1, xmm1
comiss xmm1, xmm0
addss xmm3, dword [eax]
movss dword [esp + 0xc], xmm0
addss xmm3, dword [ebx + ecx*4]
addss xmm3, dword [ebx + edx*4]
mulss xmm3, xmm5
jbe 0x10029ddd
mov dword [esp + 0x5c], ecx
lea eax, [esp + 0x5c]
jmp 0x10029de9
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 0xc], eax
subss xmm4, xmm3
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
movss xmm0, dword [esp + 0x14]
cvtps2pd xmm0, xmm0
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x34]
cvtps2pd xmm1, xmm1
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm1, xmm0
movss xmm0, dword [esp + 0x14]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x101f7768]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
mulsd xmm1, qword [0x101f7760]
cvtpd2ps xmm2, xmm0
cvtpd2ps xmm0, xmm1
addss xmm2, dword [0x101f7774]
addss xmm0, dword [0x101f7688]
divss xmm2, xmm0
movss xmm0, dword [eax]
mov eax, dword [esp + 0x4c]
mulss xmm4, xmm2
addss xmm0, dword [eax]
mov eax, dword [esp + 0x1c]
mulss xmm4, xmm4
addss xmm0, dword [eax + ecx*4]
movss xmm1, dword [eax]
addss xmm0, dword [eax + edx*4]
mulss xmm0, xmm5
subss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm1, xmm2
mulss xmm1, xmm1
mulss xmm1, xmm7
addss xmm1, xmm4
movss dword [esp + 0x14], xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10029ec2
sqrtsd xmm0, xmm0
jmp 0x10029ec7
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
movss xmm0, dword [esp + 0x14]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, dword [0x101f778c]
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10029efd
sqrtsd xmm0, xmm0
jmp 0x10029f02
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov ecx, dword [esp + 0x18]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x101f6a40]
cvtsd2ss xmm0, xmm0
test cl, 3
je 0x10029f23
addss xmm0, dword [edi]
movsd xmm6, qword [0x101f7798]
inc esi
movss dword [edi], xmm0
jmp 0x10029f36
mov ecx, dword [esp + 0x18]
lea eax, [esi + 2]
cmp eax, dword [esp + 0x2c]
jae 0x1002a1a3
xorps xmm1, xmm1
movaps xmm0, xmm6
ucomisd xmm1, xmm0
ja 0x10029f55
sqrtsd xmm0, xmm0
jmp 0x10029f5a
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movsd xmm6, qword [0x101f6a40]
xorps xmm5, xmm5
cvtsd2ss xmm5, xmm0
movss dword [esp + 0x24], xmm5
nop
mov eax, dword [ebx + esi*4]
xorps xmm1, xmm1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + esi*4 + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + esi*4 - 4]
mov dword [esp + 0x14], eax
movss xmm0, dword [esp + 0x14]
addss xmm0, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
movss xmm3, dword [esp + 0x10]
mov eax, dword [eax + esi*4]
mov dword [esp + 0xc], eax
addss xmm0, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x20], eax
addss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm6
cvtpd2ps xmm4, xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x101f768c]
comiss xmm1, xmm0
movss dword [esp + 0x10], xmm0
jbe 0x10029fed
mov dword [esp + 0x64], 0
lea ecx, [esp + 0x64]
jmp 0x10029ff9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], eax
mov eax, dword [ecx]
subss xmm3, xmm4
mov dword [esp + 0x20], eax
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
movss xmm1, dword [esp + 0x10]
cvtps2pd xmm1, xmm1
mov dword [esp + 0x10], eax
mov eax, dword [ecx + esi*4]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + esi*4 + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + esi*4 - 4]
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm2, xmm0
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + esi*4]
mulsd xmm0, qword [0x101f7768]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
cvtpd2ps xmm0, xmm0
mov eax, dword [eax + esi*4]
mov dword [esp + 0x34], eax
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm2
mulsd xmm2, qword [0x101f7760]
cvtpd2ps xmm1, xmm0
cvtpd2ps xmm0, xmm2
addss xmm1, dword [0x101f7774]
addss xmm0, dword [0x101f7688]
divss xmm1, xmm0
cvtps2pd xmm0, xmm3
cvtps2pd xmm2, xmm1
movss xmm1, dword [esp + 0xc]
mulsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
cvtps2pd xmm3, xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [esp + 0x20]
mulsd xmm3, xmm3
addss xmm0, dword [esp + 0x14]
addss xmm0, dword [esp + 0x34]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm6
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
mulsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm0
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x101f7750]
cvtpd2ps xmm1, xmm0
cvtpd2ps xmm0, xmm3
addss xmm1, xmm0
cvtps2pd xmm0, xmm5
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, dword [0x101f778c]
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1002a130
sqrtsd xmm0, xmm0
jmp 0x1002a135
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movsd xmm6, qword [0x101f6a40]
xorps xmm1, xmm1
mov edx, dword [esp + 0x18]
mov ecx, esi
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, xmm6
cvtsd2ss xmm1, xmm0
movss dword [esp + 0xc], xmm1
and edx, 3
je 0x1002a17e
sub ecx, dword [esp + 0x28]
mov eax, dword [edi + ecx*4]
mov dword [esp + 0x10], eax
movss xmm0, dword [esp + 0x10]
addss xmm0, xmm1
movss dword [esp + 0xc], xmm0
jmp 0x1002a182
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
inc esi
movss xmm5, dword [esp + 0x24]
mov dword [edi + ecx*4], eax
lea eax, [esi + 2]
cmp eax, dword [esp + 0x2c]
jb 0x10029f70
mov ecx, dword [esp + 0x18]
jmp 0x1002a1a8
mov edx, ecx
and edx, 3
cmp esi, dword [esp + 0x2c]
jae 0x1002a38e
movsd xmm0, qword [0x101f7798]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1002a1c9
sqrtsd xmm0, xmm0
jmp 0x1002a1ce
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
movss dword [esp + 0x14], xmm6
nop dword [eax + eax]
movss xmm4, dword [ebx + esi*4]
lea eax, [esi + 1]
test esi, esi
movss xmm5, dword [0x101f470c]
lea ecx, [esi - 1]
mov dword [esp + 0x20], eax
cmove ecx, esi
mov edx, eax
cmp eax, dword [esp + 0x3c]
movaps xmm0, xmm4
mov eax, dword [esp + 0x40]
xorps xmm1, xmm1
addss xmm0, dword [0x101f768c]
cmovae edx, esi
movss xmm3, dword [eax + esi*4]
mov eax, dword [esp + 0x44]
comiss xmm1, xmm0
addss xmm3, dword [eax + esi*4]
movss dword [esp + 0x24], xmm0
addss xmm3, dword [ebx + ecx*4]
addss xmm3, dword [ebx + edx*4]
mulss xmm3, xmm5
jbe 0x1002a24c
mov dword [esp + 0x6c], 0
lea eax, [esp + 0x6c]
jmp 0x1002a258
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
subss xmm4, xmm3
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x24]
cvtps2pd xmm1, xmm1
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm1, xmm0
movss xmm0, dword [esp + 0x24]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x101f7768]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
mulsd xmm1, qword [0x101f7760]
cvtpd2ps xmm2, xmm0
cvtpd2ps xmm0, xmm1
addss xmm2, dword [0x101f7774]
addss xmm0, dword [0x101f7688]
divss xmm2, xmm0
movss xmm0, dword [eax + esi*4]
mov eax, dword [esp + 0x4c]
mulss xmm4, xmm2
addss xmm0, dword [eax + esi*4]
mov eax, dword [esp + 0x1c]
mulss xmm4, xmm4
addss xmm0, dword [eax + ecx*4]
movss xmm1, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
mulss xmm0, xmm5
subss xmm1, xmm0
cvtps2pd xmm0, xmm6
mulss xmm1, xmm2
mulss xmm1, xmm1
mulss xmm1, dword [0x101f7788]
addss xmm1, xmm4
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, dword [0x101f778c]
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1002a348
sqrtsd xmm0, xmm0
jmp 0x1002a34d
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov ecx, dword [esp + 0x18]
mov edx, ecx
sub esi, dword [esp + 0x28]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x101f6a40]
cvtsd2ss xmm0, xmm0
and edx, 3
je 0x1002a375
addss xmm0, dword [edi + esi*4]
movss xmm6, dword [esp + 0x14]
movss dword [edi + esi*4], xmm0
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x2c]
jb 0x1002a1e0
mov ebx, dword [esp + 0x28]
movss xmm5, dword [0x101f470c]
cmp edx, 3
jne 0x1002a3fc
mov eax, dword [esp + 0x30]
mov edx, ecx
sub edx, dword [esp + 0x38]
xor ecx, ecx
mov esi, dword [esp + 0x2c]
shr edx, 2
sub esi, ebx
mov eax, dword [eax]
add eax, dword [esp + 0x58]
shr esi, 2
imul edx, dword [eax + 0x10]
add edx, dword [eax + 0x14]
test esi, esi
je 0x1002a3f8
xor eax, eax
nop word [eax + eax]
movss xmm0, dword [eax + edi + 4]
addss xmm0, dword [eax + edi]
addss xmm0, dword [eax + edi + 8]
addss xmm0, dword [eax + edi + 0xc]
add eax, 0x10
mulss xmm0, xmm5
movss dword [edx + ecx*4], xmm0
inc ecx
cmp ecx, esi
jb 0x1002a3d0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
inc ecx
movss xmm1, dword [0x101f768c]
movsd xmm6, qword [0x101f7798]
movss xmm7, dword [0x101f7788]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jb 0x10029d20
mov edi, dword [esp + 0x30]
mov esi, dword [ebp + 0x14]
test bl, 7
mov eax, 0
setne al
test byte [esp + 0x38], 7
mov dword [esp + 0x74], eax
mov eax, 0
setne al
mov dword [esp + 0x78], eax
mov eax, dword [esi + 8]
add eax, eax
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0xc]
add eax, eax
mov dword [esp + 0x80], eax
lea eax, [edi + 0xc]
push eax
mov eax, dword [edi]
add eax, dword [esp + 0x5c]
push esi
push eax
lea eax, [esp + 0x80]
push eax
call fcn.1002d090
xor ebx, ebx
add esp, 0x10
cmp dword [esi + 0xc], ebx
jbe 0x1002a50c
mov edi, dword [esi + 8]
movss xmm2, dword [0x101f7680]
movss xmm3, dword [0x101f4728]
nop
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add eax, ebx
shl ecx, 2
mov esi, dword [edx + 0x1c]
imul esi, eax
add esi, dword [edx + 0x20]
mov edx, dword [ebp + 0x1c]
add esi, ecx
mov edx, dword [edx + 0x10]
imul edx, eax
mov eax, dword [ebp + 0x1c]
add edx, ecx
add edx, dword [eax + 0x14]
xor eax, eax
test edi, edi
je 0x1002a4ff
mov ecx, dword [ebp + 0x14]
sub esi, edx
nop word [eax + eax]
movss xmm1, dword [esi + edx]
movaps xmm0, xmm3
addss xmm1, xmm2
inc eax
divss xmm0, xmm1
movss dword [edx], xmm0
add edx, 4
mov edi, dword [ecx + 8]
cmp eax, edi
jb 0x1002a4e0
mov esi, dword [ebp + 0x14]
inc ebx
cmp ebx, dword [esi + 0xc]
jb 0x1002a4a0
mov edi, dword [esp + 0x30]
movss xmm0, dword [ebp + 0xc]
lea eax, [edi + 0xc]
push eax
push esi
push ecx
mov ecx, dword [ebp + 0x10]
movss dword [esp], xmm0
movss xmm0, dword [ebp + 8]
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x18]
push eax
push ecx
push ecx
movss dword [esp], xmm0
call fcn.1002d510
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.xsize___orig_xsize_
push 0x38
push str.C:Projectslibjxllib_jxl_image.h
push str._s:_d:_JXL_CHECK:__s_n
call fcn.100def30
add esp, 0x10
call fcn.100def20
int3