Function at 0x1400769a0
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ada20]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
cmp r8d, 5
jne 0x1400769dc
call sym.EURawImg.exe_protected:_unsigned_int___cdecl_LibRaw::get4_void____ptr64
mov edx, eax
mov rcx, rdi
mov qword [rdi + 0x5d1c0], rdx
call sym.EURawImg.exe_protected:_void___cdecl_LibRaw::setPentaxBodyFeatures_unsigned_long_long_unsigned___int64_____ptr64
jmp 0x14007752b
cmp r8d, 8
jne 0x1400769f3
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0xf52], ax
jmp 0x14007752b
cmp r8d, 0xd
jne 0x140076a11
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0xf38], ax
mov word [rdi + 0x131a], ax
jmp 0x14007752b
cmp r8d, 0xe
jne 0x140076a4c
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
cmp dword [rsp + 0xc0], 2
mov word [rdi + 0xf3c], ax
mov word [rdi + 0x131e], ax
jne 0x14007752b
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0xf40], ax
jmp 0x14007752b
mov qword [rsp + 0x88], rbp
cmp r8d, 0xf
jne 0x140076abc
cmp r9d, 4
jne 0x140076a7e
call sym.EURawImg.exe_protected:_unsigned_int___cdecl_LibRaw::get4_void____ptr64
mov dword [rdi + 0xf48], eax
test eax, eax
je 0x140076a9d
mov dword [rdi + 0xf44], 3
jmp 0x140077523
cmp r9d, 3
jne 0x140077523
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
mov dword [rdi + 0xf48], eax
cmp eax, 0xffff
jne 0x140076aac
mov dword [rdi + 0xf48], 0xffffffff
jmp 0x140077523
mov ebp, 2
mov dword [rdi + 0xf44], ebp
jmp 0x140077523
cmp r8d, 0x10
jne 0x140076ad3
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0xf4c], ax
jmp 0x140077523
cmp r8d, 0x13
jne 0x140076afd
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x14009a364]
movss dword [rdi + 0x5d4], xmm0
jmp 0x140077523
cmp r8d, 0x14
jne 0x140076b18
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx edx, ax
mov rcx, rdi
call sym.EURawImg.exe_protected:_void___cdecl_LibRaw::PentaxISO_unsigned_short_int____ptr64
jmp 0x140077523
cmp r8d, 0x17
jne 0x140076b2f
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0x131c], ax
jmp 0x140077523
cmp r8d, 0x1b
jne 0x140076b5e
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x1400966b0]
cvtpd2ps xmm0, xmm0
movss dword [rdi + 0x255dc], xmm0
jmp 0x140077523
cmp r8d, 0x1c
jne 0x140076b8d
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x1400966b0]
cvtpd2ps xmm0, xmm0
movss dword [rdi + 0x255d4], xmm0
jmp 0x140077523
cmp r8d, 0x1d
jne 0x140076bb7
call sym.EURawImg.exe_protected:_unsigned_int___cdecl_LibRaw::get4_void____ptr64
xorps xmm0, xmm0
mov eax, eax
cvtsi2ss xmm0, rax
divss xmm0, dword [0x1400968b4]
movss dword [rdi + 0x5d0], xmm0
jmp 0x140077523
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x80], rsi
cmp r8d, 0x34
jne 0x140076c20
xor ebx, ebx
mov esi, 1
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x5d158]
lea rdx, [rsp + 0x20]
mov r9, rsi
mov r8, rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
movzx eax, byte [rsp + 0x20]
mov byte [rbx + rdi + 0xf34], al
inc rbx
cmp rbx, 4
jl 0x140076be0
movzx eax, byte [rdi + 0xf34]
mov word [rdi + 0x1318], ax
jmp 0x140077513
cmp r8d, 0x37
jne 0x140076c6a
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx ecx, ax
test ecx, ecx
je 0x140076c59
cmp ecx, 1
je 0x140076c48
mov eax, 0xff
mov word [rdi + 0x1228], ax
jmp 0x140077513
mov ebp, 2
mov word [rdi + 0x1228], bp
jmp 0x140077513
mov esi, 1
mov word [rdi + 0x1228], si
jmp 0x140077513
cmp r8d, 0x38
jne 0x140076c90
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov rcx, rdi
mov word [rdi + 0xb6], ax
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0xb8], ax
jmp 0x140077513
cmp r8d, 0x39
jne 0x140076cb6
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov rcx, rdi
mov word [rdi + 0xba], ax
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0xbc], ax
jmp 0x140077513
cmp r8d, 0x3c
jne 0x140076d05
cmp dword [rsp + 0xc0], 4
jne 0x140077513
cmp r9d, 7
jne 0x140077513
call sym.EURawImg.exe_protected:_unsigned_int___cdecl_LibRaw::get4_void____ptr64
and eax, 0x7ff
mov dword [rdi + 0xf48], eax
jne 0x140076cf5
mov dword [rdi + 0xf48], 0xffffffff
jmp 0x140077513
mov esi, 1
mov dword [rdi + 0xf44], esi
jmp 0x140077513
cmp r8d, 0x3f
jne 0x140076d3d
mov rcx, qword [rcx + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rdi + 0x5d158]
mov ebx, eax
shl ebx, 8
mov rdx, qword [rcx]
call qword [rdx + 0x30]
mov ecx, eax
mov eax, ebx
or rcx, rax
mov qword [rdi + 0x4b0], rcx
jmp 0x140077513
cmp r8d, 0x47
jne 0x140076d64
mov rcx, qword [rcx + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x11f0], xmm0
jmp 0x140077513
cmp r8d, 0x4d
jne 0x140076dc0
cmp r9d, 9
jne 0x140076d94
mov edx, r9d
call sym.EURawImg.exe_protected:_double___cdecl_LibRaw::getreal_int____ptr64
mulsd xmm0, qword [0x1400966b0]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [rdi + 0x11e8], xmm1
jmp 0x140077513
mov rcx, qword [rcx + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
movsx ecx, ax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x140095ac8]
movss dword [rdi + 0x11e8], xmm1
jmp 0x140077513
cmp r8d, 0x5c
jne 0x140076dec
mov rcx, qword [rcx + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rdi + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov word [rdi + 0x1324], ax
jmp 0x140077513
cmp r8d, 0x72
jne 0x140076e03
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov word [rdi + 0xf4e], ax
jmp 0x140077513
cmp r8d, 0x7e
jne 0x140076e39
cmp dword [rsp + 0xc8], 0
jne 0x140077513
call sym.EURawImg.exe_protected:_unsigned_int___cdecl_LibRaw::get4_void____ptr64
mov dword [rdi + 0x25548], eax
mov dword [rdi + 0x25544], eax
mov dword [rdi + 0x25540], eax
mov dword [rdi + 0x2553c], eax
jmp 0x140077513
cmp r8d, 0x80
jne 0x140076ead
mov rcx, qword [rcx + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
movsx ecx, ax
test ecx, ecx
je 0x140076e9c
sub ecx, 1
je 0x140076e8b
sub ecx, 1
je 0x140076e7a
cmp ecx, 1
jne 0x140077513
mov eax, 0x3e8
mov word [rdi + 0xb4], ax
jmp 0x140077513
mov eax, 0x6f1
mov word [rdi + 0xb4], ax
jmp 0x140077513
mov eax, 0x5dc
mov word [rdi + 0xb4], ax
jmp 0x140077513
mov eax, 0x535
mov word [rdi + 0xb4], ax
jmp 0x140077513
mov qword [rsp + 0x60], r15
cmp r8d, 0x200
jne 0x140076ef9
cmp dword [rsp + 0xc8], 0
jne 0x14007750e
xor ebx, ebx
lea r15d, [rbx + 4]
nop
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx ecx, ax
mov rax, rbx
sar rax, 1
xor rax, rbx
inc rbx
mov dword [rdi + rax*4 + 0x21510], ecx
sub r15, 1
jne 0x140076ed0
jmp 0x14007750e
cmp r8d, 0x201
jne 0x140076f48
cmp dword [rsp + 0xc8], 0
jne 0x14007750e
xor ebx, ebx
lea r15d, [rbx + 4]
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
movd xmm0, eax
mov rax, rbx
sar rax, 1
xor rax, rbx
inc rbx
cvtdq2ps xmm0, xmm0
movss dword [rdi + rax*4 + 0x255d4], xmm0
sub r15, 1
jne 0x140076f16
jmp 0x14007750e
mov qword [rsp + 0x68], r14
movaps xmmword [rsp + 0x50], xmm6
cmp r8d, 0x203
jne 0x140076fc1
cmp dword [rsp + 0xc8], 0
jne 0x140077504
movsd xmm6, qword [0x14009b368]
lea rbp, [rcx + 0x255f4]
mov r14d, 3
nop
mov rbx, rbp
mov esi, 3
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movsx ecx, ax
lea rbx, [rbx + 4]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
cvtpd2ps xmm0, xmm0
movss dword [rbx - 4], xmm0
sub rsi, 1
jne 0x140076f88
add rbp, 0x10
sub r14, 1
jne 0x140076f80
jmp 0x140077504
cmp r8d, 0x205
jne 0x140077118
movsxd rax, dword [rcx + 0x1310]
cmp eax, 4
jge 0x140077504
mov ebx, dword [rsp + 0xc0]
lea rcx, [rax + rax*2]
mov dword [rdi + rcx*8 + 0x12b0], r8d
movsxd rax, dword [rdi + 0x1310]
lea rcx, [rax + rax*2]
movzx eax, word [rdi + 0x5d1e0]
mov word [rdi + rcx*8 + 0x12b4], ax
movsxd rax, dword [rdi + 0x1310]
lea rcx, [rax + rax*2]
mov dword [rdi + rcx*8 + 0x12bc], ebx
movsxd rax, dword [rdi + 0x1310]
lea rcx, [rax + rax*2]
mov edx, dword [rdi + rcx*8 + 0x12bc]
mov rcx, rdi
call sym.EURawImg.exe_protected:_void____ptr64___cdecl_LibRaw::malloc_unsigned_long_long_unsigned___int64_____ptr64
movsxd rcx, dword [rdi + 0x1310]
mov r9d, 1
add rcx, 0xc8
lea rcx, [rcx + rcx*2]
mov qword [rdi + rcx*8], rax
movsxd rdx, dword [rdi + 0x1310]
mov rcx, qword [rdi + 0x5d158]
lea rax, [rdx + rdx*2]
mov r10, qword [rcx]
lea rdx, [rdx + rdx*2]
mov rdx, qword [rdi + rdx*8 + 0x12c0]
mov r8d, dword [rdi + rax*8 + 0x12bc]
call qword [r10 + 0x10]
movsxd rdx, dword [rdi + 0x1310]
lea eax, [rbx - 0xb]
cmp eax, 0xd
ja 0x14007710a
lea rax, [rdx + 0xc8]
lea rdx, [rax + rax*2]
mov rax, qword [rdi + rdx*8]
movzx ecx, byte [rax + 3]
shr cl, 4
mov byte [rdi + 0xf50], cl
mov rax, qword [rdi + rdx*8]
movzx ecx, byte [rax + 3]
and cl, 0xf
movzx eax, cl
mov rcx, rdi
mov word [rdi + 0xf3a], ax
movsxd rax, dword [rdi + 0x1310]
add rax, 0xc8
lea rax, [rax + rax*2]
mov rdx, qword [rdi + rax*8]
add rdx, 4
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::sget2_unsigned_char____ptr64____ptr64
mov word [rdi + 0xf3e], ax
movsxd rdx, dword [rdi + 0x1310]
lea rax, [rdx + 0xc8]
lea rax, [rax + rax*2]
mov rcx, qword [rdi + rax*8]
movzx eax, byte [rcx + 0xa]
and al, 0xf
mov byte [rdi + 0xf51], al
lea eax, [rdx + 1]
mov dword [rdi + 0x1310], eax
jmp 0x140077504
cmp r8d, 0x207
jne 0x140077147
mov r8d, dword [rsp + 0xc0]
cmp r8d, 0xffff
jae 0x140077504
mov rdx, qword [rcx + 0x540]
call sym.EURawImg.exe_protected:_void___cdecl_LibRaw::PentaxLensInfo_unsigned_long_long_unsigned___int64___unsigned_int____ptr64
jmp 0x140077504
lea r14d, [r8 - 0x20d]
cmp r14d, 7
ja 0x1400771be
xor ebx, ebx
mov ebp, ebx
lea r15d, [rbx + 4]
nop dword [rax]
mov eax, dword [reloc.WS2_32.dll_htonl]
cmp r14d, eax
jae 0x140077178
mov rax, qword [sym.EURawImg.exe_class_libraw_static_table_t_LibRaw::Pentax_wb_list1]
mov esi, dword [rax + r14*4]
jmp 0x14007718e
test eax, eax
je 0x14007718c
mov rax, qword [sym.EURawImg.exe_class_libraw_static_table_t_LibRaw::Pentax_wb_list1]
test rax, rax
je 0x14007718c
mov esi, dword [rax]
jmp 0x14007718e
mov esi, ebx
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov rcx, rbp
movzx edx, ax
sar rcx, 1
xor rcx, rbp
movsxd rax, esi
inc rbp
lea rcx, [rcx + rax*4]
mov dword [rdi + rcx*4 + 0x2da54], edx
sub r15, 1
jne 0x140077160
jmp 0x140077504
cmp r8d, 0x21d
jne 0x140077241
cmp dword [rsp + 0xc0], 0x12
jne 0x140077504
cmp r9d, 7
jne 0x140077504
cmp dword [rsp + 0xc8], 0
jne 0x140077504
movsd xmm6, qword [0x14009b368]
lea rbp, [rcx + 0x255f4]
lea r14d, [r9 - 4]
mov rbx, rbp
mov esi, 3
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movsx ecx, ax
lea rbx, [rbx + 4]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
cvtpd2ps xmm0, xmm0
movss dword [rbx - 4], xmm0
sub rsi, 1
jne 0x140077208
add rbp, 0x10
sub r14, 1
jne 0x140077200
jmp 0x140077504
cmp r8d, 0x21f
jne 0x1400772d3
mov rax, qword [rcx + 0x5d1c0]
cmp rax, 0x13092
je 0x140077504
cmp rax, 0x12fc0
je 0x140077504
cmp rax, 0x1309c
je 0x140077504
cmp rax, 0x13240
je 0x140077504
mov rcx, qword [rcx + 0x5d158]
mov edx, ntohl
mov rax, qword [rcx]
lea r8d, [rdx - 0xa]
call qword [rax + 0x18]
mov rcx, qword [rdi + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov dword [rdi + 0xf48], eax
test eax, eax
jne 0x1400772c1
mov dword [rdi + 0xf48], 0xffffffff
jmp 0x140077504
mov r15d, 4
mov dword [rdi + 0xf44], r15d
jmp 0x140077504
cmp r8d, 0x220
jne 0x140077303
cmp dword [rsp + 0xc8], 0
jne 0x140077504
mov rcx, qword [rcx + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov qword [rdi + 0x5d208], rax
jmp 0x140077504
cmp r8d, 0x221
jne 0x1400773bd
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
cmp eax, 0x40
ja 0x140077504
mov r14d, eax
test eax, eax
je 0x140077504
mov ebp, 2
lea rbx, [rdi + 0x2ea58]
lea esi, [rbp - 1]
nop dword [rax + rax]
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
mov ecx, 0xcfc6
sub ecx, eax
xorps xmm0, xmm0
mov eax, ecx
mov r8d, esi
mov rdx, rbp
cvtsi2ss xmm0, rax
movss dword [rbx - 4], xmm0
mov rcx, qword [rdi + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
mov rcx, rdi
mov dword [rbx + 0xc], 0x46000000
mov dword [rbx + 4], 0x46000000
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx], xmm0
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
movzx eax, ax
lea rbx, [rbx + 0x14]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx - 0xc], xmm0
sub r14, rsi
jne 0x140077340
jmp 0x140077504
cmp r8d, 0x215
jne 0x1400773ff
mov rcx, qword [rcx + 0x5d158]
mov edx, 0x10
mov rax, qword [rcx]
lea r8d, [rdx - 0xf]
call qword [rax + 0x18]
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_int___cdecl_LibRaw::get4_void____ptr64
mov r8d, eax
lea rcx, [rdi + 0x1366]
lea rdx, [0x14009a1c0]
call fcn.140030970
jmp 0x140077504
cmp r8d, 0x229
jne 0x140077433
mov eax, dword [rsp + 0xc0]
mov edx, eax
cmp eax, 0x40
jb 0x14007741b
mov edx, 0x40
mov r8, qword [rdi + 0x5d158]
add rcx, 0x1326
call sym.EURawImg.exe_protected:_static_int___cdecl_LibRaw::stread_char____ptr64__unsigned_long_long_unsigned___int64___class_LibRaw_abstract_datastream____ptr64_
jmp 0x140077504
cmp r8d, 0x22d
jne 0x140077541
mov rcx, qword [rcx + 0x5d158]
mov qword [rsp + 0x70], r13
mov rax, qword [rcx]
call qword [rax + 0x30]
xor ebx, ebx
cmp dword [reloc.WS2_32.dll_htons], ebx
mov r13d, ebx
jle 0x1400774ff
mov qword [rsp + 0x78], r12
lea r15d, [rbx + 4]
nop dword [rax]
mov rcx, qword [rdi + 0x5d158]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov ecx, dword [reloc.WS2_32.dll_htons]
mov r14d, eax
test eax, eax
js 0x1400774ee
cmp r14d, ecx
jge 0x1400774ee
mov rbp, rbx
mov r12, r15
cmp r14d, ecx
jae 0x1400774a7
mov rax, qword [sym.EURawImg.exe_class_libraw_static_table_t_LibRaw::Pentax_wb_list2]
mov esi, dword [rax + r14*4]
jmp 0x1400774bd
test ecx, ecx
je 0x1400774bb
mov rax, qword [sym.EURawImg.exe_class_libraw_static_table_t_LibRaw::Pentax_wb_list2]
test rax, rax
je 0x1400774bb
mov esi, dword [rax]
jmp 0x1400774bd
mov esi, ebx
mov rcx, rdi
call sym.EURawImg.exe_protected:_unsigned_short_int___cdecl_LibRaw::get2_void____ptr64
mov rcx, rbp
movzx edx, ax
sar rcx, 1
xor rcx, rbp
movsxd rax, esi
inc rbp
lea rcx, [rcx + rax*4]
mov dword [rdi + rcx*4 + 0x2da54], edx
mov ecx, dword [reloc.WS2_32.dll_htons]
sub r12, 1
jne 0x140077495
inc r13d
cmp r13d, ecx
jl 0x140077470
mov r12, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
movaps xmm6, xmmword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c510
add rsp, 0x90
pop rdi
ret
cmp r8d, 0x239
jne 0x1400775d5
mov rcx, qword [rcx + 0x5d158]
mov edx, ntohl
mov rax, qword [rcx]
lea r8d, [rdx - 0xb]
call qword [rax + 0x18]
mov r8, qword [rdi + 0x5d158]
lea rbx, [rdi + 0x4b8]
mov rcx, rbx
mov edx, 0x1e
call sym.EURawImg.exe_protected:_static_int___cdecl_LibRaw::stread_char____ptr64__unsigned_long_long_unsigned___int64___class_LibRaw_abstract_datastream____ptr64_
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140077583
movzx eax, word [0x140096700]
mov edx, 0x14
mov word [rcx], ax
lea rcx, [rsp + 0x28]
mov r8, qword [rdi + 0x5d158]
call sym.EURawImg.exe_protected:_static_int___cdecl_LibRaw::stread_char____ptr64__unsigned_long_long_unsigned___int64___class_LibRaw_abstract_datastream____ptr64_
dec rbx
cmp byte [rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400775b0
lea rdx, [rsp + 0x28]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400775c1
jmp 0x140077504
cmp r8d, 0x245
jne 0x140077504
movsxd rax, dword [rcx + 0x1310]
cmp eax, 4
jge 0x140077504
lea rcx, [rax + rax*2]
mov dword [rdi + rcx*8 + 0x12b0], r8d
movsxd rax, dword [rdi + 0x1310]
lea rcx, [rax + rax*2]
movzx eax, word [rdi + 0x5d1e0]
mov word [rdi + rcx*8 + 0x12b4], ax
movsxd rax, dword [rdi + 0x1310]
lea rcx, [rax + rax*2]
mov eax, dword [rsp + 0xc0]
mov dword [rdi + rcx*8 + 0x12bc], eax
movsxd rax, dword [rdi + 0x1310]
lea rcx, [rax + rax*2]
mov edx, dword [rdi + rcx*8 + 0x12bc]
mov rcx, rdi
call sym.EURawImg.exe_protected:_void____ptr64___cdecl_LibRaw::malloc_unsigned_long_long_unsigned___int64_____ptr64
movsxd rcx, dword [rdi + 0x1310]
mov r9d, 1
add rcx, 0xc8
lea rcx, [rcx + rcx*2]
mov qword [rdi + rcx*8], rax
movsxd rdx, dword [rdi + 0x1310]
mov rcx, qword [rdi + 0x5d158]
lea rax, [rdx + rdx*2]
mov r10, qword [rcx]
lea rdx, [rdx + rdx*2]
mov rdx, qword [rdi + rdx*8 + 0x12c0]
mov r8d, dword [rdi + rax*8 + 0x12bc]
call qword [r10 + 0x10]
inc dword [rdi + 0x1310]
jmp 0x140077504