Function at 0x140002d90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rbp - 0x18], rax
cmp dword [0x14003a2c4], 0
mov rbx, rcx
jne 0x14000307e
lea r9, [rsp + 0x38]
mov edx, 0x8773
lea r8, [rsp + 0x30]
call qword [sym.imp.tiff.dll_TIFFGetField]
test eax, eax
je 0x140002ef9
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140007570
cmp dword [0x14003a150], 0
mov rsi, rax
je 0x140002e3d
test rax, rax
je 0x140002ef9
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._n_Embedded_profile__n
call fcn.140001060
mov rcx, rsi
call fcn.140001530
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
test rsi, rsi
je 0x140002ef9
mov rdi, qword [0x14003a2e0]
mov qword [rsp + 0x138], r12
mov qword [rsp + 0x140], r14
mov qword [rsp + 0x100], r15
test rdi, rdi
je 0x140002ebe
mov r15d, dword [rsp + 0x30]
lea rdx, [0x14002c684]
mov r12, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
je 0x140003085
mov r9, rax
mov r8d, r15d
mov edx, 1
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r15
jne 0x140003095
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
jne 0x1400030a8
mov r14, qword [rsp + 0x140]
mov rax, rsi
mov r12, qword [rsp + 0x138]
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.14002a3d0
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x40]
mov edx, 0x13f
mov rcx, rbx
call qword [sym.imp.tiff.dll_TIFFGetField]
test eax, eax
je 0x14000307e
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x48]
movsd xmm6, qword [0x140031fd0]
mov edx, 0x13e
mov rcx, rbx
movss xmm0, dword [rax]
cvtps2pd xmm0, xmm0
movsd qword [rbp - 0x80], xmm0
movss xmm1, dword [rax + 4]
cvtps2pd xmm1, xmm1
movsd qword [rbp - 0x78], xmm1
movss xmm0, dword [rax + 8]
cvtps2pd xmm0, xmm0
movsd qword [rbp - 0x68], xmm0
movss xmm1, dword [rax + 0xc]
cvtps2pd xmm1, xmm1
movsd qword [rbp - 0x60], xmm1
movss xmm0, dword [rax + 0x10]
cvtps2pd xmm0, xmm0
movsd qword [rbp - 0x50], xmm0
movss xmm1, dword [rax + 0x14]
cvtps2pd xmm1, xmm1
movsd qword [rbp - 0x40], xmm6
movsd qword [rbp - 0x48], xmm1
movsd qword [rbp - 0x58], xmm6
movsd qword [rbp - 0x70], xmm6
call qword [sym.imp.tiff.dll_TIFFGetField]
test eax, eax
je 0x14000307e
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
movsd qword [rsp + 0x78], xmm6
mov edx, 0x12d
mov rcx, rbx
movss xmm0, dword [rax]
movss xmm1, dword [rax + 4]
lea rax, [rsp + 0x60]
cvtps2pd xmm0, xmm0
mov qword [rsp + 0x20], rax
cvtps2pd xmm1, xmm1
movsd qword [rsp + 0x68], xmm0
movsd qword [rsp + 0x70], xmm1
call qword [sym.imp.tiff.dll_TIFFGetFieldDefaulted]
mov r8, qword [rsp + 0x50]
mov edx, pe_nt_image_headers64
xor ecx, ecx
call fcn.14000b520
mov r8, qword [rsp + 0x58]
mov edx, pe_nt_image_headers64
xor ecx, ecx
mov qword [rbp - 0x30], rax
call fcn.14000b520
mov r8, qword [rsp + 0x60]
mov edx, pe_nt_image_headers64
xor ecx, ecx
mov qword [rbp - 0x28], rax
call fcn.14000b520
lea r9, [rbp - 0x30]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x80]
xor ecx, ecx
lea rdx, [rsp + 0x68]
call fcn.140008340
mov rdi, rax
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [rbp + rbx*8 - 0x30]
call fcn.14000b910
inc rbx
cmp rbx, 3
jl 0x140003040
cmp dword [0x14003a150], 0
je 0x140003076
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._n_Colorimetric_TIFF__n
call fcn.140001060
mov rax, rdi
jmp 0x140002ed9
xor eax, eax
jmp 0x140002ed9
mov rdx, rdi
lea rcx, str.Cannot_create__s
call fcn.140001110
int3
mov r8, rdi
lea rcx, str.Cannot_write__ld_bytes_to__s
mov edx, r15d
call fcn.140001110
int3
mov rdx, rdi
lea rcx, str.Error_flushing_file__s
call fcn.140001110
int3