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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x64
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp dword [ebp + 0x20], ecx
mov dword [esp + 0x4c], edi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
je 0x4c3238
cmp byte [ebp + 0x24], cl
jne 0x4c20c9
cmp byte [ebp + 0x28], cl
je 0x4c3238
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], edx
push ecx
mov edx, ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [edi + 0x74]
mov ecx, dword [ebp + 0x18]
mov edx, dword [edi + 0x78]
mov esi, dword [edi + 0x64]
lea ebx, [eax + ecx + 4]
mov ecx, dword [edi + 0x68]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
lea eax, [edx + eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x50]
sar ebx, 3
sar eax, 3
cmp ebx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], esi
jge 0x4c2146
mov edx, ecx
sub edx, ebx
sub ebx, ecx
add esi, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], esi
mov ebx, ecx
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jge 0x4c2162
mov edx, ecx
sub edx, eax
sub eax, ecx
add dword [esp + 0x2c], eax
mov dword [esp + 0x38], edx
mov eax, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x58]
lea edx, [esi + ebx]
cmp edx, ecx
jle 0x4c2175
sub ecx, ebx
mov esi, ecx
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x5c]
cmp edx, ecx
jle 0x4c218a
sub ecx, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4c3235
cmp dword [esp + 0x2c], 0
jle 0x4c3235
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add ecx, eax
push ecx
lea edx, [esi + ebx]
push edx
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
lea eax, [esp + 0x60]
push eax
mov eax, dword [ebp + 8]
push eax
push eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [edi + 0x64]
imul ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x18]
cmp byte [ebp + 0x28], 0
mov edx, dword [edi + 0x60]
lea edi, [edx + ecx*2]
mov dword [esp + 0x10], edi
je 0x4c2208
lea eax, [edi + 1]
mov dword [esp + 0x20], eax
jmp 0x4c220c
mov dword [esp + 0x20], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x34]
imul eax, edx
add eax, ebx
add eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x10]
imul eax, edx
lea eax, [eax + ebx*4]
mov ebx, dword [0x6f951c]
add eax, dword [ecx + 0x18]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx]
shr ebx, 3
and bl, 1
mov byte [esp + 0xf], bl
jmp 0x4c2254
mov bl, byte [esp + 0xf]
mov edx, dword [ebp + 0x20]
sub dword [esp + 0x2c], 1
add edx, 4
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x1c], edx
jne 0x4c29f4
cmp dword [edx], 0xffffffff
jne 0x4c25c6
cmp byte [ebp + 0x24], 0
je 0x4c2413
test bl, bl
je 0x4c232b
xor ebx, ebx
test esi, esi
mov dword [esp + 0x38], ebx
jle 0x4c3208
mov edi, ecx
shr edi, 0x18
mov edx, ecx
and edx, 0xffffff
pxor xmm0, xmm0
movdqa xmm2, xmm0
movd xmm1, edx
mov dword [esp + 0x14], edi
punpcklbw xmm1, xmm2
jmp 0x4c22c4
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx*2]
imul edx, edi
mov edi, dword [eax + ebx*4]
shr edx, 6
and edx, 0xff
movd xmm0, edi
lea edi, [edx + 1]
mov ebx, 0x100
sub ebx, edx
shl edi, 0x10
or edi, ebx
mov ebx, dword [esp + 0x38]
punpcklbw xmm0, xmm2
punpcklwd xmm0, xmm1
movd xmm3, edi
pshufd xmm3, xmm3, 0
pmaddwd xmm0, xmm3
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edx, xmm0
mov dword [eax + ebx*4], edx
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x38], ebx
jl 0x4c22c0
jmp 0x4c3204
xor ebx, ebx
test esi, esi
mov dword [esp + 0x3c], ebx
jle 0x4c3208
mov edx, ecx
and edx, 0xff00ff
mov dword [esp + 0x1c], edx
mov esi, ecx
shr esi, 0x18
mov edx, ecx
and edx, 0xff00
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], edx
jmp 0x4c2364
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx*2]
mov ebx, dword [eax + ebx*4]
imul edx, esi
shr edx, 6
and edx, 0xff
mov edi, ebx
and edi, 0xff00
mov esi, 0x100
sub esi, edx
imul edi, esi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x30]
add edx, 1
imul esi, edx
add edi, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x38], ebx
imul esi, edx
and ebx, 0xffff00ff
imul ebx, dword [esp + 0x34]
add ebx, esi
mov esi, dword [esp + 0x38]
xor edi, ebx
mov ebx, dword [esp + 0x1c]
imul ebx, edx
mov edx, dword [esp + 0x38]
and esi, 0xff00ff
imul esi, dword [esp + 0x34]
shr edx, 8
and edx, 0xff0000
imul edx, dword [esp + 0x34]
add esi, ebx
mov ebx, dword [esp + 0x3c]
and edi, 0xff0000
xor edi, esi
mov esi, dword [esp + 0x24]
shr edi, 8
and edx, 0xff000000
or edi, edx
mov dword [eax + ebx*4], edi
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x3c], ebx
jl 0x4c2360
jmp 0x4c3204
test bl, bl
je 0x4c24ce
xor ebx, ebx
test esi, esi
mov dword [esp + 0x3c], ebx
jle 0x4c3208
mov edx, ecx
shr edx, 0x18
mov dword [esp + 0x14], edx
mov edx, ecx
and edx, 0xffffff
pxor xmm0, xmm0
movdqa xmm2, xmm0
movd xmm1, edx
punpcklbw xmm1, xmm2
lea ebx, [ebx]
movzx edx, byte [edi + ebx*2 + 1]
movd mm0, edx
movzx edx, byte [edi + ebx*2]
movd mm1, edx
psubusw mm0, mm1
movd edi, mm0
emms
mov edx, dword [esp + 0x14]
imul edx, edi
mov edi, dword [eax + ebx*4]
shr edx, 6
and edx, 0xff
movd xmm0, edi
lea edi, [edx + 1]
shl edi, 0x10
mov ebx, 0x100
sub ebx, edx
or edi, ebx
mov ebx, dword [esp + 0x3c]
punpcklbw xmm0, xmm2
punpcklwd xmm0, xmm1
movd xmm3, edi
mov edi, dword [esp + 0x10]
pshufd xmm3, xmm3, 0
pmaddwd xmm0, xmm3
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edx, xmm0
mov dword [eax + ebx*4], edx
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x3c], ebx
jl 0x4c2450
jmp 0x4c3208
xor ebx, ebx
test esi, esi
mov dword [esp + 0x38], ebx
jle 0x4c3208
mov esi, ecx
and esi, 0xff00ff
mov dword [esp + 0x1c], esi
mov edx, ecx
shr edx, 0x18
mov esi, ecx
and esi, 0xff00
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], esi
jmp 0x4c2504
mov edx, dword [esp + 0x14]
movzx esi, byte [edi + ebx*2 + 1]
movd mm0, esi
movzx esi, byte [edi + ebx*2]
movd mm1, esi
psubusw mm0, mm1
movd esi, mm0
emms
imul edx, esi
mov ebx, dword [eax + ebx*4]
shr edx, 6
and edx, 0xff
mov esi, ebx
and esi, 0xff00
mov edi, 0x100
sub edi, edx
imul esi, edi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x30]
add edx, 1
imul edi, edx
add esi, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
imul edi, edx
and ebx, 0xffff00ff
imul ebx, dword [esp + 0x34]
add ebx, edi
mov edi, dword [esp + 0x3c]
xor esi, ebx
mov ebx, dword [esp + 0x1c]
imul ebx, edx
mov edx, dword [esp + 0x3c]
and edi, 0xff00ff
imul edi, dword [esp + 0x34]
shr edx, 8
and edx, 0xff0000
imul edx, dword [esp + 0x34]
and esi, 0xff0000
add edi, ebx
mov ebx, dword [esp + 0x38]
xor esi, edi
mov edi, dword [esp + 0x10]
shr esi, 8
and edx, 0xff000000
or esi, edx
mov dword [eax + ebx*4], esi
mov esi, dword [esp + 0x24]
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x38], ebx
jl 0x4c2500
jmp 0x4c3208
cmp byte [ebp + 0x24], 0
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x30], edx
je 0x4c27cf
test bl, bl
je 0x4c26b1
xor ebx, ebx
test esi, esi
mov dword [esp + 0x3c], ebx
jle 0x4c3208
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
pxor xmm1, xmm1
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0x14]
cmp edx, dword [edi]
jl 0x4c2626
mov ecx, dword [esp + 0x30]
lea ecx, [ecx]
add ecx, 8
cmp edx, dword [ecx + 4]
lea edi, [ecx + 4]
mov dword [esp + 0x14], edi
jge 0x4c2610
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx - 8]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx*2]
mov edi, ecx
shr edi, 0x18
imul edx, edi
mov edi, dword [eax + ebx*4]
movd xmm0, edi
shr edx, 6
and edx, 0xff
mov edi, ecx
and edi, 0xffffff
movd xmm2, edi
lea edi, [edx + 1]
punpcklbw xmm0, xmm1
mov ebx, 0x100
sub ebx, edx
shl edi, 0x10
or edi, ebx
mov ebx, dword [esp + 0x3c]
punpcklbw xmm2, xmm1
punpcklwd xmm0, xmm2
movd xmm2, edi
pshufd xmm2, xmm2, 0
pmaddwd xmm0, xmm2
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edx, xmm0
mov dword [eax + ebx*4], edx
mov edx, dword [esp + 0x38]
add ebx, 1
add edx, 1
cmp ebx, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edx
jl 0x4c2601
jmp 0x4c3204
xor ebx, ebx
test esi, esi
mov dword [esp + 0x34], ebx
jle 0x4c3208
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
jmp 0x4c26d5
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
cmp edi, dword [esi]
jl 0x4c26f6
lea ecx, [ecx]
add edx, 8
cmp edi, dword [edx + 4]
lea ecx, [edx + 4]
mov dword [esp + 0x14], ecx
jge 0x4c26e0
mov ecx, dword [edx - 8]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx*2]
mov ebx, dword [eax + ebx*4]
mov esi, ecx
shr esi, 0x18
imul edx, esi
shr edx, 6
and edx, 0xff
mov esi, 0x100
sub esi, edx
add edx, 1
mov dword [esp + 0x3c], esi
mov esi, ebx
and esi, 0xffff00ff
imul esi, dword [esp + 0x3c]
mov edi, ecx
and edi, 0xffff00ff
imul edi, edx
add edi, esi
mov esi, ecx
and esi, 0xff00
imul esi, edx
mov dword [esp + 0x38], ebx
and ebx, 0xff00
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x3c]
imul ebx, esi
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
add edx, ebx
mov ebx, dword [esp + 0x38]
xor edi, edx
and ebx, 0xff00ff
mov edx, ecx
imul ebx, esi
and edx, 0xff00ff
imul edx, dword [esp + 0x44]
add edx, ebx
mov ebx, dword [esp + 0x34]
and edi, 0xff0000
xor edi, edx
mov edx, dword [esp + 0x38]
shr edx, 8
and edx, 0xff0000
imul edx, esi
mov esi, dword [esp + 0x24]
shr edi, 8
and edx, 0xff000000
or edi, edx
mov dword [eax + ebx*4], edi
mov edi, dword [esp + 0x1c]
add ebx, 1
add edi, 1
cmp ebx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], edi
jl 0x4c26d1
jmp 0x4c3204
test bl, bl
je 0x4c28c8
test esi, esi
mov dword [esp + 0x34], 0
jle 0x4c3208
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
pxor xmm1, xmm1
mov dword [esp + 0x3c], ebx
jmp 0x4c2800
mov edx, dword [esp + 0x14]
cmp ebx, dword [edx]
jl 0x4c2826
mov ecx, dword [esp + 0x30]
lea esp, [esp]
add ecx, 8
cmp ebx, dword [ecx + 4]
lea edx, [ecx + 4]
mov dword [esp + 0x14], edx
jge 0x4c2810
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx - 8]
mov ebx, dword [esp + 0x34]
movzx edx, byte [edi + ebx*2 + 1]
movd mm0, edx
movzx edx, byte [edi + ebx*2]
movd mm1, edx
psubusw mm0, mm1
movd edi, mm0
emms
mov edx, ecx
shr edx, 0x18
imul edx, edi
mov edi, dword [eax + ebx*4]
movd xmm0, edi
shr edx, 6
and edx, 0xff
mov edi, ecx
and edi, 0xffffff
movd xmm2, edi
lea edi, [edx + 1]
shl edi, 0x10
punpcklbw xmm0, xmm1
mov ebx, 0x100
sub ebx, edx
mov edx, dword [esp + 0x34]
or edi, ebx
mov ebx, dword [esp + 0x3c]
punpcklbw xmm2, xmm1
punpcklwd xmm0, xmm2
movd xmm2, edi
pshufd xmm2, xmm2, 0
pmaddwd xmm0, xmm2
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edi, xmm0
mov dword [eax + edx*4], edi
mov edi, dword [esp + 0x10]
add edx, 1
add ebx, 1
cmp edx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ebx
jl 0x4c2800
jmp 0x4c3208
xor ebx, ebx
test esi, esi
mov dword [esp + 0x34], ebx
jle 0x4c3208
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x14]
cmp edx, dword [esi]
jl 0x4c2908
mov ecx, dword [esp + 0x30]
add ecx, 8
cmp edx, dword [ecx + 4]
lea esi, [ecx + 4]
mov dword [esp + 0x14], esi
jge 0x4c28f2
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx - 8]
movzx edx, byte [edi + ebx*2 + 1]
movd mm0, edx
movzx edx, byte [edi + ebx*2]
movd mm1, edx
psubusw mm0, mm1
movd esi, mm0
emms
mov ebx, dword [eax + ebx*4]
mov edx, ecx
shr edx, 0x18
imul edx, esi
shr edx, 6
and edx, 0xff
mov esi, 0x100
sub esi, edx
add edx, 1
mov dword [esp + 0x3c], esi
mov esi, ebx
and esi, 0xffff00ff
imul esi, dword [esp + 0x3c]
mov edi, ecx
and edi, 0xffff00ff
imul edi, edx
add edi, esi
mov esi, ecx
and esi, 0xff00
imul esi, edx
mov dword [esp + 0x38], ebx
and ebx, 0xff00
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x3c]
imul ebx, esi
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x44]
add edx, ebx
mov ebx, dword [esp + 0x38]
xor edi, edx
and ebx, 0xff00ff
mov edx, ecx
imul ebx, esi
and edx, 0xff00ff
imul edx, dword [esp + 0x40]
add edx, ebx
mov ebx, dword [esp + 0x34]
and edi, 0xff0000
xor edi, edx
mov edx, dword [esp + 0x38]
shr edx, 8
and edx, 0xff0000
imul edx, esi
mov esi, dword [esp + 0x24]
and edx, 0xff000000
shr edi, 8
or edi, edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ebx*4], edi
mov edi, dword [esp + 0x10]
add ebx, 1
add edx, 1
cmp ebx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], edx
jl 0x4c28e6
jmp 0x4c3208
cmp dword [edx], 0xffffffff
jne 0x4c2d71
cmp byte [ebp + 0x24], 0
je 0x4c2ba1
test bl, bl
je 0x4c2ab2
xor ebx, ebx
test esi, esi
mov dword [esp + 0x3c], ebx
jle 0x4c3208
mov edx, ecx
shr edx, 0x18
mov dword [esp + 0x14], edx
mov edx, ecx
and edx, 0xffffff
pxor xmm0, xmm0
movdqa xmm2, xmm0
movd xmm1, edx
punpcklbw xmm1, xmm2
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx*2]
mov edi, dword [esp + 0x28]
movzx edi, byte [ebx + edi]
imul edx, edi
imul edx, dword [esp + 0x14]
mov edi, dword [eax + ebx*4]
shr edx, 0xc
and edx, 0xff
movd xmm0, edi
lea edi, [edx + 1]
mov ebx, 0x100
sub ebx, edx
shl edi, 0x10
or edi, ebx
mov ebx, dword [esp + 0x3c]
punpcklbw xmm0, xmm2
punpcklwd xmm0, xmm1
movd xmm3, edi
pshufd xmm3, xmm3, 0
pmaddwd xmm0, xmm3
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edx, xmm0
mov dword [eax + ebx*4], edx
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x3c], ebx
jl 0x4c2a3e
jmp 0x4c3204
xor ebx, ebx
test esi, esi
mov dword [esp + 0x38], ebx
jle 0x4c3208
mov edx, ecx
and edx, 0xff00ff
mov dword [esp + 0x1c], edx
mov esi, ecx
shr esi, 0x18
mov edx, ecx
and edx, 0xff00
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], edx
jmp 0x4c2ae7
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx*2]
mov edi, dword [esp + 0x28]
movzx edi, byte [ebx + edi]
mov ebx, dword [eax + ebx*4]
imul edx, edi
imul edx, esi
shr edx, 0xc
and edx, 0xff
mov edi, ebx
and edi, 0xff00
mov esi, 0x100
sub esi, edx
imul edi, esi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x30]
add edx, 1
imul esi, edx
add edi, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
imul esi, edx
and ebx, 0xffff00ff
imul ebx, dword [esp + 0x34]
add ebx, esi
mov esi, dword [esp + 0x3c]
xor edi, ebx
mov ebx, dword [esp + 0x1c]
imul ebx, edx
mov edx, dword [esp + 0x3c]
and esi, 0xff00ff
imul esi, dword [esp + 0x34]
shr edx, 8
and edx, 0xff0000
imul edx, dword [esp + 0x34]
add esi, ebx
mov ebx, dword [esp + 0x38]
and edi, 0xff0000
xor edi, esi
mov esi, dword [esp + 0x24]
shr edi, 8
and edx, 0xff000000
or edi, edx
mov dword [eax + ebx*4], edi
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x38], ebx
jl 0x4c2ae3
jmp 0x4c3204
test bl, bl
je 0x4c2c6f
xor ebx, ebx
test esi, esi
mov dword [esp + 0x3c], ebx
jle 0x4c3208
mov edx, ecx
shr edx, 0x18
mov dword [esp + 0x14], edx
mov edx, ecx
and edx, 0xffffff
pxor xmm0, xmm0
movdqa xmm2, xmm0
movd xmm1, edx
punpcklbw xmm1, xmm2
jmp 0x4c2be0
movzx edx, byte [edi + ebx*2 + 1]
movd mm0, edx
movzx edx, byte [edi + ebx*2]
movd mm1, edx
psubusw mm0, mm1
movd dword [esp + 0x44], mm0
emms
mov edx, dword [esp + 0x28]
movzx edx, byte [ebx + edx]
imul edx, dword [esp + 0x14]
imul edx, dword [esp + 0x44]
mov edi, dword [eax + ebx*4]
shr edx, 0xc
and edx, 0xff
movd xmm0, edi
lea edi, [edx + 1]
shl edi, 0x10
mov ebx, 0x100
sub ebx, edx
or edi, ebx
mov ebx, dword [esp + 0x3c]
punpcklbw xmm0, xmm2
punpcklwd xmm0, xmm1
movd xmm3, edi
mov edi, dword [esp + 0x10]
pshufd xmm3, xmm3, 0
pmaddwd xmm0, xmm3
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edx, xmm0
mov dword [eax + ebx*4], edx
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x3c], ebx
jl 0x4c2be0
jmp 0x4c3208
xor ebx, ebx
test esi, esi
mov dword [esp + 0x38], ebx
jle 0x4c3208
mov edx, ecx
and edx, 0xff00ff
mov dword [esp + 0x1c], edx
mov esi, ecx
shr esi, 0x18
mov edx, ecx
and edx, 0xff00
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], edx
jmp 0x4c2ca4
mov esi, dword [esp + 0x14]
movzx edx, byte [edi + ebx*2 + 1]
movd mm0, edx
movzx edx, byte [edi + ebx*2]
movd mm1, edx
psubusw mm0, mm1
movd edi, mm0
emms
mov edx, dword [esp + 0x28]
movzx edx, byte [ebx + edx]
imul edx, esi
mov ebx, dword [eax + ebx*4]
imul edx, edi
shr edx, 0xc
and edx, 0xff
mov esi, ebx
and esi, 0xff00
mov edi, 0x100
sub edi, edx
imul esi, edi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x30]
add edx, 1
imul edi, edx
add esi, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
imul edi, edx
and ebx, 0xffff00ff
imul ebx, dword [esp + 0x34]
add ebx, edi
mov edi, dword [esp + 0x3c]
xor esi, ebx
mov ebx, dword [esp + 0x1c]
imul ebx, edx
mov edx, dword [esp + 0x3c]
and edi, 0xff00ff
imul edi, dword [esp + 0x34]
shr edx, 8
and edx, 0xff0000
imul edx, dword [esp + 0x34]
and esi, 0xff0000
add edi, ebx
mov ebx, dword [esp + 0x38]
xor esi, edi
mov edi, dword [esp + 0x10]
shr esi, 8
and edx, 0xff000000
or esi, edx
mov dword [eax + ebx*4], esi
mov esi, dword [esp + 0x24]
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x38], ebx
jl 0x4c2ca0
jmp 0x4c3208
cmp byte [ebp + 0x24], 0
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x30], edx
je 0x4c2faa
test bl, bl
je 0x4c2e80
test esi, esi
mov dword [esp + 0x34], 0
jle 0x4c3208
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
sub edx, edi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
pxor xmm1, xmm1
mov dword [esp + 0x3c], edi
mov ebx, dword [esp + 0x1c]
cmp edi, dword [ebx]
jl 0x4c2de6
mov ebx, dword [esp + 0x30]
jmp 0x4c2dd0
add ebx, 8
cmp edi, dword [ebx + 4]
lea ecx, [ebx + 4]
mov dword [esp + 0x1c], ecx
jge 0x4c2dd0
mov ecx, dword [ebx - 8]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x20]
movzx edx, byte [ebx + edx*2]
mov ebx, dword [esp + 0x14]
movzx edi, byte [ebx + edi]
imul edx, edi
mov edi, ecx
shr edi, 0x18
imul edx, edi
mov edi, dword [esp + 0x34]
mov edi, dword [eax + edi*4]
movd xmm0, edi
shr edx, 0xc
and edx, 0xff
mov edi, ecx
and edi, 0xffffff
movd xmm2, edi
lea edi, [edx + 1]
shl edi, 0x10
punpcklbw xmm0, xmm1
mov ebx, 0x100
sub ebx, edx
mov edx, dword [esp + 0x34]
or edi, ebx
punpcklbw xmm2, xmm1
punpcklwd xmm0, xmm2
movd xmm2, edi
pshufd xmm2, xmm2, 0
pmaddwd xmm0, xmm2
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edi, xmm0
mov dword [eax + edx*4], edi
mov edi, dword [esp + 0x3c]
add edx, 1
add edi, 1
cmp edx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], edi
jl 0x4c2dbc
jmp 0x4c3204
xor ebx, ebx
test esi, esi
mov dword [esp + 0x38], ebx
jle 0x4c3208
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
sub esi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], esi
jmp 0x4c2eb4
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp edi, dword [edx]
jl 0x4c2ed6
mov edx, dword [esp + 0x30]
add edx, 8
cmp edi, dword [edx + 4]
lea ecx, [edx + 4]
mov dword [esp + 0x1c], ecx
jge 0x4c2ec0
mov ecx, dword [edx - 8]
mov dword [esp + 0x30], edx
movzx esi, byte [edi + esi]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx*2]
mov ebx, dword [eax + ebx*4]
imul edx, esi
mov esi, ecx
shr esi, 0x18
imul edx, esi
mov dword [esp + 0x34], ebx
mov edi, ebx
shr edx, 0xc
and edx, 0xff
and edi, 0xffff00ff
mov esi, 0x100
sub esi, edx
imul edi, esi
add edx, 1
mov ebx, ecx
and ebx, 0xffff00ff
imul ebx, edx
add edi, ebx
mov ebx, dword [esp + 0x34]
and ebx, 0xff00
imul ebx, esi
mov dword [esp + 0x3c], esi
mov esi, ecx
and esi, 0xff00
imul esi, edx
add ebx, esi
mov esi, dword [esp + 0x34]
xor edi, ebx
mov ebx, ecx
and ebx, 0xff00ff
imul ebx, edx
mov edx, dword [esp + 0x34]
and esi, 0xff00ff
imul esi, dword [esp + 0x3c]
shr edx, 8
and edx, 0xff0000
imul edx, dword [esp + 0x3c]
and edi, 0xff0000
add esi, ebx
mov ebx, dword [esp + 0x38]
xor edi, esi
mov esi, dword [esp + 0x24]
shr edi, 8
and edx, 0xff000000
or edi, edx
mov dword [eax + ebx*4], edi
mov edi, dword [esp + 0x40]
add ebx, 1
add edi, 1
cmp ebx, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], edi
jl 0x4c2eb0
jmp 0x4c3204
test bl, bl
je 0x4c30bb
test esi, esi
mov dword [esp + 0x34], 0
jle 0x4c3208
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
sub edx, ebx
pxor xmm1, xmm1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
cmp ebx, dword [edx]
jl 0x4c3006
mov ecx, dword [esp + 0x30]
lea esp, [esp]
add ecx, 8
cmp ebx, dword [ecx + 4]
lea edx, [ecx + 4]
mov dword [esp + 0x1c], edx
jge 0x4c2ff0
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx - 8]
mov ebx, dword [esp + 0x34]
movzx edx, byte [edi + ebx*2 + 1]
movd mm0, edx
movzx edx, byte [edi + ebx*2]
movd mm1, edx
psubusw mm0, mm1
movd dword [esp + 0x44], mm0
emms
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
movzx edx, byte [edi + edx]
mov edi, ecx
shr edi, 0x18
imul edx, edi
imul edx, dword [esp + 0x44]
mov edi, dword [eax + ebx*4]
movd xmm0, edi
shr edx, 0xc
and edx, 0xff
mov edi, ecx
and edi, 0xffffff
movd xmm2, edi
lea edi, [edx + 1]
shl edi, 0x10
punpcklbw xmm0, xmm1
mov ebx, 0x100
sub ebx, edx
mov edx, dword [esp + 0x34]
or edi, ebx
mov ebx, dword [esp + 0x38]
punpcklbw xmm2, xmm1
punpcklwd xmm0, xmm2
movd xmm2, edi
pshufd xmm2, xmm2, 0
pmaddwd xmm0, xmm2
psrld xmm0, 8
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd edi, xmm0
mov dword [eax + edx*4], edi
mov edi, dword [esp + 0x10]
add edx, 1
add ebx, 1
cmp edx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
jl 0x4c2fe0
jmp 0x4c3208
xor ebx, ebx
test esi, esi
mov dword [esp + 0x34], ebx
jle 0x4c3208
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
sub edx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], esi
mov edx, esi
jmp 0x4c30f4
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
cmp edx, dword [esi]
jl 0x4c3116
mov ecx, dword [esp + 0x30]
add ecx, 8
cmp edx, dword [ecx + 4]
lea esi, [ecx + 4]
mov dword [esp + 0x1c], esi
jge 0x4c3100
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx - 8]
movzx esi, byte [edi + ebx*2 + 1]
movd mm0, esi
movzx esi, byte [edi + ebx*2]
movd mm1, esi
psubusw mm0, mm1
movd esi, mm0
emms
mov edi, dword [esp + 0x14]
movzx edx, byte [edx + edi]
mov ebx, dword [eax + ebx*4]
mov edi, ecx
shr edi, 0x18
imul edx, edi
imul edx, esi
shr edx, 0xc
and edx, 0xff
mov esi, 0x100
sub esi, edx
add edx, 1
mov dword [esp + 0x40], esi
mov esi, ebx
and esi, 0xffff00ff
imul esi, dword [esp + 0x40]
mov edi, ecx
and edi, 0xffff00ff
imul edi, edx
add edi, esi
mov esi, ecx
and esi, 0xff00
imul esi, edx
mov dword [esp + 0x3c], ebx
and ebx, 0xff00
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x40]
imul ebx, esi
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x44]
add edx, ebx
mov ebx, dword [esp + 0x3c]
xor edi, edx
and ebx, 0xff00ff
mov edx, ecx
imul ebx, esi
and edx, 0xff00ff
imul edx, dword [esp + 0x48]
add edx, ebx
mov ebx, dword [esp + 0x34]
and edi, 0xff0000
xor edi, edx
mov edx, dword [esp + 0x3c]
shr edx, 8
and edx, 0xff0000
imul edx, esi
mov esi, dword [esp + 0x24]
and edx, 0xff000000
shr edi, 8
or edi, edx
mov edx, dword [esp + 0x38]
mov dword [eax + ebx*4], edi
add ebx, 1
add edx, 1
cmp ebx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edx
jl 0x4c30f0
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
mov edx, dword [edx + 0x64]
add edx, edx
add dword [esp + 0x20], edx
add edi, edx
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 4]
add dword [esp + 0x28], ebx
add eax, dword [edx + 0x10]
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], edi
jne 0x4c2250
emms
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24