Function at 0x140011a30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [rcx]
xor r12d, r12d
cmp dword [rsp + 0x110], 0x10
mov r10d, r12d
mov r15, rcx
mov esi, r8d
mov r8d, dword [rsp + 0x100]
sete r10b
mov eax, dword [rax + 8]
inc r10d
mov ebx, r10d
mov dword [rsp + 0x20], eax
imul ebx, r9d
mov r13d, eax
imul r13d, r10d
mov ebp, r9d
mov rdi, rdx
mov dword [rsp + 0x28], r8d
mov ecx, ebx
imul ecx, r8d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x38], ecx
cmp r9d, eax
je 0x140011ad3
inc eax
cmp r9d, eax
je 0x140011ad3
mov r8d, 0x1261
lea rdx, str.e:codecppocean2ocean2guiimgui_stb_image.h
lea rcx, str.out_n__s__img_n__out_n__s__img_n__1
call fcn.140067378
mov r8d, dword [rsp + 0x100]
mov r14d, dword [rsp + 0x108]
test r8d, r8d
js 0x140011b2e
test r14d, r14d
js 0x140011b2e
je 0x140011af5
mov eax, 0x7fffffff
cdq
idiv r14d
cmp r8d, eax
jg 0x140011b2e
mov ecx, r8d
imul ecx, r14d
test ecx, ecx
js 0x140011b2e
test ebx, ebx
js 0x140011b2e
je 0x140011b12
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x140011b2e
mov eax, ebx
imul eax, r8d
imul eax, r14d
movsxd rcx, eax
call fcn.140067440
mov r8d, dword [rsp + 0x100]
jmp 0x140011b31
mov rax, r12
mov qword [r15 + 0x18], rax
test rax, rax
jne 0x140011b52
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140012b7d
mov r10d, dword [rsp + 0x20]
test r10d, r10d
js 0x140012b6a
test r8d, r8d
js 0x140012b6a
je 0x140011b7d
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r10d, eax
jg 0x140012b6a
mov ecx, r10d
imul ecx, r8d
mov dword [rsp + 0x24], ecx
test ecx, ecx
js 0x140012b6a
mov r11d, dword [rsp + 0x110]
test r11d, r11d
js 0x140012b6a
je 0x140011bb4
mov eax, 0x7fffffff
cdq
idiv r11d
cmp ecx, eax
jg 0x140012b6a
mov eax, ecx
imul eax, r11d
cmp eax, 0x7ffffff8
jg 0x140012b6a
lea r9d, [rax + 7]
shr r9d, 3
mov dword [rsp + 0x34], r9d
lea eax, [r9 + 1]
imul eax, r14d
cmp esi, eax
jae 0x140011bf6
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.not_enough_pixels
jmp 0x140012b7d
mov edx, r12d
mov dword [rsp + 0x2c], edx
test r14d, r14d
je 0x14001268c
movsxd r14, r13d
movsxd r15, ebx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x78], r15
nop word [rax + rax]
movzx ebp, byte [rdi]
mov ecx, edx
mov ebx, dword [rsp + 0x38]
inc rdi
mov rax, qword [rsp + 0xe0]
imul ecx, ebx
mov r11, qword [rax + 0x18]
add r11, rcx
mov qword [rsp + 0x98], rcx
cmp ebp, 4
ja 0x140012701
mov esi, dword [rsp + 0x110]
cmp esi, 8
jge 0x140011c8d
cmp r9d, r8d
ja 0x14001265d
mov eax, dword [rsp + 0xf8]
mov r13d, 1
imul eax, r8d
mov r14d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x28], r9d
sub eax, r9d
add r11, rax
mov rax, rbx
lea rcx, [0x140000000]
mov rbx, r11
sub rbx, rax
test edx, edx
jne 0x140011ca9
movzx ebp, byte [rbp + rcx + 0x1476d4]
test r14, r14
jle 0x140011dcb
mov r10, rbx
mov r9, r11
sub r10, rdi
mov rdx, rdi
sub r9, rdi
mov r8, r14
cmp ebp, 6
ja case.default.0x140011cd6
movsxd rax, ebp
mov eax, dword [rcx + rax*4 + 0x12ba4]
add rax, rcx
jmp rax
inc rdx
sub r8, 1
je 0x140011dc6
lea rcx, [0x140000000]
jmp 0x140011cc4
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140011dc6
jmp case.0x140011cd6.0
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140011dc6
jmp case.0x140011cd6.1
movzx eax, byte [r10 + rdx]
add al, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140011dc6
jmp case.0x140011cd6.2
movzx eax, byte [r10 + rdx]
lea rdx, [rdx + 1]
shr al, 1
add al, byte [rdx - 1]
mov byte [r9 + rdx - 1], al
sub r8, 1
je 0x140011dc6
jmp case.0x140011cd6.3
movzx eax, byte [r10 + rdx]
lea rdx, [rdx + 1]
test al, al
mov ecx, r12d
cmovne ecx, eax
add cl, byte [rdx - 1]
mov byte [r9 + rdx - 1], cl
sub r8, 1
je 0x140011dc6
jmp case.0x140011cd6.4
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140011dc6
jmp case.0x140011cd6.5
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne case.0x140011cd6.6
mov r15, qword [rsp + 0x78]
mov r10d, dword [rsp + 0x20]
cmp esi, 8
jne 0x140011ded
movsxd rdx, dword [rsp + 0xf8]
cmp r10d, edx
je 0x140011de5
movsxd rax, r10d
mov byte [rax + r11], 0xff
mov rax, rdx
movsxd rcx, r10d
jmp 0x140011e14
mov edx, dword [rsp + 0xf8]
cmp esi, 0x10
jne 0x140011e0d
cmp r10d, edx
je 0x140011e05
mov word [r14 + r11], 0xffff
mov rax, r15
movsxd rcx, r13d
jmp 0x140011e14
mov eax, 1
mov ecx, eax
lea rsi, [rax + rbx]
add rdi, rcx
lea rbx, [rax + r11]
mov qword [rsp + 0x68], rsi
mov r11d, dword [rsp + 0x110]
mov qword [rsp + 0x50], rbx
cmp r11d, 8
jl 0x140012354
cmp r10d, edx
je 0x140012354
lea eax, [r10 + 1]
cmp eax, edx
je 0x140011e6d
mov r8d, 0x12b8
lea rdx, str.e:codecppocean2ocean2guiimgui_stb_image.h
lea rcx, str.img_n__1__out_n
call fcn.140067378
mov r11d, dword [rsp + 0x110]
cmp ebp, 6
ja case.default.0x140011e8a
lea rdx, [0x140000000]
movsxd rax, ebp
mov ecx, dword [rdx + rax*4 + 0x12bc0]
add rcx, rdx
jmp rcx
mov edx, dword [rsp + 0x100]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x140012315
movsxd r10, r13d
mov r9d, eax
test r14, r14
jle 0x140011ed1
mov r8, rdi
mov rcx, rbx
sub r8, rbx
mov rdx, r14
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140011ec0
mov byte [r14 + rbx], 0xff
add rdi, r10
add rbx, r15
sub r9, 1
jne 0x140011ea5
jmp case.default.0x140011e8a
mov edx, dword [rsp + 0x100]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x140012315
movsxd r11, r13d
mov r10d, eax
test r14, r14
jle 0x140011f35
mov r8, rbx
mov r9, rbx
sub r8, r15
mov rcx, rdi
sub r8, rdi
mov rdx, r14
sub r9, rdi
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
add al, byte [rcx]
mov byte [rcx + r9], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140011f20
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x140011f00
jmp 0x140012306
mov edx, dword [rsp + 0x100]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x140012315
movsxd rbp, r13d
xor r12d, r12d
mov r11d, eax
nop word [rax + rax]
mov r10, r12
test r13d, r13d
jle 0x140012040
cmp r13d, 0x40
jb 0x140012040
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x140011fa3
cmp rdx, rdi
jae 0x140012040
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x140011fb5
cmp rdx, rsi
jae 0x140012040
mov ecx, r13d
and ecx, 0x8000003f
jge 0x140011fc7
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r13d
mov rdx, rsi
sub eax, ecx
mov rcx, rdi
sub rcx, rbx
movsxd r8, eax
sub rdx, rbx
lea rax, [rbx + 0x10]
nop
movdqu xmm0, xmmword [rdx + rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax + rcx - 0x40]
movdqu xmmword [rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rcx + rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rax - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rcx + rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
cmp r10, r8
jl 0x140011fe0
cmp r10, r14
jge 0x140012075
mov r8, rsi
lea rcx, [r10 + rdi]
mov r9, rbx
sub r8, rdi
sub r9, rdi
mov rdx, r14
sub rdx, r10
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
add al, byte [rcx]
mov byte [rcx + r9], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140012060
mov byte [r14 + rbx], 0xff
add rdi, rbp
add rbx, r15
add rsi, r15
sub r11, 1
jne 0x140011f70
jmp 0x140012306
mov edx, dword [rsp + 0x100]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x140012315
movsxd r12, r13d
mov ebp, eax
nop word [rax + rax]
test r14, r14
jle 0x1400120f0
mov r8, rbx
mov r10, rdi
sub r8, r15
sub r10, rsi
sub r8, rsi
mov r11, rbx
sub r11, rsi
mov rdx, rsi
mov r9, r14
movzx ecx, byte [r8 + rdx]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
add ecx, eax
shr ecx, 1
add cl, byte [r10 + rdx - 1]
mov byte [r11 + rdx - 1], cl
sub r9, 1
jne 0x1400120d0
mov byte [r14 + rbx], 0xff
add rdi, r12
add rbx, r15
add rsi, r15
sub rbp, 1
jne 0x1400120b0
jmp 0x140012306
mov edx, dword [rsp + 0x100]
dec edx
cmp edx, 1
jb case.default.0x140011e8a
movsxd rax, r13d
lea rcx, [r14 + rbx]
mov qword [rsp + 0x40], rax
lea r10, [r15 + r14]
mov r8, qword [rsp + 0x40]
mov rax, r15
sub rax, rbx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x90], r10
mov qword [rsp + 0x70], rdx
nop dword [rax]
test r14, r14
jle 0x14001220e
mov r9, rcx
mov r12, r14
mov rcx, rsi
sub r9, r10
sub rcx, rbx
lea rbx, [rax + rsi]
add rax, rdi
mov rsi, rcx
mov r14, rax
nop word [rax + rax]
movzx r10d, byte [r9]
movzx ebp, byte [r9 + rsi]
mov ecx, r10d
movzx r13d, byte [rbx + r9]
sub ecx, ebp
lea r8d, [rcx + r13]
mov eax, r8d
sub r8d, ebp
sub eax, r10d
cdq
mov r11d, eax
mov eax, ecx
xor r11d, edx
sub r11d, edx
cdq
mov ecx, eax
mov eax, r8d
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp r11d, ecx
jg 0x1400121c5
cmp r11d, eax
jle 0x1400121ce
cmp ecx, eax
mov r10d, ebp
cmovle r10d, r13d
movzx eax, byte [r14 + r9]
add al, r10b
mov byte [r9 + r15], al
inc r9
sub r12, 1
jne 0x140012180
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x40]
mov r10, qword [rsp + 0x90]
add rbx, r15
mov byte [rcx], 0xff
add rcx, r15
mov qword [rsp + 0x50], rbx
sub rax, r15
mov qword [rsp + 0x58], rcx
add rsi, r15
mov qword [rsp + 0x60], rax
add rdi, r8
mov qword [rsp + 0x68], rsi
sub rdx, 1
mov qword [rsp + 0x70], rdx
jne 0x140012150
jmp 0x140012306
mov edx, dword [rsp + 0x100]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x140012315
movsxd r11, r13d
mov r10d, eax
test r14, r14
jle 0x140012299
mov r8, rbx
mov r9, rbx
sub r8, r15
mov rcx, rdi
sub r8, rdi
mov rdx, r14
sub r9, rdi
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [rcx + r9 - 1], al
sub rdx, 1
jne 0x140012280
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x140012261
jmp 0x140012306
mov edx, dword [rsp + 0x100]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x140012315
movsxd r11, r13d
mov r10d, eax
test r14, r14
jle 0x1400122f5
mov r8, rbx
mov r9, rbx
sub r8, r15
mov rcx, rdi
sub r8, rdi
mov rdx, r14
sub r9, rdi
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
add al, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400122e0
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x1400122c1
mov r11d, dword [rsp + 0x110]
mov edx, dword [rsp + 0x100]
cmp r11d, 0x10
jne 0x14001262b
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
add rcx, rax
test edx, edx
je 0x14001262b
mov eax, edx
mov byte [r14 + rcx + 1], 0xff
add rcx, r15
sub rax, 1
jne 0x140012340
jmp 0x14001262b
mov r10d, dword [rsp + 0x28]
dec r10d
imul r10d, r13d
mov dword [rsp + 0x40], r10d
cmp ebp, 6
ja case.default.0x140012385
lea rdx, [0x140000000]
movsxd rax, ebp
movsxd r9, r10d
mov ecx, dword [rdx + rax*4 + 0x12bdc]
add rcx, rdx
jmp rcx
mov r8, r9
mov rdx, rdi
mov rcx, rbx
call fcn.14005e110
mov r11d, dword [rsp + 0x110]
jmp case.default.0x140012385
test r10d, r10d
jle case.default.0x140012385
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1400123c0
jmp case.default.0x140012385
xor r12d, r12d
mov edx, r12d
test r10d, r10d
jle 0x1400124b3
cmp r10d, 0x40
jb 0x1400124b3
lea eax, [r10 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea r8, [rcx + rbx]
cmp rbx, rax
ja 0x14001240e
cmp r8, rdi
jae 0x1400124b3
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x140012420
cmp r8, rsi
jae 0x1400124b3
mov ecx, r10d
and ecx, 0x8000003f
jge 0x140012432
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r10d
mov r8, rbx
sub eax, ecx
mov rcx, rsi
sub rcx, rdi
movsxd r10, eax
sub r8, rdi
mov rax, rdi
nop dword [rax]
movdqu xmm0, xmmword [rax]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax]
movdqu xmm2, xmmword [rcx + rax + 0x10]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmmword [rax + r8 - 0x40], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmmword [r8 + rax - 0x30], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rcx + rax - 0x10]
movdqu xmmword [r8 + rax - 0x20], xmm1
paddb xmm2, xmm0
movdqu xmmword [r8 + rax - 0x10], xmm2
cmp rdx, r10
jl 0x140012450
cmp rdx, r9
jge case.default.0x140012385
sub rsi, rdi
lea rcx, [rdx + rdi]
sub rbx, rdi
sub r9, rdx
nop dword [rax]
movzx eax, byte [rcx + rsi]
add al, byte [rcx]
mov byte [rcx + rbx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1400124d0
jmp case.default.0x140012385
test r10d, r10d
jle case.default.0x140012385
mov rdx, rbx
mov r8, rdi
sub rdx, r14
sub r8, rsi
sub rdx, rsi
sub rbx, rsi
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx + rsi]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
add ecx, eax
shr ecx, 1
add cl, byte [r8 + rsi - 1]
mov byte [rbx + rsi - 1], cl
sub r9, 1
jne 0x140012510
jmp case.default.0x140012385
test r10d, r10d
jle case.default.0x140012385
mov r10, rbx
mov r13, rsi
sub r10, r14
sub r13, rbx
mov rax, r14
sub rax, rbx
lea r15, [rax + rsi]
lea rbp, [rax + rdi]
nop word [rax + rax]
movzx r11d, byte [r10]
movzx esi, byte [r10 + r13]
mov ecx, r11d
movzx r12d, byte [r15 + r10]
sub ecx, esi
lea r8d, [r12 + rcx]
mov eax, r8d
sub r8d, esi
sub eax, r11d
cdq
mov ebx, eax
mov eax, ecx
xor ebx, edx
sub ebx, edx
cdq
mov ecx, eax
mov eax, r8d
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ebx, ecx
jg 0x1400125a0
cmp ebx, eax
jle 0x1400125a9
cmp ecx, eax
mov r11d, esi
cmovle r11d, r12d
movzx eax, byte [r10 + rbp]
add al, r11b
mov byte [r10 + r14], al
inc r10
sub r9, 1
jne 0x140012560
mov r15, qword [rsp + 0x78]
mov r11d, dword [rsp + 0x110]
jmp case.default.0x140012385
test r10d, r10d
jle case.default.0x140012385
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
movzx eax, byte [rdx + rcx]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [rbx + rcx - 1], al
sub r9, 1
jne 0x1400125e1
jmp case.default.0x140012385
test r10d, r10d
jle case.default.0x140012385
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
nop
movzx eax, byte [rdx + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140012610
movsxd rax, dword [rsp + 0x40]
add rdi, rax
mov edx, dword [rsp + 0x2c]
xor r12d, r12d
mov r8d, dword [rsp + 0x100]
inc edx
mov r9d, dword [rsp + 0x34]
mov dword [rsp + 0x2c], edx
cmp edx, dword [rsp + 0x108]
jae 0x140012675
mov r13d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0x20]
jmp 0x140011c20
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid_width
jmp 0x140012b7d
mov ebp, dword [rsp + 0xf8]
mov r14d, dword [rsp + 0x108]
mov r15, qword [rsp + 0xe0]
cmp r11d, 8
jge 0x140012b16
test r14d, r14d
je 0x140012b63
mov r15d, dword [rsp + 0x118]
mov r13d, dword [rsp + 0xf8]
movsxd rsi, r8d
imul ebp, r8d
mov r14d, r9d
nop dword [rax]
mov rax, qword [rsp + 0xe0]
mov ecx, r12d
imul ecx, dword [rsp + 0x38]
mov r9, rbp
sub r9, r14
mov rax, qword [rax + 0x18]
add r9, rax
add r9, rcx
lea rbx, [rax + rcx]
mov r8, rbx
test r15d, r15d
jne 0x140012719
movsxd rax, r11d
lea rcx, [0x140000000]
movzx r10d, byte [rax + rcx + 0x15e410]
jmp 0x14001271c
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid_filter
jmp 0x140012b7d
mov r10b, 1
cmp r11d, 4
jne 0x140012796
mov edi, dword [rsp + 0x24]
cmp edi, 2
jl 0x140012775
mov r11d, edi
shr r11, 1
mov eax, r11d
neg eax
lea edi, [rdi + rax*2]
nop dword [rax]
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx ecx, r10b
mov byte [r8], dl
movzx eax, byte [r9]
inc r9
and al, 0xf
movzx edx, al
imul edx, ecx
mov byte [r8 + 1], dl
add r8, 2
sub r11, 1
jne 0x140012740
test edi, edi
jle 0x140012a40
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x140012a40
cmp r11d, 2
jne 0x140012877
mov edi, dword [rsp + 0x24]
cmp edi, 4
jl 0x140012825
mov r11d, edi
shr r11, 2
mov eax, r11d
neg eax
lea edi, [rdi + rax*4]
nop dword [rax + rax]
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx eax, r10b
mov byte [r8], dl
movzx ecx, byte [r9]
shr cl, 4
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 1], cl
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
movzx ecx, cl
imul ecx, eax
mov byte [r8 + 2], cl
movzx eax, byte [r9]
inc r9
and al, 3
movzx ecx, r10b
movzx edx, al
imul edx, ecx
mov byte [r8 + 3], dl
add r8, 4
sub r11, 1
jne 0x1400127c0
test edi, edi
jle 0x140012840
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp edi, 1
jle 0x14001285f
movzx ecx, byte [r9]
shr cl, 4
and cl, 3
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp edi, 2
jle 0x140012a40
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x140012a33
cmp r11d, 1
jne 0x140012a40
mov r11d, dword [rsp + 0x24]
cmp r11d, 8
jl 0x140012968
mov edi, r11d
shr rdi, 3
mov eax, edi
neg eax
lea r11d, [r11 + rax*8]
nop
movzx eax, byte [r9]
shr al, 7
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx eax, r10b
mov byte [r8], dl
movzx ecx, byte [r9]
shr cl, 6
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 1], cl
movzx ecx, byte [r9]
shr cl, 5
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 2], cl
movzx ecx, byte [r9]
shr cl, 4
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 3], cl
movzx ecx, byte [r9]
shr cl, 3
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 4], cl
movzx ecx, byte [r9]
shr cl, 2
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 5], cl
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx ecx, cl
imul ecx, eax
mov byte [r8 + 6], cl
movzx eax, byte [r9]
inc r9
and al, 1
movzx ecx, r10b
movzx edx, al
imul edx, ecx
mov byte [r8 + 7], dl
add r8, 8
sub rdi, 1
jne 0x1400128a0
test r11d, r11d
jle 0x140012984
movzx eax, byte [r9]
shr al, 7
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp r11d, 1
jle 0x1400129a4
movzx ecx, byte [r9]
shr cl, 6
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 2
jle 0x1400129c4
movzx ecx, byte [r9]
shr cl, 5
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 3
jle 0x1400129e4
movzx ecx, byte [r9]
shr cl, 4
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 4
jle 0x140012a04
movzx ecx, byte [r9]
shr cl, 3
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 5
jle 0x140012a24
movzx ecx, byte [r9]
shr cl, 2
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 6
jle 0x140012a40
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
mov r10d, dword [rsp + 0x20]
cmp r10d, r13d
je 0x140012af6
cmp r10d, 1
jne 0x140012a84
lea rcx, [rsi - 1]
test rcx, rcx
js 0x140012af6
nop dword [rax]
nop word [rax + rax]
mov byte [rbx + rcx*2 + 1], 0xff
movzx eax, byte [rcx + rbx]
mov byte [rbx + rcx*2], al
sub rcx, 1
jns 0x140012a70
jmp 0x140012af6
cmp r10d, 3
je 0x140012aa3
mov r8d, 0x1314
lea rdx, str.e:codecppocean2ocean2guiimgui_stb_image.h
lea rcx, str.img_n__3
call fcn.140067378
lea r8, [rsi - 1]
test r8, r8
js 0x140012af6
lea rdx, [r8*2 + 1]
add rdx, rbx
lea rcx, [r8*4 + 2]
add rdx, r8
add rcx, rbx
nop word [rax + rax]
sub r8, 1
mov byte [rcx + 1], 0xff
movzx eax, byte [rdx + 1]
lea rdx, [rdx - 3]
mov byte [rcx], al
lea rcx, [rcx - 4]
movzx eax, byte [rdx + 3]
mov byte [rcx + 3], al
movzx eax, byte [rdx + 2]
mov byte [rcx + 2], al
jns 0x140012ad0
mov r11d, dword [rsp + 0x110]
inc r12d
cmp r12d, dword [rsp + 0x108]
jb 0x1400126c0
mov eax, 1
jmp 0x140012b88
cmp r11d, 0x10
jne 0x140012b63
imul ebp, dword [rsp + 0x100]
mov r9, qword [r15 + 0x18]
mov r8, r9
imul ebp, r14d
test ebp, ebp
je 0x140012b63
mov r10d, ebp
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 2]
movzx ecx, byte [r8 + 1]
lea r8, [r8 + 2]
shl dx, 8
or dx, cx
mov word [r8 - 2], dx
sub r10, 1
jne 0x140012b40
mov eax, 1
jmp 0x140012b88
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
mov edx, 0x20
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret