Function at 0x6d4742c0
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 0x6d474311
lea rdi, str.length_does_not_match_profile
jmp 0x6d474322
cmp byte [rbx + 8], 3
jbe 0x6d474332
test al, 3
je 0x6d474332
lea rdi, str.invalid_length
mov qword [rsp + 0x80], rdi
mov r9d, eax
jmp 0x6d4745f9
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 0x6d474374
imul edx, eax, 0xc
add edx, 0x84
cmp r9d, edx
jae 0x6d47437d
lea rdi, str.tag_count_too_large
jmp 0x6d474322
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 0x6d4745f1
cmp r9d, 3
jbe 0x6d4743da
lea rax, str.intent_outside_defined_range
mov r8, rsi
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.6d474800
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 0x6d4745f1
lea rcx, [rbx + 0x44]
mov r8d, 0xc
lea rdx, [0x6d4f2090]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x6d47444e
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.6d474800
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 0x6d4744aa
cmp r9d, 0x52474220
jne 0x6d4744ca
and dil, 2
jne 0x6d4744d6
lea rax, str.RGB_color_space_not_permitted_on_grayscale_PNG
mov r9d, 0x52474220
mov qword [rsp + 0x80], rax
jmp 0x6d4745f9
and dil, 2
je 0x6d4744d6
lea rax, str.Gray_color_space_not_permitted_on_RGB_PNG
mov r9d, 0x47524159
mov qword [rsp + 0x80], rax
jmp 0x6d4745f9
lea rax, str.invalid_ICC_profile_color_space
jmp 0x6d4745f1
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 0x6d4745ae
ja 0x6d47453b
cmp r9d, 0x61627374
je 0x6d47456a
cmp r9d, 0x6c696e6b
jne 0x6d474595
lea rax, str.unexpected_DeviceLink_ICC_profile_class
mov r9d, 0x6c696e6b
mov qword [rsp + 0x80], rax
jmp 0x6d4745f9
cmp r9d, 0x6e6d636c
je 0x6d474581
cmp r9d, 0x6e6d636b
jbe 0x6d474595
cmp r9d, 0x73636e72
je 0x6d4745ae
cmp r9d, 0x73706163
je 0x6d4745ae
cmp r9d, 0x70727472
je 0x6d4745ae
jmp 0x6d474595
lea rax, str.invalid_embedded_Abstract_ICC_profile
mov r9d, 0x61627374
mov qword [rsp + 0x80], rax
jmp 0x6d4745f9
lea rax, str.unexpected_NamedColor_ICC_profile_class
mov r9d, 0x6e6d636c
mov qword [rsp + 0x20], rax
jmp 0x6d4745a1
lea rax, str.unrecognized_ICC_profile_class
mov qword [rsp + 0x20], rax
mov r8, rsi
xor edx, edx
mov rcx, r12
call fcn.6d474800
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 0x6d474612
cmp r9d, 0x58595a20
je 0x6d474612
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.6d474800
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret