Function at 0x14004d6e0
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, 0x90
mov ebp, dword [rsp + 0xf0]
xor r12d, r12d
cmp dword [rsp + 0x100], 0x10
mov r14d, r9d
mov rax, qword [rcx]
mov r10d, r12d
mov r15d, dword [rsp + 0xf8]
sete r10b
inc r10d
mov dword [rsp + 0x30], ebp
mov ebx, r10d
mov esi, r8d
mov eax, dword [rax + 8]
mov rdi, rdx
imul ebx, r9d
mov r13d, eax
imul r13d, r10d
mov r8, rcx
mov dword [rsp + 0x20], eax
mov r9d, ebx
imul r9d, ebp
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x24], r9d
cmp r14d, eax
je 0x14004d791
inc eax
cmp r14d, eax
je 0x14004d791
mov r8d, 0x1237
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.out_n__s__img_n__out_n__s__img_n1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r8, qword [rsp + 0xd0]
mov r9d, dword [rsp + 0x24]
test ebp, ebp
js 0x14004e890
test r15d, r15d
js 0x14004e890
je 0x14004d7b6
xor edx, edx
mov eax, 0x7fffffff
div r15d
cmp ebp, eax
jg 0x14004e890
mov ecx, ebp
imul ecx, r15d
test ecx, ecx
js 0x14004e890
test ebx, ebx
js 0x14004e890
je 0x14004d7de
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x14004e890
mov eax, r15d
imul eax, r9d
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, qword [rsp + 0xd0]
mov qword [rbp + 0x18], rax
test rax, rax
je 0x14004e894
mov r10d, dword [rsp + 0x20]
test r10d, r10d
js 0x14004e87b
mov r11d, dword [rsp + 0xf0]
test r11d, r11d
je 0x14004d831
xor edx, edx
mov eax, 0x7fffffff
div r11d
cmp r10d, eax
jg 0x14004e87b
mov ecx, r10d
imul ecx, r11d
mov dword [rsp + 0x40], ecx
test ecx, ecx
js 0x14004e87b
mov r8d, dword [rsp + 0x100]
test r8d, r8d
js 0x14004e87b
je 0x14004d869
xor edx, edx
mov eax, 0x7fffffff
div r8d
cmp ecx, eax
jg 0x14004e87b
mov eax, ecx
imul eax, r8d
cmp eax, 0x7ffffff8
jg 0x14004e87b
mov edx, ecx
imul edx, r8d
add edx, 7
shr edx, 3
mov dword [rsp + 0x3c], edx
lea eax, [rdx + 1]
imul eax, r15d
cmp esi, eax
jae 0x14004d8ad
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.not_enough_pixels
jmp 0x14004e8a7
mov dword [rsp + 0x34], r12d
mov r9d, r12d
test r15d, r15d
je 0x14004e3a4
movsxd r14, r13d
movsxd r15, ebx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x40], ecx
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 0x14004e37c
cmp r8d, 8
jge 0x14004d930
cmp edx, r11d
ja 0x14004e364
mov eax, dword [rsp + 0xe8]
mov r13d, 1
imul eax, r11d
mov r14d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x30], edx
sub eax, edx
add rbx, rax
mov rax, rsi
lea rcx, [0x140000000]
mov rsi, rbx
sub rsi, rax
test r9d, r9d
jne 0x14004d94d
movzx ebp, byte [rbp + rcx + 0xe8e88]
test r14, r14
jle 0x14004da7b
mov r10, rsi
mov r9, rbx
sub r10, rdi
mov rdx, rdi
sub r9, rdi
mov r8, r14
cmp ebp, 6
ja case.default.0x14004d97a
movsxd rax, ebp
mov eax, dword [rcx + rax*4 + 0x4e8d0]
add rax, rcx
jmp rax
inc rdx
sub r8, 1
je 0x14004da76
lea rcx, [0x140000000]
jmp 0x14004d968
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x14004da76
jmp case.0x14004d97a.0
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x14004da76
jmp case.0x14004d97a.1
movzx eax, byte [r10 + rdx]
add al, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x14004da76
jmp case.0x14004d97a.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 0x14004da76
jmp case.0x14004d97a.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 0x14004da76
jmp case.0x14004d97a.4
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x14004da76
jmp case.0x14004d97a.5
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne case.0x14004d97a.6
mov r15, qword [rsp + 0x60]
mov r10d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x100]
cmp eax, 8
jne 0x14004dab3
movsxd rax, dword [rsp + 0xe8]
movsxd rcx, r10d
cmp r10d, eax
je 0x14004da9b
mov byte [rcx + rbx], 0xff
add rdi, rcx
add rsi, rax
add rbx, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x28], rbx
mov r12, rdi
jmp 0x14004db03
cmp eax, 0x10
jne 0x14004dae4
cmp r10d, dword [rsp + 0xe8]
je 0x14004dac9
mov word [r14 + rbx], 0xffff
add rsi, r15
movsxd rax, r13d
add rdi, rax
mov qword [rsp + 0x48], rsi
add rbx, r15
mov r12, rdi
mov qword [rsp + 0x28], rbx
jmp 0x14004db03
inc rdi
inc rsi
mov r12, rdi
inc rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x28], rbx
cmp eax, 8
jl 0x14004dfc4
cmp r10d, dword [rsp + 0xe8]
je 0x14004dfc4
lea eax, [r10 + 1]
cmp eax, dword [rsp + 0xe8]
je 0x14004db40
mov r8d, 0x128b
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.img_n1__out_n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r11d, dword [rsp + 0xf0]
cmp ebp, 6
ja case.default.0x14004db60
lea rdx, [0x140000000]
movsxd rax, ebp
mov rdi, r12
mov ecx, dword [rdx + rax*4 + 0x4e8ec]
add rcx, rdx
jmp rcx
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x14004db60
movsxd r10, r13d
mov r9d, eax
test r14, r14
jle 0x14004dba1
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 0x14004db90
mov byte [r14 + rbx], 0xff
add rdi, r10
add rbx, r15
sub r9, 1
jne 0x14004db75
jmp case.default.0x14004db60
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x14004db60
movsxd r11, r13d
mov r10d, eax
nop word [rax + rax]
test r14, r14
jle 0x14004dc05
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 0x14004dbf0
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x14004dbd0
jmp case.default.0x14004db60
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x14004db60
movsxd rbp, r13d
xor r12d, r12d
mov r11d, eax
mov r10, r12
test r13d, r13d
jle 0x14004dd00
cmp r13d, 0x40
jb 0x14004dd00
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x14004dc64
cmp rdx, rdi
jae 0x14004dd00
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x14004dc76
cmp rdx, rsi
jae 0x14004dd00
mov ecx, r13d
and ecx, 0x8000003f
jge 0x14004dc88
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r13d
mov rdx, rbx
sub eax, ecx
mov rcx, rsi
sub rcx, rdi
movsxd r8, eax
sub rdx, rdi
lea rax, [rdi + 0x10]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rdx + rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [rdx + rax - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmmword [rdx + rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [rdx + rax - 0x20], xmm2
cmp r10, r8
jl 0x14004dca0
cmp r10, r14
jge 0x14004dd35
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 0x14004dd20
mov byte [r14 + rbx], 0xff
add rdi, rbp
add rbx, r15
add rsi, r15
sub r11, 1
jne 0x14004dc31
jmp case.default.0x14004db60
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x14004db60
movsxd r12, r13d
mov ebp, eax
test r14, r14
jle 0x14004ddb0
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
nop dword [rax]
nop dword [rax + rax]
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 0x14004dd90
mov byte [r14 + rbx], 0xff
add rdi, r12
add rbx, r15
add rsi, r15
sub rbp, 1
jne 0x14004dd64
jmp case.default.0x14004db60
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x14004db60
movsxd rcx, r13d
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x58], rax
test r14, r14
jle 0x14004de98
mov rax, rsi
mov r10, rbx
sub rax, rbx
sub r10, r15
mov qword [rsp + 0x70], rax
mov r12, r14
mov rax, r15
sub rax, rbx
lea rbx, [rax + rsi]
mov rsi, qword [rsp + 0x70]
add rax, rdi
mov r14, rax
nop word [rax + rax]
movzx r9d, byte [r10]
movzx ebp, byte [rsi + r10]
mov ecx, r9d
movzx r13d, byte [rbx + r10]
sub ecx, ebp
lea r8d, [rcx + r13]
mov eax, r8d
sub r8d, ebp
sub eax, r9d
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 0x14004de65
cmp r11d, eax
jle 0x14004de6e
cmp ecx, eax
mov r9d, ebp
cmovle r9d, r13d
add r9b, byte [r14 + r10]
mov byte [r15 + r10], r9b
inc r10
sub r12, 1
jne 0x14004de20
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
add rsi, r15
mov byte [r14 + rbx], 0xff
add rbx, r15
mov qword [rsp + 0x48], rsi
add rdi, rcx
mov qword [rsp + 0x28], rbx
sub rax, 1
mov qword [rsp + 0x58], rax
jne 0x14004dde3
jmp case.default.0x14004db60
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x14004db60
movsxd r11, r13d
mov r10d, eax
test r14, r14
jle 0x14004df0a
mov r8, rbx
mov r9, rbx
sub r8, r15
mov rcx, rdi
sub r8, rdi
mov rdx, r14
sub r9, rdi
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 0x14004def1
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x14004ded7
jmp case.default.0x14004db60
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x14004db60
movsxd r11, r13d
mov r10d, eax
nop dword [rax]
test r14, r14
jle 0x14004df65
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 [r9 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14004df50
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x14004df30
mov r8d, dword [rsp + 0x100]
mov rbp, qword [rsp + 0xd0]
cmp r8d, 0x10
jne 0x14004e32f
mov rcx, qword [rsp + 0x80]
add rcx, qword [rbp + 0x18]
mov r11d, dword [rsp + 0xf0]
test r11d, r11d
je 0x14004e337
mov eax, r11d
mov byte [r14 + rcx + 1], 0xff
add rcx, r15
sub rax, 1
jne 0x14004dfb0
jmp 0x14004e337
mov r10d, dword [rsp + 0x30]
dec r10d
imul r10d, r13d
mov dword [rsp + 0x28], r10d
cmp ebp, 6
ja case.default.0x14004dff5
lea rdx, [0x140000000]
movsxd rax, ebp
movsxd r9, r10d
mov ecx, dword [rdx + rax*4 + 0x4e908]
add rcx, rdx
jmp rcx
mov r8, r9
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, dword [rsp + 0x28]
mov r11d, dword [rsp + 0xf0]
add rdi, rax
mov r8d, dword [rsp + 0x100]
mov rbp, qword [rsp + 0xd0]
jmp 0x14004e337
test r10d, r10d
jle case.default.0x14004dff5
sub rbx, rdi
mov rcx, rdi
mov rdx, rbx
sub rdx, r14
nop
movzx eax, byte [rdx + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x14004e040
movsxd rax, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x100]
add rdi, rax
mov rbp, qword [rsp + 0xd0]
jmp 0x14004e337
xor r12d, r12d
mov edx, r12d
test r10d, r10d
jle 0x14004e154
cmp r10d, 0x40
jb 0x14004e154
lea eax, [r10 - 1]
movsxd rcx, eax
lea rax, [rdi + rcx]
lea r8, [rcx + rbx]
cmp rbx, rax
ja 0x14004e0a6
cmp r8, rdi
jae 0x14004e154
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x14004e0b8
cmp r8, rsi
jae 0x14004e154
mov ecx, r10d
and ecx, 0x8000003f
jge 0x14004e0ca
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
lea rax, [rdi + 0x10]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
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 [r8 + rax - 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, r10
jl 0x14004e0f0
cmp rdx, r9
jge case.default.0x14004dff5
sub rsi, rdi
lea rcx, [rdi + rdx]
sub rbx, rdi
sub r9, rdx
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
add al, byte [rcx]
mov byte [rcx + rbx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x14004e170
movsxd rax, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x100]
add rdi, rax
mov rbp, qword [rsp + 0xd0]
jmp 0x14004e337
test r10d, r10d
jle case.default.0x14004dff5
mov rdx, rbx
mov r8, rdi
sub rdx, r14
sub r8, rsi
sub rdx, rsi
sub rbx, rsi
nop dword [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 0x14004e1c0
movsxd rax, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x100]
add rdi, rax
mov rbp, qword [rsp + 0xd0]
jmp 0x14004e337
test r10d, r10d
jle case.default.0x14004dff5
mov r15, r14
mov r11, rbx
sub r15, rbx
mov r13, rsi
mov rbp, rdi
add r15, rsi
sub r11, r14
sub r13, rbx
sub rbp, rbx
add rbp, r14
movzx r10d, byte [r11]
movzx esi, byte [r11 + r13]
mov ecx, r10d
movzx r12d, byte [r11 + r15]
sub ecx, esi
lea r8d, [r12 + rcx]
mov eax, r8d
sub r8d, esi
sub eax, r10d
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 0x14004e262
cmp ebx, eax
jle 0x14004e26b
cmp ecx, eax
mov r10d, esi
cmovle r10d, r12d
add r10b, byte [r11 + rbp]
mov byte [r11 + r14], r10b
inc r11
sub r9, 1
jne 0x14004e222
movsxd rax, dword [rsp + 0x28]
mov r15, qword [rsp + 0x60]
add rdi, rax
mov r11d, dword [rsp + 0xf0]
mov r8d, dword [rsp + 0x100]
mov rbp, qword [rsp + 0xd0]
jmp 0x14004e337
test r10d, r10d
jle case.default.0x14004dff5
sub rbx, rdi
mov rcx, rdi
mov rdx, rbx
sub rdx, r14
nop word [rax + 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 r9, 1
jne 0x14004e2c0
movsxd rax, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x100]
add rdi, rax
mov rbp, qword [rsp + 0xd0]
jmp 0x14004e337
test r10d, r10d
jle case.default.0x14004dff5
sub rbx, rdi
mov rcx, rdi
mov rdx, rbx
sub rdx, r14
movzx eax, byte [rdx + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x14004e302
movsxd rax, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x100]
add rdi, rax
mov rbp, qword [rsp + 0xd0]
jmp 0x14004e337
mov r11d, dword [rsp + 0xf0]
mov r9d, dword [rsp + 0x34]
xor r12d, r12d
mov edx, dword [rsp + 0x3c]
inc r9d
mov dword [rsp + 0x34], r9d
cmp r9d, dword [rsp + 0xf8]
jae 0x14004e394
mov r13d, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x20]
jmp 0x14004d8d2
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid_width
jmp 0x14004e8a7
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid_filter
jmp 0x14004e8a7
mov r14d, dword [rsp + 0xe8]
mov r15d, dword [rsp + 0xf8]
mov edi, dword [rsp + 0x100]
cmp edi, 8
jge 0x14004e835
test r15d, r15d
je 0x14004e874
mov r15d, dword [rsp + 0x108]
mov ebp, r14d
mov r13d, dword [rsp + 0x40]
imul ebp, r11d
movsxd rsi, r11d
mov r14d, edx
nop word [rax + rax]
mov rax, qword [rsp + 0xd0]
mov ecx, r12d
imul ecx, dword [rsp + 0x24]
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 0x14004e421
movsxd rax, edi
lea rcx, [0x140000000]
movzx r10d, byte [rax + rcx + 0x123390]
jmp 0x14004e424
mov r10b, 1
cmp edi, 4
jne 0x14004e4a6
mov rdi, r13
cmp r13d, 2
jl 0x14004e485
mov r11, r13
shr r11, 1
mov eax, r11d
neg eax
lea edi, [rax*2]
add edi, r13d
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 0x14004e450
test edi, edi
jle 0x14004e760
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x14004e760
cmp edi, 2
jne 0x14004e589
mov rdi, r13
cmp r13d, 4
jl 0x14004e537
mov r11, r13
shr r11, 2
mov eax, r11d
neg eax
lea edi, [rax*4]
add edi, r13d
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 0x14004e4d2
test edi, edi
jle 0x14004e552
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 0x14004e571
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 0x14004e760
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x14004e753
cmp edi, 1
jne 0x14004e760
mov r11, r13
cmp r13d, 8
jl 0x14004e688
mov rdi, r13
shr rdi, 3
mov eax, edi
neg eax
lea r11d, [rax*8]
add r11d, r13d
nop word [rax + 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 rdi, 1
jne 0x14004e5c0
test r11d, r11d
jle 0x14004e6a4
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 0x14004e6c4
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 0x14004e6e4
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 0x14004e704
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 0x14004e724
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 0x14004e744
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 0x14004e760
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 0x14004e816
cmp r10d, 1
jne 0x14004e7a4
lea rcx, [rsi - 1]
test rcx, rcx
js 0x14004e816
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 0x14004e790
jmp 0x14004e816
cmp r10d, 3
je 0x14004e7c4
mov r8d, 0x12e4
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.img_n__3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea r8, [rsi - 1]
test r8, r8
js 0x14004e816
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 0x14004e7f0
mov edi, dword [rsp + 0x100]
inc r12d
cmp r12d, dword [rsp + 0xf8]
jb 0x14004e3e0
mov eax, 1
jmp 0x14004e8b2
cmp edi, 0x10
jne 0x14004e874
mov r9, qword [rbp + 0x18]
imul r14d, r11d
mov r8, r9
imul r14d, r15d
test r14d, r14d
je 0x14004e874
mov r10d, r14d
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 0x14004e851
mov eax, 1
jmp 0x14004e8b2
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
jmp 0x14004e8a7
mov qword [r8 + 0x18], r12
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
mov edx, Ordinal_41
mov qword [rdx + rcx], rax
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