Function at 0x140025d50
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

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, 0x90
mov ebp, dword [rsp + 0xf0]
xor r15d, r15d
mov r13d, dword [rsp + 0x100]
mov r14d, r9d
mov rax, qword [rcx]
cmp r13d, 0x10
mov r9d, dword [rsp + 0xf8]
mov r10d, r15d
sete r10b
mov qword [rsp + 0x60], r15
inc r10d
mov dword [rsp + 0x38], ebp
mov eax, dword [rax + 8]
mov ebx, r10d
imul ebx, r14d
mov r12d, eax
imul r12d, r10d
mov esi, r8d
mov rdi, rdx
mov dword [rsp + 0x20], eax
mov r8, rcx
mov r11d, ebx
imul r11d, ebp
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x24], r11d
cmp r14d, eax
je 0x140025e11
inc eax
cmp r14d, eax
je 0x140025e11
mov r8d, 0x1261
lea rdx, str.C:devCodeCYeastemYeastemDependancies_stb_imageinclude_stb_image.h
lea rcx, str.out_n__s__img_n__out_n__s__img_n__1
call fcn.14014fe80
mov r8, qword [rsp + 0xd0]
mov r9d, dword [rsp + 0xf8]
mov r11d, dword [rsp + 0x24]
test ebp, ebp
js 0x140026f76
test r9d, r9d
js 0x140026f76
je 0x140025e36
xor edx, edx
mov eax, 0x7fffffff
div r9d
cmp ebp, eax
jg 0x140026f76
mov ecx, ebp
imul ecx, r9d
test ecx, ecx
js 0x140026f76
test ebx, ebx
js 0x140026f76
je 0x140025e5e
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x140026f76
mov eax, r9d
imul eax, r11d
movsxd rcx, eax
call fcn.1401486d8
mov rbp, qword [rsp + 0xd0]
mov qword [rbp + 0x18], rax
test rax, rax
je 0x140026f7a
mov r10d, dword [rsp + 0x20]
test r10d, r10d
js 0x140026f5a
mov r15d, dword [rsp + 0xf0]
test r15d, r15d
je 0x140025eb0
xor edx, edx
mov eax, 0x7fffffff
div r15d
cmp r10d, eax
jg 0x140026f5a
mov ecx, r10d
imul ecx, r15d
mov dword [rsp + 0x28], ecx
test ecx, ecx
js 0x140026f5a
test r13d, r13d
js 0x140026f5a
je 0x140025ee0
xor edx, edx
mov eax, 0x7fffffff
div r13d
cmp ecx, eax
jg 0x140026f5a
mov eax, ecx
imul eax, r13d
cmp eax, 0x7ffffff8
jg 0x140026f5a
mov edx, dword [rsp + 0xf8]
mov r8d, ecx
imul r8d, r13d
add r8d, 7
shr r8d, 3
mov dword [rsp + 0x44], r8d
lea eax, [r8 + 1]
imul eax, edx
cmp esi, eax
jae 0x140025f36
mov edx, dword [0x1401efdcc]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
jmp 0x140026f94
xor r11d, r11d
mov dword [rsp + 0x3c], r11d
mov r9d, r11d
test edx, edx
je 0x140026a97
mov edx, dword [rsp + 0x100]
movsxd r14, r12d
movsxd r13, ebx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x28], ecx
nop word [rax + rax]
mov rbx, qword [rbp + 0x18]
mov ecx, r9d
movzx ebp, byte [rdi]
inc rdi
mov esi, dword [rsp + 0x24]
imul ecx, esi
add rbx, rcx
mov qword [rsp + 0x80], rcx
cmp ebp, 4
ja 0x140026a5d
cmp edx, 8
jge 0x140025fcf
cmp r8d, r15d
ja 0x140026a3e
mov eax, dword [rsp + 0xe8]
mov r12d, 1
imul eax, r15d
mov r14d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x38], r8d
sub eax, r8d
add rbx, rax
mov rax, rsi
lea r15, [0x140000000]
mov rsi, rbx
sub rsi, rax
test r9d, r9d
jne 0x140025fed
movzx ebp, byte [rbp + r15 + 0x1e6100]
test r14, r14
jle 0x140026106
mov r10, rsi
mov r9, rbx
sub r10, rdi
mov rdx, rdi
sub r9, rdi
mov r8, r14
cmp ebp, 6
ja case.default.0x14002601b
movsxd rax, ebp
mov eax, dword [r15 + rax*4 + 0x26fbc]
add rax, r15
jmp rax
inc rdx
sub r8, 1
jne 0x140026008
jmp 0x140026101
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140026101
jmp case.0x14002601b.0
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140026101
jmp case.0x14002601b.1
movzx eax, byte [r10 + rdx]
add al, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140026101
jmp case.0x14002601b.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 0x140026101
jmp case.0x14002601b.3
movzx eax, byte [r10 + rdx]
lea rdx, [rdx + 1]
test al, al
mov ecx, r11d
cmovne ecx, eax
add cl, byte [rdx - 1]
mov byte [r9 + rdx - 1], cl
sub r8, 1
je 0x140026101
jmp case.0x14002601b.4
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x140026101
jmp case.0x14002601b.5
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne case.0x14002601b.6
mov r10d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x100]
cmp eax, 8
jne 0x14002613e
movsxd rax, dword [rsp + 0xe8]
movsxd rcx, r10d
cmp r10d, eax
je 0x140026126
mov byte [rcx + rbx], 0xff
add rdi, rcx
add rsi, rax
add rbx, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rbx
mov r15, rdi
jmp 0x14002618e
cmp eax, 0x10
jne 0x14002616f
cmp r10d, dword [rsp + 0xe8]
je 0x140026154
mov word [r14 + rbx], 0xffff
add rsi, r13
movsxd rax, r12d
add rdi, rax
mov qword [rsp + 0x48], rsi
add rbx, r13
mov r15, rdi
mov qword [rsp + 0x30], rbx
jmp 0x14002618e
inc rdi
inc rsi
mov r15, rdi
inc rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rbx
cmp eax, 8
jl 0x1400266d4
cmp r10d, dword [rsp + 0xe8]
je 0x1400266d4
lea eax, [r10 + 1]
cmp eax, dword [rsp + 0xe8]
je 0x1400261c2
mov r8d, 0x12b8
lea rdx, str.C:devCodeCYeastemYeastemDependancies_stb_imageinclude_stb_image.h
lea rcx, str.img_n__1__out_n
call fcn.14014fe80
cmp ebp, 6
ja case.default.0x1400261e2
lea rdx, [0x140000000]
movsxd rax, ebp
mov rdi, r15
mov ecx, dword [rdx + rax*4 + 0x26fd8]
add rcx, rdx
jmp rcx
mov eax, dword [rsp + 0xf0]
dec eax
cmp eax, 1
jb case.default.0x1400261e2
movsxd r10, r12d
mov r9d, eax
nop dword [rax]
test r14, r14
jle 0x140026222
mov r8, rdi
mov rcx, rbx
sub r8, rbx
mov rdx, r14
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140026211
mov byte [r14 + rbx], 0xff
add rdi, r10
add rbx, r13
sub r9, 1
jne 0x140026200
jmp case.default.0x1400261e2
mov eax, dword [rsp + 0xf0]
dec eax
cmp eax, 1
jb case.default.0x1400261e2
movsxd r11, r12d
mov r10d, eax
test r14, r14
jle 0x140026285
mov r8, rbx
mov r9, rbx
sub r8, r13
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 0x140026270
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r13
sub r10, 1
jne 0x140026250
jmp case.default.0x1400261e2
mov eax, dword [rsp + 0xf0]
dec eax
cmp eax, 1
jb case.default.0x1400261e2
movsxd rbp, r12d
xor r15d, r15d
mov r11d, eax
nop word [rax + rax]
mov rdx, r15
test r12d, r12d
jle 0x140026401
cmp r12d, 8
jb 0x140026401
lea eax, [r12 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea r8, [rcx + rbx]
cmp rbx, rax
ja 0x1400262f4
cmp r8, rdi
jae 0x140026401
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x140026306
cmp r8, rsi
jae 0x140026401
cmp r12d, 0x40
jb 0x1400263ad
mov ecx, r12d
and ecx, 0x8000003f
jge 0x140026322
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r12d
sub eax, ecx
mov rcx, rsi
movsxd r9, eax
sub rcx, rdi
lea rax, [rdi + 0x10]
mov r8, rbx
sub r8, rdi
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rax + rcx]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [r8 + rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [rax + r8 - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmmword [r8 + rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [r8 + rax - 0x20], xmm2
cmp rdx, r9
jl 0x140026340
mov eax, r12d
and al, 0x3f
cmp al, 8
jb 0x140026401
mov ecx, r12d
and ecx, 0x80000007
jge 0x1400263bf
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, r12d
sub eax, ecx
mov rcx, rsi
movsxd r9, eax
sub rcx, rdi
lea rax, [rdx + rdi]
mov r8, rbx
sub r8, rdi
nop word [rax + rax]
movq xmm1, qword [rax + rcx]
add rdx, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
paddb xmm1, xmm0
movq qword [rax + r8 - 8], xmm1
cmp rdx, r9
jl 0x1400263e0
cmp rdx, r14
jge 0x140026435
mov r9, rsi
lea rcx, [rdx + rdi]
mov r10, rbx
sub r9, rdi
sub r10, rdi
mov r8, r14
sub r8, rdx
nop dword [rax]
movzx eax, byte [rcx + r9]
add al, byte [rcx]
mov byte [rcx + r10], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140026420
mov byte [r14 + rbx], 0xff
add rdi, rbp
add rbx, r13
add rsi, r13
sub r11, 1
jne 0x1400262c0
jmp case.default.0x1400261e2
mov eax, dword [rsp + 0xf0]
dec eax
cmp eax, 1
jb case.default.0x1400261e2
movsxd r15, r12d
mov ebp, eax
nop dword [rax]
test r14, r14
jle 0x1400264b0
mov r8, rbx
mov r10, rdi
sub r8, r13
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 0x140026490
mov byte [r14 + rbx], 0xff
add rdi, r15
add rbx, r13
add rsi, r13
sub rbp, 1
jne 0x140026470
jmp case.default.0x1400261e2
mov eax, dword [rsp + 0xf0]
dec eax
cmp eax, 1
jb case.default.0x1400261e2
movsxd rcx, r12d
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x58], rax
nop dword [rax + rax]
test r14, r14
jle 0x140026597
mov rax, rsi
mov r9, rbx
sub rax, rbx
sub r9, r13
mov qword [rsp + 0x68], rax
mov r12, r14
mov r14, qword [rsp + 0x68]
mov rax, r13
sub rax, rbx
lea rbx, [rax + rsi]
lea rsi, [rdi + rax]
movzx r8d, byte [r9]
movzx ebp, byte [r14 + r9]
mov ecx, r8d
movzx r15d, byte [rbx + r9]
sub ecx, ebp
mov r11d, ecx
lea edx, [r15 + rcx]
mov eax, edx
sub eax, r8d
mov r10d, eax
neg r10d
cmovs r10d, eax
neg r11d
cmovs r11d, ecx
sub edx, ebp
mov eax, edx
neg eax
cmovs eax, edx
cmp r10d, r11d
jg 0x140026563
cmp r10d, eax
jle 0x14002656d
cmp r11d, eax
mov r8d, ebp
cmovle r8d, r15d
add r8b, byte [rsi + r9]
mov byte [r9 + r13], r8b
inc r9
sub r12, 1
jne 0x140026520
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
add rsi, r13
mov byte [r14 + rbx], 0xff
add rbx, r13
mov qword [rsp + 0x48], rsi
add rdi, rcx
mov qword [rsp + 0x30], rbx
sub rax, 1
mov qword [rsp + 0x58], rax
jne 0x1400264f0
jmp case.default.0x1400261e2
mov eax, dword [rsp + 0xf0]
dec eax
cmp eax, 1
jb case.default.0x1400261e2
movsxd r11, r12d
mov r10d, eax
nop dword [rax + rax]
test r14, r14
jle 0x140026619
mov r8, rbx
mov r9, rbx
sub r8, r13
mov rcx, rdi
sub r8, rdi
mov rdx, r14
sub r9, rdi
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [r9 + rcx - 1], al
sub rdx, 1
jne 0x140026600
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r13
sub r10, 1
jne 0x1400265e0
jmp case.default.0x1400261e2
mov eax, dword [rsp + 0xf0]
dec eax
cmp eax, 1
jb case.default.0x1400261e2
movsxd r11, r12d
mov r10d, eax
test r14, r14
jle 0x140026675
mov r8, rbx
mov r9, rbx
sub r8, r13
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 [r9 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140026660
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r13
sub r10, 1
jne 0x140026640
mov edx, dword [rsp + 0x100]
mov rbp, qword [rsp + 0xd0]
cmp edx, 0x10
jne 0x140026a08
mov rcx, qword [rsp + 0x80]
add rcx, qword [rbp + 0x18]
mov r15d, dword [rsp + 0xf0]
test r15d, r15d
je 0x140026a10
mov eax, r15d
nop
mov byte [r14 + rcx + 1], 0xff
add rcx, r13
sub rax, 1
jne 0x1400266c0
jmp 0x140026a10
mov r15d, dword [rsp + 0x38]
dec r15d
imul r15d, r12d
mov dword [rsp + 0x30], r15d
cmp ebp, 6
ja case.default.0x140026705
lea rdx, [0x140000000]
movsxd rax, ebp
movsxd r8, r15d
mov ecx, dword [rdx + rax*4 + 0x26ff4]
add rcx, rdx
jmp rcx
mov rdx, rdi
mov rcx, rbx
call fcn.140176bc0
jmp case.default.0x140026705
test r15d, r15d
jle case.default.0x140026705
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 r8, 1
jne 0x140026730
jmp case.default.0x140026705
mov rdx, r11
test r15d, r15d
jle 0x140026881
cmp r15d, 8
jb 0x140026881
lea eax, [r15 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea r9, [rcx + rbx]
cmp rbx, rax
ja 0x14002677b
cmp r9, rdi
jae 0x140026881
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x14002678d
cmp r9, rsi
jae 0x140026881
cmp r15d, 0x40
jb 0x14002682e
mov ecx, r15d
and ecx, 0x8000003f
jge 0x1400267a9
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r15d
sub eax, ecx
mov rcx, rsi
movsxd r10, eax
sub rcx, rdi
lea rax, [rdi + 0x10]
mov r9, rbx
sub r9, rdi
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rax + rcx]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [r9 + rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [rax + r9 - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmmword [r9 + rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [r9 + rax - 0x20], xmm2
cmp rdx, r10
jl 0x1400267c1
mov eax, r15d
and al, 0x3f
cmp al, 8
jb 0x140026881
mov ecx, r15d
and ecx, 0x80000007
jge 0x140026840
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, r15d
sub eax, ecx
mov rcx, rsi
movsxd r10, eax
sub rcx, rdi
lea rax, [rdx + rdi]
mov r9, rbx
sub r9, rdi
nop dword [rax + rax]
movq xmm1, qword [rax + rcx]
add rdx, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
paddb xmm1, xmm0
movq qword [rax + r9 - 8], xmm1
cmp rdx, r10
jl 0x140026860
cmp rdx, r8
jge case.default.0x140026705
sub rsi, rdi
lea rcx, [rdx + rdi]
sub rbx, rdi
sub r8, rdx
nop word [rax + rax]
movzx eax, byte [rsi + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400268a0
jmp case.default.0x140026705
test r15d, r15d
jle case.default.0x140026705
mov rdx, rbx
mov r9, rdi
sub rdx, r14
sub r9, 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 [r9 + rsi - 1]
mov byte [rbx + rsi - 1], cl
sub r8, 1
jne 0x1400268e0
jmp case.default.0x140026705
test r15d, r15d
jle case.default.0x140026705
mov r10, rbx
mov r12, rsi
sub r10, r14
sub r12, rbx
mov rax, r14
sub rax, rbx
lea r13, [rax + rsi]
lea r15, [rax + rdi]
nop word [rax + rax]
movzx r9d, byte [r10]
movzx esi, byte [r12 + r10]
mov ecx, r9d
movzx ebp, byte [r10 + r13]
sub ecx, esi
mov ebx, ecx
lea edx, [rcx + rbp]
mov eax, edx
sub eax, r9d
mov r11d, eax
neg r11d
cmovs r11d, eax
neg ebx
cmovs ebx, ecx
sub edx, esi
mov eax, edx
neg eax
cmovs eax, edx
cmp r11d, ebx
jg 0x14002696f
cmp r11d, eax
jle 0x140026978
cmp ebx, eax
mov r9d, esi
cmovle r9d, ebp
add r9b, byte [r15 + r10]
mov byte [r14 + r10], r9b
inc r10
sub r8, 1
jne 0x140026930
mov r13, qword [rsp + 0x88]
mov r15d, dword [rsp + 0x30]
jmp case.default.0x140026705
test r15d, r15d
jle case.default.0x140026705
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
nop dword [rax]
movzx eax, byte [rdx + rcx]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [rbx + rcx - 1], al
sub r8, 1
jne 0x1400269b0
jmp case.default.0x140026705
test r15d, r15d
jle case.default.0x140026705
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
nop dword [rax]
movzx eax, byte [rcx + rdx]
add al, byte [rcx]
mov byte [rcx + rbx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400269e0
mov edx, dword [rsp + 0x100]
mov rbp, qword [rsp + 0xd0]
movsxd rax, r15d
add rdi, rax
mov r15d, dword [rsp + 0xf0]
mov r9d, dword [rsp + 0x3c]
xor r11d, r11d
mov r8d, dword [rsp + 0x44]
inc r9d
mov dword [rsp + 0x3c], r9d
cmp r9d, dword [rsp + 0xf8]
jae 0x140026a7c
mov r12d, dword [rsp + 0x40]
mov r10d, dword [rsp + 0x20]
jmp 0x140025f70
mov edx, dword [0x1401efdcc]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_width
jmp 0x140026f94
mov edx, dword [0x1401efdcc]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x140026f94
mov r13d, dword [rsp + 0x100]
mov r14d, dword [rsp + 0xe8]
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0xf8]
cmp r13d, 8
jge 0x140026f0f
test edx, edx
je 0x140026f53
mov r12, qword [rsp + 0xd0]
mov ebp, r14d
imul ebp, r15d
movsxd rsi, r15d
mov r15d, dword [rsp + 0x108]
mov r14d, r8d
nop word [rax + rax]
mov rax, qword [r12 + 0x18]
mov edi, r11d
imul edi, dword [rsp + 0x24]
mov r9, rbp
sub r9, r14
add r9, rax
add r9, rdi
lea r8, [rax + rdi]
test r15d, r15d
jne 0x140026b07
movsxd rax, r13d
lea rdx, [0x140000000]
movzx r10d, byte [rax + rdx + 0x182630]
jmp 0x140026b0a
mov r10b, 1
cmp r13d, 4
jne 0x140026b86
mov ebx, ecx
cmp ecx, 2
jl 0x140026b65
mov r11d, ebx
shr r11, 1
mov eax, r11d
neg eax
lea ebx, [rbx + rax*2]
nop word [rax + 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 0x140026b30
test ebx, ebx
jle 0x140026e30
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x140026e30
cmp r13d, 2
jne 0x140026c67
mov ebx, ecx
cmp ecx, 4
jl 0x140026c15
mov r11d, ebx
shr r11, 2
mov eax, r11d
neg eax
lea ebx, [rbx + rax*4]
nop word [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 0x140026bb0
test ebx, ebx
jle 0x140026c30
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp ebx, 1
jle 0x140026c4f
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 ebx, 2
jle 0x140026e30
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x140026e23
cmp r13d, 1
jne 0x140026e30
mov r11d, ecx
cmp ecx, 8
jl 0x140026d58
mov ebx, r11d
shr rbx, 3
mov eax, ebx
neg eax
lea r11d, [r11 + rax*8]
nop dword [rax]
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 rbx, 1
jne 0x140026c90
test r11d, r11d
jle 0x140026d74
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 0x140026d94
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 0x140026db4
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 0x140026dd4
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 0x140026df4
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 0x140026e14
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 0x140026e30
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, dword [rsp + 0xe8]
je 0x140026ee6
mov rbx, qword [r12 + 0x18]
add rbx, rdi
cmp r10d, 1
jne 0x140026e74
lea rcx, [rsi - 1]
test rcx, rcx
js 0x140026ee6
nop
mov byte [rbx + rcx*2 + 1], 0xff
movzx eax, byte [rcx + rbx]
mov byte [rbx + rcx*2], al
sub rcx, 1
jns 0x140026e60
jmp 0x140026ee6
cmp r10d, 3
je 0x140026e93
mov r8d, 0x1314
lea rdx, str.C:devCodeCYeastemYeastemDependancies_stb_imageinclude_stb_image.h
lea rcx, str.img_n__3
call fcn.14014fe80
lea r8, [rsi - 1]
test r8, r8
js 0x140026ee6
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 0x140026ec0
mov r11, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x28]
inc r11d
mov qword [rsp + 0x60], r11
cmp r11d, dword [rsp + 0xf8]
jb 0x140026ad0
mov eax, 1
jmp 0x140026f9f
cmp r13d, 0x10
jne 0x140026f53
mov r9, qword [rbp + 0x18]
imul r14d, r15d
mov r8, r9
imul r14d, edx
test r14d, r14d
je 0x140026f53
mov r10d, r14d
nop dword [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 0x140026f30
mov eax, 1
jmp 0x140026f9f
mov edx, dword [0x1401efdcc]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
jmp 0x140026f94
mov qword [r8 + 0x18], r15
mov edx, dword [0x1401efdcc]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov ecx, 0x20
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret