Function at 0x1400bd660
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 [0x1402e8100]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bd350
lea rcx, str._RADIANCE
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400bd6c7
inc rax
test dl, dl
jne 0x1400bd6b4
xor eax, eax
jmp 0x1400bd6cc
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400bd6fe
lea rcx, str.not_HDR
call fcn.1400aee10
test eax, eax
je 0x1400bd6eb
mov qword [rsp + 0x68], 0
jmp 0x1400bd6f4
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
jmp 0x1400bdd6a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bd350
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 0x1400bd736
jmp 0x1400bd76e
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 0x1400bd75b
inc rax
test dl, dl
jne 0x1400bd748
xor eax, eax
jmp 0x1400bd760
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400bd76c
mov dword [rsp + 0x50], 1
jmp 0x1400bd6fe
cmp dword [rsp + 0x50], 0
jne 0x1400bd7a3
lea rcx, str.unsupported_format
call fcn.1400aee10
test eax, eax
je 0x1400bd790
mov qword [rsp + 0x70], 0
jmp 0x1400bd799
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
jmp 0x1400bdd6a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bd350
mov qword [rsp + 0x98], rax
mov r8d, 3
lea rdx, [0x1403ad948]
mov rcx, qword [rsp + 0x98]
call fcn.14022e670
test eax, eax
je 0x1400bd80c
lea rcx, str.unsupported_data_layout
call fcn.1400aee10
test eax, eax
je 0x1400bd7f9
mov qword [rsp + 0x78], 0
jmp 0x1400bd802
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
jmp 0x1400bdd6a
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.140231140
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x1400bd864
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
jmp 0x1400bd83f
mov r8d, 3
lea rdx, [0x1403ad928]
mov rcx, qword [rsp + 0x98]
call fcn.14022e670
test eax, eax
je 0x1400bd8b9
lea rcx, [0x1403ad910]
call fcn.1400aee10
test eax, eax
je 0x1400bd8a0
mov qword [rsp + 0x80], 0
jmp 0x1400bd8ac
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
jmp 0x1400bdd6a
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.140231140
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 0x1400bd925
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.14022bd68
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x28], 8
jl 0x1400bd97d
cmp dword [rsp + 0x28], 0x8000
jl 0x1400bda2b
mov dword [rsp + 0x2c], 0
jmp 0x1400bd991
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400bda26
mov dword [rsp + 0x24], 0
jmp 0x1400bd9b3
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400bda21
mov r8d, 4
lea rdx, [rsp + 0xa4]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afab0
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.1400bd400
jmp 0x1400bd9a9
jmp 0x1400bd987
jmp 0x1400bdd65
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400bda48
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400bdd5b
mov rcx, qword [rsp + 0x4d0]
call fcn.1400af8c0
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400af8c0
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400af8c0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x54], 2
jne 0x1400bdaa8
cmp dword [rsp + 0x58], 2
jne 0x1400bdaa8
mov eax, dword [rsp + 0x34]
and eax, 0x80
test eax, eax
je 0x1400bdb3d
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.1400af9f0
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.1400bd400
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x2c], 0
mov rcx, qword [rsp + 0x48]
call fcn.14021a220
jmp 0x1400bd9bd
mov eax, dword [rsp + 0x34]
shl eax, 8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400af8c0
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 0x1400bdbb6
mov rcx, qword [rsp + 0x60]
call fcn.14021a220
mov rcx, qword [rsp + 0x48]
call fcn.14021a220
lea rcx, str.invalid_decoded_scanline_length
call fcn.1400aee10
test eax, eax
je 0x1400bdb9d
mov qword [rsp + 0x88], 0
jmp 0x1400bdba9
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
jmp 0x1400bdd6a
cmp qword [rsp + 0x48], 0
jne 0x1400bdbe1
mov eax, 4
mul dword [rsp + 0x28]
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14022bd68
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 0
jmp 0x1400bdbf5
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 4
jge 0x1400bdcf1
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400bdcec
mov rcx, qword [rsp + 0x4d0]
call fcn.1400af9f0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
cmp eax, 0x80
jle 0x1400bdc99
mov rcx, qword [rsp + 0x4d0]
call fcn.1400af9f0
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x20]
sub eax, 0x80
mov byte [rsp + 0x20], al
mov dword [rsp + 0x38], 0
jmp 0x1400bdc66
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400bdc97
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 0x1400bdc5c
jmp 0x1400bdce7
mov dword [rsp + 0x38], 0
jmp 0x1400bdcad
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400bdce7
mov rcx, qword [rsp + 0x4d0]
call fcn.1400af9f0
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 0x1400bdca3
jmp 0x1400bdc08
jmp 0x1400bdbeb
mov dword [rsp + 0x24], 0
jmp 0x1400bdd05
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400bdd56
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.1400bd400
jmp 0x1400bdcfb
jmp 0x1400bda3e
mov rcx, qword [rsp + 0x48]
call fcn.14021a220
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1401e1ca0
add rsp, 0x4c8
ret