Function at 0x140001200
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x4030
call fcn.140002110
sub rsp, rax
mov rax, qword [0x140005108]
xor rax, rsp
mov qword [rsp + 0x4020], rax
xor r14d, r14d
lea r8, str.l:p:x:y:W:H:wSh
movzx ebp, r14w
mov r15d, r14d
mov rdi, rdx
mov esi, ecx
call fcn.140001e10
cmp eax, 0xffffffff
je 0x1400013b5
lea r12, [0x140000000]
nop dword [rax]
add eax, 0xffffffc1
cmp eax, 0x3a
ja case.0x140001282.73
cdqe
movzx eax, byte [r12 + rax + 0x1668]
mov ecx, dword [r12 + rax*4 + 0x163c]
add rcx, r12
jmp rcx
mov rcx, qword [0x140005738]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [0x140005144], xmm1
jmp case.0x140001282.73
mov dword [0x140005148], 1
jmp case.0x140001282.73
mov rcx, qword [0x140005738]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [0x140005140], xmm1
jmp case.0x140001282.73
mov rcx, qword [0x140005738]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebx, eax
test r14, r14
je 0x1400012ff
movzx edx, bp
mov rcx, r14
lea rdx, [rdx*2 + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
jmp 0x14000130a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14000140e
movzx eax, bp
inc bp
mov word [r14 + rax*2], bx
jmp case.0x140001282.73
mov r15d, 1
jmp case.0x140001282.73
mov rcx, qword [0x140005738]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [section..data], xmm1
jmp case.0x140001282.73
mov rcx, qword [0x140005738]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [0x140005004], xmm1
jmp case.0x140001282.73
mov rcx, qword [0x140005738]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x140005008], eax
lea r8, str.l:p:x:y:W:H:wSh
mov rdx, rdi
mov ecx, esi
call fcn.140001e10
cmp eax, 0xffffffff
jne 0x140001260
test bp, bp
je 0x1400013b0
movzx edx, bp
lea r9, [0x1400016b0]
lea r8d, [rax + 3]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
test r15d, r15d
jne 0x1400013bc
xor ecx, ecx
call sub.tiff.dll_TIFFSetWarningHandler
mov eax, dword [0x1400050f4]
cmp eax, esi
jge 0x140001474
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [0x140003dd8]
mov rcx, qword [rdi + rcx*8]
call sub.tiff.dll_TIFFOpen
mov rbx, rax
test rax, rax
je 0x140001434
movsxd r9, dword [0x1400050f4]
mov r8, r14
movzx edx, bp
mov rcx, rax
mov r9, qword [rdi + r9*8]
call fcn.140001010
mov rcx, rbx
call sub.tiff.dll_TIFFClose
jmp 0x140001459
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Out_of_memory_n
call fcn.1400011b0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movsxd rbx, dword [0x1400050f4]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rdi + rbx*8]
lea rdx, str._s:_Can_not_open__or_not_a_TIFF_file._n
mov rcx, rax
call fcn.1400011b0
mov eax, dword [0x1400050f4]
inc eax
mov dword [0x1400050f4], eax
cmp eax, esi
jl 0x1400013d0
jmp 0x1400015d1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_tmpfile]
mov rdi, rax
test rax, rax
jne 0x1400014a4
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Could_not_obtain_temporary_file._n
call fcn.1400011b0
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ecx, ecx
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__fileno]
mov r8d, 0x4000
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
test eax, eax
jle 0x14000151b
nop
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov r8d, ebx
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, ebx
jne 0x14000157f
xor ecx, ecx
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__fileno]
mov r8d, 0x4000
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
test eax, eax
jg 0x1400014d0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov rcx, rax
lea r8, [0x140003dd8]
lea rdx, str.temp
call sub.tiff.dll_TIFFFdOpen
mov rbx, rax
test rax, rax
je 0x1400015ae
lea r9, str._stdin_
mov r8, r14
movzx edx, bp
mov rcx, rax
call fcn.140001010
mov rcx, rbx
call sub.tiff.dll_TIFFClose
jmp 0x1400015c8
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Could_not_copy_stdin_to_temporary_file._n
call fcn.1400011b0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Can_not_open__or_not_a_TIFF_file._n
call fcn.1400011b0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, str.____Trailer_n
call fcn.140001b90
mov edx, dword [0x14000514c]
lea rcx, str.____Pages:__u_n
call fcn.140001b90
lea rcx, str.____EOF_n
call fcn.140001b90
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140002180
lea r11, [rsp + 0x4030]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor ecx, ecx
call fcn.140001db0
int3
mov ecx, 1
call fcn.140001db0
int3