Function at 0x10084bd0
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x10305014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x16b8
call fcn.10059ec0
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100859d5
mov ebx, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov ecx, 0x1000
cmp eax, ecx
cmovae eax, ecx
mov dword [edx + 0x16b4], eax
mov dword [ebp - 0x18], edx
lea ecx, [edx + 0x6b4]
push eax
push dword [ebx]
push ecx
call fcn.10132610
add esp, 0xc
test byte [ebx + 0xc], 7
je 0x100859dc
mov esi, dword [ebx]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov eax, edx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0xf8
mov dword [ebp - 0x24], eax
add edx, 8
cmp edi, edx
cmovb edx, edi
mov dword [ebx + 8], edx
mov eax, edx
shr eax, 3
movzx eax, byte [esi + eax]
mov dword [ebp - 0x28], eax
xor ecx, ecx
cmp edx, edi
setl cl
mov dword [ebp - 0x20], edx
add ecx, edx
mov dword [ebx + 8], ecx
mov eax, ecx
shr eax, 3
movzx eax, byte [esi + eax]
mov dword [ebp - 0x50], eax
xor edx, edx
cmp ecx, edi
setl dl
mov dword [ebp - 0x44], ecx
add edx, ecx
mov dword [ebx + 8], edx
mov eax, edx
shr eax, 3
movzx eax, byte [esi + eax]
mov dword [ebp - 0x4c], eax
xor ecx, ecx
cmp edx, edi
setl cl
mov dword [ebp - 0x3c], edx
add ecx, edx
mov dword [ebx + 8], ecx
mov eax, ecx
shr eax, 3
movzx eax, byte [esi + eax]
mov dword [ebp - 0x48], eax
xor eax, eax
cmp ecx, edi
setl al
mov dword [ebp - 0x34], ecx
add eax, ecx
mov dword [ebx + 8], eax
mov ecx, eax
shr ecx, 3
movzx ecx, byte [esi + ecx]
mov dword [ebp - 0x40], ecx
mov ecx, ebx
xor ebx, ebx
cmp eax, edi
setl bl
mov dword [ebp - 0x30], eax
add ebx, eax
mov eax, ecx
mov dword [ecx + 8], ebx
mov ecx, ebx
shr ecx, 3
movzx ecx, byte [esi + ecx]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
cmp ebx, edi
setl cl
lea edx, [ecx + ebx]
add edx, 2
cmp edi, edx
cmovb edx, edi
mov dword [eax + 8], edx
mov ecx, edx
shr ecx, 3
mov eax, dword [esi + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0xf8
mov dword [ebp - 0x38], eax
add edx, 8
cmp edi, edx
cmovb edx, edi
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, edx
shr ecx, 3
mov esi, dword [esi + ecx]
bswap esi
mov ecx, edx
and cl, 7
shl esi, cl
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add ecx, edx
cmp edi, ecx
cmovb ecx, edi
mov dword [eax + 8], ecx
movzx ecx, byte [esi + 0x102b0fc9]
mov dword [ebp - 0x2c], ecx
cmp ecx, 0x1f
ja 0x10085cd3
and bl, 7
mov ecx, ebx
shl dword [ebp - 0x1c], cl
mov ecx, dword [ebp - 0x30]
and cl, 7
mov ebx, dword [ebp - 0x40]
shl ebx, cl
mov ecx, dword [ebp - 0x34]
and cl, 7
mov edi, dword [ebp - 0x48]
shl edi, cl
mov ecx, dword [ebp - 0x3c]
and cl, 7
mov esi, dword [ebp - 0x4c]
shl esi, cl
mov ecx, dword [ebp - 0x44]
and cl, 7
mov edx, dword [ebp - 0x50]
shl edx, cl
mov ecx, dword [ebp - 0x20]
and cl, 7
mov eax, dword [ebp - 0x28]
shl eax, cl
shr eax, 7
and eax, 1
shr edx, 6
and edx, 2
or edx, eax
shr esi, 5
and esi, 4
or esi, edx
shr edi, 4
and edi, 8
or edi, esi
shr ebx, 3
and ebx, 0x10
or ebx, edi
mov eax, dword [ebp - 0x1c]
shr eax, 2
and eax, 0x20
or eax, ebx
mov ecx, eax
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov dword [esi + 0x690], 0x18
mov edi, dword [ebp - 0x24]
mov dword [esi + 4], edi
mov dword [esi + 0x6b0], ecx
mov eax, dword [ebp - 0x38]
mov dword [esi + 8], eax
mov dword [esi + 0x70], 0xffffffff
lea ebx, [esi + 0x4a4]
push 0x1e0
push 0x10
push ebx
call fcn.10132b90
add esp, 0xc
mov dword [esi + 0x4a0], 0
mov dword [esi + 0x80], 2
cmp edi, 0x75
mov edx, edi
jg 0x10084fa0
lea eax, [edx - 0x53]
cmp eax, 0x1b
ja 0x10084f96
mov ecx, 0x8020009
bt ecx, eax
jae 0x10084f96
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ecx, edx
mov edx, dword [edi + 0x10]
cmp edx, ecx
cmovb ecx, edx
mov dword [edi + 8], ecx
movzx eax, byte [eax + 0x102b0fc9]
mov dword [esi + 0xc], eax
cmp eax, 3
ja 0x10085cd3
cmp al, 3
je 0x10085d4a
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ecx, edx
mov edx, dword [edi + 0x10]
cmp edx, ecx
cmovb ecx, edx
mov dword [edi + 8], ecx
movzx eax, byte [eax + 0x102b0fc9]
add eax, 8
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x6a4], eax
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ecx, edx
mov edx, dword [edi + 0x10]
cmp edx, ecx
cmovb ecx, edx
mov dword [edi + 8], ecx
movzx eax, byte [eax + 0x102b0fc9]
lea edx, [eax + 8]
mov dword [esi + 0x6a8], edx
mov ecx, dword [esi + 0x6a4]
cmp edx, ecx
jne 0x10085cd3
cmp ecx, 0xe
jg 0x10085cd3
cmp al, 6
ja 0x10085cd3
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, ecx
shr edx, 3
movzx eax, byte [eax + edx]
xor edx, edx
cmp ecx, dword [esi + 0x10]
setl dl
add edx, ecx
mov dword [esi + 8], edx
and cl, 7
shl eax, cl
shr eax, 7
and eax, 1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x10], eax
lea eax, [edx + 0x504]
mov ecx, esi
push eax
push ebx
push 1
push 0
call fcn.100860f0
add esp, 0x10
test eax, eax
js 0x10085cd3
mov ecx, dword [ebp - 0x18]
or dword [ecx + 0x4a0], eax
jmp 0x10084fda
cmp edx, 0x2c
jne 0x10084fc2
jmp 0x10084e54
lea eax, [edx - 0x76]
cmp eax, 0x1a
ja 0x10084fb6
mov ecx, 0x4100411
bt ecx, eax
jb 0x10084e54
cmp edx, 0xf4
je 0x10084e54
mov dword [esi + 0xc], 1
mov eax, 8
mov dword [esi + 0x6a4], eax
mov dword [esi + 0x6a8], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
mov ecx, dword [edi + 0x10]
shr eax, 0x17
movzx esi, byte [eax + 0x102b0dc9]
add esi, edx
cmp ecx, esi
cmovb esi, ecx
mov dword [edi + 8], esi
movzx eax, byte [eax + 0x102b0fc9]
cmp eax, 0xc
ja 0x10085cd3
add eax, 4
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ecx, edx
mov edx, dword [edi + 0x10]
cmp edx, ecx
cmovb ecx, edx
mov dword [edi + 8], ecx
lea ecx, [edi + 8]
mov dword [ebp - 0x1c], ecx
movzx eax, byte [eax + 0x102b0fc9]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x100850af
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
mov ecx, dword [edi + 0x10]
shr eax, 0x17
movzx esi, byte [eax + 0x102b0dc9]
add esi, edx
cmp ecx, esi
cmovb esi, ecx
mov dword [edi + 8], esi
movzx eax, byte [eax + 0x102b0fc9]
cmp eax, 0xc
ja 0x10085cd3
add eax, 4
mov ebx, dword [ebp - 0x18]
mov dword [ebx + 0x1c], eax
jmp 0x100850bb
cmp eax, 2
mov ebx, dword [ebp - 0x18]
jne 0x10085d8d
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ecx, edx
mov edx, dword [esi + 0x10]
cmp edx, ecx
cmovb ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + 0x102b0fc9]
mov dword [ebx + 0x30], eax
cmp dword [ecx + 0x14], 0x32564d53
je 0x10085a09
cmp eax, 0x10
ja 0x10085cd3
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
shr edx, 7
mov dword [ebx + 8], eax
and edx, 1
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x34], edx
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
mov esi, dword [ebx + 0x10]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x10085a1c
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add edx, ecx
cmp esi, edx
cmovb edx, esi
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edx
movzx ecx, byte [eax + 0x102b0fc9]
inc ecx
mov dword [edi + 0x38], ecx
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
mov esi, dword [ebx + 0x10]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x10085a54
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add edx, ecx
cmp esi, edx
cmovb edx, esi
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edx
movzx ecx, byte [eax + 0x102b0fc9]
inc ecx
mov dword [edi + 0x3c], ecx
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor edx, edx
cmp ecx, dword [ebx + 0x10]
movzx eax, byte [eax + esi]
setl dl
add edx, ecx
and cl, 7
shl eax, cl
shr eax, 7
mov dword [ebx + 8], edx
and eax, 1
mov dword [edi + 0x40], eax
mov ecx, dword [edi + 0x3c]
cmp ecx, 0x3ffffffe
ja 0x10085cd3
mov edx, 2
sub edx, eax
imul edx, ecx
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x3c], edx
xor edx, edx
test eax, eax
je 0x10085a8c
mov dword [edi + 0x44], edx
mov eax, dword [edi + 0x38]
cmp eax, 0x7fffffe
ja 0x10085cd3
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x3c]
cmp ecx, 0x7fffffe
ja 0x10085cd3
shl ecx, 4
shl eax, 4
push dword [ebp + 0xc]
push 0
push ecx
push eax
call sym.ffmpeg.dll_av_image_check_size
add esp, 0x10
test eax, eax
jne 0x10085cd3
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
setl al
add eax, ecx
movzx edx, byte [edx + esi]
and cl, 7
shl edx, cl
shr edx, 7
mov dword [ebx + 8], eax
and edx, 1
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x48], edx
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [ebx + 8], eax
shr edx, 7
and edx, 1
mov dword [edi + 0x4c], edx
jne 0x100852c8
lea eax, [edi + 0x4c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
jmp 0x10085484
mov edx, dword [ebx]
mov eax, ebx
mov ebx, dword [ebx + 8]
mov eax, dword [eax + 0x10]
mov ecx, ebx
shr ecx, 3
mov esi, dword [edx + ecx]
bswap esi
mov ecx, ebx
and cl, 7
shl esi, cl
cmp esi, 0x8000000
jb 0x10085e93
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add ebx, ecx
cmp eax, ebx
cmovb ebx, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], ebx
movzx ecx, byte [esi + 0x102b0fc9]
mov dword [ebp - 0x24], ecx
mov ecx, ebx
shr ecx, 3
mov esi, dword [edx + ecx]
bswap esi
mov ecx, ebx
and cl, 7
shl esi, cl
cmp esi, 0x8000000
jb 0x10085ed0
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add ebx, ecx
cmp eax, ebx
cmovb ebx, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], ebx
movzx ecx, byte [esi + 0x102b0fc9]
mov dword [ebp - 0x20], ecx
mov ecx, ebx
shr ecx, 3
mov esi, dword [edx + ecx]
bswap esi
mov ecx, ebx
and cl, 7
shl esi, cl
cmp esi, 0x8000000
jb 0x10085f0d
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add ebx, ecx
cmp eax, ebx
cmovb ebx, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], ebx
movzx ecx, byte [esi + 0x102b0fc9]
mov dword [ebp - 0x28], ecx
mov ecx, ebx
shr ecx, 3
mov edx, dword [edx + ecx]
bswap edx
mov ecx, ebx
and cl, 7
shl edx, cl
cmp edx, 0x8000000
jb 0x10085f4a
shr edx, 0x17
movzx ecx, byte [edx + 0x102b0dc9]
add ebx, ecx
cmp eax, ebx
cmovb ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], ebx
movzx esi, byte [edx + 0x102b0fc9]
mov eax, dword [ebp + 0xc]
test byte [eax + 0x42], 1
jne 0x10085f7f
mov eax, dword [edi + 0xc]
cmp eax, 1
sete cl
dec eax
xor ebx, ebx
cmp eax, 2
setb ch
mov eax, edi
mov edi, 2
sub edi, dword [eax + 0x40]
shl edi, cl
mov eax, 0x1fffffff
mov cl, ch
shr eax, cl
cmp dword [ebp - 0x24], eax
ja 0x10085cd3
cmp dword [ebp - 0x20], eax
ja 0x10085cd3
mov eax, 0x1fffffff
xor edx, edx
div edi
cmp dword [ebp - 0x28], eax
ja 0x10085cd3
cmp esi, eax
ja 0x10085cd3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
shl eax, 4
mov bl, ch
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add edx, ecx
mov ecx, ebx
shl edx, cl
cmp edx, eax
jae 0x10085cd3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
shl eax, 4
mov ecx, dword [ebp - 0x28]
add ecx, esi
imul ecx, edi
cmp ecx, eax
jae 0x10085cd3
mov ecx, ebx
mov edx, dword [ebp - 0x24]
shl edx, cl
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x50], edx
mov edx, dword [ebp - 0x20]
shl edx, cl
mov dword [eax + 0x54], edx
mov ecx, dword [ebp - 0x28]
imul ecx, edi
mov dword [eax + 0x58], ecx
imul esi, edi
mov edi, eax
mov dword [eax + 0x5c], esi
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [ebx + 8], eax
shr edx, 7
and edx, 1
mov dword [edi + 0x60], edx
je 0x1008593f
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
mov edi, ecx
shr edi, 3
mov esi, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp - 0x20], esi
cmp ecx, esi
setl dl
add edx, ecx
mov esi, ebx
mov dword [ebp - 0x24], eax
movzx ebx, byte [eax + edi]
mov dword [esi + 8], edx
and cl, 7
shl ebx, cl
test bl, 0x80
jne 0x100854ef
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x64], eax
jmp 0x10085542
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + ecx]
bswap edi
mov ecx, edx
and cl, 7
shl edi, cl
shr edi, 0xf8
add edx, 8
mov eax, dword [ebp - 0x20]
cmp eax, edx
cmovb edx, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edx
cmp edi, 0xff
je 0x10085f8b
cmp edi, 0x10
ja 0x10085cd3
mov eax, dword [edi*8 + 0x102de658]
mov ecx, dword [edi*8 + 0x102de65c]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x68], ecx
mov dword [edx + 0x64], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov edi, ecx
shr edi, 3
mov esi, dword [eax + 0x10]
xor eax, eax
cmp ecx, esi
setl al
add eax, ecx
movzx ebx, byte [edx + edi]
and cl, 7
shl ebx, cl
test bl, 0x80
jne 0x10085aba
mov edi, dword [ebp - 0x18]
mov ecx, eax
shr ecx, 3
xor ebx, ebx
cmp eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], eax
movzx edx, byte [edx + ecx]
setl bl
add ebx, eax
and al, 7
mov ecx, eax
shl edx, cl
mov dword [esi], ebx
shr edx, 7
and edx, 1
mov dword [edi + 0x6c], edx
jne 0x10085ac8
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [eax + 8]
mov edi, ecx
shr edi, 3
mov ebx, dword [eax + 0x10]
xor edx, edx
mov dword [ebp - 0x1c], ebx
cmp ecx, ebx
setl dl
add edx, ecx
movzx ebx, byte [esi + edi]
mov dword [eax + 8], edx
and cl, 7
shl ebx, cl
test bl, 0x80
jne 0x10085c1a
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x84], 1
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
mov ecx, eax
shr ecx, 3
mov edx, dword [edx + ecx]
mov esi, edx
bswap esi
mov ecx, eax
and ecx, 7
shl esi, cl
shr esi, 0xff
test esi, esi
je 0x1008560c
mov esi, dword [ebx + 0xc]
sub esi, eax
cmp esi, 0xa
jl 0x1008593f
xor ebx, ebx
mov esi, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
setl bl
add ebx, eax
shl edx, cl
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
mov ebx, dword [ebp + 8]
shr edx, 7
and edx, 1
mov dword [edi + 0x88], edx
je 0x1008571a
mov esi, dword [ebx]
mov eax, dword [ebx + 8]
mov ecx, eax
shr ecx, 3
mov edx, dword [esi + ecx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
mov edi, dword [ebx + 0x10]
shr edx, 0xf0
add eax, 0x10
cmp edi, eax
cmovb eax, edi
mov dword [ebx + 8], eax
shl edx, 0x10
mov dword [ebp - 0x1c], edx
mov ecx, eax
shr ecx, 3
mov edx, esi
mov esi, dword [esi + ecx]
bswap esi
mov ecx, eax
and cl, 7
shl esi, cl
shr esi, 0xf0
add eax, 0x10
cmp edi, eax
cmovb eax, edi
mov dword [ebx + 8], eax
mov ecx, eax
shr ecx, 3
mov ebx, dword [edx + ecx]
bswap ebx
mov ecx, eax
and cl, 7
shl ebx, cl
shr ebx, 0xf0
add eax, 0x10
cmp edi, eax
cmovb eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov ecx, eax
shr ecx, 3
mov edx, dword [edx + ecx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
shr edx, 0xf0
add eax, 0x10
cmp edi, eax
cmovb eax, edi
or esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
je 0x100859a9
shl ebx, 0x10
or edx, ebx
je 0x100859a9
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x8c], esi
mov dword [edi + 0x90], edx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [ebx + 8], eax
shr edx, 7
and edx, 1
mov dword [edi + 0x94], edx
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [ebx + 8], eax
shr edx, 7
and edx, 1
mov dword [edi + 0x684], edx
jne 0x10085c8c
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [edi + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [edi + 8], eax
shr edx, 7
and edx, 1
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x688], edx
jne 0x10085ca1
mov edi, dword [ebp - 0x18]
cmp dword [edi + 0x684], 0
jne 0x100859bb
cmp dword [edi + 0x688], 0
jne 0x100859bb
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov esi, ecx
shr esi, 3
xor edx, edx
cmp ecx, eax
mov eax, dword [ebx]
movzx eax, byte [eax + esi]
setl dl
add edx, ecx
and cl, 7
shl eax, cl
mov dword [ebx + 8], edx
shr eax, 7
and eax, 1
mov dword [edi + 0x68c], eax
mov ecx, dword [ebx + 8]
cmp dword [ebx + 0xc], ecx
je 0x1008593f
mov edx, dword [ebx]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [ebx + 8], eax
shr edx, 7
and edx, 1
mov dword [edi + 0x498], edx
je 0x1008593f
mov esi, dword [ebx]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
xor ebx, ebx
cmp ecx, eax
setl bl
add ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], ebx
mov ecx, ebx
shr ecx, 3
mov edx, dword [esi + ecx]
bswap edx
mov ecx, ebx
and cl, 7
shl edx, cl
shr edx, 0x17
movzx edx, byte [edx + 0x102b0dc9]
add edx, ebx
cmp eax, edx
cmovb edx, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov ecx, edx
shr ecx, 3
mov edi, dword [esi + ecx]
bswap edi
mov ecx, edx
and cl, 7
shl edi, cl
shr edi, 0x17
movzx ebx, byte [edi + 0x102b0dc9]
add ebx, edx
cmp eax, ebx
cmovb ebx, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], ebx
mov ecx, ebx
shr ecx, 3
mov edx, dword [esi + ecx]
bswap edx
mov ecx, ebx
and cl, 7
shl edx, cl
shr edx, 0x17
movzx edx, byte [edx + 0x102b0dc9]
add edx, ebx
cmp eax, edx
cmovb edx, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov ecx, edx
shr ecx, 3
mov edi, dword [esi + ecx]
bswap edi
mov ecx, edx
and cl, 7
shl edi, cl
shr edi, 0x17
movzx ebx, byte [edi + 0x102b0dc9]
mov edi, dword [ebp - 0x18]
add ebx, edx
cmp eax, ebx
cmovb ebx, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], ebx
mov ecx, ebx
shr ecx, 3
mov edx, dword [esi + ecx]
bswap edx
mov ecx, ebx
and cl, 7
shl edx, cl
shr edx, 0x17
movzx ecx, byte [edx + 0x102b0dc9]
add ecx, ebx
mov esi, dword [ebp + 8]
cmp eax, ecx
cmovb ecx, eax
mov dword [esi + 8], ecx
movzx eax, byte [edx + 0x102b0fc9]
mov dword [edi + 0x49c], eax
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, eax
shr edx, 3
mov edx, dword [ecx + edx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
shr edx, 0x17
movzx ecx, byte [edx + 0x102b0dc9]
add ecx, eax
mov eax, dword [esi + 0x10]
cmp eax, ecx
cmovb ecx, eax
mov dword [esi + 8], ecx
cmp dword [esi + 0xc], ecx
jl 0x10085cb6
cmp dword [edi + 0x49c], 0x11
jae 0x10085cc9
cmp dword [ebp + 0x14], 0
jne 0x10085954
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
cmp dword [ecx + 0xc], eax
jl 0x10085cd3
mov edi, dword [ebp - 0x18]
cmp dword [edi + 0x498], 0
je 0x10085ce9
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x68], 0
mov ebx, dword [ebp - 0x2c]
jne 0x10085977
mov dword [edi + 0x68], 1
mov eax, dword [esi + ebx*4]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x10085d20
lea esi, [esi + ebx*4]
push esi
call fcn.10127400
add esp, 4
mov dword [esi], edi
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10130483
mov eax, esi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x88], 0
jmp 0x100856eb
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
xor ecx, ecx
cmp edx, eax
setl cl
add ecx, edx
mov dword [ebx + 8], ecx
jmp 0x100857aa
mov esi, 0xfffffff4
jmp 0x10085995
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x16b4]
cmp eax, 0xfff
ja 0x10084c35
lea ecx, [eax + 1]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x16b4], ecx
mov byte [edx + eax + 0x6b4], 0x80
jmp 0x10084c35
cmp eax, 3
mov ecx, 2
cmovb eax, ecx
mov dword [ebx + 0x30], eax
jmp 0x10085105
mov ecx, eax
or ecx, 1
bsr edi, ecx
lea ecx, [edi + edi]
mov ebx, ecx
xor ebx, 0x3f
add ebx, edx
cmp esi, ebx
cmovb ebx, esi
mov edx, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp + 8]
add cl, 0xe1
shr eax, cl
dec eax
cmp edi, 0x13
mov edi, dword [ebp - 0x18]
mov ecx, 0xbebbb1b7
cmovae ecx, eax
jmp 0x1008517e
mov ecx, eax
or ecx, 1
bsr edi, ecx
lea ecx, [edi + edi]
mov ebx, ecx
xor ebx, 0x3f
add ebx, edx
cmp esi, ebx
cmovb ebx, esi
mov edx, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp + 8]
add cl, 0xe1
shr eax, cl
dec eax
cmp edi, 0x13
mov edi, dword [ebp - 0x18]
mov ecx, 0xbebbb1b7
cmovae ecx, eax
jmp 0x100851c3
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
setl al
add eax, ecx
movzx edx, byte [edx + esi]
and cl, 7
shl edx, cl
shr edx, 7
mov dword [ebx + 8], eax
and edx, 1
jmp 0x10085219
xor ecx, ecx
cmp eax, esi
setl cl
add eax, ecx
jmp 0x1008556d
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
add ecx, 3
cmp edx, ecx
cmovb ecx, edx
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, edx
mov edx, dword [ebx]
mov dword [ebx + 8], ecx
setl al
add eax, ecx
movzx edx, byte [edx + esi]
and cl, 7
shl edx, cl
shr edx, 7
mov dword [ebx + 8], eax
and edx, 1
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x70], edx
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [ebx + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [ebx + 8], eax
shr edx, 7
and edx, 1
mov dword [edi + 0x74], edx
je 0x1008559e
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edx, eax
shr edx, 3
mov edx, dword [ecx + edx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
mov ecx, dword [edi + 0x10]
shr edx, 0xf8
add eax, 8
cmp ecx, eax
cmovb eax, ecx
mov dword [edi + 8], eax
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x78], edx
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edx, eax
shr edx, 3
mov edx, dword [ecx + edx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
mov ecx, dword [edi + 0x10]
shr edx, 0xf8
add eax, 8
cmp ecx, eax
cmovb eax, ecx
mov dword [edi + 8], eax
mov dword [esi + 0x7c], edx
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edx, eax
shr edx, 3
mov edx, dword [ecx + edx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
mov ecx, dword [edi + 0x10]
shr edx, 0xf8
add eax, 8
cmp ecx, eax
cmovb eax, ecx
mov dword [edi + 8], eax
mov dword [esi + 0x80], edx
push dword [esi + 0x78]
call fcn.10197240
add esp, 4
test eax, eax
jne 0x10085bd3
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x78], 2
mov eax, dword [ebp - 0x18]
push dword [eax + 0x7c]
call fcn.10197260
add esp, 4
test eax, eax
jne 0x10085bef
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x7c], 2
mov eax, dword [ebp - 0x18]
push dword [eax + 0x80]
call fcn.10197280
add esp, 4
test eax, eax
jne 0x1008559e
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x80], 2
jmp 0x1008559e
mov ecx, edx
shr ecx, 3
mov esi, dword [esi + ecx]
bswap esi
mov ecx, edx
and cl, 7
shl esi, cl
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add ecx, edx
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
cmovb ecx, eax
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
movzx eax, byte [esi + 0x102b0fc9]
inc eax
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x84], eax
mov esi, edx
mov edx, dword [edx]
mov ebx, dword [esi + 8]
mov eax, ebx
shr eax, 3
mov eax, dword [edx + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx eax, byte [eax + 0x102b0dc9]
add eax, ebx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
cmovb eax, ecx
mov dword [esi + 8], eax
mov ebx, esi
jmp 0x100855e4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.101c6220
test eax, eax
jns 0x1008574c
jmp 0x10085cd3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.101c6220
test eax, eax
jns 0x10085784
jmp 0x10085cd3
xor eax, eax
mov dword [edi + 0x49c], eax
mov dword [edi + 0x498], eax
jmp 0x1008593f
mov dword [edi + 0x49c], 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.10127400
add esp, 4
mov esi, 0xbebbb1b7
jmp 0x10085995
cmp dword [edi + 0x30], 0
je 0x10085fe2
mov dword [edi + 0x49c], 0xf
mov eax, dword [edi + 8]
lea ecx, [eax - 0xa]
cmp ecx, 0x16
ja case.default.0x10085d11
xor eax, eax
mov edi, dword [ebp - 0x18]
jmp dword [ecx*4 + 0x102de6e0]
xor eax, eax
inc eax
jmp case.0x10085d11.10
push dword [edi + 8]
push dword [edi + 4]
push dword [eax + 4]
call fcn.101316fd
add esp, 0xc
test eax, eax
jne 0x10085985
lea eax, [ebp - 0x14]
push eax
call fcn.10127400
add esp, 4
jmp 0x10085993
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [edi + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [edi + 8], eax
mov eax, edx
shr eax, 7
and eax, 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x6ac], eax
bt edx, 7
jae 0x10084e9f
jmp 0x10085cd3
cmp eax, 1
jne 0x10085cd3
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov esi, ecx
shr esi, 3
xor eax, eax
cmp ecx, dword [edi + 0x10]
movzx edx, byte [edx + esi]
setl al
add eax, ecx
and cl, 7
shl edx, cl
mov dword [edi + 8], eax
shr edx, 7
and edx, 1
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x20], edx
mov ecx, edi
call fcn.101c6110
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
xor eax, ecx
inc eax
mov dword [esi + 0x24], eax
mov ecx, edi
call fcn.101c6110
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
xor eax, ecx
inc eax
mov dword [esi + 0x28], eax
cmp dword [esi + 0x24], 0x80000000
je 0x10085cd3
cmp eax, 0x80000000
je 0x10085cd3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
mov eax, dword [eax + ecx]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x10086017
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ebx, ecx
cmp edx, ebx
cmovb ebx, edx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], ebx
movzx eax, byte [eax + 0x102b0fc9]
mov ecx, dword [ebp - 0x18]
lea esi, [ecx + 0x2c]
mov dword [ecx + 0x2c], eax
test eax, eax
mov ebx, dword [ebp - 0x18]
je 0x100850bb
xor edi, edi
mov ecx, dword [ebp + 8]
call fcn.101c6110
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
xor eax, ecx
inc eax
mov dword [ebx + edi*4 + 0x98], eax
cmp eax, 0x80000000
je 0x10085cd3
inc edi
cmp edi, dword [esi]
mov ebx, dword [ebp - 0x18]
jl 0x10085e61
jmp 0x100850bb
mov ecx, esi
or ecx, 1
bsr ecx, ecx
mov dword [ebp - 0x24], ecx
add ecx, ecx
mov edi, ecx
xor edi, 0x3f
add edi, ebx
cmp eax, edi
cmovb edi, eax
add cl, 0xe1
shr esi, cl
dec esi
cmp dword [ebp - 0x24], 0x13
mov ecx, 0xbebbb1b7
cmovae ecx, esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edi
mov ebx, edi
mov edi, dword [ebp - 0x18]
jmp 0x1008530f
mov ecx, esi
or ecx, 1
bsr ecx, ecx
mov dword [ebp - 0x20], ecx
add ecx, ecx
mov edi, ecx
xor edi, 0x3f
add edi, ebx
cmp eax, edi
cmovb edi, eax
add cl, 0xe1
shr esi, cl
dec esi
cmp dword [ebp - 0x20], 0x13
mov ecx, 0xbebbb1b7
cmovae ecx, esi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edi
mov ebx, edi
mov edi, dword [ebp - 0x18]
jmp 0x1008534c
mov ecx, esi
or ecx, 1
bsr ecx, ecx
mov dword [ebp - 0x28], ecx
add ecx, ecx
mov edi, ecx
xor edi, 0x3f
add edi, ebx
cmp eax, edi
cmovb edi, eax
add cl, 0xe1
shr esi, cl
dec esi
cmp dword [ebp - 0x28], 0x13
mov ecx, 0xbebbb1b7
cmovae ecx, esi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edi
mov ebx, edi
mov edi, dword [ebp - 0x18]
jmp 0x10085389
mov ecx, edx
or ecx, 1
bsr esi, ecx
lea ecx, [esi + esi]
mov edi, ecx
xor edi, 0x3f
add edi, ebx
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov edi, dword [ebp - 0x18]
add cl, 0xe1
shr edx, cl
dec edx
cmp esi, 0x13
mov esi, 0xbebbb1b7
cmovae esi, edx
jmp 0x100853c3
xorps xmm0, xmm0
movups xmmword [edi + 0x50], xmm0
jmp 0x10085481
mov ecx, edx
shr ecx, 3
mov esi, dword [esi + ecx]
bswap esi
mov ecx, edx
and cl, 7
shl esi, cl
shr esi, 0xf0
add edx, 0x10
cmp eax, edx
cmovb edx, eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], edx
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x64], esi
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, eax
shr edx, 3
mov edx, dword [ecx + edx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
mov ecx, dword [ebx + 0x10]
shr edx, 0xf0
add eax, 0x10
cmp ecx, eax
cmovb eax, ecx
mov dword [ebx + 8], eax
mov dword [edi + 0x68], edx
jmp 0x10085542
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1bc], 0
jg 0x10085cf3
jmp case.0x10086006.43
add eax, 0xffffffd8
cmp eax, 0xc
mov edi, dword [ebp - 0x18]
ja case.0x10086006.43
jmp dword [eax*4 + 0x102de73c]
mov eax, 0xa
jmp case.0x10085d11.10
mov ecx, eax
or ecx, 1
bsr edi, ecx
lea ecx, [edi + edi]
mov esi, ecx
xor esi, 0x3f
add esi, ebx
cmp edx, esi
cmovb esi, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx], esi
mov edx, dword [ebp - 0x18]
lea esi, [edx + 0x2c]
cmp edi, 0x12
ja 0x100860cd
mov dword [esi], 0xbebbb1b7
jmp 0x10085cd3
mov eax, 2
jmp case.0x10085d11.10
mov eax, 3
jmp case.0x10085d11.10
mov eax, 4
jmp case.0x10085d11.10
mov eax, 5
jmp case.0x10085d11.10
mov eax, 6
jmp case.0x10085d11.10
mov eax, 7
jmp case.0x10085d11.10
mov eax, 8
jmp case.0x10085d11.10
mov eax, 9
jmp case.0x10085d11.10
mov eax, 0xb
jmp case.0x10085d11.10
mov eax, 0xc
jmp case.0x10085d11.10
mov eax, 0xd
jmp case.0x10085d11.10
mov eax, 0xe
jmp case.0x10085d11.10
mov eax, 0xf
mov eax, dword [eax*8 + 0x102de53c]
mov ecx, dword [edi + 0x3c]
imul ecx, dword [edi + 0x38]
cdq
idiv ecx
cmp eax, 0xf
mov ecx, 0xf
cmovl ecx, eax
mov dword [edi + 0x49c], ecx
jmp case.0x10086006.43
add cl, 0xe1
shr eax, cl
dec eax
mov dword [esi], eax
cmp eax, 0xff
ja 0x10085cd3
jmp 0x10085e54