Function at 0x140005b40
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
xor esi, esi
movaps xmmword [rax - 0x48], xmm7
mov r12d, ecx
movaps xmmword [rax - 0x58], xmm8
mov r13, rdx
movaps xmmword [rax - 0x68], xmm9
xorps xmm6, xmm6
movaps xmmword [rax - 0x78], xmm10
lea ecx, [rsi + 1]
lea r15d, [rsi - 1]
mov dword [rsp + 0xd0], esi
xorps xmm8, xmm8
xorps xmm9, xmm9
xorps xmm7, xmm7
xorps xmm10, xmm10
mov r14d, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, str.b:d:h:H:W:L:M:i:w:l:o:O:P:C:r:t:acemxyzps1238DT
mov byte [0x14000d710], sil
mov rdx, r13
mov ecx, r12d
mov rbp, rax
call fcn.1400074a0
cmp eax, r15d
je 0x140005f7e
lea rdi, str.auto
mov r8d, 2
lea rdx, [0x140000000]
add eax, 0xffffffcf
lea r9d, [r8 + 1]
cmp eax, 0x49
ja case.0x140005c04.81
cdqe
movzx eax, byte [rdx + rax + 0x636c]
mov ecx, dword [rdx + rax*4 + 0x62e8]
add rcx, rdx
jmp rcx
mov rcx, qword [0x14000d728]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov eax, eax
shl rax, 0x14
mov qword [0x14000d010], rax
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm8, xmm0
jmp case.0x140005c04.81
mov dword [rsp + 0xd0], 1
jmp case.0x140005c04.81
mov rax, qword [0x14000d728]
mov qword [0x14000d0b8], rax
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r15d, eax
jmp case.0x140005c04.81
mov dword [0x14000d080], 1
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, esi
test eax, eax
setne cl
mov dword [section..data], ecx
jmp case.0x140005c04.81
mov dword [0x14000d084], 1
jmp case.0x140005c04.81
mov dword [0x14000d008], esi
mov dword [0x14000d004], 1
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm10, xmm0
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movsd qword [0x14000d088], xmm0
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movsd qword [0x14000d090], xmm0
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movsd qword [0x14000d098], xmm0
jmp case.0x140005c04.81
mov dword [0x14000d0c0], 1
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
movzx eax, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x140005fb6
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov r14d, eax
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
lea rdx, [0x14000a0bc]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
jne case.0x140005c04.81
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [0x14000d728]
lea rdx, str._s:__s:_Cannot_open_output_file._n
mov r8, qword [r13]
mov rcx, rax
call fcn.140005670
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [0x14000d728]
movzx ecx, byte [rax]
cmp cl, 0x4c
je 0x140005df5
cmp cl, 0x50
je 0x140005dd3
cmp cl, 0x6c
je 0x140005df5
cmp cl, 0x70
jne 0x140005fd5
movsd xmm0, qword [str.Portrait]
movzx eax, byte [0x14000a100]
movsd qword [0x14000d710], xmm0
mov byte [0x14000d718], al
jmp case.0x140005c04.81
movsd xmm0, qword [str.Landscape]
movzx eax, word [0x14000a0f0]
movsd qword [0x14000d710], xmm0
mov word [0x14000d718], ax
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm9, xmm0
jmp case.0x140005c04.81
mov dword [0x14000d07c], 1
jmp case.0x140005c04.81
mov dword [0x14000d004], esi
jmp case.0x140005c04.81
mov rdx, qword [0x14000d728]
mov rcx, rsi
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x140005e69
cmp rcx, 5
jne 0x140005e52
mov ebx, esi
jmp 0x140005e6e
sbb ebx, ebx
or ebx, 1
test ebx, ebx
jne 0x140005e76
mov eax, esi
jmp 0x140005e85
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r8d, 2
test ebx, ebx
mov dword [0x14000d0a0], eax
mov ecx, esi
sete cl
mov dword [0x14000d0a4], ecx
test eax, eax
je case.0x140005c04.81
sub eax, 0x5a
je case.0x140005c04.81
sub eax, 0x5a
je case.0x140005c04.81
cmp eax, 0x5a
je case.0x140005c04.81
mov ecx, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Rotation_angle_must_be_90__180__270__degrees_ccw__or_auto_n
call fcn.140005670
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dword [0x14000d07c], esi
jmp case.0x140005c04.81
mov rax, qword [0x14000d728]
mov qword [0x14000d0b0], rax
jmp case.0x140005c04.81
mov rcx, qword [0x14000d728]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm7, xmm0
jmp case.0x140005c04.81
mov dword [0x14000d008], esi
jmp case.0x140005c04.81
mov dword [0x14000d074], esi
mov dword [0x14000d078], esi
mov dword [0x14000d070], esi
jmp case.0x140005c04.81
mov dword [0x14000d074], 1
mov dword [0x14000d070], 1
jmp case.0x140005c04.81
mov dword [0x14000d078], 1
mov dword [0x14000d070], 1
jmp case.0x140005c04.81
mov word [0x14000d0c4], r9w
jmp case.0x140005c04.81
mov word [0x14000d0c4], r8w
lea r8, str.b:d:h:H:W:L:M:i:w:l:o:O:P:C:r:t:acemxyzps1238DT
mov rdx, r13
mov ecx, r12d
call fcn.1400074a0
cmp eax, 0xffffffff
jne 0x140005bd3
cmp dword [0x14000d0c0], 1
jne 0x140005ff4
cmp dword [0x14000d074], esi
jne 0x140005ff4
cmp dword [0x14000d078], esi
jne 0x140005ff4
lea rdx, str._imagemask_operator_requires_Postscript_Level2_or_Level3
lea rcx, [0x14000a1c4]
call sub.tiff.dll_TIFFError
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.Offset_must_be_a_numeric_value.
lea rcx, [0x14000a0b8]
call sub.tiff.dll_TIFFError
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.Page_orientation_must_be_Landscape_or_Portrait
lea rcx, [0x14000a138]
call sub.tiff.dll_TIFFError
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
ucomisd xmm7, xmm6
movsd xmm0, qword [0x14000d090]
jp 0x140006004
je 0x140006029
comisd xmm0, xmm7
jbe 0x140006029
lea rdx, str.Max_viewport_width_cannot_exceed_page_width
lea rcx, [0x14000a1f4]
call sub.tiff.dll_TIFFError
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x14000d0a4], 1
movsd xmm1, qword [0x14000d088]
jne 0x140006065
comisd xmm0, xmm6
ja 0x140006046
comisd xmm1, xmm6
jbe 0x140006065
lea rdx, str._is_incompatible_with_maximum_page_width_height_specified_by__H_or__W
lea rcx, str._r_auto
call sub.tiff.dll_TIFFError
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
comisd xmm0, xmm6
jbe 0x140006090
comisd xmm1, xmm6
jbe 0x140006090
lea rdx, str._Use_only_one_of__H_or__W_to_define_a_viewport
lea rcx, str._H_and__W
call sub.tiff.dll_TIFFError
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x14000d004], 1
jne 0x140006129
cmp dword [0x14000d07c], 1
jne 0x1400060c1
lea rdx, str.Warning:_Cannot_generate_Encapsulated_Postscript_for_multiple_images
lea rcx, str.__e_and__a
call sub.tiff.dll_TIFFError
mov dword [0x14000d004], esi
jmp 0x140006129
cmp dword [0x14000d080], 1
jne 0x1400060ec
lea rdx, str.Warning:_Encapsulated_Postscript_does_not_support_Duplex_option
lea rcx, str.__e_and__D
call sub.tiff.dll_TIFFError
cmp dword [0x14000d004], 1
mov dword [0x14000d080], esi
jne 0x140006129
cmp dword [0x14000d084], 1
jne 0x140006117
lea rdx, str.Warning:_Encapsulated_Postscript_does_not_support_Top_Edge_Binding_option
lea rcx, str.__e_and__T
call sub.tiff.dll_TIFFError
cmp dword [0x14000d004], 1
mov dword [0x14000d084], esi
jne 0x140006129
mov eax, dword [0x14000d008]
cmp eax, 1
cmove eax, esi
mov dword [0x14000d008], eax
mov eax, r12d
sub eax, dword [0x14000d024]
test eax, eax
jle case.0x140005c04.53
nop word [rax + rax]
call sub.tiff.dll_TIFFOpenOptionsAlloc
mov rdi, rax
test rax, rax
je 0x1400062d3
mov rdx, qword [0x14000d010]
mov rcx, rax
call sub.tiff.dll_TIFFOpenOptionsSetMaxSingleMemAlloc
movsxd rcx, dword [0x14000d024]
lea rdx, [0x14000a39c]
mov r8, rdi
mov rcx, qword [r13 + rcx*8]
mov qword [0x14000d0a8], rcx
call sub.tiff.dll_TIFFOpenExt
mov rcx, rdi
mov rbx, rax
call sub.tiff.dll_TIFFOpenOptionsFree
test rbx, rbx
je 0x14000621a
cmp r15d, 0xffffffff
je 0x1400061af
mov edx, r15d
mov rcx, rbx
call sub.tiff.dll_TIFFSetDirectory
test eax, eax
je 0x1400062cb
test r14d, r14d
je 0x1400061c7
mov edx, r14d
mov rcx, rbx
call sub.tiff.dll_TIFFSetSubDirectory
test eax, eax
je 0x1400062cb
mov eax, dword [rsp + 0xd0]
movaps xmm3, xmm10
mov dword [rsp + 0x30], eax
movaps xmm2, xmm7
movsd qword [rsp + 0x28], xmm8
mov rdx, rbx
mov rcx, rbp
movsd qword [rsp + 0x20], xmm9
call fcn.140004640
mov esi, eax
test eax, eax
jns 0x140006212
mov r8, qword [0x14000d0a8]
lea rdx, str.Unable_to_process__s
lea rcx, str.Error
call sub.tiff.dll_TIFFError
mov rcx, rbx
call sub.tiff.dll_TIFFClose
mov ecx, dword [0x14000d024]
mov eax, r12d
inc ecx
sub eax, ecx
mov dword [0x14000d024], ecx
test eax, eax
jg 0x140006140
test esi, esi
je case.0x140005c04.53
lea rdx, str.____Trailer_n
mov rcx, rbp
call fcn.140005670
cmp dword [0x14000d004], 0
jne 0x140006267
mov r8d, esi
lea rdx, str.____Pages:__d_n
mov rcx, rbp
call fcn.140005670
lea rdx, str.____EOF_n
mov rcx, rbp
call fcn.140005670
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbp, rax
je 0x14000628f
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rbx
call sub.tiff.dll_TIFFClose
mov eax, 1
jmp 0x140006291
mov ecx, 1
call fcn.140007380
int3