Function at 0x1400bd990
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 [0x1402ea100]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bd680
lea rcx, str._RADIANCE
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400bd9f7
inc rax
test dl, dl
jne 0x1400bd9e4
xor eax, eax
jmp 0x1400bd9fc
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400bda2e
lea rcx, str.not_HDR
call fcn.1400af140
test eax, eax
je 0x1400bda1b
mov qword [rsp + 0x68], 0
jmp 0x1400bda24
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
jmp 0x1400be09a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bd680
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 0x1400bda66
jmp 0x1400bda9e
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 0x1400bda8b
inc rax
test dl, dl
jne 0x1400bda78
xor eax, eax
jmp 0x1400bda90
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400bda9c
mov dword [rsp + 0x50], 1
jmp 0x1400bda2e
cmp dword [rsp + 0x50], 0
jne 0x1400bdad3
lea rcx, str.unsupported_format
call fcn.1400af140
test eax, eax
je 0x1400bdac0
mov qword [rsp + 0x70], 0
jmp 0x1400bdac9
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
jmp 0x1400be09a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400bd680
mov qword [rsp + 0x98], rax
mov r8d, 3
lea rdx, [0x140376488]
mov rcx, qword [rsp + 0x98]
call fcn.140230a20
test eax, eax
je 0x1400bdb3c
lea rcx, str.unsupported_data_layout
call fcn.1400af140
test eax, eax
je 0x1400bdb29
mov qword [rsp + 0x78], 0
jmp 0x1400bdb32
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
jmp 0x1400be09a
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.1402334f0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x1400bdb94
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
jmp 0x1400bdb6f
mov r8d, 3
lea rdx, [0x140376468]
mov rcx, qword [rsp + 0x98]
call fcn.140230a20
test eax, eax
je 0x1400bdbe9
lea rcx, [0x140376450]
call fcn.1400af140
test eax, eax
je 0x1400bdbd0
mov qword [rsp + 0x80], 0
jmp 0x1400bdbdc
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
jmp 0x1400be09a
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.1402334f0
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 0x1400bdc55
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.14022e118
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x28], 8
jl 0x1400bdcad
cmp dword [rsp + 0x28], 0x8000
jl 0x1400bdd5b
mov dword [rsp + 0x2c], 0
jmp 0x1400bdcc1
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400bdd56
mov dword [rsp + 0x24], 0
jmp 0x1400bdce3
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400bdd51
mov r8d, 4
lea rdx, [rsp + 0xa4]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afde0
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.1400bd730
jmp 0x1400bdcd9
jmp 0x1400bdcb7
jmp 0x1400be095
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400bdd78
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
jge 0x1400be08b
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afbf0
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afbf0
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afbf0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x54], 2
jne 0x1400bddd8
cmp dword [rsp + 0x58], 2
jne 0x1400bddd8
mov eax, dword [rsp + 0x34]
and eax, 0x80
test eax, eax
je 0x1400bde6d
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.1400afd20
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.1400bd730
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x2c], 0
mov rcx, qword [rsp + 0x48]
call fcn.14021c5d0
jmp 0x1400bdced
mov eax, dword [rsp + 0x34]
shl eax, 8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afbf0
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 0x1400bdee6
mov rcx, qword [rsp + 0x60]
call fcn.14021c5d0
mov rcx, qword [rsp + 0x48]
call fcn.14021c5d0
lea rcx, str.invalid_decoded_scanline_length
call fcn.1400af140
test eax, eax
je 0x1400bdecd
mov qword [rsp + 0x88], 0
jmp 0x1400bded9
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
jmp 0x1400be09a
cmp qword [rsp + 0x48], 0
jne 0x1400bdf11
mov eax, 4
mul dword [rsp + 0x28]
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14022e118
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 0
jmp 0x1400bdf25
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 4
jge 0x1400be021
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400be01c
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afd20
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
cmp eax, 0x80
jle 0x1400bdfc9
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afd20
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x20]
sub eax, 0x80
mov byte [rsp + 0x20], al
mov dword [rsp + 0x38], 0
jmp 0x1400bdf96
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400bdfc7
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 0x1400bdf8c
jmp 0x1400be017
mov dword [rsp + 0x38], 0
jmp 0x1400bdfdd
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x38], eax
jge 0x1400be017
mov rcx, qword [rsp + 0x4d0]
call fcn.1400afd20
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 0x1400bdfd3
jmp 0x1400bdf38
jmp 0x1400bdf1b
mov dword [rsp + 0x24], 0
jmp 0x1400be035
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1400be086
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.1400bd730
jmp 0x1400be02b
jmp 0x1400bdd6e
mov rcx, qword [rsp + 0x48]
call fcn.14021c5d0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1401e4050
add rsp, 0x4c8
ret