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

Disassembly:
push ebp
push edi
xor ebp, ebp
push esi
push ebx
sub esp, 0x54
cmp dword [esp + 0x68], 0x155
ja 0x89f301
imul eax, dword [esp + 0x68], 0x98
lea ebp, [eax + 0xcd1080]
xor ebx, ebx
cmp dword [esp + 0x6c], 0x155
ja 0x89f31b
imul ebx, dword [esp + 0x6c], 0x98
add ebx, 0xcd1080
mov eax, dword [esp + 0x78]
test eax, eax
je 0x89f870
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
not eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x89f340
and dword [esp + 8], 0xfffffff7
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
call fcn.0089d7a0
cmp dword [esp + 0x70], 0x155
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
ja 0x89f37f
imul eax, dword [esp + 0x70], 0x98
add eax, 0xcd1080
mov dword [esp + 0xc], eax
cmp dword [esp + 0x6c], 0x155
mov edx, 0xffffffff
ja 0x89f3d0
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x6c], eax
mov edx, 0x7fffffff
je 0x89f3d0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x89f840
movzx eax, byte [eax + 4]
mov edx, 0xffffffea
test al, al
mov byte [esp + 0x2d], al
je 0x89f3d0
imul eax, dword [esp + 0x6c], 0x98
cmp byte [eax + 0xcd1084], 0
jne 0x89f560
nop
cmp dword [esp + 0x10], edx
je 0x89f422
jge 0x89f54d
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x89f418
mov edx, dword [esp + 0x74]
xor eax, eax
lea ecx, [esp + 0x40]
test edx, edx
mov edx, dword [esp + 0x70]
setne al
neg eax
or eax, 0xfffffff7
mov dword [esp], eax
mov eax, ebx
call fcn.0089d7a0
test eax, eax
js 0x89f412
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x78]
mov dword [edi], eax
add esp, 0x54
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebx + 5]
movzx ecx, byte [ebx + 6]
movzx edi, byte [ebx + 4]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
add ecx, eax
mov eax, edi
movzx eax, al
test eax, eax
je 0x89f498
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
shl esi, cl
cmp eax, 1
mov dword [esp + edx*4 + 0x40], esi
je 0x89f494
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
cmp eax, 2
mov dword [esp + edx*4 + 0x40], esi
je 0x89f494
mov edx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x54]
cmp eax, 3
mov dword [esp + edx*4 + 0x40], esi
je 0x89f494
mov eax, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
shl eax, cl
mov dword [esp + edx*4 + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x44]
add eax, dword [esp + 0x48]
add eax, dword [esp + 0x4c]
test byte [ebx + 8], 4
jne 0x89f4ad
shl eax, 3
sar eax, cl
movzx edx, byte [ebp + 5]
movzx ecx, byte [ebp + 6]
mov dword [esp + 8], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
add ecx, edx
movzx edx, byte [ebp + 4]
test edx, edx
mov ebx, edx
je 0x89f526
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
shl esi, cl
cmp edx, 1
mov dword [esp + eax*4 + 0x40], esi
je 0x89f522
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x34]
cmp edx, 2
mov dword [esp + esi*4 + 0x40], eax
je 0x89f522
mov esi, dword [ebp + 0x50]
mov eax, dword [ebp + 0x54]
cmp edx, 3
mov dword [esp + esi*4 + 0x40], eax
je 0x89f522
mov edx, dword [ebp + 0x74]
mov esi, dword [ebp + 0x70]
shl edx, cl
mov dword [esp + esi*4 + 0x40], edx
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0x44]
add edx, dword [esp + 0x48]
add edx, dword [esp + 0x4c]
test byte [ebp + 8], 4
jne 0x89f53b
shl edx, 3
sar edx, cl
cmp edx, dword [esp + 8]
je 0x89f983
jg 0x89f3dc
mov ebx, dword [esp + 0x68]
jmp 0x89f3e0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov edi, eax
and edi, 2
mov dword [esp + 0x24], edi
jne 0x89f880
movzx edi, byte [esp + 0x2d]
lea edx, [edi - 1]
cmp dl, 1
jbe 0x89fa70
mov edi, dword [esp + 0xc]
mov edi, dword [edi]
test edi, edi
mov esi, edi
mov dword [esp + 0x14], edi
je 0x89f9fb
mov ecx, 4
mov edi, str.yuvj
mov byte [esp + 0x2e], 1
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x20], 3
seta cl
mov esi, ecx
setb cl
mov edx, esi
cmp dl, cl
jne 0x89f9d5
mov eax, dword [ebx + 8]
mov edi, eax
and edi, 2
mov dword [esp + 0x1c], edi
jne 0x89f89f
movzx ecx, byte [ebx + 4]
lea edx, [ecx - 1]
mov byte [esp + 0x14], cl
cmp dl, 1
jbe 0x89fac0
mov edi, dword [ebx]
test edi, edi
mov esi, edi
mov dword [esp + 0x18], edi
je 0x89f9b5
mov edi, str.yuvj
mov ecx, 4
repe cmpsb byte [esi], byte es:[edi]
mov edi, 3
seta cl
mov esi, ecx
setb cl
mov edx, esi
cmp dl, cl
jne 0x89f992
cmp dword [esp + 0x6c], 0xb
je 0x89f8b0
movzx esi, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x14]
mov eax, esi
cmp al, cl
jbe 0x89f63d
movzx esi, cl
test esi, esi
je 0x89f860
test byte [esp + 8], 2
je 0x89f860
mov eax, dword [ebx + 0x20]
mov edx, 0x7ffffffe
lea ecx, [eax - 1]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x18], eax
sub eax, 1
cmp ecx, eax
jge 0x89f676
mov eax, 0x10000
sar eax, cl
sub edx, eax
cmp esi, 1
je 0x89f6f0
mov eax, dword [ebx + 0x40]
lea ecx, [eax - 1]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x18], eax
sub eax, 1
cmp ecx, eax
jge 0x89f69c
mov eax, 0x10000
sar eax, cl
sub edx, eax
cmp esi, 2
je 0x89f6f0
mov eax, dword [ebx + 0x60]
lea ecx, [eax - 1]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x60]
mov dword [esp + 0x18], eax
sub eax, 1
cmp ecx, eax
jge 0x89f6c2
mov eax, 0x10000
sar eax, cl
sub edx, eax
cmp esi, 3
je 0x89f6f0
mov eax, dword [ebx + 0x80]
lea ecx, [eax - 1]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x80]
mov dword [esp + 0x18], eax
sub eax, 1
cmp eax, ecx
jle 0x89f6f0
mov eax, 0x10000
sar eax, cl
sub edx, eax
nop
test byte [esp + 8], 1
je 0x89f765
movzx eax, byte [ebx + 5]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0xc]
movzx ecx, byte [eax + 5]
cmp byte [esp + 0x18], cl
mov byte [esp + 0x28], cl
jbe 0x89f723
movzx ecx, byte [esp + 0x18]
mov eax, 0x100
shl eax, cl
sub edx, eax
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + 6]
movzx ecx, byte [ebx + 6]
cmp cl, al
mov byte [esp + 0x2f], al
jbe 0x89f73c
mov eax, 0x100
shl eax, cl
sub edx, eax
cmp byte [esp + 0x18], 1
sete al
cmp cl, 1
sete cl
and eax, ecx
cmp byte [esp + 0x28], 0
sete cl
test al, cl
je 0x89f765
cmp byte [esp + 0x2f], 0
jne 0x89f765
add edx, 0x200
test byte [esp + 8], 4
je 0x89f7be
cmp edi, 1
je 0x89fad0
jle 0x89fa14
cmp edi, 2
je 0x89fae0
cmp edi, 3
jne 0x89fa82
mov eax, dword [esp + 0x20]
sub eax, 1
cmp eax, 2
jbe 0x89f7d7
lea esi, [esi]
mov eax, esi
mov ecx, dword [ebx + 0x20]
mov esi, dword [esp + 0xc]
shl eax, 0x10
mov esi, dword [esi + 0x20]
sub ecx, 1
cmp dword [ebx + 0x20], esi
jle 0x89f7ba
lea ecx, [esi - 1]
sar eax, cl
sub edx, eax
cmp edi, 1
jne 0x89f7d7
cmp byte [esp + 0x2e], 0
je 0x89f7d7
test byte [esp + 8], 0x20
je 0x89f7d7
sub edx, 0x20000
movzx eax, byte [esp + 0x14]
sub eax, 2
test al, 0xfd
je 0x89f800
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x89f800
movzx eax, byte [esp + 0x2d]
sub eax, 2
test al, 0xfd
je 0x89f850
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x89f850
nop
cmp dword [esp + 0x6c], 0xb
jne 0x89f3d0
test byte [esp + 8], 0x10
je 0x89f3d0
cmp dword [esp + 0x70], 0xb
je 0x89f3d0
cmp byte [esp + 0x2e], 0
je 0x89fa91
sub edx, 0x10000
jmp 0x89f3d0
mov edx, 0xffffffea
jmp 0x89f3d0
test byte [esp + 8], 8
je 0x89f800
sub edx, 0x10000
jmp 0x89f800
mov edx, 0x7ffffffe
jmp 0x89f6f0
mov dword [esp + 8], 0xffffffff
jmp 0x89f333
mov eax, dword [ebx + 8]
mov byte [esp + 0x2e], 1
mov dword [esp + 0x20], 0
mov edi, eax
and edi, 2
mov dword [esp + 0x1c], edi
je 0x89f5d8
movzx eax, byte [ebx + 4]
xor edi, edi
mov byte [esp + 0x14], al
jmp 0x89f61f
movzx eax, byte [esp + 0x2d]
cmp al, 4
jbe 0x89fa30
test byte [esp + 8], 2
mov esi, 4
je 0x89f860
mov eax, 7
cdq
idiv esi
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x18], eax
lea ecx, [edx - 1]
mov edx, 0x7ffffffe
cmp eax, ecx
jge 0x89f8f6
movzx ecx, byte [esp + 0x18]
mov eax, 0x10000
sar eax, cl
sub edx, eax
cmp esi, 1
je 0x89f6f0
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x40]
mov dword [esp + 0x28], ecx
sub ecx, 1
cmp dword [esp + 0x18], ecx
jge 0x89f921
movzx ecx, byte [esp + 0x18]
mov eax, 0x10000
sar eax, cl
sub edx, eax
cmp esi, 2
je 0x89f6f0
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x60]
mov dword [esp + 0x28], ecx
sub ecx, 1
cmp dword [esp + 0x18], ecx
jge 0x89f94c
movzx ecx, byte [esp + 0x18]
mov eax, 0x10000
sar eax, cl
sub edx, eax
cmp esi, 4
jne 0x89f6f0
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x80]
mov dword [esp + 0x28], ecx
sub ecx, 1
cmp ecx, dword [esp + 0x18]
jle 0x89f6f0
movzx ecx, byte [esp + 0x18]
mov eax, 0x10000
sar eax, cl
sub edx, eax
jmp 0x89f6f0
mov eax, edi
cmp bl, al
ja 0x89f3dc
jmp 0x89f54d
mov esi, dword [esp + 0x18]
mov edi, 0xcd05a5
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
mov edi, 4
seta cl
setb dl
cmp cl, dl
je 0x89f61f
xor edi, edi
test al, 0x20
jne 0x89f61f
xor eax, eax
cmp byte [esp + 0x14], 0
sete al
neg eax
or eax, 2
mov edi, eax
jmp 0x89f61f
mov esi, dword [esp + 0x14]
mov ecx, 3
mov edi, 0xcd05a5
mov dword [esp + 0x20], 4
repe cmpsb byte [esi], byte es:[edi]
seta cl
setb dl
cmp cl, dl
je 0x89f5c6
and eax, 0x20
mov byte [esp + 0x2e], 1
cmp eax, 1
sbb eax, eax
and eax, 2
mov dword [esp + 0x20], eax
jmp 0x89f5c6
test edi, edi
jne 0x89fa82
cmp dword [esp + 0x20], 1
jg 0x89f7a0
jmp 0x89f7d7
test byte [esp + 8], 2
movzx esi, al
jne 0x89f8c9
cmp esi, 1
mov edx, 0x7ffffffe
je 0x89f6f0
cmp esi, 2
je 0x89f6f0
cmp esi, 4
je 0x89f860
mov esi, 3
jmp 0x89f6f0
mov byte [esp + 0x2e], 0
mov dword [esp + 0x20], 1
jmp 0x89f5c6
cmp edi, dword [esp + 0x20]
jne 0x89f7a0
jmp 0x89f7be
movzx eax, byte [esp + 0x2d]
sub eax, 2
test al, 0xfd
je 0x89faa9
mov esi, dword [esp + 0x24]
test esi, esi
je 0x89f3d0
test byte [esp + 8], 8
je 0x89f3d0
jmp 0x89f82c
mov edi, 1
jmp 0x89f61f
cmp dword [esp + 0x20], 1
jne 0x89f7a0
jmp 0x89f7d7
cmp dword [esp + 0x20], 2
jne 0x89f7a0
jmp 0x89f7d7