Function at 0x542550
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
push edi
mov esi, dword [ebx + 0x2c]
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x10]
and eax, 0xffffc000
cdq
mov ecx, dword [esi + 0x64]
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ecx
mov ecx, dword [esi + 0x18]
lea eax, [ecx - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 4], eax
mov edi, dword [esi + 0x1c]
lea eax, [edi - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x48]
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x4c]
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebp - 4]
sar eax, 0xe
mov dword [ebp - 0x34], eax
lea eax, [edx + 1]
mov edx, dword [esi + 0x14]
shl eax, 0xe
sub eax, edx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
shl eax, 0xe
sub edi, eax
add edi, 0x4000
mov dword [ebp - 0x78], edi
mov edi, dword [ebp - 0x64]
lea eax, [edi + 1]
shl eax, 0xe
sub eax, edx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x74]
mov edx, eax
shl edx, 0xe
sub ecx, edx
add ecx, 0x4000
mov dword [ebp - 0x5c], ecx
sub eax, edi
cmp eax, 2
mov dword [ebp - 0x7c], eax
jge 0x54266d
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 4]
cmp eax, 2
mov dword [ebp - 0x70], eax
jge 0x542684
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x14]
mov dword [ebp - 0x44], eax
mov edi, dword [esi + 0x44]
push 0
call sym.vidcap60.exe__SfGetCPUSupport_4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
mov eax, edi
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x34], edx
mov edx, dword [ebx + 0x34]
push edx
mov edx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x64]
push edx
mov edx, dword [ebp - 0x44]
push edx
mov edx, dword [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x58]
push edx
sar eax, 0xe
dec ecx
mov edx, edi
and edx, 0x80003fff
mov dword [ebp - 0x90], ecx
jns 0x5426dc
dec edx
or edx, 0xffffc000
inc edx
push edx
mov edx, dword [ebp - 0x6c]
push edx
mov edx, dword [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x40]
push edx
xor edx, edx
cmp eax, ecx
setne dl
add edx, eax
imul edx, dword [ebp - 0x34]
mov ecx, edx
mov edx, dword [esi + 0x34]
add ecx, edx
push ecx
mov ecx, dword [ebp - 0x34]
imul ecx, eax
mov eax, dword [esi + 8]
imul eax, dword [ebp - 4]
add ecx, edx
mov edx, dword [esi + 4]
push ecx
add eax, edx
push eax
call fcn.00541640
mov eax, dword [ebp - 0x68]
imul dword [ebp - 0x44]
shrd eax, edx, 0xe
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 0x14]
inc ecx
dec eax
cmp ecx, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x34], eax
jge 0x54348e
mov edx, dword [ebp - 0x64]
lea eax, [edx*4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x58]
imul eax, eax, 0xff
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebp - 0x7c]
sar eax, 0xe
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
add edx, 0xfffffffe
dec eax
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x40], eax
jmp 0x542781
mov ecx, dword [ebp - 0x4c]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x80]
imul eax, ecx
add eax, dword [esi + 4]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, edi
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
and edi, 0x80003fff
jns 0x5427b0
dec edi
or edi, 0xffffc000
inc edi
mov ecx, dword [esi + 0x38]
imul ecx, eax
mov eax, dword [ebp - 0x34]
xor edx, edx
cmp dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x20]
sete dl
mov dword [ebp - 0x30], edi
mov edi, dword [esi + 0x34]
lea esi, [edi + ecx]
mov dword [ebp - 0x14], esi
dec edx
and edx, eax
add edx, edi
add edx, ecx
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x20], eax
mov edi, edx
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x20]
sar ecx, 0xe
and eax, 0x80003fff
mov dword [ebp - 0x24], edi
jns 0x542804
dec eax
or eax, 0xffffc000
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
xor edx, edx
cmp ecx, eax
setne dl
mov eax, dword [ebp - 8]
mov dword [ebp - 4], edx
mov edx, 0x4000
sub edx, eax
mov eax, dword [ebp - 0x30]
neg eax
mov dword [ebp - 0x54], eax
add eax, 0x4000
mov dword [ebp - 0x38], eax
imul eax, edx
mov dword [ebp - 0x1c], edx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 8]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
movzx edx, byte [edi + ecx*4 + 2]
imul edx, dword [ebp - 0x1c]
sar eax, 0xe
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, ecx
shl eax, 2
mov dword [ebp - 0x10], eax
movzx eax, byte [esi + ecx*4 + 2]
imul eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
movzx edx, byte [eax + esi + 2]
imul edx, dword [ebp - 0x18]
add dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
movzx edx, byte [eax + edi + 2]
imul edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
shr eax, 0xe
mov byte [ebp - 0x46], al
movzx eax, byte [esi + ecx*4 + 1]
imul eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
movzx eax, byte [edi + ecx*4 + 1]
imul eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + esi + 1]
imul eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + edi + 1]
imul edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx edx, byte [edi + ecx*4]
imul edx, dword [ebp - 0x1c]
shr eax, 0xe
mov byte [ebp - 0x47], al
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edi]
imul eax, dword [ebp - 8]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp - 4], eax
movzx eax, byte [esi + ecx*4]
imul eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + esi]
imul edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, edx
shr eax, 0xe
mov byte [ebp - 0x48], al
movzx eax, byte [esi + ecx*4 + 3]
movzx ecx, byte [edi + ecx*4 + 3]
imul eax, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x1c]
add eax, ecx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + esi + 3]
movzx ecx, byte [ecx + edi + 3]
imul edx, dword [ebp - 0x18]
imul ecx, dword [ebp - 8]
add eax, edx
add eax, ecx
mov ecx, dword [ebx + 0x34]
shr eax, 0xe
test ecx, ecx
mov byte [ebp - 0x45], al
je 0x542991
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x542a94
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx ecx, byte [ebp - 0x48]
sub ecx, edx
movzx edx, byte [ebp - 0x60]
imul ecx, edx
add ecx, 0x80
mov edx, ecx
sar edx, 8
add edx, ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx]
sar edx, 8
add edx, ecx
jns 0x5429c2
xor edx, edx
jmp 0x5429cf
cmp edx, 0xff
jle 0x5429cf
mov edx, 0xff
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
movzx edx, byte [ecx + 1]
movzx ecx, byte [ebp - 0x47]
sub ecx, edx
movzx edx, byte [ebp - 0x60]
imul ecx, edx
add ecx, 0x80
mov edx, ecx
sar edx, 8
add edx, ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + 1]
sar edx, 8
add edx, ecx
jns 0x542a04
xor edx, edx
jmp 0x542a11
cmp edx, 0xff
jle 0x542a11
mov edx, 0xff
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 1], dl
movzx edx, byte [ecx + 2]
movzx ecx, byte [ebp - 0x46]
sub ecx, edx
movzx edx, byte [ebp - 0x60]
imul ecx, edx
add ecx, 0x80
mov edx, ecx
sar edx, 8
add edx, ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + 2]
sar edx, 8
add edx, ecx
jns 0x542a47
xor edx, edx
jmp 0x542a54
cmp edx, 0xff
jle 0x542a54
mov edx, 0xff
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 2], dl
movzx edx, byte [ecx + 3]
movzx ecx, byte [ebp - 0x60]
movzx eax, al
sub eax, edx
imul eax, ecx
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edx
jns 0x542a81
xor ecx, ecx
jmp 0x542a8e
cmp ecx, 0xff
jle 0x542a8e
mov ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx + 3], cl
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x58]
imul dword [ebp - 0x3c]
shrd eax, edx, 0xe
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0x8c]
test eax, eax
mov dword [ebp - 0x20], edx
jle 0x54312d
mov cl, byte [ebp - 0x88]
test cl, 0x40
je 0x542e10
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x1c], ecx
je 0x542ade
dec eax
test eax, eax
mov dword [ebp - 8], eax
je 0x542c71
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
push ebx
mov eax, dword [ebp - 0x30]
mov ebx, 0x3fff
sub ebx, eax
movd xmm0, eax
movd xmm1, ebx
punpckldq xmm1, xmm0
pshuflw xmm1, xmm1, 0xa0
punpcklqdq xmm1, xmm1
psllw xmm1, 2
movdqa xmmword [ebp - 0xb0], xmm1
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x3c]
mov eax, esi
mov ebx, 0x3fff
and eax, ebx
lea ecx, [esi + edi]
and ecx, ebx
mov edx, ebx
sub ebx, eax
sub edx, ecx
movd xmm1, ebx
pinsrw xmm1, eax, 1
pinsrw xmm1, edx, 2
pinsrw xmm1, ecx, 3
pshufd xmm1, xmm1, 0x50
pmulhuw xmm1, xmmword [ebp - 0xb0]
pshuflw xmm7, xmm1, 0xff
pshuflw xmm5, xmm1, 0xaa
pshuflw xmm3, xmm1, 0x55
pshuflw xmm1, xmm1, 0
pshufhw xmm7, xmm7, 0xff
pshufhw xmm5, xmm5, 0xaa
pshufhw xmm3, xmm3, 0x55
pshufhw xmm1, xmm1, 0
mov eax, esi
shr eax, 0xe
lea ebx, [esi + edi]
shr ebx, 0xe
xor ecx, ecx
cmp eax, dword [ebp - 0x18]
setne cl
xor edx, edx
cmp ebx, dword [ebp - 0x18]
setne dl
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x14]
lea edi, [esi + ebx*4]
lea esi, [esi + eax*4]
movd xmm0, dword [esi]
movd xmm2, dword [edi]
punpckldq xmm0, xmm2
movd xmm2, dword [esi + ecx*4]
movd xmm4, dword [edi + edx*4]
punpckldq xmm2, xmm4
mov esi, dword [ebp - 0x24]
lea edi, [esi + ebx*4]
lea esi, [esi + eax*4]
punpcklbw xmm0, xmmword [0x5ebfa0]
psllw xmm0, 5
movd xmm4, dword [esi]
movd xmm6, dword [edi]
punpckldq xmm4, xmm6
pmulhw xmm0, xmm1
movd xmm6, dword [esi + ecx*4]
movd xmm1, dword [edi + edx*4]
punpckldq xmm6, xmm1
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x3c]
punpcklbw xmm2, xmmword [0x5ebfa0]
punpcklbw xmm4, xmmword [0x5ebfa0]
punpcklbw xmm6, xmmword [0x5ebfa0]
psllw xmm2, 5
psllw xmm4, 5
psllw xmm6, 5
mov eax, dword [ebp - 0xc]
pmulhw xmm2, xmm3
pmulhw xmm4, xmm5
pmulhw xmm6, xmm7
paddusw xmm4, xmmword [0x5ebf90]
paddusw xmm0, xmm2
paddusw xmm4, xmm6
paddusw xmm0, xmm4
psrlw xmm0, 3
packuswb xmm0, xmm0
movq qword [eax], xmm0
add eax, 8
mov dword [ebp - 0xc], eax
add esi, edi
add esi, edi
sub dword [ebp - 8], 2
jg 0x542b22
mov dword [ebp - 0x20], esi
pop ebx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
test ecx, ecx
je 0x54312d
mov eax, dword [ebp - 0x20]
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x40]
xor edx, edx
sar ecx, 0xe
cmp ecx, eax
setne dl
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x20]
and edx, 0x80003fff
jns 0x542cad
dec edx
or edx, 0xffffc000
inc edx
mov dword [ebp - 0x14], edx
mov eax, 0x4000
sub eax, edx
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x38]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x14]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
movzx edx, byte [esi + ecx*4 + 2]
imul edx, dword [ebp - 0x18]
sar eax, 0xe
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, ecx
shl eax, 2
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + ecx*4 + 2]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
add edx, eax
movzx eax, byte [ecx + esi + 2]
imul eax, dword [ebp - 0x2c]
add edx, eax
movzx eax, byte [ecx + edi + 2]
imul eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 8]
shr edx, 0xe
mov byte [ecx + 2], dl
movzx edx, byte [esi + eax*4 + 1]
movzx eax, byte [edi + eax*4 + 1]
imul edx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
add edx, eax
movzx eax, byte [ecx + esi + 1]
imul eax, dword [ebp - 0x2c]
movzx ecx, byte [ecx + edi + 1]
add edx, eax
mov eax, dword [ebp - 0x14]
imul ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0xc]
shr edx, 0xe
mov byte [ecx + 1], dl
mov edx, dword [ebp - 0x10]
movzx ecx, byte [edx + edi]
mov edx, dword [ebp - 8]
imul ecx, eax
movzx eax, byte [edi + edx*4]
imul eax, dword [ebp - 0x1c]
add ecx, eax
movzx eax, byte [esi + edx*4]
imul eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add ecx, eax
movzx eax, byte [edx + esi]
imul eax, dword [ebp - 0x2c]
add ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shr ecx, 0xe
mov byte [edx], cl
movzx ecx, byte [esi + eax*4 + 3]
movzx edx, byte [edi + eax*4 + 3]
imul ecx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add ecx, edx
movzx edx, byte [eax + esi + 3]
imul edx, dword [ebp - 0x2c]
add ecx, edx
movzx edx, byte [eax + edi + 3]
imul edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add ecx, edx
shr ecx, 0xe
mov byte [eax + 3], cl
mov ecx, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
add ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x54312d
test cl, 0x10
je 0x542f80
test eax, eax
jle 0x54312d
mov edi, dword [ebp - 0x54]
add edi, 0x3fff
mov dword [ebp - 0x54], edi
mov dword [ebp - 8], eax
jmp 0x542e35
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
cdq
and edx, 0x3fff
add eax, edx
mov esi, eax
sar esi, 0xe
and ecx, 0x80003fff
mov dword [ebp - 0x50], esi
jns 0x542e5c
dec ecx
or ecx, 0xffffc000
inc ecx
mov eax, dword [ebp - 0x40]
xor edx, edx
cmp esi, eax
setne dl
mov esi, 0x3fff
sub esi, ecx
mov eax, esi
imul eax, edi
mov dword [ebp - 0x10], edx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 4], eax
mov eax, ecx
imul eax, edi
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x2c], eax
mov eax, esi
mov esi, dword [ebp - 0x30]
imul eax, esi
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x1c], eax
mov eax, ecx
imul eax, esi
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x18], eax
push ebx
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movd mm1, dword [ebp - 4]
movd mm3, dword [ebp - 0x2c]
movd mm5, dword [ebp - 0x1c]
movd mm7, dword [ebp - 0x18]
lea esi, [esi + eax*4]
lea ebx, [ebx + eax*4]
pxor mm0, mm0
pxor mm2, mm2
pxor mm4, mm4
pxor mm6, mm6
punpcklwd mm1, mm1
punpcklwd mm3, mm3
punpcklwd mm5, mm5
punpcklwd mm7, mm7
punpcklbw mm0, dword [esi]
punpcklbw mm2, dword [esi + ecx*4]
punpcklbw mm4, dword [ebx]
punpcklbw mm6, dword [ebx + ecx*4]
punpckldq mm1, mm1
punpckldq mm3, mm3
punpckldq mm5, mm5
punpckldq mm7, mm7
psrlw mm0, 3
psrlw mm2, 3
psrlw mm4, 3
psrlw mm6, 3
pmulhw mm0, mm1
pmulhw mm2, mm3
pmulhw mm4, mm5
pmulhw mm6, mm7
paddusw mm4, qword [0x6121b4]
paddusw mm0, mm2
paddusw mm4, mm6
paddusw mm0, mm4
psrlw mm0, 3
packuswb mm0, mm0
movd dword [edi], mm0
emms
pop ebx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 8]
add edx, 4
dec eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], eax
jne 0x542e32
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
jmp 0x54312d
test eax, eax
jle 0x54312d
mov dword [ebp - 0x2c], eax
jmp 0x542f90
mov eax, dword [ebp - 0x20]
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x40]
xor edx, edx
sar ecx, 0xe
cmp ecx, eax
setne dl
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x20]
and edx, 0x80003fff
jns 0x542fc4
dec edx
or edx, 0xffffc000
inc edx
mov dword [ebp - 0x1c], edx
mov eax, 0x4000
sub eax, edx
mov dword [ebp - 0x50], eax
imul eax, dword [ebp - 0x38]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x1c]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
movzx edx, byte [esi + ecx*4 + 2]
imul edx, dword [ebp - 0x18]
sar eax, 0xe
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
add eax, ecx
shl eax, 2
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + ecx*4 + 2]
imul eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add edx, eax
movzx eax, byte [esi + ecx + 2]
imul eax, dword [ebp - 8]
add edx, eax
movzx eax, byte [edi + ecx + 2]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 0x14]
shr edx, 0xe
mov byte [ecx + 2], dl
movzx edx, byte [esi + eax*4 + 1]
movzx eax, byte [edi + eax*4 + 1]
imul edx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add edx, eax
movzx eax, byte [esi + ecx + 1]
imul eax, dword [ebp - 8]
movzx ecx, byte [edi + ecx + 1]
add edx, eax
mov eax, dword [ebp - 0x1c]
imul ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0xc]
shr edx, 0xe
mov byte [ecx + 1], dl
mov ecx, dword [ebp - 0x10]
movzx edx, byte [esi + ecx]
movzx ecx, byte [edi + ecx]
imul edx, dword [ebp - 8]
imul ecx, eax
mov eax, dword [ebp - 0x14]
add edx, ecx
movzx ecx, byte [edi + eax*4]
imul ecx, dword [ebp - 0x24]
movzx eax, byte [esi + eax*4]
add edx, ecx
mov ecx, dword [ebp - 0x18]
imul eax, ecx
add edx, eax
mov eax, dword [ebp - 0xc]
shr edx, 0xe
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
movzx edx, byte [esi + eax*4 + 3]
movzx eax, byte [edi + eax*4 + 3]
imul edx, ecx
imul eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add edx, eax
movzx eax, byte [esi + ecx + 3]
imul eax, dword [ebp - 8]
add edx, eax
movzx eax, byte [edi + ecx + 3]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
add edx, eax
mov eax, dword [ebp - 0xc]
shr edx, 0xe
mov byte [eax + 3], dl
mov edx, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add edx, ecx
dec eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], eax
jne 0x542f90
mov eax, dword [ebp - 0x7c]
xor edx, edx
cmp eax, 1
mov word [ebp - 0x27], dx
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x25], dl
jle 0x54346b
cmp eax, 2
jle 0x54316e
mov eax, dword [ebp - 0x3c]
imul dword [ebp - 0x5c]
shrd eax, edx, 0xe
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
sub eax, edx
add ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebp - 0x40]
mov ecx, eax
sar ecx, 0xe
cmp ecx, edx
jne 0x543220
movzx eax, byte [esi + edx*4 + 2]
imul eax, dword [ebp - 0x38]
movzx edx, byte [edi + edx*4 + 2]
mov ecx, dword [ebp - 0x30]
imul edx, ecx
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebp - 0x40]
sar eax, 0xe
mov byte [ebp - 0x26], al
movzx eax, byte [esi + edx*4 + 1]
imul eax, dword [ebp - 0x38]
movzx edx, byte [edi + edx*4 + 1]
imul edx, ecx
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebp - 0x40]
sar eax, 0xe
mov byte [ebp - 0x27], al
movzx eax, byte [edi + edx*4]
movzx edx, byte [esi + edx*4]
imul eax, ecx
mov ecx, dword [ebp - 0x38]
imul edx, ecx
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebp - 0x40]
sar eax, 0xe
mov byte [ebp - 0x28], al
movzx eax, byte [esi + edx*4 + 3]
imul eax, ecx
movzx ecx, byte [edi + edx*4 + 3]
imul ecx, dword [ebp - 0x30]
add eax, ecx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
jmp 0x54336b
mov eax, dword [ebp - 0x20]
and eax, 0x80003fff
jns 0x543231
dec eax
or eax, 0xffffc000
inc eax
mov edx, eax
mov dword [ebp - 0x18], edx
mov eax, 0x4000
sub eax, edx
mov dword [ebp - 0x50], eax
imul eax, dword [ebp - 0x38]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x18]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x50]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x30]
cdq
and edx, 0x3fff
add eax, edx
movzx edx, byte [edi + ecx*4 + 6]
sar eax, 0xe
imul edx, eax
mov dword [ebp - 4], edx
movzx edx, byte [edi + ecx*4 + 2]
imul edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
add dword [ebp - 4], edx
movzx eax, byte [esi + ecx*4 + 6]
imul eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
movzx edx, byte [esi + ecx*4 + 2]
imul edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
shr eax, 0xe
mov byte [ebp - 0x26], al
movzx eax, byte [edi + ecx*4 + 5]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
movzx eax, byte [edi + ecx*4 + 1]
imul eax, dword [ebp - 0x14]
add dword [ebp - 4], eax
movzx edx, byte [esi + ecx*4 + 5]
imul edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, edx
movzx edx, byte [esi + ecx*4 + 1]
imul edx, dword [ebp - 8]
mov dword [ebp - 4], eax
add eax, edx
shr eax, 0xe
mov byte [ebp - 0x27], al
movzx eax, byte [edi + ecx*4 + 4]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
movzx eax, byte [esi + ecx*4 + 4]
imul eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
movzx edx, byte [esi + ecx*4]
imul edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx edx, byte [edi + ecx*4]
imul edx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
add eax, edx
movzx edx, byte [edi + ecx*4 + 3]
imul edx, dword [ebp - 0x14]
shr eax, 0xe
mov byte [ebp - 0x28], al
movzx eax, byte [edi + ecx*4 + 7]
imul eax, dword [ebp - 0x18]
add eax, edx
movzx edx, byte [esi + ecx*4 + 7]
movzx ecx, byte [esi + ecx*4 + 3]
imul edx, dword [ebp - 0x24]
imul ecx, dword [ebp - 8]
add eax, edx
add eax, ecx
shr eax, 0xe
mov ecx, dword [ebx + 0x34]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x5c]
imul eax, eax, 0xff
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
test ecx, ecx
je 0x543397
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x54346b
mov esi, dword [ebp - 0xc]
movzx ecx, byte [esi]
movzx edi, al
movzx eax, byte [ebp - 0x28]
sub eax, ecx
imul eax, edi
add eax, 0x80
mov edx, eax
sar edx, 8
add edx, eax
sar edx, 8
add edx, ecx
jns 0x5433c0
xor edx, edx
jmp 0x5433cd
cmp edx, 0xff
jle 0x5433cd
mov edx, 0xff
movzx eax, byte [ebp - 0x27]
mov byte [esi], dl
movzx ecx, byte [esi + 1]
sub eax, ecx
imul eax, edi
add eax, 0x80
mov edx, eax
sar edx, 8
add edx, eax
sar edx, 8
add edx, ecx
jns 0x5433f3
xor edx, edx
jmp 0x543400
cmp edx, 0xff
jle 0x543400
mov edx, 0xff
movzx eax, byte [ebp - 0x26]
mov byte [esi + 1], dl
movzx ecx, byte [esi + 2]
sub eax, ecx
imul eax, edi
add eax, 0x80
mov edx, eax
sar edx, 8
add edx, eax
sar edx, 8
add edx, ecx
jns 0x543427
xor edx, edx
jmp 0x543434
cmp edx, 0xff
jle 0x543434
mov edx, 0xff
movzx eax, byte [ebp - 0x25]
mov byte [esi + 2], dl
movzx edx, byte [esi + 3]
sub eax, edx
imul eax, edi
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edx
jns 0x54345b
xor ecx, ecx
jmp 0x543468
cmp ecx, 0xff
jle 0x543468
mov ecx, 0xff
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
add esi, ecx
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, ecx
mov dword [ebp - 0x44], esi
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
jl 0x54277e
mov eax, dword [ebp - 0x70]
cmp eax, 1
jle 0x54352c
cmp eax, 2
jle 0x5434b4
mov eax, dword [ebp - 0x68]
imul dword [ebp - 0x78]
shrd eax, edx, 0xe
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
sub edx, dword [ebp - 0x68]
add edi, edx
mov ecx, dword [esi + 0x38]
mov eax, edi
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebx + 0x34]
push edx
mov edx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x64]
push edx
mov edx, dword [ebp - 0x78]
push edx
mov edx, dword [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x58]
sar eax, 0xe
and edi, 0x80003fff
push edx
jns 0x5434ed
dec edi
or edi, 0xffffc000
inc edi
mov edx, dword [ebp - 0x6c]
push edi
mov edi, dword [ebp - 0x90]
push edx
mov edx, dword [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x40]
push edx
xor edx, edx
cmp eax, edi
mov edi, dword [esi + 0x34]
setne dl
add edx, eax
imul edx, ecx
imul ecx, eax
mov eax, edi
add ecx, eax
mov eax, dword [esi + 8]
imul eax, dword [ebp - 0x34]
add edx, edi
push edx
mov edx, dword [esi + 4]
push ecx
add eax, edx
push eax
call fcn.00541640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30