Function at 0x432d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x18], 0x10
push ebx
sete cl
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
inc ecx
push esi
push edi
mov esi, ecx
mov edi, edx
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 8]
imul esi, edx
mov dword [ebp - 0x20], eax
mov ebx, esi
mov dword [ebp - 4], esi
imul ebx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ebx
mov ebx, eax
imul ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0xc], ebx
cmp edx, eax
je 0x432db8
inc eax
cmp edx, eax
je 0x432db8
push 0x1261
push str.D:GABRIELEprogrammazioneVisual_StudioOpenGLTurorialOpenGLTurorial_src_vendor_stb_stb_image.h
push str.out_n__s__img_n__out_n__s__img_n__1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
test ecx, ecx
js 0x433e05
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x433e05
je 0x432de2
xor edx, edx
mov eax, 0x7fffffff
div dword [ebp + 0x14]
cmp ecx, eax
jg 0x433e05
mov eax, dword [ebp + 0x14]
imul ecx, eax
test ecx, ecx
js 0x433e05
test esi, esi
js 0x433e05
je 0x432e07
mov eax, 0x7fffffff
cdq
idiv esi
cmp ecx, eax
jg 0x433e05
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ecx + 0xc], eax
test eax, eax
je 0x433e0f
mov eax, dword [ebp - 0x20]
test eax, eax
js 0x433dea
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x432e4d
xor edx, edx
mov eax, 0x7fffffff
div ecx
cmp dword [ebp - 0x20], eax
jg 0x433dea
mov eax, dword [ebp - 0x20]
mov edx, eax
imul edx, ecx
mov dword [ebp - 0x28], edx
test edx, edx
js 0x433dea
mov ecx, dword [ebp + 0x18]
test ecx, ecx
js 0x433dea
je 0x432e7e
xor edx, edx
mov eax, 0x7fffffff
div ecx
mov edx, dword [ebp - 0x28]
cmp edx, eax
jg 0x433dea
mov eax, edx
imul eax, ecx
cmp eax, 0x7ffffff8
jg 0x433dea
mov eax, edx
mov edx, dword [ebp + 0x14]
imul eax, ecx
add eax, 7
shr eax, 3
mov dword [ebp - 0x30], eax
inc eax
imul eax, edx
cmp dword [ebp + 8], eax
jae 0x432ec3
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 0xc], str.not_enough_pixels
xor eax, eax
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x3c], eax
test edx, edx
je 0x4339e7
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
imul eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
movzx ecx, byte [edi]
add edx, eax
inc edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
cmp ecx, 4
ja 0x4339c9
cmp dword [ebp + 0x18], 8
jge 0x432f26
mov ebx, dword [ebp + 0x10]
cmp dword [ebp - 0x30], ebx
ja 0x4339ae
mov eax, dword [ebp + 0xc]
imul eax, ebx
mov ebx, 1
mov dword [ebp - 0xc], ebx
sub eax, dword [ebp - 0x30]
add edx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x44], eax
mov eax, edx
sub eax, dword [ebp - 0x34]
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], eax
jne 0x432f3e
movzx ecx, byte [ecx + 0x4925ac]
mov dword [ebp - 0x14], ecx
test ebx, ebx
jle 0x43304a
mov ecx, dword [ebp - 0x18]
sub eax, edi
sub ecx, edi
mov dword [ebp - 0x24], eax
mov edx, edi
mov dword [ebp - 0x40], ecx
mov esi, ebx
cmp dword [ebp - 0x14], 6
ja case.default.0x432f60
mov ebx, dword [ebp - 0x14]
jmp dword [ebx*4 + 0x433e2c]
mov ebx, dword [ebp - 0xc]
inc edx
sub esi, 1
jne 0x432f57
jmp 0x43303e
mov ebx, dword [ebp - 0xc]
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edx + ecx - 1], al
sub esi, 1
jne 0x432f80
jmp 0x43303e
mov ebx, dword [ebp - 0xc]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edx + ecx - 1], al
sub esi, 1
jne 0x432f96
jmp 0x43303e
mov ebx, dword [ebp - 0xc]
nop dword [eax]
mov al, byte [edx + eax]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [edx + ecx - 1], al
sub esi, 1
je 0x43303e
mov eax, dword [ebp - 0x24]
jmp 0x432fb0
mov ebx, dword [ebp - 0xc]
nop word [eax + eax]
mov al, byte [edx + eax]
lea edx, [edx + 1]
shr al, 1
add al, byte [edx - 1]
mov byte [edx + ecx - 1], al
sub esi, 1
je 0x43303e
mov eax, dword [ebp - 0x24]
jmp 0x432fd0
mov ebx, dword [ebp - 0xc]
nop dword [eax]
mov cl, byte [edx + eax]
lea edx, [edx + 1]
xor al, al
cmp al, cl
sbb al, al
and al, cl
mov ecx, dword [ebp - 0x40]
add al, byte [edx - 1]
mov byte [edx + ecx - 1], al
sub esi, 1
je 0x43303e
mov eax, dword [ebp - 0x24]
jmp 0x432ff0
mov ebx, dword [ebp - 0xc]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edx + ecx - 1], al
sub esi, 1
jne 0x433015
jmp 0x43303e
mov ebx, dword [ebp - 0xc]
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edx + ecx - 1], al
sub esi, 1
jne 0x433030
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x18], 8
jne 0x433084
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x20], esi
je 0x433065
mov ecx, dword [ebp - 0x20]
mov byte [edx + ecx], 0xff
mov ecx, dword [ebp - 0x14]
add edi, dword [ebp - 0x20]
lea edx, [esi + eax]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
add esi, eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], esi
jmp 0x4330d9
cmp dword [ebp + 0x18], 0x10
jne 0x4330b4
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
je 0x43309b
mov word [edx + ebx], 0xffff
add edi, ebx
lea edx, [eax + esi]
add esi, dword [ebp - 0x18]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], esi
jmp 0x4330d6
mov edx, dword [ebp - 0x1c]
inc edi
mov esi, dword [ebp - 0x18]
inc edx
inc esi
mov dword [ebp - 8], edi
cmp dword [ebp + 0x18], 8
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], esi
jl 0x433653
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x20], eax
je 0x433653
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, dword [ebp + 0xc]
je 0x433103
push 0x12b8
push str.D:GABRIELEprogrammazioneVisual_StudioOpenGLTurorialOpenGLTurorial_src_vendor_stb_stb_image.h
push str.img_n__1__out_n
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 6
ja case.default.0x433114
mov ecx, dword [ebp - 0x38]
mov edi, ecx
jmp dword [eax*4 + 0x433e48]
mov edx, dword [ebp + 0x10]
mov edi, ecx
lea eax, [edx - 1]
mov dword [ebp - 0x38], eax
cmp eax, 1
jb 0x43361b
mov ecx, dword [ebp - 4]
test ebx, ebx
jle 0x43315a
mov eax, edi
mov edx, ebx
sub eax, esi
mov ecx, esi
mov dword [ebp - 0x40], eax
mov ebx, eax
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x433143
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov byte [esi + ebx], 0xff
add edi, ebx
add esi, ecx
sub eax, 1
mov dword [ebp - 0x38], eax
jne 0x433132
jmp 0x433623
mov edx, dword [ebp + 0x10]
mov edi, ecx
lea eax, [edx - 1]
mov dword [ebp - 0x24], eax
cmp eax, 1
jb 0x43361b
mov ecx, dword [ebp - 4]
mov eax, esi
sub eax, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], eax
xor edx, edx
test ebx, ebx
jle 0x4331bf
mov dword [ebp - 0x40], edi
sub edi, esi
nop dword [eax + eax]
mov ebx, dword [ebp - 0x38]
lea ecx, [edx + esi]
mov al, byte [ecx + edi]
add al, byte [ebx + edx]
inc edx
mov ebx, dword [ebp - 0xc]
mov byte [ecx], al
cmp edx, ebx
jl 0x4331a0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov byte [esi + ebx], 0xff
add edi, ebx
add eax, ecx
mov dword [ebp - 8], edi
add esi, ecx
mov dword [ebp - 0x38], eax
sub dword [ebp - 0x24], 1
jne 0x433190
jmp 0x433623
mov edx, dword [ebp + 0x10]
mov edi, ecx
lea eax, [edx - 1]
mov dword [ebp - 0x40], eax
cmp eax, 1
jb 0x43361b
mov edx, dword [ebp - 0x10]
lea eax, [esi + ebx]
mov ecx, 0x20
mov dword [ebp - 8], edi
sub ecx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], ecx
xor ecx, ecx
test ebx, ebx
jle 0x433391
cmp ebx, 8
jb 0x433359
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x43322d
lea eax, [esi - 1]
add eax, ebx
cmp eax, edi
jae 0x433359
lea eax, [edx - 1]
add eax, ebx
cmp esi, eax
ja 0x433243
lea eax, [esi - 1]
add eax, ebx
cmp eax, edx
jae 0x433359
cmp ebx, 0x40
jb 0x4332fb
mov eax, ebx
and eax, 0x8000003f
jns 0x43325a
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp - 0x38], ebx
mov ebx, edx
sub dword [ebp - 0x38], eax
sub ebx, edi
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], ebx
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], ebx
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x14]
mov ebx, edx
sub ebx, esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebp - 0x4c]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + edx]
lea ebx, [ebx + 0x40]
paddb xmm1, xmm0
movups xmmword [ebx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + esi - 0x40]
paddb xmm1, xmm0
movups xmmword [eax + edi - 0x40], xmm1
mov edi, dword [ebp - 0x50]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + ebx - 0x40]
mov edi, dword [ebp - 0x14]
paddb xmm1, xmm0
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [edx + ecx + 0x30]
add ecx, 0x40
movups xmm0, xmmword [eax - 0x20]
paddb xmm1, xmm0
movups xmmword [ebx - 0x30], xmm1
cmp ecx, dword [ebp - 0x38]
jl 0x433290
mov ebx, dword [ebp - 0xc]
mov eax, ebx
mov esi, dword [ebp - 0x1c]
and al, 0x3f
mov edi, dword [ebp - 8]
cmp al, 8
jb 0x433355
jmp 0x433302
mov eax, edx
sub eax, edi
mov dword [ebp - 0x18], eax
mov eax, ebx
and eax, 0x80000007
jns 0x433310
dec eax
or eax, 0xfffffff8
inc eax
mov dword [ebp - 0x38], ebx
mov ebx, esi
sub dword [ebp - 0x38], eax
sub ebx, edi
mov dword [ebp - 0x50], ebx
lea eax, [ecx + edi]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x50]
nop word [eax + eax]
movq xmm1, qword [ebx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
paddb xmm1, xmm0
movq qword [eax + edx - 8], xmm1
cmp ecx, dword [ebp - 0x38]
jl 0x433330
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp ecx, ebx
jge 0x43338e
mov eax, dword [ebp - 0x10]
lea edx, [ecx + edi]
sub esi, edi
mov dword [ebp - 0x50], ebx
sub eax, edi
mov dword [ebp - 0x38], esi
sub ebx, ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x38]
mov esi, eax
mov al, byte [edx + esi]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [edx + ecx - 1], al
sub ebx, 1
jne 0x433373
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
add edi, ebx
mov byte [eax], 0xff
add esi, ecx
add eax, ecx
mov dword [ebp - 8], edi
add edx, ecx
mov dword [ebp - 0x1c], esi
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], edx
jne 0x433204
jmp 0x433623
mov edx, dword [ebp + 0x10]
mov edi, ecx
lea eax, [edx - 1]
mov dword [ebp - 0x40], eax
cmp eax, 1
jb 0x43361b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], edx
nop
mov dword [ebp - 0x50], 0
test ebx, ebx
jle 0x433431
sub eax, edi
mov edx, edi
sub esi, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], esi
mov edi, eax
mov esi, dword [ebp - 0x50]
nop dword [eax]
mov eax, dword [ebp - 0x38]
lea edx, [edx + 1]
movzx ecx, byte [eax + esi]
inc esi
movzx eax, byte [edx + edi - 1]
add ecx, eax
mov eax, dword [ebp - 0x48]
shr ecx, 1
add cl, byte [edx - 1]
mov byte [edx + eax - 1], cl
cmp esi, ebx
jl 0x433400
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
mov byte [esi + ebx], 0xff
add edi, ebx
add esi, ecx
mov dword [ebp - 8], edi
add edx, ecx
mov dword [ebp - 0x1c], esi
add eax, ecx
mov dword [ebp - 0x38], edx
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x10], eax
jne 0x4333e0
jmp 0x433623
mov edx, dword [ebp + 0x10]
mov edi, ecx
lea eax, [edx - 1]
mov dword [ebp - 0x14], eax
cmp eax, 1
jb 0x43361b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edx
test ebx, ebx
jle 0x43351e
mov dword [ebp - 0x50], edx
mov edx, eax
sub edx, esi
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x50]
sub eax, edi
mov dword [ebp - 0x4c], edi
mov esi, edi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], eax
nop word [eax + eax]
movzx eax, byte [ebx + edx]
mov ecx, dword [ebp - 0x48]
movzx edx, byte [ebx]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], edx
movzx edi, byte [esi + ecx]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x54], edi
add edi, ecx
mov eax, edi
sub edi, dword [ebp - 0x40]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x50], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x4c], eax
mov eax, edi
cdq
mov ecx, eax
mov eax, dword [ebp - 0x50]
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x4c]
cmp eax, edx
jg 0x4334ed
cmp eax, ecx
jle 0x4334f9
mov eax, dword [ebp - 0x40]
cmp edx, ecx
cmovle eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov al, byte [esi]
inc esi
mov ecx, dword [ebp - 4]
add al, byte [ebp - 0x38]
mov edx, dword [ebp - 0x58]
mov byte [ebx + ecx], al
inc ebx
sub dword [ebp - 0x24], 1
jne 0x4334a0
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov byte [esi + ebx], 0xff
add edi, ebx
add esi, ecx
mov dword [ebp - 8], edi
add edx, ecx
mov dword [ebp - 0x1c], esi
add eax, ecx
mov dword [ebp - 0x18], edx
sub dword [ebp - 0x14], 1
mov dword [ebp - 0x10], eax
jne 0x433478
jmp 0x433623
mov edx, dword [ebp + 0x10]
mov edi, ecx
lea eax, [edx - 1]
mov dword [ebp - 0x40], eax
cmp eax, 1
jb 0x43361b
mov ecx, dword [ebp - 4]
mov eax, esi
sub eax, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], eax
xor edx, edx
test ebx, ebx
jle 0x43358f
sub edi, esi
mov dword [ebp - 0x58], edi
mov eax, dword [ebp - 0x38]
lea ecx, [edx + esi]
mov al, byte [eax + edx]
inc edx
shr al, 1
add al, byte [ecx + edi]
mov byte [ecx], al
cmp edx, ebx
jl 0x433571
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov byte [esi + ebx], 0xff
add edi, ebx
add eax, ecx
mov dword [ebp - 8], edi
add esi, ecx
mov dword [ebp - 0x38], eax
sub dword [ebp - 0x40], 1
jne 0x433566
jmp 0x433623
mov edx, dword [ebp + 0x10]
mov edi, ecx
lea eax, [edx - 1]
mov dword [ebp - 0x40], eax
cmp eax, 1
jb 0x43361b
mov ecx, dword [ebp - 4]
mov edx, esi
sub edx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x58], 0
test ebx, ebx
jle 0x433601
mov eax, edi
mov edi, dword [ebp - 0x58]
sub eax, esi
mov dword [ebp - 0x54], eax
nop dword [eax]
mov cl, byte [edx + edi]
lea edx, [edi + esi]
mov al, byte [edx + eax]
inc edi
add al, cl
mov byte [edx], al
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x38]
cmp edi, ebx
jl 0x4335e0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
mov byte [esi + ebx], 0xff
add edi, ebx
add edx, ecx
mov dword [ebp - 8], edi
add esi, ecx
mov dword [ebp - 0x38], edx
sub eax, 1
mov dword [ebp - 0x40], eax
jne 0x4335c4
jmp 0x433623
mov ecx, dword [ebp - 4]
jmp 0x433626
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0x10
jne 0x433998
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
inc eax
test edx, edx
je 0x433998
add eax, dword [ebp - 0x5c]
add eax, ebx
mov byte [eax], 0xff
add eax, ecx
sub edx, 1
jne 0x433644
jmp 0x433998
mov eax, dword [ebp - 0x44]
dec eax
imul eax, ebx
mov dword [ebp - 0x18], eax
cmp ecx, 6
ja case.default.0x433666
jmp dword [ecx*4 + 0x433e64]
push dword [ebp - 0x18]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp case.default.0x433666
xor edx, edx
test eax, eax
jle case.default.0x433666
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x5c], eax
mov eax, edi
mov edi, dword [ebp - 0x5c]
sub eax, esi
mov dword [ebp - 0x58], eax
nop word [eax + eax]
mov ebx, dword [ebp - 0x58]
lea ecx, [esi + edx]
mov al, byte [edi + edx]
inc edx
add al, byte [ecx + ebx]
mov byte [ecx], al
cmp edx, dword [ebp - 0x18]
jl 0x4336a0
jmp 0x43398f
xor ecx, ecx
test eax, eax
jle case.default.0x433666
cmp eax, 8
jb 0x43380e
dec eax
mov dword [ebp - 0x5c], eax
lea ebx, [eax + esi]
add eax, edi
mov dword [ebp - 0x40], ebx
cmp esi, eax
ja 0x4336e4
cmp ebx, edi
jae 0x43380e
mov eax, dword [ebp - 0x5c]
add eax, edx
cmp esi, eax
ja 0x4336f6
cmp dword [ebp - 0x40], edx
jae 0x43380e
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
jb 0x4337af
and eax, 0x8000003f
jns 0x43370e
dec eax
or eax, 0xffffffc0
inc eax
mov ebx, dword [ebp - 0x18]
sub ebx, eax
lea eax, [esi + 0x20]
mov dword [ebp - 0x50], ebx
mov ebx, edx
sub ebx, edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x24], ebx
lea eax, [edi + 0x10]
mov ebx, esi
sub ebx, edi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x58], ebx
mov ebx, edx
sub ebx, esi
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x5c]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + ecx]
lea ebx, [ebx + 0x40]
paddb xmm1, xmm0
movups xmmword [ebx - 0x60], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
mov edi, dword [ebp - 0x54]
movups xmm0, xmmword [eax - 0x40]
paddb xmm1, xmm0
movups xmmword [esi + eax - 0x40], xmm1
movups xmm1, xmmword [edi + ebx - 0x40]
mov edi, dword [ebp - 0x24]
movups xmm0, xmmword [eax - 0x30]
paddb xmm1, xmm0
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [edx + ecx + 0x30]
add ecx, 0x40
movups xmm0, xmmword [eax - 0x20]
paddb xmm1, xmm0
movups xmmword [ebx - 0x30], xmm1
cmp ecx, dword [ebp - 0x50]
jl 0x433740
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
and al, 0x3f
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
cmp al, 8
jb 0x433805
mov eax, dword [ebp - 0x18]
jmp 0x4337b2
sub dword [ebp - 0x24], edi
and eax, 0x80000007
jns 0x4337be
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [ebp - 0x18]
sub ebx, eax
lea eax, [edi + ecx]
mov dword [ebp - 0x58], ebx
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0x5c], ebx
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x5c]
nop word [eax + eax]
movq xmm1, qword [ebx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
paddb xmm1, xmm0
movq qword [edx + eax - 8], xmm1
cmp ecx, dword [ebp - 0x58]
jl 0x4337e0
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jge case.default.0x433666
mov ebx, dword [ebp - 0x18]
lea eax, [edi + ecx]
sub edx, edi
mov dword [ebp - 0x5c], eax
sub esi, edi
sub ebx, ecx
mov ecx, eax
nop
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
add al, byte [ecx - 1]
mov byte [esi + ecx - 1], al
sub ebx, 1
jne 0x433820
jmp 0x433992
xor ecx, ecx
mov dword [ebp - 0x40], ecx
test eax, eax
jle case.default.0x433666
mov eax, esi
mov dword [ebp - 0x5c], edi
sub eax, ebx
sub edx, edi
mov ebx, dword [ebp - 0x18]
sub esi, edi
mov dword [ebp - 0x58], eax
nop word [eax + eax]
movzx ecx, byte [eax + ecx]
lea edi, [edi + 1]
movzx eax, byte [edx + edi - 1]
add ecx, eax
mov eax, dword [ebp - 0x58]
shr ecx, 1
add cl, byte [edi - 1]
mov byte [esi + edi - 1], cl
mov ecx, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, ebx
jl 0x433860
jmp 0x43398f
test eax, eax
jle case.default.0x433666
mov ecx, esi
mov dword [ebp - 0x38], edi
sub ecx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x5c], ecx
mov ecx, edx
sub ecx, esi
sub edx, edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edx
movzx esi, byte [edx + ecx]
mov eax, dword [ebp - 0x58]
movzx edx, byte [edi]
mov ecx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x24], edx
movzx eax, byte [eax + edi]
sub ecx, eax
mov dword [ebp - 0x40], eax
add esi, ecx
mov eax, esi
sub esi, dword [ebp - 0x40]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x5c], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x54], eax
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [ebp - 0x5c]
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x54]
cmp eax, edx
jg 0x4338fe
cmp eax, ecx
jle 0x43390a
mov eax, dword [ebp - 0x40]
cmp edx, ecx
cmovle eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov al, byte [ecx]
inc ecx
add al, byte [ebp - 0x24]
mov byte [edi + ebx], al
inc edi
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x38], ecx
jne 0x4338b1
mov edi, dword [ebp - 8]
jmp case.default.0x433666
xor edx, edx
test eax, eax
jle case.default.0x433666
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x5c], eax
mov eax, edi
mov edi, dword [ebp - 0x5c]
sub eax, esi
mov dword [ebp - 0x58], eax
nop
mov al, byte [edi + edx]
lea ecx, [esi + edx]
mov ebx, dword [ebp - 0x58]
inc edx
shr al, 1
add al, byte [ecx + ebx]
mov byte [ecx], al
cmp edx, dword [ebp - 0x18]
jl 0x433940
jmp 0x43398f
mov dword [ebp - 0x5c], 0
test eax, eax
jle case.default.0x433666
mov eax, esi
mov ecx, edi
mov edi, dword [ebp - 0x5c]
sub eax, ebx
mov ebx, dword [ebp - 0x18]
sub ecx, esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov cl, byte [eax + edi]
lea edx, [esi + edi]
mov eax, dword [ebp - 0x58]
inc edi
mov al, byte [edx + eax]
add al, cl
mov byte [edx], al
mov eax, dword [ebp - 0x54]
cmp edi, ebx
jl 0x433977
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
add edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 0x14]
inc eax
mov dword [ebp - 0x3c], eax
cmp eax, edx
jae 0x4339e4
mov esi, dword [ebp - 4]
jmp 0x432ed6
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 0xc], 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 + 0xc], str.invalid_filter
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
cmp ecx, 8
jge 0x433da5
test edx, edx
je 0x433dde
mov ebx, dword [ebp + 0xc]
imul ebx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x2c]
mov esi, ebx
sub esi, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
add esi, eax
add esi, ecx
cmp dword [ebp + 0x1c], 0
lea edi, [eax + ecx]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], edi
mov edx, edi
jne 0x433a2f
mov bl, byte [eax + 0x4925b4]
jmp 0x433a31
mov bl, 1
cmp eax, 4
jne 0x433a94
mov ecx, dword [ebp - 0x28]
cmp ecx, 2
jl 0x433a82
mov edi, ecx
shr edi, 1
mov eax, edi
neg eax
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x5c], ecx
nop dword [eax]
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 0x433a50
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jle 0x433cf2
mov cl, byte [esi]
shr cl, 4
jmp 0x433ce7
cmp eax, 2
jne 0x433b5d
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
cmp ecx, 4
jl 0x433b13
mov edi, ecx
shr edi, 2
mov eax, edi
neg eax
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x24], ecx
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 0x433ab7
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jle 0x433b2b
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 0x433b47
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 0x433cf2
mov cl, byte [esi]
shr cl, 2
and cl, 3
jmp 0x433ce7
cmp eax, 1
jne 0x433cf5
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
cmp ecx, 8
jl 0x433c37
mov edi, ecx
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x24], ecx
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 0x433b84
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jle 0x433c4f
mov cl, byte [esi]
shr cl, 7
movzx ecx, cl
movzx eax, bl
imul ecx, eax
mov byte [edx], cl
inc edx
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
jle 0x433c6b
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
mov ecx, dword [ebp - 0x24]
cmp ecx, 2
jle 0x433c87
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
mov ecx, dword [ebp - 0x24]
cmp ecx, 3
jle 0x433ca3
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
mov ecx, dword [ebp - 0x24]
cmp ecx, 4
jle 0x433cbf
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
mov ecx, dword [ebp - 0x24]
cmp ecx, 5
jle 0x433cdb
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
mov ecx, dword [ebp - 0x24]
cmp ecx, 6
jle 0x433cf2
mov cl, byte [esi]
shr cl, 1
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
je 0x433d86
cmp eax, 1
jne 0x433d23
mov ecx, dword [ebp + 0x10]
sub ecx, eax
js 0x433d83
mov byte [edi + ecx*2 + 1], 0xff
mov al, byte [ecx + edi]
mov byte [edi + ecx*2], al
sub ecx, 1
jns 0x433d11
jmp 0x433d83
cmp eax, 3
je 0x433d40
push 0x1314
push str.D:GABRIELEprogrammazioneVisual_StudioOpenGLTurorialOpenGLTurorial_src_vendor_stb_stb_image.h
push str.img_n__3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov esi, dword [ebp + 0x10]
sub esi, 1
js 0x433d83
lea edx, [esi*2 + 1]
add edx, edi
lea ecx, [esi*4 + 2]
add edx, esi
add ecx, edi
nop dword [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 0x433d60
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x34]
sub dword [ebp + 0x14], 1
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x18], ecx
jne 0x433a07
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10
jne 0x433dde
mov ebx, dword [ebp + 0xc]
imul ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
imul ebx, dword [ebp + 0x14]
mov esi, dword [eax + 0xc]
mov edx, esi
test ebx, ebx
je 0x433dde
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 0x433dc1
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 + 0xc], str.too_large
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 0xc], str.outofmem
xor eax, eax
mov esp, ebp
pop ebp
ret