Function at 0x1400bff20
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 [0x1402e4100]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bfc10
lea rcx, str._RADIANCE
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400bff87
inc rax
test dl, dl
jne 0x1400bff74
xor eax, eax
jmp 0x1400bff8c
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400bffbe
lea rcx, str.not_HDR
call fcn.1400b16d0
test eax, eax
je 0x1400bffab
mov qword [rsp + 0x68], 0
jmp 0x1400bffb4
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
jmp 0x1400c062a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bfc10
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 0x1400bfff6
jmp 0x1400c002e
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 0x1400c001b
inc rax
test dl, dl
jne 0x1400c0008
xor eax, eax
jmp 0x1400c0020
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400c002c
mov dword [rsp + 0x50], 1
jmp 0x1400bffbe
cmp dword [rsp + 0x50], 0
jne 0x1400c0063
lea rcx, str.unsupported_format
call fcn.1400b16d0
test eax, eax
je 0x1400c0050
mov qword [rsp + 0x70], 0
jmp 0x1400c0059
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
jmp 0x1400c062a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bfc10
mov qword [rsp + 0x98], rax
mov r8d, 3
lea rdx, [0x1403a93c8]
mov rcx, qword [rsp + 0x98]
call fcn.14022b0f0
test eax, eax
je 0x1400c00cc
lea rcx, str.unsupported_data_layout
call fcn.1400b16d0
test eax, eax
je 0x1400c00b9
mov qword [rsp + 0x78], 0
jmp 0x1400c00c2
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
jmp 0x1400c062a
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.14022dbc0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x1400c0124
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
jmp 0x1400c00ff
mov r8d, 3
lea rdx, [0x1403a93a8]
mov rcx, qword [rsp + 0x98]
call fcn.14022b0f0
test eax, eax
je 0x1400c0179
lea rcx, [0x1403a9390]
call fcn.1400b16d0
test eax, eax
je 0x1400c0160
mov qword [rsp + 0x80], 0
jmp 0x1400c016c
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
jmp 0x1400c062a
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.14022dbc0
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 0x1400c01e5
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
cmovo rax, rcx
mov rcx, rax
call fcn.1402287e8
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x28], 8
jl 0x1400c023d
cmp dword [rsp + 0x28], 0x8000
jl 0x1400c02eb
mov dword [rsp + 0x2c], 0
jmp 0x1400c0251
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400c02e6
mov dword [rsp + 0x24], 0
jmp 0x1400c0273
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400c02e1
mov r8d, 4
lea rdx, [rsp + 0xa4]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b2370
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.1400bfcc0
jmp 0x1400c0269
jmp 0x1400c0247
jmp 0x1400c0625
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400c0308
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400c061b
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b2180
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b2180
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b2180
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x54], 2
jne 0x1400c0368
cmp dword [rsp + 0x58], 2
jne 0x1400c0368
mov eax, dword [rsp + 0x34]
and eax, 0x80
test eax, eax
je 0x1400c03fd
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.1400b22b0
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.1400bfcc0
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x2c], 0
mov rcx, qword [rsp + 0x48]
call fcn.140216ca0
jmp 0x1400c027d
mov eax, dword [rsp + 0x34]
shl eax, 8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b2180
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 0x1400c0476
mov rcx, qword [rsp + 0x60]
call fcn.140216ca0
mov rcx, qword [rsp + 0x48]
call fcn.140216ca0
lea rcx, str.invalid_decoded_scanline_length
call fcn.1400b16d0
test eax, eax
je 0x1400c045d
mov qword [rsp + 0x88], 0
jmp 0x1400c0469
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
jmp 0x1400c062a
cmp qword [rsp + 0x48], 0
jne 0x1400c04a1
mov eax, 4
mul dword [rsp + 0x28]
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1402287e8
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 0
jmp 0x1400c04b5
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 4
jge 0x1400c05b1
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400c05ac
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b22b0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
cmp eax, 0x80
jle 0x1400c0559
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b22b0
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x20]
sub eax, 0x80
mov byte [rsp + 0x20], al
mov dword [rsp + 0x38], 0
jmp 0x1400c0526
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400c0557
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 0x1400c051c
jmp 0x1400c05a7
mov dword [rsp + 0x38], 0
jmp 0x1400c056d
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400c05a7
mov rcx, qword [rsp + 0x4d0]
call fcn.1400b22b0
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 0x1400c0563
jmp 0x1400c04c8
jmp 0x1400c04ab
mov dword [rsp + 0x24], 0
jmp 0x1400c05c5
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400c0616
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.1400bfcc0
jmp 0x1400c05bb
jmp 0x1400c02fe
mov rcx, qword [rsp + 0x48]
call fcn.140216ca0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1401de720
add rsp, 0x4c8
ret