Function at 0x1400f1bb0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r15, rdx
mov qword [rbp - 0x60], rdx
xor esi, esi
mov dword [rbp - 0x38], esi
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 0xb8]
lea ecx, [rax - 0xa]
test ecx, 0xfffffffc
jne 0x1400f21b5
cmp eax, 0xc
je 0x1400f21b5
mov edi, esi
mov dword [rbp - 0x78], esi
mov rcx, qword [r15]
mov dword [rbp - 0x30], esi
mov rax, qword [rcx]
lea r8, [rbp - 0x30]
lea rdx, str.HdrMetadata
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
jne 0x1400f1c73
mov dword [rsp + 0x70], esi
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call fcn.14000ba30
nop
lea rcx, [rbp - 0x78]
call fcn.14000b9c0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x78]
call fcn.14000ba30
nop
lea rcx, [rsp + 0x70]
call fcn.14000b9c0
nop
mov edi, dword [rbp - 0x78]
lea rcx, [rbp - 0x30]
call fcn.14000b9c0
nop
test ebx, ebx
jne 0x1400f2194
cmp edi, 0xc
jne 0x1400f2194
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400f2194
mov qword [rbp - 0x38], rsi
mov dword [rsp + 0x70], 0xb04b7248
mov dword [rsp + 0x74], 0x4321b6f0
mov dword [rsp + 0x78], 0xa4ba91b6
mov dword [rsp + 0x7c], 0xcb9f0f74
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
lea rdx, [rsp + 0x70]
call qword [rax + 0x10]
mov r14, qword [rbp - 0x38]
test eax, eax
cmovne r14, rsi
mov qword [rbp - 0x38], r14
mov qword [rbp + 0x120], r14
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0xc0]
mov rbx, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0xc8]
mov r13, rax
test rbx, rbx
je 0x1400f2188
test rax, rax
je 0x1400f2188
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x10]
call fcn.140152140
lea rax, [0x1401f4c78]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xe8], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xf0], xmm0
mov dword [rbp - 0x38], 1
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb8], rax
mov dword [rbp + 0xb4], 0x98
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0xb8]
call fcn.14006ec40
nop
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x18]
call fcn.14006e930
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x18], rax
mov byte [rbp + 0x94], 0
mov byte [rbp + 0x89], 0
lea rax, [rbp + 0x20]
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x28]
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x48]
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x60]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 0x64]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x98], rsi
mov rax, qword [0x14023db50]
mov qword [rbp + 0x8c], rax
mov qword [rbp + 0x80], rsi
call fcn.140061c90
mov rcx, rax
lea rdx, [rbp - 0x58]
call fcn.140024d00
nop
lea r8d, [rdi + 0xe]
lea rdx, str._screen_shot_input_hdr.txt
mov rcx, rax
call fcn.140011ba0
mov qword [rbp - 0x18], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rbp - 0x58]
call fcn.140004ff0
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
lea ebx, [rdi - 0xa]
lea r12d, [rdi - 6]
cmp qword [rbp + 0x98], 0
jne 0x1400f1f24
lea edx, [rdi - 2]
lea r8d, [rdi + 0x34]
call fcn.14012f690
test rax, rax
je 0x1400f1f24
lea r8d, [rdi - 0xb]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.1400f4db0
mov rax, qword [rbp + 0x78]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x78], rcx
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x70]
call fcn.1400f66b0
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.1400f4c40
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400f1f08
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400f1f08
mov r8, qword [rax]
lea edx, [rdi - 0xb]
mov rcx, rax
call qword [r8]
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x10]
mov edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, esi
jmp 0x1400f1f3f
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x10]
mov edx, r12d
cmp qword [rcx + 0x48], 0
cmovne edx, ebx
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140048750
cmp qword [rbp + 0x98], 0
je 0x1400f20ff
xor edx, edx
mov r8d, 0x12c
lea rcx, [rbp + 0x130]
call fcn.140152140
movzx eax, word [r13 + 0x1a]
movzx ecx, word [r13 + 0x18]
movzx edx, word [r13 + 0xe]
movzx r10d, word [r13 + 0xc]
movzx r11d, word [r13 + 0xa]
movzx ebx, word [r13 + 8]
movzx edi, word [r13 + 6]
movzx esi, word [r13 + 4]
movzx r9d, word [r13 + 2]
movzx r8d, word [r13]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov eax, dword [r13 + 0x14]
mov dword [rsp + 0x58], eax
mov eax, dword [r13 + 0x10]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
lea rdx, str._Red_Primary_0__1:__d___d_n_Green_Primary_0__1:__d___d_n_Blue_Primary_0__1:__d___d_n_White_point_0__1:__d___d_n_max_luminance:__d_n_min_luminance:__d_n_max_context_light_level:__d_n_max_frame_avg._light_level:__d
lea rcx, [rbp + 0x130]
call fcn.1400f65c0
lea rdx, str._n________Screenshot_input_hdr_metadata_________n
lea rcx, [rbp + 0x10]
call fcn.1400f6350
call fcn.14012fa40
mov rbx, rax
lea rdx, str.Timestamp:
lea rcx, [rbp + 0x10]
call fcn.1400f6350
mov rsi, rax
movabs rax, 0xd6bf94d5e57a42bd
imul rbx
lea rdi, [rbx + rdx]
sar rdi, 0x17
mov rcx, rdi
shr rcx, 0x3f
add rdi, rcx
mov qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x38]
call fcn.1401709b0
mov r9, rax
imul r8, rdi, 0x3e8
movabs rax, 0x346dc5d63886594b
imul rbx
mov rbx, rdx
sar rbx, 0xb
mov rcx, rbx
shr rcx, 0x3f
add rbx, rcx
sub rbx, r8
mov qword [rbp - 0x30], r9
lea rax, [0x1401f4fd0]
mov qword [rbp - 0x28], rax
inc rax
cmp byte [rax], 0
jne 0x1400f2071
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.1400f6060
mov rcx, rax
lea rdx, [0x1401f4fcc]
call fcn.1400f6350
mov rcx, rax
mov rdx, rbx
call fcn.1400f2eb0
mov rcx, rax
call fcn.1400f6620
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x10]
call fcn.1400f6350
mov rcx, rax
call fcn.1400f6620
lea rcx, [rbp + 0x18]
call fcn.1400f4eb0
test rax, rax
jne 0x1400f2111
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea r9, [rbp + 0x10]
add rcx, r9
cmp qword [rcx + 0x48], 0
mov eax, 2
cmovne r12d, eax
or r12d, dword [rcx + 0x10]
xor r8d, r8d
mov edx, r12d
call fcn.140048750
jmp 0x1400f2111
lea rdx, str.Failed_to_open_Screenshot_HDR_dump_file
mov ecx, 7
call fcn.1400838f0
nop
lea rcx, [rbp - 0x18]
call fcn.140004ff0
nop
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x18]
call fcn.1400f2e00
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xc], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0xb8]
call fcn.140129cd4
nop
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
nop
jmp 0x1400f21a9
mov r8d, ebx
lea rdx, str.Screenshot_HDR_metadata_gets_failed:__d
mov ecx, 7
call fcn.1400838f0
nop
lea rcx, [rbp - 0x78]
call fcn.14000b9c0
nop
jmp 0x1400f21ca
mov r8d, eax
lea rdx, str.Screenshot_input_surface_is_not_HDR_format:__d
mov ecx, 7
call fcn.1400838f0
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x1400f21d9
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret