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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x70]
xor ecx, ecx
mov edx, dword [esp + 0x48]
cmp eax, 1
push ebx
push ebp
lea ebx, [eax*8]
setg cl
mov eax, dword [esp + 0x7c]
push esi
shl eax, 3
mov esi, 0x40
push edi
mov dword [esp + 0x18], ecx
mov edi, 6
xor ecx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
nop dword [eax]
lea ebp, [esi + ecx]
xor esi, esi
sar ebp, 1
xor ecx, ecx
cmp dword [esp + 0x40], eax
jle 0x1014b96f
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
lea edx, [edx + edi*4]
mov edi, dword [esp + 0x4c]
sub edi, dword [esp + 0x48]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x50]
sub edi, dword [esp + 0x48]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x48]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x40]
sub edi, eax
nop dword [eax + eax]
mov eax, dword [esp + 0x20]
lea edx, [edx - 4]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + edx]
imul eax, ebp
sar eax, 6
add eax, dword [edx]
cmp eax, dword [edx + ebx]
mov ebx, dword [esp + 0x28]
jge 0x1014b94b
test ecx, ecx
jne 0x1014b94b
cmp eax, ebx
jl 0x1014b95e
add esi, ebx
jmp 0x1014b95e
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + edx]
cmp eax, ecx
cmovl ecx, eax
add esi, ecx
mov ecx, 1
sub edi, 1
jne 0x1014b920
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x1c]
cmp esi, edx
jle 0x1014b97f
mov ecx, dword [esp + 0x10]
mov esi, ebp
mov dword [esp + 0x14], esi
jmp 0x1014b989
mov esi, dword [esp + 0x14]
mov ecx, ebp
mov dword [esp + 0x10], ecx
sub edi, 1
mov dword [esp + 0x1c], edi
jne 0x1014b8d0
mov ecx, dword [esp + 0x40]
xor ebp, ebp
xor edi, edi
cmp ecx, eax
jle 0x1014ba30
mov esi, dword [esp + 0x48]
sub dword [esp + 0x4c], esi
lea edx, [esi + ecx*4]
mov ecx, dword [esp + 0x50]
sub ecx, esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x54]
sub ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x74]
sub ecx, esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
sub esi, eax
mov eax, dword [esp + 0x4c]
lea edx, [edx - 4]
mov ecx, dword [edx + eax]
imul ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
sar ecx, 6
add ecx, dword [edx]
cmp ecx, dword [eax + edx]
jge 0x1014ba05
test edi, edi
jne 0x1014ba05
cmp ecx, ebx
mov dword [esp + 0x28], edi
mov eax, ebx
cmovl eax, edi
mov ecx, eax
jmp 0x1014ba0a
mov edi, 1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edx]
cmp ecx, eax
cmovl eax, ecx
mov ecx, dword [esp + 0x20]
add ebp, eax
mov dword [ecx + edx], eax
sub esi, 1
jne 0x1014b9d5
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
mov edi, ecx
dec ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x44]
jle 0x1014bbde
add eax, eax
add ebx, 8
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], ebx
nop word [eax + eax]
mov eax, dword [esp + 0x38]
mov ebx, edx
sub ebx, ebp
xor edx, edx
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x2c]
movsx esi, word [ecx + edi*2]
movsx edi, word [eax + ecx]
mov eax, ebx
mov dword [esp + 0x28], esi
sub esi, edi
div esi
mov edx, eax
mov eax, dword [esp + 0x14]
imul esi, edx
movsx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x28]
sub edi, esi
sub ecx, eax
sub edi, eax
xor eax, eax
lea esi, [edi + ebx]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
test esi, esi
cmovle esi, eax
mov eax, ecx
imul eax, edx
add esi, dword [edi + ebx*4]
add esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
mov eax, dword [eax + ebx*4]
cmp eax, dword [esp + 0x24]
cmovle eax, dword [esp + 0x24]
cmp esi, eax
jl 0x1014bb68
cmp dword [esp + 0x8c], 0
je 0x1014bb49
mov edi, dword [esp + 0x10]
xor edx, edx
cmp edi, 0x11
jle 0x1014baf8
cmp ebx, dword [esp + 0x90]
setge dl
lea edx, [edx*2 + 7]
mov esi, dword [esp + 0x3c]
lea eax, [esi + 2]
cmp edi, eax
jle 0x1014bbc9
imul edx, ecx
mov ecx, dword [esp + 0x84]
shl edx, cl
shl edx, 3
sar edx, 4
cmp dword [esp + 0x1c], edx
jle 0x1014bb2c
cmp ebx, dword [esp + 0x94]
jle 0x1014bbc9
push 1
push 0
push dword [esp + 0x90]
call fcn.1014e000
mov esi, dword [esp + 0x28]
add esp, 0xc
mov edi, dword [esp + 0x74]
jmp 0x1014bb62
push 1
push dword [esp + 0x8c]
call fcn.10137350
add esp, 8
test eax, eax
jne 0x1014bbec
add ebp, 8
sub esi, 8
mov eax, dword [edi + ebx*4]
mov edx, dword [esp + 0x68]
add eax, edx
sub ebp, eax
test edx, edx
jle 0x1014bb88
mov eax, ebx
sub eax, dword [esp + 0x3c]
movzx edx, byte [eax + 0x10247ea4]
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x80]
add ebp, edx
lea ecx, [eax*8]
cmp esi, ecx
jl 0x1014bb9e
add ebp, ecx
xor edx, edx
mov eax, ecx
cmp esi, ecx
cmovl eax, edx
mov dword [edi + ebx*4], eax
mov edi, dword [esp + 0x10]
dec edi
mov dword [esp + 0x10], edi
lea eax, [edi - 1]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x44]
jle 0x1014bbde
mov edx, dword [esp + 0x58]
jmp 0x1014ba60
push 1
push 1
push dword [esp + 0x90]
call fcn.1014e000
add esp, 0xc
jmp 0x1014bbf4
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x60]
mov dword [esp + 0x58], eax
jmp 0x1014bbf0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x68]
cmp edi, esi
jg 0x1014bc13
push 0x189
push str.F:_vcpkg_2024.05.24_buildtreesopus_src_v1.5.1_cfcae413d5.cleancelt_rate.c
push str.assertion_failed:_codedBands___start
call fcn.1012fae0
add esp, 0xc
test ebx, ebx
jle 0x1014bc68
cmp dword [esp + 0x8c], 0
mov eax, edi
je 0x1014bc4a
mov ebx, dword [esp + 0x64]
mov ecx, edi
cmp dword [ebx], edi
cmovl ecx, dword [ebx]
sub eax, esi
inc eax
mov dword [ebx], ecx
push eax
sub ecx, esi
push ecx
push dword [esp + 0x90]
call fcn.1014e540
mov ecx, dword [ebx]
add esp, 0xc
jmp 0x1014bc74
sub eax, esi
inc eax
push eax
push dword [esp + 0x8c]
call fcn.10137550
add esp, 8
lea ecx, [eax + esi]
mov eax, dword [esp + 0x64]
mov dword [eax], ecx
jmp 0x1014bc74
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov dword [eax], 0
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
cmp ecx, esi
jg 0x1014bc82
add ebx, edx
xor eax, eax
cmp ecx, esi
cmovg eax, edx
test eax, eax
jle 0x1014bcc7
cmp dword [esp + 0x8c], 0
push 1
je 0x1014bcb0
mov ecx, dword [esp + 0x70]
push dword [ecx]
push dword [esp + 0x90]
call fcn.1014e000
add esp, 0xc
jmp 0x1014bcd1
push dword [esp + 0x8c]
call fcn.10137350
mov ecx, dword [esp + 0x74]
add esp, 8
mov dword [ecx], eax
jmp 0x1014bcd1
mov ecx, dword [esp + 0x6c]
mov dword [ecx], 0
mov eax, dword [esp + 0x38]
sub ebx, ebp
xor edx, edx
mov dword [esp + 0x58], ebx
mov ebp, dword [eax + 0x20]
lea eax, [esi*2]
add eax, ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x70], eax
movsx ecx, word [ebp + edi*2]
movsx eax, word [eax]
sub ecx, eax
mov eax, ebx
div ecx
mov edx, esi
mov ebx, eax
imul ecx, ebx
movd xmm0, ebx
pshufd xmm2, xmm0, 0
sub dword [esp + 0x58], ecx
mov ecx, edi
sub ecx, esi
cmp esi, edi
jge 0x1014be80
cmp ecx, 0x10
jb 0x1014be59
cmp dword [0x10292ba8], 2
jl 0x1014be59
mov eax, dword [esp + 0x74]
lea eax, [eax + esi*4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
mov dword [esp + 0x44], eax
lea eax, [edi*2]
add eax, ebp
mov ebp, dword [esp + 0x44]
cmp dword [esp + 0x68], eax
ja 0x1014bd6b
cmp ebp, dword [esp + 0x70]
jae 0x1014be59
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
add eax, 0x20
cmp dword [esp + 0x68], eax
ja 0x1014bd84
cmp ebp, eax
jae 0x1014be59
and ecx, 0x8000000f
jns 0x1014bd91
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, dword [esp + 0x74]
mov ebp, edi
sub ebp, ecx
lea ecx, [esi*2 + 8]
lea eax, [eax + esi*4]
mov esi, dword [esp + 0x2c]
add eax, 0x20
nop word [eax + eax]
pmovsxwd xmm0, qword [ecx + esi - 8]
pmovsxwd xmm1, qword [ecx + esi - 6]
psubd xmm1, xmm0
lea ecx, [ecx + 0x20]
movups xmm0, xmmword [eax - 0x20]
add edx, 0x10
lea eax, [eax + 0x40]
pmulld xmm1, xmm2
paddd xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
pmovsxwd xmm0, qword [ecx + esi - 0x20]
pmovsxwd xmm1, qword [ecx + esi - 0x1e]
psubd xmm1, xmm0
movups xmm0, xmmword [eax - 0x50]
pmulld xmm1, xmm2
paddd xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
pmovsxwd xmm0, qword [ecx + esi - 0x18]
pmovsxwd xmm1, qword [ecx + esi - 0x16]
psubd xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
pmulld xmm1, xmm2
paddd xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
pmovsxwd xmm0, qword [ecx + esi - 0x10]
pmovsxwd xmm1, qword [ecx + esi - 0xe]
psubd xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
pmulld xmm1, xmm2
paddd xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp edx, ebp
jl 0x1014bdb0
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x44], edx
cmp edx, edi
jge 0x1014be80
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x74]
mov eax, dword [ebp + 0x20]
movsx ecx, word [eax + edx*2 + 2]
movsx eax, word [eax + edx*2]
sub ecx, eax
imul ecx, ebx
add dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x1014be61
mov edx, dword [esp + 0x3c]
jmp 0x1014be8e
mov edx, esi
cmp esi, edi
jge 0x1014c128
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x74]
nop word [eax + eax]
mov eax, dword [ebp + 0x20]
movsx ecx, word [eax + edx*2 + 2]
movsx eax, word [eax + edx*2]
sub ecx, eax
mov eax, ebx
cmp ebx, ecx
cmovge eax, ecx
add dword [esi + edx*4], eax
sub ebx, eax
inc edx
cmp edx, edi
jl 0x1014bea0
mov ecx, dword [esp + 0x74]
xor edi, edi
mov eax, dword [esp + 0x7c]
sub dword [esp + 0x54], eax
sub eax, ecx
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 0x44], edi
lea ebx, [ecx + esi*4]
mov dword [esp + 0x58], eax
jmp 0x1014bef4
mov edi, dword [esp + 0x44]
cmp dword [ebx], 0
jge 0x1014bf10
push 0x1bc
push str.F:_vcpkg_2024.05.24_buildtreesopus_src_v1.5.1_cfcae413d5.cleancelt_rate.c
push str.assertion_failed:_bits_j____0
call fcn.1012fae0
add esp, 0xc
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x84]
mov edx, dword [ebx]
add edx, edi
movsx ebp, word [eax + esi*2 + 2]
movsx eax, word [eax + esi*2]
sub ebp, eax
shl ebp, cl
mov ecx, dword [esp + 0x68]
add ecx, ebx
mov dword [esp + 0x70], ebp
cmp ebp, 1
jle 0x1014c058
mov eax, dword [esp + 0x54]
mov edi, edx
sub edi, dword [eax + ecx]
xor eax, eax
mov ecx, dword [esp + 0x80]
test edi, edi
cmovle edi, eax
sub edx, edi
mov dword [ebx], edx
cmp ecx, 2
jne 0x1014bf78
cmp ebp, ecx
jle 0x1014bf78
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
jne 0x1014bf78
mov eax, dword [esp + 0x64]
cmp esi, dword [eax]
jge 0x1014bf78
lea eax, [ecx - 1]
jmp 0x1014bf7a
xor eax, eax
imul ebp, ecx
add ebp, eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x38]
movsx ecx, word [eax + esi*2]
add ecx, dword [esp + 0x30]
imul ecx, ebp
imul eax, ebp, 0x15
mov esi, ecx
sar esi, 1
sub esi, eax
cmp dword [esp + 0x70], 2
jne 0x1014bfad
lea eax, [ebp*8]
sar eax, 2
add esi, eax
lea eax, [edx + esi]
mov dword [esp + 0x70], eax
mov eax, ebp
shl eax, 4
cmp dword [esp + 0x70], eax
jge 0x1014bfc4
sar ecx, 2
jmp 0x1014bfd9
lea eax, [ebp*2]
add eax, ebp
shl eax, 3
cmp dword [esp + 0x70], eax
jge 0x1014bfdb
sar ecx, 3
add esi, ecx
xor eax, eax
lea ecx, [edx + ebp*4]
add ecx, esi
cmovns eax, ecx
xor edx, edx
div ebp
mov edx, eax
mov eax, dword [esp + 0x58]
shr edx, 3
mov ecx, edx
imul ecx, dword [esp + 0x80]
mov dword [ebx + eax], edx
mov eax, dword [ebx]
sar eax, 3
cmp ecx, eax
jle 0x1014c013
mov edx, dword [ebx]
mov ecx, dword [esp + 0x18]
sar edx, cl
sar edx, 3
mov ecx, dword [esp + 0x58]
mov eax, 8
cmp edx, eax
cmovl eax, edx
lea edx, [ebp*8]
mov ebp, dword [esp + 0x58]
mov dword [ebx + ecx], eax
xor ecx, ecx
imul edx, eax
mov eax, dword [ebx]
add eax, esi
cmp edx, eax
mov eax, dword [esp + 0x68]
setge cl
add ebp, ebx
mov dword [eax + ebx], ecx
mov eax, dword [ebp]
imul eax, dword [esp + 0x80]
shl eax, 3
sub dword [ebx], eax
jmp 0x1014c089
mov esi, dword [esp + 0x80]
mov eax, edx
mov edi, 0
lea ebp, [esi*8]
sub eax, ebp
mov ebp, dword [esp + 0x58]
cmovns edi, eax
sub edx, edi
add ebp, ebx
mov dword [ebx], edx
mov dword [ebp], 0
mov dword [ecx], 1
test edi, edi
jle 0x1014c0c9
mov ecx, dword [esp + 0x18]
mov esi, edi
mov eax, 8
sub eax, dword [ebp]
lea ecx, [ecx + 3]
sar esi, cl
cmp esi, eax
cmovge esi, eax
mov eax, edi
add dword [ebp], esi
xor ecx, ecx
imul esi, dword [esp + 0x80]
sub eax, dword [esp + 0x44]
shl esi, 3
cmp esi, eax
mov eax, dword [esp + 0x68]
setge cl
sub edi, esi
mov dword [eax + ebx], ecx
cmp dword [ebx], 0
mov dword [esp + 0x44], edi
jge 0x1014c0e9
push 0x203
push str.F:_vcpkg_2024.05.24_buildtreesopus_src_v1.5.1_cfcae413d5.cleancelt_rate.c
push str.assertion_failed:_bits_j____0
call fcn.1012fae0
add esp, 0xc
cmp dword [ebp], 0
jge 0x1014c106
push 0x204
push str.F:_vcpkg_2024.05.24_buildtreesopus_src_v1.5.1_cfcae413d5.cleancelt_rate.c
push str.assertion_failed:_ebits_j____0
call fcn.1012fae0
add esp, 0xc
mov esi, dword [esp + 0x3c]
add ebx, 4
mov edi, dword [esp + 0x10]
inc esi
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x3c], esi
cmp esi, edi
jl 0x1014bef0
mov ecx, dword [esp + 0x44]
jmp 0x1014c12e
xor ecx, ecx
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x40]
mov dword [eax], ecx
cmp esi, edx
jge 0x1014c1bf
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
sub ebp, eax
mov edi, dword [esp + 0x80]
sub ebx, eax
sub edx, dword [esp + 0x3c]
lea esi, [eax + esi*4]
mov dword [esp + 0x40], edx
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
sar eax, cl
sar eax, 3
mov dword [esi + ebp], eax
imul eax, edi
shl eax, 3
cmp eax, dword [esi]
je 0x1014c195
push 0x20e
push str.F:_vcpkg_2024.05.24_buildtreesopus_src_v1.5.1_cfcae413d5.cleancelt_rate.c
push str.assertion_failed:_Cebits_j___BITRES__bits_j_
call fcn.1012fae0
mov edx, dword [esp + 0x4c]
add esp, 0xc
xor ecx, ecx
mov dword [esi], 0
cmp dword [esi + ebp], 1
setl cl
mov dword [ebx + esi], ecx
add esi, 4
sub edx, 1
mov dword [esp + 0x40], edx
jne 0x1014c162
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret