Function at 0x1800bc950
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, 0xa0
mov ebp, dword [rsp + 0x100]
xor r15d, r15d
mov r13d, dword [rsp + 0x110]
mov r14d, r9d
mov rax, qword [rcx]
cmp r13d, 0x10
mov r10d, r15d
mov qword [rsp + 0x60], r15
sete r10b
mov dword [rsp + 0x38], ebp
inc r10d
mov esi, r8d
mov eax, dword [rax + 8]
mov ebx, r10d
mov r8d, dword [rsp + 0x108]
mov r12d, eax
imul ebx, r14d
mov rdi, rdx
imul r12d, r10d
mov r9, rcx
mov dword [rsp + 0x20], eax
mov r11d, ebx
imul r11d, ebp
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x28], r11d
cmp r14d, eax
je 0x1800bca11
inc eax
cmp r14d, eax
je 0x1800bca11
mov r8d, 0x1261
lea rdx, str.D:ProjetsTZTZStb_std_image.h
lea rcx, str.out_n__s__img_n__out_n__s__img_n__1
call fcn.18016e2a0
mov r8d, dword [rsp + 0x108]
mov r9, qword [rsp + 0xe0]
mov r11d, dword [rsp + 0x28]
test ebp, ebp
js 0x1800bdb96
test r8d, r8d
js 0x1800bdb96
je 0x1800bca36
xor edx, edx
mov eax, 0x7fffffff
div r8d
cmp ebp, eax
jg 0x1800bdb96
mov ecx, ebp
imul ecx, r8d
test ecx, ecx
js 0x1800bdb96
test ebx, ebx
js 0x1800bdb96
je 0x1800bca5e
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x1800bdb96
mov eax, r8d
imul eax, r11d
movsxd rcx, eax
call fcn.18016cf84
mov rbp, qword [rsp + 0xe0]
mov qword [rbp + 0x18], rax
test rax, rax
je 0x1800bdb9a
movsxd r10, dword [rsp + 0x20]
test r10d, r10d
js 0x1800bdb7a
mov r15d, dword [rsp + 0x100]
test r15d, r15d
je 0x1800bcab0
xor edx, edx
mov eax, 0x7fffffff
div r15d
cmp r10d, eax
jg 0x1800bdb7a
mov edx, r10d
imul edx, r15d
mov dword [rsp + 0x24], edx
test edx, edx
js 0x1800bdb7a
test r13d, r13d
js 0x1800bdb7a
je 0x1800bcae4
xor edx, edx
mov eax, 0x7fffffff
div r13d
mov edx, dword [rsp + 0x24]
cmp edx, eax
jg 0x1800bdb7a
mov eax, edx
imul eax, r13d
cmp eax, 0x7ffffff8
jg 0x1800bdb7a
mov ecx, dword [rsp + 0x108]
mov r8d, edx
imul r8d, r13d
add r8d, 7
shr r8d, 3
mov dword [rsp + 0x44], r8d
lea eax, [r8 + 1]
imul eax, ecx
cmp esi, eax
jae 0x1800bcb3a
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
jmp 0x1800bdbb4
xor r11d, r11d
mov dword [rsp + 0x3c], r11d
mov r9d, r11d
test ecx, ecx
je 0x1800bd6c5
movsxd r14, r12d
movsxd r13, ebx
mov dword [rsp + 0x24], edx
mov edx, dword [rsp + 0x110]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x68], r10
mov rbx, qword [rbp + 0x18]
mov ecx, r9d
movzx ebp, byte [rdi]
inc rdi
mov esi, dword [rsp + 0x28]
imul ecx, esi
add rbx, rcx
mov qword [rsp + 0x88], rcx
cmp ebp, 4
ja 0x1800bd690
cmp edx, 8
jge 0x1800bcbcf
cmp r8d, r15d
ja 0x1800bd671
mov eax, dword [rsp + 0xf8]
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, [0x180000000]
mov rsi, rbx
sub rsi, rax
test r9d, r9d
jne 0x1800bcbed
movzx ebp, byte [rbp + r15 + 0x1c72a8]
test r14, r14
jle 0x1800bcd06
mov r10, rsi
mov r9, rbx
sub r10, rdi
mov rdx, rdi
sub r9, rdi
mov r8, r14
cmp ebp, 6
ja case.default.0x1800bcc1b
movsxd rax, ebp
mov eax, dword [r15 + rax*4 + 0xbdbdc]
add rax, r15
jmp rax
inc rdx
sub r8, 1
jne 0x1800bcc08
jmp 0x1800bcd01
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1800bcd01
jmp case.0x1800bcc1b.0
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1800bcd01
jmp case.0x1800bcc1b.1
movzx eax, byte [r10 + rdx]
add al, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1800bcd01
jmp case.0x1800bcc1b.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 0x1800bcd01
jmp case.0x1800bcc1b.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 0x1800bcd01
jmp case.0x1800bcc1b.4
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1800bcd01
jmp case.0x1800bcc1b.5
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne case.0x1800bcc1b.6
mov r10d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x110]
cmp eax, 8
jne 0x1800bcd4b
movsxd rax, dword [rsp + 0xf8]
cmp r10d, eax
je 0x1800bcd28
movsxd rcx, r10d
mov byte [rcx + rbx], 0xff
jmp 0x1800bcd2d
mov rcx, qword [rsp + 0x68]
add rdi, rcx
add rsi, rax
add rbx, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rbx
mov r10, rdi
mov r15, rdi
mov r8, rsi
jmp 0x1800bcda7
cmp eax, 0x10
jne 0x1800bcd82
cmp r10d, dword [rsp + 0xf8]
je 0x1800bcd61
mov word [r14 + rbx], 0xffff
add rsi, r13
movsxd rax, r12d
add rdi, rax
mov qword [rsp + 0x48], rsi
add rbx, r13
mov r10, rdi
mov qword [rsp + 0x30], rbx
mov r15, rdi
mov r8, rsi
jmp 0x1800bcda7
inc rdi
inc rsi
mov r10, rdi
inc rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rbx
mov r15, rdi
mov r8, rsi
cmp eax, 8
jl 0x1800bd2f4
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsp + 0xf8]
je 0x1800bd2f4
inc eax
cmp eax, dword [rsp + 0xf8]
je 0x1800bcddc
mov r8d, 0x12b8
lea rdx, str.D:ProjetsTZTZStb_std_image.h
lea rcx, str.img_n__1__out_n
call fcn.18016e2a0
cmp ebp, 6
ja case.default.0x1800bcdfc
lea rdx, [0x180000000]
movsxd rax, ebp
mov rdi, r15
mov ecx, dword [rdx + rax*4 + 0xbdbf8]
add rcx, rdx
jmp rcx
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1800bcdfc
movsxd r10, r12d
mov r9d, eax
test r14, r14
jle 0x1800bce41
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 0x1800bce30
mov byte [r14 + rbx], 0xff
add rdi, r10
add rbx, r13
sub r9, 1
jne 0x1800bce16
jmp case.default.0x1800bcdfc
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1800bcdfc
movsxd r11, r12d
mov r10d, eax
nop
test r14, r14
jle 0x1800bcea5
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 0x1800bce90
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r13
sub r10, 1
jne 0x1800bce70
jmp case.default.0x1800bcdfc
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1800bcdfc
movsxd rbp, r12d
xor r15d, r15d
mov r11d, eax
nop word [rax + rax]
mov rdx, r15
test r12d, r12d
jle 0x1800bd021
cmp r12d, 8
jb 0x1800bd021
lea eax, [r12 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea r8, [rcx + rbx]
cmp rbx, rax
ja 0x1800bcf14
cmp r8, rdi
jae 0x1800bd021
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x1800bcf26
cmp r8, rsi
jae 0x1800bd021
cmp r12d, 0x40
jb 0x1800bcfcf
mov ecx, r12d
and ecx, 0x8000003f
jge 0x1800bcf42
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r12d
sub eax, ecx
mov r8, rsi
movsxd r9, eax
sub r8, rdi
lea rax, [rdi + 0x10]
mov rcx, rbx
sub rcx, rdi
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [r8 + rax - 0x10]
movdqu xmm2, xmmword [rax + r8]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rcx + rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [r8 + rax - 0x30]
movdqu xmmword [rax + rcx - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [r8 + rax - 0x20]
movdqu xmmword [rcx + rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [rcx + rax - 0x20], xmm2
cmp rdx, r9
jl 0x1800bcf60
mov eax, r12d
and al, 0x3f
cmp al, 8
jb 0x1800bd021
jmp 0x1800bcfd5
mov r8, rsi
sub r8, rdi
mov ecx, r12d
and ecx, 0x80000007
jge 0x1800bcfe7
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, r12d
sub eax, ecx
mov rcx, rbx
movsxd r9, eax
sub rcx, rdi
lea rax, [rdx + rdi]
nop dword [rax]
movq xmm1, qword [rax + r8]
add rdx, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
paddb xmm1, xmm0
movq qword [rax + rcx - 8], xmm1
cmp rdx, r9
jl 0x1800bd000
cmp rdx, r14
jge 0x1800bd055
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 0x1800bd040
mov byte [r14 + rbx], 0xff
add rdi, rbp
add rbx, r13
add rsi, r13
sub r11, 1
jne 0x1800bcee0
jmp case.default.0x1800bcdfc
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1800bcdfc
movsxd r15, r12d
mov ebp, eax
nop dword [rax]
test r14, r14
jle 0x1800bd0d0
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 0x1800bd0b0
mov byte [r14 + rbx], 0xff
add rdi, r15
add rbx, r13
add rsi, r13
sub rbp, 1
jne 0x1800bd090
jmp case.default.0x1800bcdfc
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1800bcdfc
movsxd rcx, r12d
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x58], rax
nop dword [rax + rax]
test r14, r14
jle 0x1800bd1bd
mov rax, rsi
mov r10, rbx
sub rax, rbx
sub r10, r13
mov qword [rsp + 0x78], rax
mov r15, r14
mov rax, r13
sub rax, rbx
lea rbx, [rax + rsi]
mov rsi, qword [rsp + 0x78]
add rax, rdi
mov r14, rax
movzx r9d, byte [r10]
movzx ebp, byte [rsi + r10]
mov ecx, r9d
movzx r12d, byte [rbx + r10]
sub ecx, ebp
lea r8d, [r12 + rcx]
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 0x1800bd187
cmp r11d, eax
jle 0x1800bd190
cmp ecx, eax
mov r9d, ebp
cmovle r9d, r12d
add r9b, byte [r14 + r10]
mov byte [r10 + r13], r9b
inc r10
sub r15, 1
jne 0x1800bd142
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
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 0x1800bd110
jmp case.default.0x1800bcdfc
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1800bcdfc
movsxd r11, r12d
mov r10d, eax
test r14, r14
jle 0x1800bd239
mov r8, rbx
mov r9, rbx
sub r8, r13
mov rcx, rdi
sub r8, rdi
mov rdx, r14
sub r9, rdi
nop dword [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 0x1800bd220
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r13
sub r10, 1
jne 0x1800bd201
jmp case.default.0x1800bcdfc
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1800bcdfc
movsxd r11, r12d
mov r10d, eax
test r14, r14
jle 0x1800bd295
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 0x1800bd280
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r13
sub r10, 1
jne 0x1800bd260
mov edx, dword [rsp + 0x110]
mov rbp, qword [rsp + 0xe0]
cmp edx, 0x10
jne 0x1800bd638
mov rcx, qword [rsp + 0x88]
add rcx, qword [rbp + 0x18]
mov r15d, dword [rsp + 0x100]
test r15d, r15d
je 0x1800bd640
mov eax, r15d
nop
mov byte [r14 + rcx + 1], 0xff
add rcx, r13
sub rax, 1
jne 0x1800bd2e0
jmp 0x1800bd640
mov r15d, dword [rsp + 0x38]
dec r15d
imul r15d, r12d
mov dword [rsp + 0x30], r15d
cmp ebp, 6
ja case.default.0x1800bd325
lea rdx, [0x180000000]
movsxd rax, ebp
movsxd r9, r15d
mov ecx, dword [rdx + rax*4 + 0xbdc14]
add rcx, rdx
jmp rcx
mov r8, r9
mov rdx, rdi
mov rcx, rbx
call fcn.180157c10
jmp case.default.0x1800bd325
test r15d, r15d
jle case.default.0x1800bd325
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
movzx eax, byte [rdx + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1800bd352
jmp case.default.0x1800bd325
mov rdx, r11
test r15d, r15d
jle 0x1800bd4b1
cmp r15d, 8
jb 0x1800bd4b1
lea eax, [r15 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea r11, [rcx + rbx]
cmp rbx, rax
ja 0x1800bd39d
cmp r11, rdi
jae 0x1800bd4b1
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x1800bd3af
cmp r11, rsi
jae 0x1800bd4b1
cmp r15d, 0x40
jb 0x1800bd45f
mov ecx, r15d
and ecx, 0x8000003f
jge 0x1800bd3cb
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r15d
sub eax, ecx
mov r8, rsi
movsxd r10, eax
sub r8, rdi
lea rax, [rdi + 0x10]
mov rcx, rbx
sub rcx, rdi
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [r8 + rax - 0x10]
movdqu xmm2, xmmword [rax + r8]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rcx + rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [r8 + rax - 0x30]
movdqu xmmword [rax + rcx - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [r8 + rax - 0x20]
movdqu xmmword [rcx + rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [rcx + rax - 0x20], xmm2
cmp rdx, r10
jl 0x1800bd3f0
mov eax, r15d
and al, 0x3f
cmp al, 8
jb 0x1800bd4b1
jmp 0x1800bd462
sub r8, r10
mov ecx, r15d
and ecx, 0x80000007
jge 0x1800bd474
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, r15d
sub eax, ecx
mov rcx, rbx
movsxd r10, eax
sub rcx, rdi
lea rax, [rdx + rdi]
nop word [rax + rax]
movq xmm1, qword [rax + r8]
add rdx, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
paddb xmm1, xmm0
movq qword [rax + rcx - 8], xmm1
cmp rdx, r10
jl 0x1800bd490
cmp rdx, r9
jge case.default.0x1800bd325
sub rsi, rdi
lea rcx, [rdx + rdi]
sub rbx, rdi
sub r9, rdx
nop word [rax + rax]
movzx eax, byte [rsi + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1800bd4d0
jmp case.default.0x1800bd325
test r15d, r15d
jle case.default.0x1800bd325
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 0x1800bd510
jmp case.default.0x1800bd325
test r15d, r15d
jle case.default.0x1800bd325
mov r11, rbx
mov r12, rsi
sub r11, r14
sub r12, rbx
mov rax, r14
sub rax, rbx
lea r13, [rax + rsi]
lea r15, [rax + rdi]
nop word [rax + rax]
movzx r10d, byte [r11]
movzx esi, byte [r12 + r11]
mov ecx, r10d
movzx ebp, byte [r11 + r13]
sub ecx, esi
lea r8d, [rcx + rbp]
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 0x1800bd5a0
cmp ebx, eax
jle 0x1800bd5a9
cmp ecx, eax
mov r10d, esi
cmovle r10d, ebp
add r10b, byte [r15 + r11]
mov byte [r14 + r11], r10b
inc r11
sub r9, 1
jne 0x1800bd560
mov r13, qword [rsp + 0x90]
mov r15d, dword [rsp + 0x30]
jmp case.default.0x1800bd325
test r15d, r15d
jle case.default.0x1800bd325
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 r9, 1
jne 0x1800bd5e0
jmp case.default.0x1800bd325
test r15d, r15d
jle case.default.0x1800bd325
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 r9, 1
jne 0x1800bd610
mov edx, dword [rsp + 0x110]
mov rbp, qword [rsp + 0xe0]
movsxd rax, r15d
add rdi, rax
mov r15d, dword [rsp + 0x100]
mov r9d, dword [rsp + 0x3c]
xor r11d, r11d
mov r12d, dword [rsp + 0x108]
inc r9d
mov r8d, dword [rsp + 0x44]
mov dword [rsp + 0x3c], r9d
cmp r9d, r12d
jae 0x1800bd6af
mov r12d, dword [rsp + 0x40]
mov r10d, dword [rsp + 0x20]
jmp 0x1800bcb70
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_width
jmp 0x1800bdbb4
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x1800bdbb4
mov r13d, dword [rsp + 0x110]
mov r14d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0x24]
jmp 0x1800bd6c8
mov r12d, ecx
cmp r13d, 8
jge 0x1800bdb2a
test r12d, r12d
je 0x1800bdb73
mov ebp, r14d
movsxd rsi, r15d
imul ebp, r15d
mov r15d, dword [rsp + 0x118]
mov r14d, r8d
mov rax, qword [rsp + 0xe0]
mov ecx, r11d
imul ecx, dword [rsp + 0x28]
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 0x1800bd731
movsxd rax, r13d
lea rcx, [0x180000000]
movzx r10d, byte [rax + rcx + 0x1cc450]
jmp 0x1800bd734
mov r10b, 1
cmp r13d, 4
jne 0x1800bd7a6
mov edi, edx
cmp edx, 2
jl 0x1800bd785
mov r11d, edi
shr r11, 1
mov eax, r11d
neg eax
lea edi, [rdi + rax*2]
nop
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 0x1800bd750
test edi, edi
jle 0x1800bda50
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x1800bda50
cmp r13d, 2
jne 0x1800bd887
mov edi, edx
cmp edx, 4
jl 0x1800bd835
mov r11d, edi
shr r11, 2
mov eax, r11d
neg eax
lea edi, [rdi + 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 0x1800bd7d0
test edi, edi
jle 0x1800bd850
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 0x1800bd86f
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 0x1800bda50
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x1800bda43
cmp r13d, 1
jne 0x1800bda50
mov r11d, edx
cmp edx, 8
jl 0x1800bd978
mov edi, r11d
shr rdi, 3
mov eax, edi
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 rdi, 1
jne 0x1800bd8b0
test r11d, r11d
jle 0x1800bd994
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 0x1800bd9b4
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 0x1800bd9d4
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 0x1800bd9f4
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 0x1800bda14
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 0x1800bda34
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 0x1800bda50
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 + 0xf8]
je 0x1800bdb06
cmp r10d, 1
jne 0x1800bda94
lea rcx, [rsi - 1]
test rcx, rcx
js 0x1800bdb06
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 0x1800bda80
jmp 0x1800bdb06
cmp r10d, 3
je 0x1800bdab3
mov r8d, 0x1314
lea rdx, str.D:ProjetsTZTZStb_std_image.h
lea rcx, str.img_n__3
call fcn.18016e2a0
lea r8, [rsi - 1]
test r8, r8
js 0x1800bdb06
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 0x1800bdae0
mov r11, qword [rsp + 0x60]
mov edx, dword [rsp + 0x24]
inc r11d
mov qword [rsp + 0x60], r11
cmp r11d, r12d
jb 0x1800bd6f0
mov eax, 1
jmp 0x1800bdbbf
cmp r13d, 0x10
jne 0x1800bdb73
mov r9, qword [rbp + 0x18]
imul r14d, r15d
mov r8, r9
imul r14d, r12d
test r14d, r14d
je 0x1800bdb73
mov r10d, r14d
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 0x1800bdb50
mov eax, 1
jmp 0x1800bdbbf
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
jmp 0x1800bdbb4
mov qword [r9 + 0x18], r15
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov ecx, 0x28
mov qword [rcx + rax], rdx
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