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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4c8
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400c1280
lea rcx, str._RADIANCE
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400c15f7
inc rax
test dl, dl
jne 0x1400c15e4
xor eax, eax
jmp 0x1400c15fc
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400c162e
lea rcx, str.not_HDR
call fcn.1400b2d40
test eax, eax
je 0x1400c161b
mov qword [rsp + 0x68], 0
jmp 0x1400c1624
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
jmp 0x1400c1c9a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400c1280
mov qword [rsp + 0x98], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x98]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1400c1666
jmp 0x1400c169e
mov rax, qword [rsp + 0x98]
lea rcx, str.FORMAT32_bit_rle_rgbe
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400c168b
inc rax
test dl, dl
jne 0x1400c1678
xor eax, eax
jmp 0x1400c1690
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400c169c
mov dword [rsp + 0x50], 1
jmp 0x1400c162e
cmp dword [rsp + 0x50], 0
jne 0x1400c16d3
lea rcx, str.unsupported_format
call fcn.1400b2d40
test eax, eax
je 0x1400c16c0
mov qword [rsp + 0x70], 0
jmp 0x1400c16c9
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
jmp 0x1400c1c9a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400c1280
mov qword [rsp + 0x98], rax
mov r8d, 3
lea rdx, [0x1403e5a18]
mov rcx, qword [rsp + 0x98]
call fcn.140261fc0
test eax, eax
je 0x1400c173c
lea rcx, str.unsupported_data_layout
call fcn.1400b2d40
test eax, eax
je 0x1400c1729
mov qword [rsp + 0x78], 0
jmp 0x1400c1732
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
jmp 0x1400c1c9a
mov rax, qword [rsp + 0x98]
add rax, 3
mov qword [rsp + 0x98], rax
mov r8d, 0xa
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x98]
call fcn.140264a90
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x1400c1794
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
jmp 0x1400c176f
mov r8d, 3
lea rdx, [0x1403e59f8]
mov rcx, qword [rsp + 0x98]
call fcn.140261fc0
test eax, eax
je 0x1400c17e9
lea rcx, [0x1403e59e0]
call fcn.1400b2d40
test eax, eax
je 0x1400c17d0
mov qword [rsp + 0x80], 0
jmp 0x1400c17dc
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
jmp 0x1400c1c9a
mov rax, qword [rsp + 0x98]
add rax, 3
mov qword [rsp + 0x98], rax
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.140264a90
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x4d8]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x4e0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0x4e8]
mov dword [rax], 3
cmp dword [rsp + 0x4f0], 0
jne 0x1400c1855
mov dword [rsp + 0x4f0], 3
mov eax, dword [rsp + 0x40]
imul eax, dword [rsp + 0x28]
imul eax, dword [rsp + 0x4f0]
cdqe
mov qword [rsp + 0x90], rax
mov eax, 4
mov rcx, qword [rsp + 0x90]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.14025f6b8
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x28], 8
jl 0x1400c18ad
cmp dword [rsp + 0x28], 0x8000
jl 0x1400c195c
mov dword [rsp + 0x2c], 0
jmp 0x1400c18c1
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400c1957
mov dword [rsp + 0x24], 0
jmp 0x1400c18e3
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400c1952
mov r8d, 4
lea rdx, [rsp + 0xa4]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b39f0
mov eax, dword [rsp + 0x2c]
imul eax, dword [rsp + 0x28]
imul eax, dword [rsp + 0x4f0]
cdqe
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax*4]
mov ecx, dword [rsp + 0x24]
imul ecx, dword [rsp + 0x4f0]
movsxd rcx, ecx
lea rax, [rax + rcx*4]
mov r8d, dword [rsp + 0x4f0]
lea rdx, [rsp + 0xa4]
mov rcx, rax
call fcn.1400c1330
nop
jmp 0x1400c18d9
jmp 0x1400c18b7
jmp 0x1400c1c95
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400c1979
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400c1c8a
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3800
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3800
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3800
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x54], 2
jne 0x1400c19d9
cmp dword [rsp + 0x58], 2
jne 0x1400c19d9
mov eax, dword [rsp + 0x34]
and eax, 0x80
test eax, eax
je 0x1400c1a6f
mov eax, 1
imul rax, rax, 0
movzx ecx, byte [rsp + 0x54]
mov byte [rsp + rax + 0xa0], cl
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x58]
mov byte [rsp + rax + 0xa0], cl
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x34]
mov byte [rsp + rax + 0xa0], cl
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3930
mov ecx, 1
imul rcx, rcx, 3
mov byte [rsp + rcx + 0xa0], al
mov r8d, dword [rsp + 0x4f0]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call fcn.1400c1330
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x2c], 0
mov rcx, qword [rsp + 0x48]
call fcn.14024db70
nop
jmp 0x1400c18ed
mov eax, dword [rsp + 0x34]
shl eax, 8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3800
mov ecx, dword [rsp + 0x34]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x34], eax
je 0x1400c1ae8
mov rcx, qword [rsp + 0x60]
call fcn.14024db70
mov rcx, qword [rsp + 0x48]
call fcn.14024db70
lea rcx, str.invalid_decoded_scanline_length
call fcn.1400b2d40
test eax, eax
je 0x1400c1acf
mov qword [rsp + 0x88], 0
jmp 0x1400c1adb
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
jmp 0x1400c1c9a
cmp qword [rsp + 0x48], 0
jne 0x1400c1b0f
imul eax, dword [rsp + 0x28], 4
cdqe
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14025f6b8
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 0
jmp 0x1400c1b23
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 4
jge 0x1400c1c1f
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400c1c1a
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3930
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
cmp eax, 0x80
jle 0x1400c1bc7
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3930
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x20]
sub eax, 0x80
mov byte [rsp + 0x20], al
mov dword [rsp + 0x38], 0
jmp 0x1400c1b94
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400c1bc5
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x24]
lea eax, [rax + rcx*4]
cdqe
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rsp + 0x30]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x1400c1b8a
jmp 0x1400c1c15
mov dword [rsp + 0x38], 0
jmp 0x1400c1bdb
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400c1c15
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b3930
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x24]
lea ecx, [rcx + rdx*4]
movsxd rcx, ecx
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x1400c1bd1
jmp 0x1400c1b36
jmp 0x1400c1b19
mov dword [rsp + 0x24], 0
jmp 0x1400c1c33
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400c1c85
mov eax, dword [rsp + 0x24]
shl eax, 2
cdqe
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x2c]
imul ecx, dword [rsp + 0x28]
add ecx, dword [rsp + 0x24]
imul ecx, dword [rsp + 0x4f0]
movsxd rcx, ecx
mov rdx, qword [rsp + 0x60]
lea rcx, [rdx + rcx*4]
mov r8d, dword [rsp + 0x4f0]
mov rdx, rax
call fcn.1400c1330
nop
jmp 0x1400c1c29
jmp 0x1400c196f
mov rcx, qword [rsp + 0x48]
call fcn.14024db70
nop
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x4c8
ret