Function at 0x442830
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x18], 0x10
push ebx
sete cl
mov dword [ebp - 0x44], eax
mov eax, dword [eax]
inc ecx
push esi
mov esi, ecx
mov ebx, edx
imul esi, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push edi
mov edi, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov edx, esi
imul edi, ecx
imul edx, dword [ebp + 0x10]
mov ecx, eax
push 0
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
call fcn.0043be90
add esp, 8
test eax, eax
jne 0x44288d
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x4428a5
mov eax, esi
imul eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x14]
push eax
call fcn.00482f17
add esp, 4
mov dword [ebp - 0x1c], eax
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [eax + 0xc], esi
test esi, esi
jne 0x4428ca
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 8], str.outofmem
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
test eax, eax
js 0x4436dd
mov edx, dword [ebp + 0x10]
test edx, edx
js 0x4436dd
je 0x442901
mov eax, 0x7fffffff
xor ecx, ecx
cdq
idiv dword [ebp + 0x10]
cmp dword [ebp - 0x20], eax
setle cl
test ecx, ecx
je 0x4436dd
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
imul eax, edx
mov dword [ebp - 0x28], eax
test eax, eax
js 0x4436dd
mov ecx, dword [ebp + 0x18]
test ecx, ecx
js 0x4436dd
je 0x44293d
mov eax, 0x7fffffff
cdq
idiv ecx
xor ecx, ecx
cmp dword [ebp - 0x28], eax
setle cl
test ecx, ecx
je 0x4436dd
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
imul eax, ecx
cmp eax, 0x7ffffff8
jg 0x4436dd
add eax, 7
shr eax, 3
mov dword [ebp - 0x30], eax
inc eax
imul eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jae 0x442979
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 8], str.not_enough_pixels
xor eax, eax
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x14], eax
jbe 0x443078
imul eax, dword [ebp - 0x34]
add eax, esi
movzx esi, byte [ebx]
mov ecx, eax
mov dword [ebp - 0x60], eax
inc ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
cmp esi, 4
ja 0x44333f
cmp dword [ebp + 0x18], 8
jge 0x4429cf
cmp dword [ebp - 0x30], edx
ja 0x443324
mov eax, dword [ebp + 0xc]
mov edi, 1
imul eax, edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 8], edi
mov dword [ebp - 0x48], edx
sub eax, edx
add ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, ecx
sub eax, dword [ebp - 0x34]
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], eax
jne 0x4429e7
movzx esi, byte [esi + 0x4b7574]
mov dword [ebp - 0x14], esi
test edi, edi
jle 0x442ae7
sub eax, ebx
mov edx, ebx
sub ecx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], ecx
mov esi, edi
nop dword [eax]
cmp dword [ebp - 0x14], 6
ja case.default.0x442a09
mov edi, dword [ebp - 0x14]
jmp dword [edi*4 + 0x4436f8]
mov edi, dword [ebp - 8]
inc edx
sub esi, 1
jne 0x442a00
jmp 0x442ae1
mov edi, dword [ebp - 8]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
sub esi, 1
jne 0x442a21
jmp 0x442ae1
mov edi, dword [ebp - 8]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
sub esi, 1
jne 0x442a37
jmp 0x442ae1
mov edi, dword [ebp - 8]
nop dword [eax]
mov al, byte [eax + edx]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [ecx + edx - 1], al
sub esi, 1
je 0x442ae1
mov eax, dword [ebp - 0x24]
jmp 0x442a50
mov edi, dword [ebp - 8]
nop word [eax + eax]
mov al, byte [eax + edx]
lea edx, [edx + 1]
shr al, 1
add al, byte [edx - 1]
mov byte [ecx + edx - 1], al
sub esi, 1
je 0x442ae1
mov eax, dword [ebp - 0x24]
jmp 0x442a70
mov edi, dword [ebp - 8]
nop dword [eax]
movzx eax, byte [eax + edx]
lea edx, [edx + 1]
xor ecx, ecx
cmp ecx, eax
sbb ecx, ecx
and ecx, eax
mov al, byte [edx - 1]
add al, cl
mov ecx, dword [ebp - 0x44]
mov byte [ecx + edx - 1], al
sub esi, 1
je 0x442ae1
mov eax, dword [ebp - 0x24]
jmp 0x442a90
mov edi, dword [ebp - 8]
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
sub esi, 1
jne 0x442ac0
jmp 0x442ae1
mov edi, dword [ebp - 8]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
sub esi, 1
jne 0x442ad3
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
cmp eax, 8
jne 0x442b09
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
cmp edx, eax
je 0x442afd
mov byte [ecx + edx], 0xff
mov ecx, eax
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x442b31
cmp eax, 0x10
jne 0x442b27
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
je 0x442b1c
mov word [ecx + edi], 0xffff
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
jmp 0x442b2f
mov ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, ecx
add ebx, dword [ebp - 0x24]
add edx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x18]
cmp dword [ebp + 0x18], 8
mov edi, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], ecx
jl 0x442ffe
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
je 0x442ffe
cmp esi, 6
ja case.default.0x442b7d
jmp dword [esi*4 + 0x443714]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x24], edx
cmp edx, 1
jb case.default.0x442b7d
test edi, edi
jle 0x442bc7
mov eax, ebx
mov esi, edi
sub eax, ecx
mov edx, ecx
mov dword [ebp - 0x44], eax
mov edi, eax
nop dword [eax + eax]
mov al, byte [edi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x442bb0
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edi], 0xff
add ebx, edi
add ecx, eax
sub edx, 1
mov dword [ebp - 0x24], edx
jne 0x442b97
jmp case.default.0x442b7d
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x44]
dec edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], ebx
cmp edx, 1
jb case.default.0x442b7d
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x24], edx
nop dword [eax]
xor esi, esi
test edi, edi
jle 0x442c2f
mov dword [ebp - 0x44], ebx
sub ebx, ecx
nop dword [eax + eax]
mov edi, dword [ebp - 0x24]
lea edx, [esi + ecx]
mov al, byte [ebx + edx]
add al, byte [edi + esi]
inc esi
mov edi, dword [ebp - 8]
mov byte [edx], al
cmp esi, edi
jl 0x442c10
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edi], 0xff
add ebx, edi
add edx, eax
mov dword [ebp - 4], ebx
add ecx, eax
mov dword [ebp - 0x24], edx
sub dword [ebp - 0x38], 1
jne 0x442c00
jmp case.default.0x442b7d
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x3c]
dec esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], ebx
cmp esi, 1
jb case.default.0x442b7d
lea esi, [ecx + edi]
mov dword [ebp - 0x18], esi
mov esi, 0x10
sub esi, edi
mov dword [ebp - 0x44], esi
xor esi, esi
test edi, edi
jle 0x442d62
cmp edi, 0x20
jb 0x442d24
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x442c99
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x442d24
lea eax, [edx - 1]
add eax, edi
cmp ecx, eax
ja 0x442cab
lea eax, [ecx - 1]
add eax, edi
cmp eax, edx
jae 0x442d24
mov eax, edi
and eax, 0x8000001f
jns 0x442cb9
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov edi, ebx
sub edi, ecx
sub edx, eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], edi
mov edi, dword [ebp - 0xc]
sub edi, ecx
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0xc]
mov edx, ebx
sub ecx, ebx
mov dword [ebp - 0x3c], edi
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov ecx, edi
mov edi, dword [ebp - 0x14]
lea edx, [edx + 0x20]
movups xmm0, xmmword [edx - 0x20]
add esi, 0x20
lea eax, [eax + 0x20]
movups xmm1, xmmword [edx + edi - 0x20]
mov edi, dword [ebp - 8]
paddb xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax + ebx - 0x20]
movups xmm0, xmmword [ecx + eax - 0x20]
paddb xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp esi, dword [ebp - 0x4c]
jl 0x442ce4
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp esi, edi
jge 0x442d5f
mov eax, dword [ebp - 0xc]
lea edx, [esi + ebx]
sub eax, ebx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x40], eax
mov eax, ecx
sub eax, ebx
mov ebx, dword [ebp - 0x40]
sub edi, esi
mov dword [ebp - 0x3c], eax
mov esi, eax
mov al, byte [edx + ebx]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [edx + esi - 1], al
sub edi, 1
jne 0x442d44
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
add ebx, edi
add ecx, eax
mov dword [ebp - 4], ebx
add edx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], edx
mov byte [esi], 0xff
add esi, eax
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x18], esi
jne 0x442c70
jmp case.default.0x442b7d
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x4c]
dec esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], ebx
cmp esi, 1
jb case.default.0x442b7d
mov esi, ecx
sub esi, eax
mov dword [ebp - 0x18], esi
nop dword [eax + eax]
mov dword [ebp - 0x4c], 0
test edi, edi
jle 0x442e01
sub edx, ebx
mov esi, ebx
sub ecx, ebx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
mov ebx, edx
mov ecx, dword [ebp - 0x4c]
nop dword [eax]
mov eax, dword [ebp - 0x18]
lea esi, [esi + 1]
movzx edx, byte [eax + ecx]
inc ecx
movzx eax, byte [esi + ebx - 1]
add edx, eax
mov eax, dword [ebp - 0x40]
shr edx, 1
add dl, byte [esi - 1]
mov byte [esi + eax - 1], dl
cmp ecx, edi
jl 0x442dd0
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov byte [ecx + edi], 0xff
add ebx, edi
add ecx, eax
mov dword [ebp - 4], ebx
add esi, eax
mov dword [ebp - 0x24], ecx
add edx, eax
mov dword [ebp - 0x18], esi
sub dword [ebp - 0x38], 1
mov dword [ebp - 0xc], edx
jne 0x442db0
jmp case.default.0x442b7d
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x50]
dec esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], ebx
cmp esi, 1
jb case.default.0x442b7d
mov esi, ecx
sub esi, eax
mov dword [ebp - 0x18], esi
test edi, edi
jle 0x442ee7
mov eax, edx
mov dword [ebp - 0x40], edi
sub eax, ecx
mov esi, ebx
mov ecx, dword [ebp - 0x10]
sub edx, ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edx
movzx edi, byte [esi + edx]
movzx eax, byte [eax + ebx]
movzx edx, byte [ebx]
mov dword [ebp - 0x38], eax
mov esi, edx
sub esi, eax
mov dword [ebp - 0x54], edi
add edi, esi
mov dword [ebp - 0x14], edx
mov eax, edi
sub edi, dword [ebp - 0x38]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x50], eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x4c], eax
mov eax, edi
cdq
mov esi, eax
mov eax, dword [ebp - 0x50]
xor esi, edx
sub esi, edx
mov edx, dword [ebp - 0x4c]
cmp eax, edx
jg 0x442ead
cmp eax, esi
jle 0x442eb9
mov eax, dword [ebp - 0x38]
cmp edx, esi
cmovle eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x5c]
mov al, byte [esi]
inc esi
add al, byte [ebp - 0x14]
mov byte [ebx + ecx], al
inc ebx
sub dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x3c], esi
jne 0x442e63
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov byte [ecx + edi], 0xff
add ebx, edi
add ecx, eax
mov dword [ebp - 4], ebx
add esi, eax
mov dword [ebp - 0x24], ecx
add edx, eax
mov dword [ebp - 0x18], esi
sub dword [ebp - 0x44], 1
mov dword [ebp - 0xc], edx
jne 0x442e41
jmp case.default.0x442b7d
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x5c]
dec edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], ebx
cmp edx, 1
jb case.default.0x442b7d
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x24], edx
nop dword [eax + eax]
xor esi, esi
test edi, edi
jle 0x442f5e
sub ebx, ecx
mov dword [ebp - 0x5c], ebx
nop dword [eax + eax]
mov eax, dword [ebp - 0x24]
lea edx, [esi + ecx]
mov al, byte [eax + esi]
inc esi
shr al, 1
add al, byte [ebx + edx]
mov byte [edx], al
cmp esi, edi
jl 0x442f40
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edi], 0xff
add ebx, edi
add edx, eax
mov dword [ebp - 4], ebx
add ecx, eax
mov dword [ebp - 0x24], edx
sub dword [ebp - 0x44], 1
jne 0x442f30
jmp case.default.0x442b7d
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x58]
dec edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], ebx
cmp edx, 1
jb case.default.0x442b7d
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x24], edx
nop
xor esi, esi
test edi, edi
jle 0x442fbf
mov eax, ebx
sub eax, ecx
mov dword [ebp - 0x5c], eax
nop dword [eax]
movzx ebx, byte [edx + esi]
lea edx, [esi + ecx]
mov al, byte [eax + edx]
inc esi
add al, bl
mov byte [edx], al
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x24]
cmp esi, edi
jl 0x442fa0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov byte [ecx + edi], 0xff
add ebx, edi
add edx, eax
mov dword [ebp - 4], ebx
add ecx, eax
mov dword [ebp - 0x24], edx
sub dword [ebp - 0x44], 1
jne 0x442f90
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
cmp ecx, 0x10
jne 0x443065
test edx, edx
je 0x443065
mov ecx, dword [ebp - 0x60]
inc ecx
add ecx, edi
mov byte [ecx], 0xff
add ecx, eax
sub edx, 1
jne 0x442ff2
jmp 0x44305f
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
dec esi
imul esi, edi
mov dword [ebp - 0x18], esi
cmp eax, 6
ja case.default.0x443010
jmp dword [eax*4 + 0x443730]
push esi
push ebx
push ecx
call fcn.00476050
add esp, 0xc
jmp case.default.0x443010
xor esi, esi
cmp dword [ebp - 0x18], esi
jle 0x44305a
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x60], eax
mov eax, ebx
mov ebx, dword [ebp - 0x60]
sub eax, ecx
mov dword [ebp - 0x5c], eax
nop dword [eax]
mov edi, dword [ebp - 0x5c]
lea edx, [ecx + esi]
mov al, byte [ebx + esi]
inc esi
add al, byte [edi + edx]
mov byte [edx], al
cmp esi, dword [ebp - 0x18]
jl 0x443040
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x18]
add ebx, esi
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp + 0x14]
jb 0x442987
cmp ecx, 8
jge 0x44369e
cmp dword [ebp + 0x14], 0
jbe 0x4436d1
mov eax, dword [ebp + 0xc]
imul eax, edx
sub eax, dword [ebp - 0x30]
add eax, esi
mov dword [ebp - 0x48], eax
nop dword [eax]
cmp dword [ebp + 0x1c], 0
mov edx, esi
mov esi, eax
jne 0x44335a
mov bl, byte [ecx + 0x4b7424]
jmp 0x44335c
xor eax, eax
test esi, esi
jle case.default.0x443010
cmp esi, 0x20
jb 0x443183
mov dword [ebp - 0x14], eax
lea eax, [esi - 1]
add eax, ebx
cmp ecx, eax
ja 0x4430e1
lea eax, [esi - 1]
add eax, ecx
cmp eax, ebx
jae 0x443180
lea eax, [esi - 1]
add eax, edx
cmp ecx, eax
ja 0x4430f7
lea eax, [esi - 1]
add eax, ecx
cmp eax, edx
jae 0x443180
mov eax, esi
and eax, 0x8000001f
jns 0x443105
dec eax
or eax, 0xffffffe0
inc eax
mov edi, esi
mov esi, edx
sub esi, ebx
sub edi, eax
mov dword [ebp - 0x58], esi
lea eax, [ecx + 0x10]
mov esi, ecx
mov dword [ebp - 0x60], eax
sub esi, ebx
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x60]
mov eax, ebx
mov ebx, edx
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x5c]
sub ebx, ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
add dword [ebp - 0x14], 0x20
lea eax, [eax + 0x20]
lea edi, [edi + 0x20]
movups xmm1, xmmword [edx + eax - 0x20]
paddb xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
movups xmm1, xmmword [ecx + edi - 0x20]
movups xmm0, xmmword [eax - 0x10]
paddb xmm1, xmm0
movups xmmword [edi - 0x20], xmm1
cmp dword [ebp - 0x14], esi
jl 0x443140
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp eax, esi
jge case.default.0x443010
mov edi, dword [ebp - 0x18]
lea esi, [ebx + eax]
sub edx, ebx
sub ecx, ebx
sub edi, eax
mov al, byte [edx + esi]
lea esi, [esi + 1]
add al, byte [esi - 1]
mov byte [ecx + esi - 1], al
sub edi, 1
jne 0x443197
mov edi, dword [ebp - 8]
jmp 0x44305a
xor eax, eax
mov dword [ebp - 0x44], eax
test esi, esi
jle case.default.0x443010
mov dword [ebp - 0x24], ecx
sub edx, ebx
sub dword [ebp - 0x24], edi
sub ecx, ebx
mov dword [ebp - 0x60], ebx
mov edi, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x24]
lea ebx, [ebx + 1]
movzx edx, byte [edx + eax]
movzx eax, byte [edi + ebx - 1]
add edx, eax
mov eax, dword [ebp - 0x44]
shr edx, 1
inc eax
add dl, byte [ebx - 1]
mov byte [ecx + ebx - 1], dl
mov dword [ebp - 0x44], eax
cmp eax, esi
jl 0x4431d0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
jmp case.default.0x443010
test esi, esi
jle case.default.0x443010
mov eax, ecx
mov dword [ebp - 0x24], ebx
sub eax, edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x60], eax
mov eax, edx
sub eax, ecx
mov ecx, dword [ebp - 0x24]
sub edx, ebx
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0xc], edx
nop word [eax + eax]
movzx esi, byte [edx + ecx]
movzx eax, byte [eax + ebx]
movzx edx, byte [ebx]
mov dword [ebp - 0x44], eax
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x58], esi
add esi, ecx
mov dword [ebp - 0x40], edx
mov eax, esi
sub esi, dword [ebp - 0x44]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x60], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x5c], eax
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [ebp - 0x60]
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x5c]
cmp eax, edx
jg 0x44327a
cmp eax, ecx
jle 0x443286
mov eax, dword [ebp - 0x44]
cmp edx, ecx
cmovle eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov al, byte [ecx]
inc ecx
add al, byte [ebp - 0x40]
mov byte [ebx + edi], al
inc ebx
sub dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], ecx
jne 0x443230
jmp 0x443057
xor esi, esi
cmp dword [ebp - 0x18], esi
jle 0x44305a
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x60], eax
mov eax, ebx
mov ebx, dword [ebp - 0x60]
sub eax, ecx
mov dword [ebp - 0x5c], eax
mov al, byte [ebx + esi]
lea edx, [ecx + esi]
mov edi, dword [ebp - 0x5c]
inc esi
shr al, 1
add al, byte [edi + edx]
mov byte [edx], al
cmp esi, dword [ebp - 0x18]
jl 0x4432c3
jmp 0x443054
mov dword [ebp - 0x60], 0
test esi, esi
jle case.default.0x443010
mov eax, ecx
mov edx, ebx
sub eax, edi
mov edi, dword [ebp - 0x60]
sub edx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edx
nop
movzx ebx, byte [eax + edi]
lea edx, [ecx + edi]
mov eax, dword [ebp - 0x5c]
inc edi
mov al, byte [eax + edx]
add al, bl
mov byte [edx], al
mov eax, dword [ebp - 0x58]
cmp edi, esi
jl 0x443300
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
jmp case.default.0x443010
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 8], str.invalid_width
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 8], str.invalid_filter
xor eax, eax
mov esp, ebp
pop ebp
ret
mov bl, 1
cmp ecx, 4
jne 0x4433b8
mov ecx, dword [ebp - 0x28]
cmp ecx, 2
jl 0x4433a6
mov edi, ecx
shr edi, 1
mov eax, edi
neg eax
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x60], ecx
movzx ecx, byte [esi]
shr cl, 4
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
inc esi
and cl, 0xf
movzx ecx, cl
imul ecx, eax
mov byte [edx + 1], cl
add edx, 2
sub edi, 1
jne 0x443377
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jle 0x443609
mov cl, byte [esi]
shr cl, 4
jmp 0x4435fe
cmp ecx, 2
jne 0x443483
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
cmp ecx, 4
jl 0x443439
mov edi, ecx
shr edi, 2
mov eax, edi
neg eax
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x24], ecx
nop dword [eax + eax]
movzx ecx, byte [esi]
shr cl, 6
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
inc esi
and cl, 3
movzx ecx, cl
imul ecx, eax
mov byte [edx + 3], cl
add edx, 4
sub edi, 1
jne 0x4433e0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jle 0x443451
mov cl, byte [esi]
shr cl, 6
movzx ecx, cl
movzx eax, bl
imul ecx, eax
mov byte [edx], cl
inc edx
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
jle 0x44346d
mov cl, byte [esi]
shr cl, 4
and cl, 3
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
mov ecx, dword [ebp - 0x24]
cmp ecx, 2
jle 0x443609
mov cl, byte [esi]
shr cl, 2
and cl, 3
jmp 0x4435fe
cmp ecx, 1
jne 0x443609
mov edi, dword [ebp - 0x28]
cmp edi, 8
jl 0x443560
mov eax, edi
shr eax, 3
mov dword [ebp - 0x60], eax
neg eax
lea edi, [edi + eax*8]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x60]
nop dword [eax + eax]
movzx ecx, byte [esi]
shr cl, 7
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 6
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 5
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 3], cl
movzx ecx, byte [esi]
shr cl, 3
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 4], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 5], cl
movzx ecx, byte [esi]
shr cl, 1
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 6], cl
movzx ecx, byte [esi]
inc esi
and cl, 1
movzx ecx, cl
imul ecx, eax
mov byte [edx + 7], cl
add edx, 8
sub edi, 1
jne 0x4434b0
mov edi, dword [ebp - 0x5c]
test edi, edi
jle 0x443575
mov cl, byte [esi]
shr cl, 7
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 1
jle 0x44358e
mov cl, byte [esi]
shr cl, 6
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 2
jle 0x4435a7
mov cl, byte [esi]
shr cl, 5
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 3
jle 0x4435c0
mov cl, byte [esi]
shr cl, 4
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 4
jle 0x4435d9
mov cl, byte [esi]
shr cl, 3
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 5
jle 0x4435f2
mov cl, byte [esi]
shr cl, 2
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 6
jle 0x443609
mov cl, byte [esi]
shr cl, 1
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
je 0x443673
cmp eax, 1
jne 0x443632
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov esi, dword [ebp - 0x1c]
js 0x443676
mov byte [esi + ecx*2 + 1], 0xff
mov al, byte [esi + ecx]
mov byte [esi + ecx*2], al
sub ecx, 1
jns 0x443620
jmp 0x443676
mov esi, dword [ebp + 0x10]
sub esi, 1
js 0x443673
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + 1]
lea edx, [edx + esi*2]
lea ecx, [ecx + esi*4]
add edx, esi
add ecx, 2
nop dword [eax + eax]
sub esi, 1
mov byte [ecx + 1], 0xff
movzx eax, byte [edx + 1]
lea edx, [edx - 3]
mov byte [ecx], al
lea ecx, [ecx - 4]
movzx eax, byte [edx + 3]
mov byte [ecx + 3], al
movzx eax, byte [edx + 2]
mov byte [ecx + 2], al
jns 0x443650
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x34]
add esi, dword [ebp - 0x34]
sub dword [ebp + 0x14], 1
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], esi
jne 0x4430a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10
jne 0x4436d1
mov ebx, dword [ebp + 0xc]
mov edx, esi
imul ebx, dword [ebp + 0x10]
imul ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4436d1
movzx ecx, byte [esi]
lea edx, [edx + 2]
movzx eax, byte [edx - 1]
lea esi, [esi + 2]
shl cx, 8
or cx, ax
mov word [edx - 2], cx
sub ebx, 1
jne 0x4436b4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 8], str.too_large
xor eax, eax
mov esp, ebp
pop ebp
ret