Function at 0x682c71b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov edi, dword [rsp + 0x88]
movzx eax, byte [rbx]
shl eax, 0x18
mov r12, rcx
mov r13, rdx
movzx edx, byte [rbx + 3]
mov ecx, eax
movzx eax, byte [rbx + 1]
mov rsi, r8
shl eax, 0x10
add eax, ecx
add edx, eax
movzx eax, byte [rbx + 2]
shl eax, 8
add eax, edx
cmp eax, r9d
je 0x682c7201
lea rdi, str.length_does_not_match_profile
jmp 0x682c7212
cmp byte [rbx + 8], 3
jbe 0x682c7222
test al, 3
je 0x682c7222
lea rdi, str.invalid_length
mov qword [rsp + 0x80], rdi
mov r9d, eax
jmp 0x682c74e9
movzx eax, byte [rbx + 0x80]
movzx edx, byte [rbx + 0x83]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [rbx + 0x81]
shl eax, 0x10
add eax, ecx
add edx, eax
movzx eax, byte [rbx + 0x82]
shl eax, 8
add eax, edx
cmp eax, 0x1555554a
ja 0x682c7264
imul edx, eax, 0xc
add edx, 0x84
cmp r9d, edx
jae 0x682c726d
lea rdi, str.tag_count_too_large
jmp 0x682c7212
movzx r9d, byte [rbx + 0x40]
movzx eax, byte [rbx + 0x43]
mov edx, r9d
movzx r9d, byte [rbx + 0x41]
shl edx, 0x18
shl r9d, 0x10
add r9d, edx
add eax, r9d
movzx r9d, byte [rbx + 0x42]
shl r9d, 8
add r9d, eax
lea rax, str.invalid_rendering_intent
cmp r9d, 0xfffe
ja 0x682c74e1
cmp r9d, 3
jbe 0x682c72ca
lea rax, str.intent_outside_defined_range
mov r8, rsi
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.682c76f0
movzx r9d, byte [rbx + 0x24]
movzx eax, byte [rbx + 0x27]
mov edx, r9d
movzx r9d, byte [rbx + 0x25]
shl edx, 0x18
shl r9d, 0x10
add r9d, edx
add eax, r9d
movzx r9d, byte [rbx + 0x26]
shl r9d, 8
add r9d, eax
lea rax, str.invalid_signature
cmp r9d, 0x61637370
jne 0x682c74e1
lea rcx, [rbx + 0x44]
mov r8d, 0xc
lea rdx, [0x68332670]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x682c733e
lea rax, str.PCS_illuminant_is_not_D50
xor r9d, r9d
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, r12
call fcn.682c76f0
movzx r9d, byte [rbx + 0x10]
movzx eax, byte [rbx + 0x13]
mov edx, r9d
movzx r9d, byte [rbx + 0x11]
shl edx, 0x18
shl r9d, 0x10
add r9d, edx
add eax, r9d
movzx r9d, byte [rbx + 0x12]
shl r9d, 8
add r9d, eax
cmp r9d, 0x47524159
je 0x682c739a
cmp r9d, 0x52474220
jne 0x682c73ba
and dil, 2
jne 0x682c73c6
lea rax, str.RGB_color_space_not_permitted_on_grayscale_PNG
mov r9d, 0x52474220
mov qword [rsp + 0x80], rax
jmp 0x682c74e9
and dil, 2
je 0x682c73c6
lea rax, str.Gray_color_space_not_permitted_on_RGB_PNG
mov r9d, 0x47524159
mov qword [rsp + 0x80], rax
jmp 0x682c74e9
lea rax, str.invalid_ICC_profile_color_space
jmp 0x682c74e1
movzx r9d, byte [rbx + 0xc]
movzx eax, byte [rbx + 0xf]
mov edx, r9d
movzx r9d, byte [rbx + 0xd]
shl edx, 0x18
shl r9d, 0x10
add r9d, edx
add eax, r9d
movzx r9d, byte [rbx + 0xe]
shl r9d, 8
add r9d, eax
cmp r9d, 0x6d6e7472
je 0x682c749e
ja 0x682c742b
cmp r9d, 0x61627374
je 0x682c745a
cmp r9d, 0x6c696e6b
jne 0x682c7485
lea rax, str.unexpected_DeviceLink_ICC_profile_class
mov r9d, 0x6c696e6b
mov qword [rsp + 0x80], rax
jmp 0x682c74e9
cmp r9d, 0x6e6d636c
je 0x682c7471
cmp r9d, 0x6e6d636b
jbe 0x682c7485
cmp r9d, 0x73636e72
je 0x682c749e
cmp r9d, 0x73706163
je 0x682c749e
cmp r9d, 0x70727472
je 0x682c749e
jmp 0x682c7485
lea rax, str.invalid_embedded_Abstract_ICC_profile
mov r9d, 0x61627374
mov qword [rsp + 0x80], rax
jmp 0x682c74e9
lea rax, str.unexpected_NamedColor_ICC_profile_class
mov r9d, 0x6e6d636c
mov qword [rsp + 0x20], rax
jmp 0x682c7491
lea rax, str.unrecognized_ICC_profile_class
mov qword [rsp + 0x20], rax
mov r8, rsi
xor edx, edx
mov rcx, r12
call fcn.682c76f0
movzx r9d, byte [rbx + 0x14]
movzx eax, byte [rbx + 0x17]
mov edx, r9d
movzx r9d, byte [rbx + 0x15]
shl edx, 0x18
shl r9d, 0x10
add r9d, edx
add eax, r9d
movzx r9d, byte [rbx + 0x16]
shl r9d, 8
add r9d, eax
cmp r9d, 0x4c616220
je 0x682c7502
cmp r9d, 0x58595a20
je 0x682c7502
lea rax, str.unexpected_ICC_PCS_encoding
mov qword [rsp + 0x80], rax
mov r8, rsi
mov rdx, r13
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.682c76f0
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret