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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x60]
emms
mov eax, dword [ebp + 0x3b38]
mov edx, dword [eax + 0x10]
lea ecx, [edx - 1]
cmp ecx, 1
jbe 0xac6792
cmp edx, 6
je 0xac6792
cmp edx, 3
je 0xac6a68
mov edx, dword [ebp + 0x3be0]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 0x3be4]
sub edi, ecx
mov edx, dword [edx + 4]
sub edx, ecx
mov ecx, edi
mov ebx, edx
shr ebx, 0x1f
add edx, ebx
mov ebx, edi
shr ebx, 0x1f
add ecx, ebx
sar edx, 1
sar ecx, 1
mov edi, edx
sub edi, ecx
lea ebx, [ecx*4]
mov dword [esp + 0x28], edi
neg ebx
mov edi, ecx
mov dword [esp + 0x24], ecx
jmp 0xac67a6
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
xor ebx, ebx
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], edx
xor edx, edx
lea ecx, [edi + edi*8]
mov edi, dword [esp + 0x28]
lea ecx, [edi + ecx*2]
lea ecx, [eax + ecx*4]
mov edi, dword [ecx + 0x11a8]
test edi, edi
mov dword [esp + 0x20], edi
js 0xac6b46
mov edi, dword [ebp + 0x2b4]
test edi, edi
je 0xac67dd
mov esi, dword [ebp + 0x2c4]
test esi, esi
je 0xac6910
mov edx, dword [ebp + 0x2ac]
test edx, edx
jne 0xac6890
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea edx, [edi + edi*8]
mov edi, dword [esp + 0x28]
lea ecx, [edi + edx*2 + 0x704]
mov edx, dword [eax + ecx*4 + 4]
mov dword [eax + 0x2124], edx
mov edx, dword [ebp + 0x3b3c]
mov edi, dword [edx + ecx*4 + 4]
mov dword [edx + 0x1bc8], esi
mov esi, dword [ebp + 0x4884]
mov dword [edx + 0x2124], edi
lea ecx, [esi*4]
mov esi, dword [eax + 0x2124]
cmp ecx, 8
jae 0xac68d0
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x3b38]
mov eax, dword [edx + 0x10]
lea ecx, [eax - 1]
cmp ecx, 1
jbe 0xac6855
cmp eax, 6
jne 0xac68a0
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0xac687a
mov edi, dword [ebp + 0x298]
test edi, edi
je 0xac687a
mov eax, dword [ebp + 0x3b38]
cmp dword [eax + 0x10], 3
mov dword [esp + 0x34], eax
je 0xac694e
mov eax, dword [esp + 0x20]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ecx + 0x16b8]
mov dword [esp + 0x20], edi
jmp 0xac67eb
mov edi, dword [ebp + 0x4884]
mov eax, dword [ebp + 0x3b3c]
mov esi, dword [edx + 0x1c14]
lea ecx, [edi*4]
cmp ecx, 8
mov edi, dword [eax + 0x1c14]
jae 0xac6a8a
rep movsb byte es:[edi], byte [esi]
jmp 0xac6855
test edi, 1
jne 0xac6ae5
test edi, 2
jne 0xac6af3
test edi, 4
je 0xac683d
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0xac683d
mov edi, dword [esp + 0x24]
lea ebx, [ebp + ebx + 0x3b38]
xor ecx, ecx
mov dword [esp], edx
mov eax, ebp
mov edx, ebx
mov dword [esp + 4], edi
call fcn.00a92580
test edi, edi
mov dword [esp + 0x20], eax
je 0xac6943
mov ecx, dword [ebp + 0x298]
test ecx, ecx
jne 0xac6b08
mov eax, dword [ebp + 0x3b38]
jmp 0xac67eb
movss xmm0, dword [0xdfd190]
mov ecx, dword [ebp + 0x4884]
mulss xmm0, dword [ebp + 0x2a0]
test ecx, ecx
cvttss2si eax, xmm0
mov dword [esp + 0x30], eax
jle 0xac687a
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], esi
mov edi, dword [ebp + 0x3b3c]
mov esi, dword [esp + 0x28]
lea eax, [eax + eax*8]
mov ebx, dword [edi + 0x2ee4]
lea eax, [esi + eax*2 + 0x2dc]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, ecx
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp + 0x4894]
mov ecx, dword [edi + 0x2ee0]
imul edx, esi
add edx, ecx
cmp ecx, ebx
jg 0xac6ac9
mov eax, dword [esp + 0x34]
add edx, edx
mov ebx, dword [eax + 0x2140]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x3c]
mov eax, dword [eax + ebx*4 + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x2124]
lea eax, [eax + esi*4]
mov dword [esp + 0x2c], eax
mov esi, dword [eax]
jmp 0xac6a35
mov ebx, dword [esp + 0x34]
mov ebx, dword [ebx + 0x2148]
movzx ebx, word [ebx + edx]
imul ebx, eax
sub ebx, 0xffffff80
sar ebx, 8
add esi, ebx
mov ebx, dword [esp + 0x2c]
inc ecx
add edx, 2
add dword [esp + 0x20], eax
mov dword [ebx], esi
mov ebx, dword [edi + 0x2ee4]
cmp ebx, ecx
jl 0xac6ac3
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
movzx eax, word [eax + edx]
imul eax, ebx
mov ebx, dword [esp + 0x28]
movzx ebx, word [ebx + edx]
sub eax, 0xffffff80
sar eax, 8
and ebx, 0x3fff
sub eax, ebx
mov ebx, dword [ebp + 0x2ac]
test ebx, ebx
jne 0xac6a00
add esi, eax
jmp 0xac6a19
movzx edx, byte [eax + 0x8a]
xor esi, esi
mov dword [esp + 0x28], esi
inc edx
lea ebx, [edx*4]
mov edi, edx
neg ebx
mov dword [esp + 0x24], edx
jmp 0xac67a6
test edi, 1
jne 0xac6b38
test edi, 2
jne 0xac6b23
test edi, 4
je 0xac68c8
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
rep movsb byte es:[edi], byte [esi]
jmp 0xac6855
mov eax, dword [ebp + 0x4884]
inc dword [esp + 0x38]
mov esi, dword [esp + 0x38]
cmp esi, eax
jl 0xac69b0
mov eax, dword [esp + 0x20]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esi]
inc edi
inc esi
dec ecx
mov byte [edi - 1], al
jmp 0xac68dc
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0xac68e8
mov eax, dword [esp + 0x24]
mov edx, ebx
mov dword [esp + 4], eax
mov ecx, eax
mov dword [esp], eax
mov eax, ebp
call fcn.00a92580
jmp 0xac6943
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0xac6aa2
movzx eax, byte [esi]
inc edi
inc esi
dec ecx
mov byte [edi - 1], al
jmp 0xac6a96
mov ebp, 0x7c8
mov eax, str.encoder_slicetype.c
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], str.cost___0
call sub.msvcrt.dll__assert
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop