Function at 0x100c2db9
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, 0x50
mov eax, dword [0x101db764]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x14b4
call fcn.1004e5d1
add esp, 4
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100c3067
mov esi, dword [ebp + 8]
mov edx, dword [eax + 4]
mov ecx, 0x1000
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], edx
sub eax, dword [esi]
cmp eax, ecx
cmovae eax, ecx
lea ecx, [edx + 0x4b0]
mov dword [edx + 0x14b0], eax
push eax
push dword [esi]
push ecx
call fcn.101613e0
add esp, 0xc
mov ebx, dword [esi + 8]
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
add ebx, 8
mov edx, dword [ebp + 8]
and cl, 7
shl eax, cl
shr eax, 0xf8
cmp esi, ebx
cmovbe ebx, esi
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov eax, ebx
mov dword [edx + 8], ebx
mov dword [ebp - 0x28], ebx
shr eax, 3
cmp ebx, esi
movzx eax, byte [edi + eax]
setl cl
add ecx, ebx
mov ebx, edx
mov dword [edx + 8], ecx
xor edx, edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x30], eax
mov eax, ecx
shr eax, 3
cmp ecx, esi
movzx eax, byte [edi + eax]
setl dl
add edx, ecx
xor ecx, ecx
mov dword [ebx + 8], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x2c], eax
mov eax, edx
shr eax, 3
cmp edx, esi
movzx eax, byte [edi + eax]
setl cl
add ecx, edx
xor edx, edx
mov dword [ebx + 8], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x5c], eax
mov eax, ecx
shr eax, 3
cmp ecx, esi
movzx eax, byte [edi + eax]
setl dl
add edx, ecx
xor ecx, ecx
mov dword [ebx + 8], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x58], eax
mov eax, edx
shr eax, 3
cmp edx, esi
movzx eax, byte [edi + eax]
setl cl
add ecx, edx
mov dword [ebx + 8], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x50], eax
mov eax, ecx
shr eax, 3
movzx eax, byte [edi + eax]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp ecx, esi
setl al
lea edx, [eax + ecx + 2]
mov ecx, ebx
cmp esi, edx
cmovbe edx, esi
mov eax, edx
mov dword [ebx + 8], edx
lea ebx, [edx + 8]
mov dword [ebp - 0x34], edx
shr eax, 3
cmp esi, ebx
mov eax, dword [edi + eax]
cmovbe ebx, esi
mov dword [ecx + 8], ebx
mov dword [ebp - 0x3c], eax
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov edx, dword [ebp + 8]
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov dword [edx + 8], ecx
movzx edx, byte [eax + 0x10187780]
cmp edx, 0x1f
mov eax, edx
mov dword [ebp - 0x38], edx
ja 0x100c333a
mov eax, dword [ebp + 8]
lea eax, [eax + 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x3c]
call fcn.101688a0
add esp, 4
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
and cl, 7
shl dword [ebp - 0x20], cl
mov ecx, dword [ebp - 0x44]
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x48]
shr eax, 3
and eax, 0x10
and cl, 7
shl esi, cl
mov ecx, dword [ebp - 0x4c]
shr esi, 4
and esi, 8
and cl, 7
shl ebx, cl
mov ecx, dword [ebp - 0x54]
shr ebx, 5
and ebx, 4
and cl, 7
shl edi, cl
mov ecx, dword [ebp - 0x28]
shr edi, 6
and edi, 2
and cl, 7
shl edx, cl
mov ecx, dword [ebp - 0x20]
shr edx, 7
and edx, 1
or edi, edx
or ebx, edi
shr ecx, 2
or esi, ebx
and ecx, 0x20
mov ebx, dword [ebp - 0x24]
or eax, esi
or ecx, eax
mov eax, dword [ebp - 0x18]
mov edx, ecx
mov ecx, dword [ebp - 0x38]
lea edi, [eax + 0x2a0]
mov esi, eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x48c], 0x18
mov dword [eax + 4], ebx
mov dword [eax + 0x4ac], edx
shr ecx, 0xf8
mov dword [eax + 8], ecx
mov dword [eax + 0x70], 0xffffffff
mov eax, 0x10
push 0x1e0
push eax
push edi
call fcn.10161ee0
add esp, 0xc
mov eax, 2
cmp ebx, 0x75
mov edx, ebx
mov dword [esi + 0x29c], 0
mov dword [esi + 0x80], eax
jle 0x100c3071
lea eax, [edx - 0x76]
cmp eax, 0x1a
ja 0x100c305a
mov ecx, 0x4100411
bt ecx, eax
jb 0x100c308b
cmp edx, 0xf4
je 0x100c308b
jmp 0x100c32a7
mov esi, 0xfffffff4
jmp 0x100c334b
lea eax, [edx - 0x53]
cmp eax, 0x1b
ja 0x100c329e
mov ecx, 0x8020009
bt ecx, eax
jae 0x100c329e
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 8]
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x18]
cmp eax, 3
mov dword [edi + 8], ecx
mov dword [esi + 0xc], eax
ja 0x100c333a
cmp al, 3
jne 0x100c3119
mov eax, dword [ebp + 8]
mov edi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
test edx, edx
mov dword [edi + 8], ecx
mov dword [esi + 0x4a8], edx
jne 0x100c333a
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c3163
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [ecx], ebx
movzx ecx, byte [eax + 0x10187780]
jmp 0x100c318f
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp edx, 0x13
cmovae ecx, eax
mov eax, dword [ebp - 0x18]
add ecx, 8
mov dword [eax + 0x4a0], ecx
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c31e5
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [ecx], ebx
movzx ecx, byte [eax + 0x10187780]
jmp 0x100c3211
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp edx, 0x13
cmovae ecx, eax
mov esi, dword [ebp - 0x18]
lea eax, [ecx + 8]
cmp ecx, 6
mov dword [esi + 0x4a4], eax
ja 0x100c333a
mov ecx, dword [esi + 0x4a0]
cmp eax, ecx
jne 0x100c333a
add ecx, 0xfffffff8
cmp ecx, 6
ja 0x100c333a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [ebx + 0x10]
setl cl
add ecx, eax
lea eax, [esi + 0x300]
mov dword [ebx + 8], ecx
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x18]
xor esi, esi
mov ecx, ebx
inc esi
push eax
push dword [ebp - 0x20]
push esi
mov esi, dword [ebp - 0x18]
push 0
call fcn.100c467e
add esp, 0x10
test eax, eax
js 0x100c333a
or dword [esi + 0x29c], eax
jmp 0x100c32bf
cmp edx, 0x2c
je 0x100c308b
mov eax, 8
mov dword [esi + 0xc], 1
mov dword [esi + 0x4a0], eax
mov dword [esi + 0x4a4], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c330c
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x18]
jmp 0x100c3335
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, dword [ebp - 0x18]
cmp edx, 0x13
jb 0x100c333a
dec eax
cmp eax, 0xc
jbe 0x100c335f
lea eax, [ebp - 0x14]
push eax
call fcn.1004e62a
add esp, 4
mov esi, 0xbebbb1b7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015e65c
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
add eax, 4
mov dword [ecx + 0x14], eax
mov ebx, dword [edi + 8]
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov edx, dword [ebp - 0x18]
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
cmp eax, 2
mov dword [edi + 8], ecx
mov dword [edx + 0x18], eax
je 0x100c36dc
cmp al, 1
je 0x100c340d
test al, al
jne 0x100c333a
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c3488
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x18]
jmp 0x100c34b5
mov eax, dword [ebp + 8]
mov esi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [esi + 0x10]
setl cl
add ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], ecx
mov dword [eax + 0x20], edx
mov ebx, dword [esi + 8]
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c34c9
shr eax, 0x17
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x10187580]
movsx eax, byte [eax + 0x10187980]
add ebx, ecx
cmp esi, ebx
cmovbe ebx, esi
mov dword [edx], ebx
jmp 0x100c351e
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, dword [ebp - 0x18]
cmp edx, 0x13
jb 0x100c333a
dec eax
cmp eax, 0xc
ja 0x100c333a
add eax, 4
mov dword [ecx + 0x1c], eax
jmp 0x100c36dc
or eax, 1
bsr eax, eax
mov dword [ebp - 0x20], eax
xor eax, 0x1f
add eax, ebx
cmp esi, eax
cmovbe eax, esi
mov dword [ebp - 0x24], eax
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x20
mov edi, dword [ebp - 0x1c]
sub edx, ebx
add edx, ecx
and cl, 7
shl eax, cl
mov ecx, ebx
shr eax, cl
cmp esi, edx
cmovbe edx, esi
mov esi, eax
shr eax, 1
and esi, 1
mov dword [edi], edx
mov edx, esi
neg edx
xor eax, edx
add eax, esi
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edi, dword [eax]
mov esi, dword [eax + 0x10]
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c356c
shr eax, 0x17
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x10187580]
movsx eax, byte [eax + 0x10187980]
add ebx, ecx
cmp esi, ebx
cmovbe ebx, esi
mov dword [edx], ebx
jmp 0x100c35c1
or eax, 1
bsr eax, eax
mov dword [ebp - 0x20], eax
xor eax, 0x1f
add eax, ebx
cmp esi, eax
cmovbe eax, esi
mov dword [ebp - 0x24], eax
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x20
mov edi, dword [ebp - 0x1c]
sub edx, ebx
add edx, ecx
and cl, 7
shl eax, cl
mov ecx, ebx
shr eax, cl
cmp esi, edx
cmovbe edx, esi
mov esi, eax
shr eax, 1
and esi, 1
mov dword [edi], edx
mov edx, esi
neg edx
xor eax, edx
add eax, esi
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c37b8
shr eax, 0x17
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ebx, ecx
cmp esi, ebx
cmovbe ebx, esi
mov dword [edx], ebx
mov dword [edi + 0x2c], eax
test eax, eax
je 0x100c36dc
xor esi, esi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c366e
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
cmp dword [ebp - 0x20], ebx
ja 0x100c3660
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
movsx eax, byte [eax + 0x10187980]
mov dword [ecx], ebx
jmp 0x100c36c7
or eax, 1
mov ecx, dword [ebp - 0x20]
bsr eax, eax
mov dword [ebp - 0x24], eax
xor eax, 0x1f
add eax, ebx
cmp ecx, eax
ja 0x100c3685
mov eax, ecx
mov ebx, eax
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov edi, 0x20
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x24]
sub edi, ecx
shr eax, cl
mov ecx, dword [ebp - 0x20]
add edi, ebx
cmp ecx, edi
ja 0x100c36b3
mov edi, ecx
mov edx, dword [ebp - 0x1c]
mov ecx, eax
shr eax, 1
and ecx, 1
mov dword [edx], edi
mov edi, ecx
neg edi
xor eax, edi
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov word [ecx + esi*2 + 0x94], ax
inc esi
cmp esi, dword [ecx + 0x2c]
jl 0x100c3620
mov eax, dword [ebp + 8]
mov esi, eax
mov eax, dword [eax]
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ecx, ebx
cmp edi, ecx
cmovbe ecx, edi
mov dword [esi + 8], ecx
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
cmp dword [ecx + 0x14], 0x32564d53
jne 0x100c373a
mov ecx, 2
cmp eax, ecx
cmovbe eax, ecx
mov dword [esi + 0x30], eax
cmp eax, 0x10
ja 0x100c333a
mov eax, dword [ebp + 8]
mov edi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
mov dword [edi + 8], ecx
mov dword [esi + 0x34], edx
mov ebx, dword [edi + 8]
mov eax, dword [edi]
mov edi, dword [edi + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c37f0
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
cmovbe ebx, edi
mov dword [ecx], ebx
movzx ecx, byte [eax + 0x10187780]
jmp 0x100c381c
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
cmp edx, 0x12
ja 0x100c39cb
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 0xbebbb1b7
jmp 0x100c333a
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp edi, ecx
cmovbe ecx, edi
mov edi, dword [ebp - 0x1c]
mov dword [edi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp edx, 0x13
cmovae ecx, eax
mov eax, dword [ebp + 8]
inc ecx
mov dword [esi + 0x38], ecx
mov ecx, eax
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c386a
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
cmovbe ebx, edi
mov dword [ecx], ebx
movzx ecx, byte [eax + 0x10187780]
jmp 0x100c3896
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp edi, ecx
cmovbe ecx, edi
mov edi, dword [ebp - 0x1c]
mov dword [edi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp edx, 0x13
cmovae ecx, eax
mov eax, dword [ebp + 8]
inc ecx
mov dword [esi + 0x3c], ecx
mov edi, eax
mov eax, dword [eax]
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 3
movzx eax, byte [eax + ecx]
mov ecx, edx
and cl, 7
shl eax, cl
xor ecx, ecx
shr eax, 7
and eax, 1
cmp edx, dword [edi + 0x10]
setl cl
add ecx, edx
mov dword [edi + 8], ecx
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x3ffffffe
ja 0x100c333a
mov edx, 2
sub edx, eax
imul edx, ecx
mov dword [esi + 0x3c], edx
xor edx, edx
test eax, eax
jne 0x100c3919
mov eax, dword [ebp + 8]
mov edi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
mov dword [edi + 8], ecx
mov dword [esi + 0x44], edx
mov eax, dword [esi + 0x38]
cmp eax, 0x7fffffe
ja 0x100c333a
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x7fffffe
ja 0x100c333a
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 0x100c333a
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
mov dword [edi + 8], ecx
mov dword [esi + 0x48], edx
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
xor eax, eax
inc eax
mov dword [edi + 8], ecx
and edx, eax
mov dword [esi + 0x4c], edx
jne 0x100c39e2
lea eax, [esi + 0x4c]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
jmp 0x100c3c93
mov ecx, dword [ebp - 0x18]
dec eax
cmp eax, 0xff
mov dword [ecx + 0x2c], eax
ja 0x100c333a
jmp 0x100c3616
mov ebx, dword [edi + 8]
mov ecx, dword [edi]
mov edi, dword [edi + 0x10]
mov eax, ebx
mov dword [ebp - 0x20], ecx
shr eax, 3
push dword [ecx + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x24], edi
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c3a30
shr eax, 0x17
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ebx, ecx
mov dword [ebp - 0x28], eax
cmp edi, ebx
cmovbe ebx, edi
mov dword [edx], ebx
jmp 0x100c3a65
mov ecx, eax
or ecx, 1
bsr edx, ecx
mov ecx, edi
lea edi, [edx + edx]
xor edi, 0x3f
add edi, ebx
lea ebx, [edx + edx - 0x1f]
cmp ecx, edi
cmovbe edi, ecx
mov ecx, ebx
shr eax, cl
mov ecx, 0xbebbb1b7
mov ebx, edi
dec eax
cmp edx, 0x13
cmovae ecx, eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, 3
push dword [ecx + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c3aab
shr eax, 0x17
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ebx, ecx
mov dword [ebp - 0x30], eax
cmp edi, ebx
cmovbe ebx, edi
mov dword [edx], ebx
jmp 0x100c3adf
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea edi, [edx + edx]
lea ecx, [edx + edx - 0x1f]
xor edi, 0x3f
add edi, ebx
mov ebx, dword [ebp - 0x24]
cmp ebx, edi
cmovbe edi, ebx
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp edx, 0x13
mov ebx, edi
cmovae ecx, eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, 3
push dword [ecx + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c3b25
shr eax, 0x17
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x10187580]
movzx eax, byte [eax + 0x10187780]
add ebx, ecx
mov dword [ebp - 0x2c], eax
cmp edi, ebx
cmovbe ebx, edi
mov dword [edx], ebx
jmp 0x100c3b5d
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea edi, [edx + edx]
lea ecx, [edx + edx - 0x1f]
xor edi, 0x3f
add edi, ebx
mov ebx, edx
mov edx, dword [ebp - 0x24]
cmp edx, edi
cmovbe edi, edx
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp ebx, 0x13
mov ebx, edi
cmovae ecx, eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edi
mov edi, edx
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, 3
push dword [ecx + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c3b9d
shr eax, 0x17
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
cmp edi, ebx
cmovbe ebx, edi
mov dword [edx], ebx
movzx ebx, byte [eax + 0x10187780]
jmp 0x100c3bc9
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
mov ebx, 0xbebbb1b7
cmp edi, ecx
cmovbe ecx, edi
mov edi, dword [ebp - 0x1c]
mov dword [edi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
dec eax
cmp edx, 0x13
cmovae ebx, eax
mov eax, dword [ebp + 0xc]
test byte [eax + 0x42], 1
jne 0x100c3c85
mov eax, dword [esi + 0xc]
mov edi, 2
cmp eax, 1
sete cl
dec eax
cmp eax, edi
mov eax, 0x1fffffff
setb ch
sub edi, dword [esi + 0x40]
shl edi, cl
mov cl, ch
shr eax, cl
cmp dword [ebp - 0x28], eax
ja 0x100c333a
cmp dword [ebp - 0x30], eax
ja 0x100c333a
mov eax, 0x1fffffff
xor edx, edx
div edi
cmp dword [ebp - 0x2c], eax
ja 0x100c333a
cmp ebx, eax
ja 0x100c333a
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x30]
shl eax, 4
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, ch
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
lea edx, [edx + ecx]
mov ecx, eax
shl edx, cl
cmp edx, dword [ebp - 0x20]
jae 0x100c333a
mov ecx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x3c]
lea ecx, [ebx + ecx]
shl eax, 4
imul ecx, edi
cmp ecx, eax
jae 0x100c333a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
imul ebx, edi
shl eax, cl
shl edx, cl
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
imul ecx, edi
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], ebx
jmp 0x100c3c93
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 8]
mov edi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
mov eax, edi
test edx, edx
mov dword [edi + 8], ecx
mov dword [esi + 0x60], edx
je 0x100c40e4
mov edx, eax
mov eax, dword [eax + 8]
xor ebx, ebx
mov edx, dword [edx + 0x10]
mov edi, eax
mov ecx, eax
shr edi, 3
and cl, 7
cmp eax, edx
mov dword [ebp - 0x20], edx
setl bl
add ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov al, byte [edx + edi]
shl al, cl
mov ecx, dword [ebp + 8]
test al, al
mov dword [ecx + 8], ebx
js 0x100c3d0c
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], eax
jmp 0x100c3dc5
mov eax, ebx
mov esi, edx
shr eax, 3
push dword [edx + eax]
call fcn.101688a0
add esp, 4
mov edi, dword [ebp - 0x20]
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add ebx, 8
and cl, 7
shl eax, cl
shr eax, 0xf8
cmp edi, ebx
cmovbe ebx, edi
cmp eax, 0xff
mov dword [edx], ebx
jne 0x100c3da5
mov eax, ebx
shr eax, 3
push dword [esi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
add ebx, 0x10
mov esi, dword [ebp - 0x18]
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x20]
shr eax, 0xf0
cmp ecx, ebx
cmovbe ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], ebx
mov dword [esi + 0x64], eax
mov ebx, dword [ecx + 8]
mov eax, dword [ecx]
mov edi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov edx, dword [ebp + 8]
add ebx, 0x10
and cl, 7
shl eax, cl
shr eax, 0xf0
cmp edi, ebx
cmovbe ebx, edi
mov dword [edx + 8], ebx
mov dword [esi + 0x68], eax
jmp 0x100c3dc5
mov edx, dword [ebp - 0x18]
cmp eax, 0x10
ja 0x100c333a
mov ecx, dword [eax*8 + 0x101bf2a4]
mov eax, dword [eax*8 + 0x101bf2a8]
mov dword [edx + 0x68], eax
mov dword [edx + 0x64], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov edi, edx
mov ecx, edx
shr edi, 3
and cl, 7
cmp edx, eax
setl bl
add ebx, edx
mov edx, dword [ebp + 8]
mov esi, dword [edx]
mov dl, byte [esi + edi]
mov edi, dword [ebp + 8]
shl dl, cl
test dl, dl
sets cl
cmp ebx, eax
setl dl
and dl, cl
movzx edx, dl
add edx, ebx
mov ecx, edx
mov dword [edi + 8], edx
shr ecx, 3
movzx esi, byte [esi + ecx]
mov ecx, edx
and cl, 7
shl esi, cl
xor ecx, ecx
shr esi, 7
cmp edx, eax
mov eax, edi
setl cl
add ecx, edx
mov edx, dword [ebp - 0x18]
and esi, 1
mov dword [edi + 8], ecx
mov dword [edx + 0x6c], esi
je 0x100c3fb3
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [edx + 0x10]
add eax, 3
cmp edx, eax
cmovbe eax, edx
mov dword [esi + 8], eax
mov esi, eax
shr esi, 3
movzx esi, byte [ecx + esi]
mov ecx, eax
and cl, 7
shl esi, cl
xor ecx, ecx
shr esi, 7
and esi, 1
cmp eax, edx
setl cl
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x70], esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
cmp eax, dword [esi + 0x10]
setl cl
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
xor ecx, ecx
inc ecx
and edx, ecx
mov dword [edi + 0x74], edx
je 0x100c3fb3
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
add ebx, 8
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x18]
shr eax, 0xf8
cmp esi, ebx
cmovbe ebx, esi
mov dword [edi + 8], ebx
mov dword [ecx + 0x78], eax
mov ebx, dword [edi + 8]
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
add ebx, 8
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x18]
shr eax, 0xf8
cmp esi, ebx
cmovbe ebx, esi
mov dword [edi + 8], ebx
mov dword [ecx + 0x7c], eax
mov ebx, dword [edi + 8]
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add ebx, 8
and cl, 7
shl eax, cl
shr eax, 0xf8
cmp esi, ebx
cmovbe ebx, esi
mov dword [edi + 8], ebx
mov dword [edx + 0x80], eax
push dword [edx + 0x78]
call fcn.10056634
add esp, 4
test eax, eax
jne 0x100c3f6f
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x78], 2
mov eax, dword [ebp - 0x18]
push dword [eax + 0x7c]
call fcn.10056647
add esp, 4
test eax, eax
jne 0x100c3f8b
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x7c], 2
mov eax, dword [ebp - 0x18]
push dword [eax + 0x80]
call fcn.1005665a
add esp, 4
test eax, eax
mov eax, dword [ebp + 8]
jne 0x100c3fb3
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x80], 2
mov eax, dword [ebp + 8]
mov esi, eax
mov eax, dword [eax + 8]
xor ebx, ebx
mov edi, dword [esi + 0x10]
mov edx, eax
mov ecx, eax
shr edx, 3
and cl, 7
cmp eax, edi
mov dword [ebp - 0x20], edi
mov edi, dword [esi]
setl bl
add ebx, eax
mov al, byte [edi + edx]
mov dword [esi + 8], ebx
shl al, cl
test al, al
jns 0x100c40b0
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c4023
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
cmovbe ebx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], ebx
movzx ecx, byte [eax + 0x10187780]
jmp 0x100c4052
mov ecx, eax
mov esi, dword [ebp - 0x20]
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp edx, 0x13
cmovae ecx, eax
mov eax, dword [ebp + 0xc]
inc ecx
mov dword [eax + 0x14c], ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c4096
shr eax, 0x17
movzx eax, byte [eax + 0x10187580]
add ebx, eax
jmp 0x100c40a3
or eax, 1
bsr eax, eax
xor eax, 0x1f
lea ebx, [ebx + eax*2 + 1]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
cmovbe ebx, eax
mov dword [ecx], ebx
mov eax, ebx
shr eax, 3
mov eax, dword [edi + eax]
mov esi, eax
push eax
call fcn.101688a0
add esp, 4
mov ecx, ebx
and ecx, 7
shl eax, cl
shr eax, 0xff
test eax, eax
je 0x100c40ee
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
sub eax, ebx
cmp eax, 0xa
jge 0x100c40ee
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
add eax, 0xc
mov ecx, eax
jmp 0x100c4377
mov eax, esi
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
movzx eax, al
shl eax, cl
xor ecx, ecx
shr eax, 7
cmp ebx, dword [ebp - 0x20]
setl cl
add ecx, ebx
and eax, 1
mov dword [edx], ecx
mov dword [esi + 0x84], eax
je 0x100c423a
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
add ebx, 0x10
mov edx, dword [ebp + 8]
and cl, 7
shl eax, cl
shr eax, 0xf0
cmp esi, ebx
cmovbe ebx, esi
shl eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, ebx
mov dword [edx + 8], ebx
shr eax, 3
push dword [edi + eax]
mov dword [ebp - 0x28], edi
call fcn.101688a0
add esp, 4
mov ecx, ebx
add ebx, 0x10
and cl, 7
shl eax, cl
shr eax, 0xf0
cmp esi, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
cmovbe ebx, esi
mov dword [eax + 8], ebx
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov edi, eax
mov eax, dword [ebp + 8]
add ebx, 0x10
and cl, 7
shl edi, cl
mov ecx, dword [ebp - 0x28]
shr edi, 0xf0
cmp esi, ebx
cmovbe ebx, esi
mov dword [eax + 8], ebx
mov eax, ebx
shr eax, 3
push dword [ecx + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add ebx, 0x10
and cl, 7
shl eax, cl
shr eax, 0xf0
cmp esi, ebx
cmovbe ebx, esi
or edx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov edx, edx
mov dword [esi + 8], ebx
je 0x100c41f7
shl edi, 0x10
or eax, edi
je 0x100c41f7
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x88], edx
mov dword [ecx + 0x8c], eax
jmp 0x100c4204
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x84], 0
mov eax, dword [ebp + 8]
mov esi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
and edx, 1
cmp eax, dword [esi + 0x10]
setl cl
add ecx, eax
mov dword [esi + 8], ecx
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x90], edx
mov eax, dword [ebp + 8]
mov edi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
and edx, 1
mov dword [edi + 8], ecx
mov dword [esi + 0x480], edx
je 0x100c4281
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.100c56b0
test eax, eax
js 0x100c333a
mov eax, dword [ebp + 8]
mov edi, eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
cmp eax, dword [edi + 0x10]
setl cl
add ecx, eax
and edx, 1
mov dword [edi + 8], ecx
mov dword [esi + 0x484], edx
je 0x100c42c8
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.100c56b0
test eax, eax
js 0x100c333a
cmp dword [esi + 0x480], 0
jne 0x100c42e1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x484], 0
je 0x100c448d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x10]
mov esi, eax
xor eax, eax
cmp ecx, edx
setl al
add eax, ecx
mov dword [esi + 8], eax
mov ecx, dword [ebp + 8]
mov esi, eax
shr esi, 3
mov edi, ecx
mov ecx, dword [ecx]
movzx esi, byte [ecx + esi]
mov ecx, eax
and cl, 7
shl esi, cl
xor ecx, ecx
shr esi, 7
and esi, 1
cmp eax, edx
setl cl
add ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], ecx
mov dword [eax + 0x488], esi
lea eax, [edi + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 8]
cmp dword [edi + 0xc], eax
je 0x100c4371
mov ecx, dword [ebp + 8]
mov edx, eax
shr edx, 3
mov esi, ecx
mov ecx, dword [ecx]
movzx edx, byte [ecx + edx]
mov ecx, eax
and cl, 7
shl edx, cl
xor ecx, ecx
shr edx, 7
cmp eax, dword [esi + 0x10]
setl cl
add ecx, eax
and edx, 1
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x294], edx
jne 0x100c4448
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x100c438b
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [ecx], eax
jl 0x100c333a
cmp dword [esi + 0x294], 0
jne 0x100c43e8
cmp dword [esi + 0x30], 0
jne 0x100c43a6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x238], 0
jle 0x100c43e8
mov dword [esi + 0x298], 0xf
xor eax, eax
mov ecx, dword [esi + 8]
cmp dword [eax*8 + 0x101bf184], ecx
je 0x100c43c6
inc eax
cmp eax, 0x10
jb 0x100c43b5
jmp 0x100c43e8
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax*8 + 0x101bf188]
imul ecx, dword [esi + 0x38]
cdq
idiv ecx
mov ecx, 0xf
cmp eax, 0x10
cmovl ecx, eax
mov dword [esi + 0x298], ecx
mov eax, esi
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x68], 0
jne 0x100c43fd
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x38]
mov eax, dword [esi + eax*4]
test eax, eax
je 0x100c442d
mov edi, dword [ebp - 0x14]
push dword [edi + 8]
push dword [edi + 4]
push dword [eax + 4]
call fcn.1015f7bd
add esp, 0xc
test eax, eax
jne 0x100c4430
lea eax, [ebp - 0x14]
push eax
call fcn.1004e62a
add esp, 4
jmp 0x100c4441
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
lea esi, [esi + eax*4]
push esi
call fcn.1004e62a
add esp, 4
mov dword [esi], edi
xor esi, esi
jmp 0x100c334b
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, eax
mov edi, dword [eax]
mov eax, dword [eax + 8]
mov esi, dword [ecx + 0x10]
cmp eax, esi
setl bl
add ebx, eax
mov eax, ebx
mov dword [ecx + 8], ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c449d
shr eax, 0x17
movzx eax, byte [eax + 0x10187580]
add ebx, eax
jmp 0x100c44aa
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax + 8]
mov edx, dword [ecx + 0x10]
jmp 0x100c42f8
or eax, 1
bsr eax, eax
xor eax, 0x1f
lea ebx, [ebx + eax*2 + 1]
mov eax, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [eax], ebx
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c44e0
shr eax, 0x17
movzx eax, byte [eax + 0x10187580]
add ebx, eax
jmp 0x100c44ed
or eax, 1
bsr eax, eax
xor eax, 0x1f
lea ebx, [ebx + eax*2 + 1]
mov eax, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [eax], ebx
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c4523
shr eax, 0x17
movzx eax, byte [eax + 0x10187580]
add ebx, eax
jmp 0x100c4530
or eax, 1
bsr eax, eax
xor eax, 0x1f
lea ebx, [ebx + eax*2 + 1]
mov eax, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [eax], ebx
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c4566
shr eax, 0x17
movzx eax, byte [eax + 0x10187580]
add ebx, eax
jmp 0x100c4573
or eax, 1
bsr eax, eax
xor eax, 0x1f
lea ebx, [ebx + eax*2 + 1]
mov eax, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [eax], ebx
mov eax, ebx
shr eax, 3
push dword [edi + eax]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c45ba
shr eax, 0x17
movzx ecx, byte [eax + 0x10187580]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
cmp esi, ebx
cmovbe ebx, esi
mov dword [ecx], ebx
movzx ecx, byte [eax + 0x10187780]
jmp 0x100c45e6
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea ecx, [edx + edx]
xor ecx, 0x3f
add ecx, ebx
cmp esi, ecx
cmovbe ecx, esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
lea ecx, [edx + edx - 0x1f]
shr eax, cl
mov ecx, 0xbebbb1b7
dec eax
cmp edx, 0x13
cmovae ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x298], ecx
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0x10]
mov ecx, ebx
shr ecx, 3
push dword [eax + ecx]
call fcn.101688a0
add esp, 4
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x100c4628
shr eax, 0x17
movzx eax, byte [eax + 0x10187580]
add ebx, eax
jmp 0x100c4635
or eax, 1
bsr eax, eax
xor eax, 0x1f
lea ebx, [ebx + eax*2 + 1]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
cmp edi, ebx
cmova edi, ebx
mov dword [eax], edi
cmp dword [ecx], edi
jge 0x100c465c
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [esi + 0x298], eax
mov dword [esi + 0x294], eax
jmp 0x100c4374
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp dword [esi + 0x298], 0x11
jb 0x100c4377
mov dword [esi + 0x298], 0x10
jmp 0x100c333a