Function at 0x180095770
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, 0xb0
mov rax, qword [rcx]
xor r12d, r12d
cmp dword [rsp + 0x120], 0x10
mov r10d, r12d
mov ebp, dword [rsp + 0x110]
mov esi, r8d
mov r15d, dword [rsp + 0x118]
sete r10b
mov eax, dword [rax + 8]
inc r10d
mov r8, rcx
mov dword [rsp + 0x20], eax
mov ebx, r10d
mov dword [rsp + 0x30], ebp
imul ebx, r9d
mov r13d, eax
imul r13d, r10d
mov r14d, r9d
mov rdi, rdx
mov ecx, ebx
imul ecx, ebp
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x40], ecx
cmp r9d, eax
je 0x180095818
inc eax
cmp r9d, eax
je 0x180095818
mov r8d, 0x1261
lea rdx, str.D:_saveBureauhx_softwareshx_softwarescheatprojectFiveM_stb_image.h
lea rcx, str.out_n__s__img_n__out_n__s__img_n__1
call fcn.180165a7c
mov r8, qword [rsp + 0xf0]
test ebp, ebp
js 0x180096906
test r15d, r15d
js 0x180096906
je 0x18009583d
xor edx, edx
mov eax, 0x7fffffff
div r15d
cmp ebp, eax
jg 0x180096906
mov ecx, ebp
imul ecx, r15d
test ecx, ecx
js 0x180096906
test ebx, ebx
js 0x180096906
je 0x180095865
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x180096906
mov eax, ebx
imul eax, ebp
imul eax, r15d
movsxd rcx, eax
call fcn.180163030
mov rbp, qword [rsp + 0xf0]
mov qword [rbp + 0x18], rax
test rax, rax
je 0x18009690a
mov r8d, dword [rsp + 0x20]
test r8d, r8d
js 0x1800968ea
mov r10d, dword [rsp + 0x110]
test r10d, r10d
je 0x1800958b9
xor edx, edx
mov eax, 0x7fffffff
div r10d
cmp r8d, eax
jg 0x1800968ea
mov ecx, r8d
imul ecx, r10d
mov dword [rsp + 0x50], ecx
test ecx, ecx
js 0x1800968ea
mov r11d, dword [rsp + 0x120]
test r11d, r11d
js 0x1800968ea
je 0x1800958f1
xor edx, edx
mov eax, 0x7fffffff
div r11d
cmp ecx, eax
jg 0x1800968ea
mov eax, ecx
imul eax, r11d
cmp eax, 0x7ffffff8
jg 0x1800968ea
lea r9d, [rax + 7]
shr r9d, 3
mov dword [rsp + 0x3c], r9d
lea eax, [r9 + 1]
imul eax, r15d
cmp esi, eax
jae 0x18009593a
mov edx, dword [0x1801e95d4]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
jmp 0x180096924
mov edx, r12d
mov dword [rsp + 0x34], edx
test r15d, r15d
je 0x18009640b
movsxd r14, r13d
movsxd r15, ebx
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x80], r15
nop dword [rax]
mov rbx, qword [rbp + 0x18]
mov ecx, edx
movzx ebp, byte [rdi]
inc rdi
mov esi, dword [rsp + 0x40]
mov r11, rdi
imul ecx, esi
add rbx, rcx
mov qword [rsp + 0xa0], rcx
cmp ebp, 4
ja 0x1800963dc
cmp dword [rsp + 0x120], 8
jge 0x1800959c6
cmp r9d, r10d
ja 0x1800963bd
mov eax, dword [rsp + 0x108]
mov r13d, 1
imul eax, r10d
mov r14d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x30], r9d
sub eax, r9d
add rbx, rax
mov rax, rsi
lea rcx, [0x180000000]
mov rsi, rbx
sub rsi, rax
test edx, edx
jne 0x1800959e2
movzx ebp, byte [rbp + rcx + 0x1ac138]
test r14, r14
jle 0x180095b0e
mov r10, rsi
mov r9, rbx
sub r10, rdi
mov rdx, rdi
sub r9, rdi
mov r8, r14
nop dword [rax]
cmp ebp, 6
ja case.default.0x180095a12
movsxd rax, ebp
mov eax, dword [rcx + rax*4 + 0x9694c]
add rax, rcx
jmp rax
inc rdx
sub r8, 1
je 0x180095b09
lea rcx, [0x180000000]
jmp 0x180095a00
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x180095b09
jmp case.0x180095a12.0
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x180095b09
jmp case.0x180095a12.1
movzx eax, byte [r10 + rdx]
add al, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x180095b09
jmp case.0x180095a12.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 0x180095b09
jmp case.0x180095a12.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 0x180095b09
jmp case.0x180095a12.4
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x180095b09
jmp case.0x180095a12.5
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne case.0x180095a12.6
mov r15, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x120]
cmp eax, 8
jne 0x180095b46
movsxd rax, dword [rsp + 0x108]
movsxd rcx, r8d
cmp r8d, eax
je 0x180095b2e
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 0x180095b96
cmp eax, 0x10
jne 0x180095b77
cmp r8d, dword [rsp + 0x108]
je 0x180095b5c
mov word [r14 + rbx], 0xffff
add rsi, r15
movsxd rdi, r13d
add rdi, r11
mov qword [rsp + 0x48], rsi
add rbx, r15
mov r12, rdi
mov qword [rsp + 0x28], rbx
jmp 0x180095b96
inc rdi
inc rsi
mov r12, rdi
inc rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x28], rbx
cmp eax, 8
jl 0x1800960b4
mov r11d, dword [rsp + 0x108]
cmp r8d, r11d
je 0x1800960b4
lea eax, [r8 + 1]
cmp eax, r11d
je 0x180095bc9
mov r8d, 0x12b8
lea rdx, str.D:_saveBureauhx_softwareshx_softwarescheatprojectFiveM_stb_image.h
lea rcx, str.img_n__1__out_n
call fcn.180165a7c
cmp ebp, 6
ja case.default.0x180095be9
lea rdx, [0x180000000]
movsxd rax, ebp
mov rdi, r12
mov ecx, dword [rdx + rax*4 + 0x96968]
add rcx, rdx
jmp rcx
mov edx, dword [rsp + 0x110]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x18009606d
movsxd r10, r13d
mov r9d, eax
test r14, r14
jle 0x180095c31
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 0x180095c20
mov byte [r14 + rbx], 0xff
add rdi, r10
add rbx, r15
sub r9, 1
jne 0x180095c04
jmp case.default.0x180095be9
mov edx, dword [rsp + 0x110]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x18009606d
movsxd r11, r13d
mov r10d, eax
test r14, r14
jle 0x180095c95
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 0x180095c80
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x180095c60
jmp case.default.0x180095be9
mov edx, dword [rsp + 0x110]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x18009606d
movsxd rbp, r13d
xor r12d, r12d
mov r11d, eax
nop word [rax + rax]
mov r10, r12
test r13d, r13d
jle 0x180095da0
cmp r13d, 0x40
jb 0x180095da0
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x180095d03
cmp rdx, rdi
jae 0x180095da0
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x180095d15
cmp rdx, rsi
jae 0x180095da0
mov ecx, r13d
and ecx, 0x8000003f
jge 0x180095d27
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]
nop
movdqu xmm0, xmmword [rax - 0x10]
add r10, 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 [rdx + rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [rax + rdx - 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 0x180095d40
cmp r10, r14
jge 0x180095dd5
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 0x180095dc0
mov byte [r14 + rbx], 0xff
add rdi, rbp
add rbx, r15
add rsi, r15
sub r11, 1
jne 0x180095cd0
jmp case.default.0x180095be9
mov edx, dword [rsp + 0x110]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x18009606d
movsxd r12, r13d
mov ebp, eax
nop word [rax + rax]
test r14, r14
jle 0x180095e50
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 0x180095e30
mov byte [r14 + rbx], 0xff
add rdi, r12
add rbx, r15
add rsi, r15
sub rbp, 1
jne 0x180095e10
jmp case.default.0x180095be9
mov edx, dword [rsp + 0x110]
dec edx
cmp edx, 1
jb case.default.0x180095be9
movsxd rax, r13d
lea rcx, [r14 + rbx]
mov qword [rsp + 0x60], rax
lea r9, [r15 + r14]
mov r8, qword [rsp + 0x60]
mov rax, r15
sub rax, rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x98], r9
mov qword [rsp + 0x78], rdx
nop dword [rax]
test r14, r14
jle 0x180095f6a
mov r10, rcx
mov r12, r14
mov rcx, rsi
sub r10, r9
sub rcx, rbx
lea rbx, [rax + rsi]
add rax, rdi
mov rsi, rcx
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 0x180095f25
cmp r11d, eax
jle 0x180095f2e
cmp ecx, eax
mov r9d, ebp
cmovle r9d, r13d
add r9b, byte [r14 + r10]
mov byte [r10 + r15], r9b
inc r10
sub r12, 1
jne 0x180095ee0
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x98]
add rbx, r15
mov byte [rcx], 0xff
add rcx, r15
mov qword [rsp + 0x28], rbx
sub rax, r15
mov qword [rsp + 0x68], rcx
add rsi, r15
mov qword [rsp + 0x70], rax
add rdi, r8
mov qword [rsp + 0x48], rsi
sub rdx, 1
mov qword [rsp + 0x78], rdx
jne 0x180095eb0
jmp case.default.0x180095be9
mov edx, dword [rsp + 0x110]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x18009606d
movsxd r11, r13d
mov r10d, eax
nop dword [rax]
test r14, r14
jle 0x180095ff9
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]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [r9 + rcx - 1], al
sub rdx, 1
jne 0x180095fe0
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x180095fc0
jmp case.default.0x180095be9
mov edx, dword [rsp + 0x110]
lea eax, [rdx - 1]
cmp eax, 1
jb 0x18009606d
movsxd r11, r13d
mov r10d, eax
test r14, r14
jle 0x180096055
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 0x180096040
mov byte [r14 + rbx], 0xff
add rdi, r11
add rbx, r15
sub r10, 1
jne 0x180096021
mov edx, dword [rsp + 0x110]
mov r11d, dword [rsp + 0x120]
mov rbp, qword [rsp + 0xf0]
cmp r11d, 0x10
jne 0x18009638b
mov rcx, qword [rsp + 0xa0]
add rcx, qword [rbp + 0x18]
test edx, edx
je 0x18009638b
mov eax, edx
nop dword [rax]
mov byte [r14 + rcx + 1], 0xff
add rcx, r15
sub rax, 1
jne 0x1800960a0
jmp 0x18009638b
mov r10d, dword [rsp + 0x30]
dec r10d
imul r10d, r13d
mov dword [rsp + 0x28], r10d
cmp ebp, 6
ja case.default.0x1800960e5
lea rdx, [0x180000000]
movsxd rax, ebp
movsxd r9, r10d
mov ecx, dword [rdx + rax*4 + 0x96984]
add rcx, rdx
jmp rcx
mov r8, r9
mov rdx, rdi
mov rcx, rbx
call fcn.180147b70
jmp case.default.0x1800960e5
test r10d, r10d
jle case.default.0x1800960e5
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 0x180096112
jmp case.default.0x1800960e5
xor r12d, r12d
mov edx, r12d
test r10d, r10d
jle 0x180096204
cmp r10d, 0x40
jb 0x180096204
lea eax, [r10 - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea r8, [rcx + rbx]
cmp rbx, rax
ja 0x180096160
cmp r8, rdi
jae 0x180096204
lea rax, [rcx + rsi]
cmp rbx, rax
ja 0x180096172
cmp r8, rsi
jae 0x180096204
mov ecx, r10d
and ecx, 0x8000003f
jge 0x180096184
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]
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 [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, r10
jl 0x1800961a0
cmp rdx, r9
jge case.default.0x1800960e5
sub rsi, rdi
lea rcx, [rdx + rdi]
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 0x180096220
jmp case.default.0x1800960e5
test r10d, r10d
jle case.default.0x1800960e5
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 0x180096260
jmp case.default.0x1800960e5
test r10d, r10d
jle case.default.0x1800960e5
mov r11, rbx
mov r13, rsi
sub r11, r14
sub r13, rbx
mov rax, r14
sub rax, rbx
lea r15, [rax + rsi]
lea rbp, [rax + rdi]
nop word [rax + rax]
movzx r10d, byte [r11]
movzx esi, byte [r11 + r13]
mov ecx, r10d
movzx r12d, byte [r15 + r11]
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 0x1800962f0
cmp ebx, eax
jle 0x1800962f9
cmp ecx, eax
mov r10d, esi
cmovle r10d, r12d
add r10b, byte [r11 + rbp]
mov byte [r14 + r11], r10b
inc r11
sub r9, 1
jne 0x1800962b0
mov r15, qword [rsp + 0x80]
jmp case.default.0x1800960e5
test r10d, r10d
jle case.default.0x1800960e5
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
nop dword [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 0x180096330
jmp case.default.0x1800960e5
test r10d, r10d
jle case.default.0x1800960e5
mov rdx, rbx
mov rcx, rdi
sub rdx, r14
sub rdx, rdi
sub rbx, rdi
nop dword [rax]
movzx eax, byte [rdx + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x180096360
movsxd rax, dword [rsp + 0x28]
mov r11d, dword [rsp + 0x120]
add rdi, rax
mov rbp, qword [rsp + 0xf0]
mov edx, dword [rsp + 0x34]
xor r12d, r12d
mov r10d, dword [rsp + 0x110]
inc edx
mov r9d, dword [rsp + 0x3c]
mov dword [rsp + 0x34], edx
cmp edx, dword [rsp + 0x118]
jae 0x1800963fb
mov r13d, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x20]
jmp 0x180095960
mov edx, dword [0x1801e95d4]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_width
jmp 0x180096924
mov edx, dword [0x1801e95d4]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x180096924
mov r14d, dword [rsp + 0x108]
mov r15d, dword [rsp + 0x118]
cmp r11d, 8
jge 0x180096899
test r15d, r15d
je 0x1800968e3
mov r15d, dword [rsp + 0x128]
mov ebp, r14d
mov r13d, dword [rsp + 0x50]
imul ebp, r10d
movsxd rsi, r10d
mov r14d, r9d
nop dword [rax + rax]
mov rax, qword [rsp + 0xf0]
mov ecx, r12d
imul ecx, dword [rsp + 0x40]
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 0x180096481
movsxd rax, r11d
lea rcx, [0x180000000]
movzx r10d, byte [rax + rcx + 0x1ac310]
jmp 0x180096484
mov r10b, 1
cmp r11d, 4
jne 0x180096506
mov rdi, r13
cmp r13d, 2
jl 0x1800964e5
mov r11, r13
shr r11, 1
mov eax, r11d
neg eax
lea edi, [rax*2]
add edi, r13d
nop dword [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 0x1800964b0
test edi, edi
jle 0x1800967c0
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x1800967c0
cmp r11d, 2
jne 0x1800965e7
mov rdi, r13
cmp r13d, 4
jl 0x180096595
mov r11, r13
shr r11, 2
mov eax, r11d
neg eax
lea edi, [rax*4]
add edi, r13d
nop
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 0x180096530
test edi, edi
jle 0x1800965b0
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 0x1800965cf
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 0x1800967c0
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x1800967b3
cmp r11d, 1
jne 0x1800967c0
mov r11, r13
cmp r13d, 8
jl 0x1800966e8
mov rdi, r13
shr rdi, 3
mov eax, edi
neg eax
lea r11d, [rax*8]
add r11d, r13d
nop dword [rax]
nop dword [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 0x180096620
test r11d, r11d
jle 0x180096704
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 0x180096724
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 0x180096744
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 0x180096764
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 0x180096784
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 0x1800967a4
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 0x1800967c0
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsp + 0x108]
je 0x180096876
cmp eax, 1
jne 0x180096804
lea rcx, [rsi - 1]
test rcx, rcx
js 0x180096876
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 0x1800967f0
jmp 0x180096876
cmp eax, 3
je 0x180096822
mov r8d, 0x1314
lea rdx, str.D:_saveBureauhx_softwareshx_softwarescheatprojectFiveM_stb_image.h
lea rcx, str.img_n__3
call fcn.180165a7c
lea r8, [rsi - 1]
test r8, r8
js 0x180096876
lea rdx, [r8*2 + 1]
add rdx, rbx
lea rcx, [r8*4 + 2]
add rdx, r8
add rcx, rbx
nop dword [rax]
nop dword [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 0x180096850
mov r11d, dword [rsp + 0x120]
inc r12d
cmp r12d, dword [rsp + 0x118]
jb 0x180096440
mov eax, 1
jmp 0x18009692f
cmp r11d, 0x10
jne 0x1800968e3
mov r9, qword [rbp + 0x18]
imul r14d, r10d
mov r8, r9
imul r14d, r15d
test r14d, r14d
je 0x1800968e3
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 0x1800968c0
mov eax, 1
jmp 0x18009692f
mov edx, dword [0x1801e95d4]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
jmp 0x180096924
mov qword [r8 + 0x18], r12
mov edx, dword [0x1801e95d4]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov ecx, Ordinal_41
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret