Function at 0x1400030c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [0x140039944]
mov r15, rdx
mov rdi, qword [0x14003a2f0]
mov r13, rcx
mov qword [rsp + 0x50], rdx
xor r14d, r14d
cdq
mov qword [rsp + 0x48], rdi
and edx, 7
add eax, edx
sar eax, 3
mov dword [rsp + 0x40], eax
call fcn.14000dd30
cmp dword [0x14003a2e8], r14d
je 0x1400031c5
mov rbp, qword [0x14003a2c8]
test rbp, rbp
je 0x1400031c5
lea rdx, [0x14002c930]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x1400031c5
mov rcx, rax
call fcn.140003fa0
movsxd rbx, eax
test eax, eax
js 0x1400031c5
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14000347a
mov r9, rsi
lea edx, [r14 + 1]
mov r8, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r12, rax
cmp eax, ebx
jne 0x140003483
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, r12d
mov r9, rdi
mov r8d, r12d
mov edx, 0x8773
mov rcx, r15
mov byte [rax + rdi], r14b
call qword [sym.imp.tiff.dll_TIFFSetField]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x48]
mov edx, dword [0x140039940]
mov ebx, r14d
cmp dword [0x14003a2dc], ebx
mov eax, 0x2000
mov ecx, edx
cmovne ebx, eax
test edx, edx
je 0x140003201
sub ecx, 1
je 0x140003205
sub ecx, 1
je 0x1400031fb
cmp ecx, 1
jne 0x140003495
bts ebx, 0xb
jmp 0x140003205
bts ebx, 0xa
jmp 0x140003205
bts ebx, 8
cmp dword [0x14003a2d8], r14d
je 0x140003212
bts ebx, 0xc
mov rsi, r14
mov r12, r14
cmp dword [0x14003a2b8], esi
je 0x14000322d
mov rcx, rdi
call fcn.1400074f0
mov rbp, rax
jmp 0x14000326f
mov rcx, r13
call fcn.140002d90
mov rbp, rax
test rax, rax
jne 0x140003248
mov rdx, rdi
call fcn.1400011e0
mov rbp, rax
mov rdx, qword [0x14003a2c8]
call fcn.1400011e0
mov rdx, qword [0x14003a2d0]
mov r12, rax
test rdx, rdx
je 0x14000326f
call fcn.1400011e0
mov rsi, rax
bts ebx, 0xe
mov rcx, r13
call fcn.140001e30
mov rcx, rbp
mov edi, eax
call fcn.140007320
mov ecx, eax
call fcn.140010040
mov r8d, eax
mov eax, edi
shr eax, 0x10
and eax, 0x1f
cmp r8d, eax
jne 0x1400034a2
cmp dword [0x14003a2b8], r14d
jne 0x1400032af
mov rcx, r12
call fcn.140007320
jmp 0x1400032b7
mov rcx, rbp
call fcn.140007300
mov ecx, eax
call fcn.140010040
mov ecx, eax
mov dword [rsp + 0x44], eax
mov eax, edi
shr eax, 0xc
and eax, 1
mov dword [rsp + 0x48], eax
call fcn.140001780
mov r8d, dword [rsp + 0x40]
mov ecx, eax
mov edx, dword [rsp + 0x44]
test r8d, 0xfffffffb
mov eax, 0x40
cmovne eax, r14d
or edx, eax
shl edx, 4
or edx, dword [rsp + 0x48]
shl edx, 9
or edx, ecx
mov rcx, r15
shl edx, 3
or edx, r8d
mov dword [rsp + 0x40], edx
mov edx, dword [rsp + 0x44]
call fcn.140002630
mov rdx, r15
mov rcx, r13
call fcn.1400028b0
movsd xmm0, qword [0x140039950]
ucomisd xmm0, qword [0x1400320b0]
jp 0x140003333
je 0x14000339c
mov eax, dword [rsp + 0x44]
add eax, 0xfffffffb
cmp eax, 1
ja 0x14000339c
mov rcx, r12
call fcn.140007320
mov ecx, eax
call fcn.140008b70
mov qword [rsp + 0x60], rbp
mov r14, rax
test rsi, rsi
je 0x140003365
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov r9d, dword [rsp + 0x40]
test rsi, rsi
mov ecx, 3
mov dword [rsp + 0x28], ebx
mov eax, 1
mov r8d, edi
cmove ecx, eax
lea edx, [rcx + 1]
mov qword [rsp + rcx*8 + 0x60], r12
mov qword [rsp + rdx*8 + 0x60], r14
lea rcx, [rsp + 0x60]
inc edx
call fcn.14000f550
jmp 0x1400033b7
mov r9d, dword [rsp + 0x40]
mov r8, r12
mov dword [rsp + 0x38], ebx
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call fcn.14000f770
mov rcx, rbp
mov r15, rax
call fcn.140007a90
mov rcx, r12
call fcn.140007a90
test r14, r14
je 0x1400033d7
mov rcx, r14
call fcn.140007a90
test rsi, rsi
je 0x1400033e4
mov rcx, rsi
call fcn.140007a90
test r15, r15
jne 0x1400033ed
xor eax, eax
jmp 0x14000344f
cmp dword [rsp + 0x48], 0
je 0x14000340b
mov ebx, edi
shr edi, 7
shr ebx, 3
and edi, 7
and ebx, 0xf
add ebx, edi
mov edi, 1
jmp 0x140003412
mov edi, 1
mov ebx, edi
mov rcx, r13
call qword [sym.imp.tiff.dll_TIFFIsTiled]
mov r9d, ebx
mov rdx, r13
mov rbx, qword [rsp + 0x50]
mov rcx, r15
mov r8, rbx
test eax, eax
je 0x140003437
call fcn.1400021e0
jmp 0x14000343c
call fcn.1400023f0
mov rcx, r15
call fcn.14000dd40
mov rcx, rbx
call qword [sym.imp.tiff.dll_TIFFWriteDirectory]
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002a3d0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea ecx, [rbx + 1]
call fcn.140001be0
int3
mov r8, rbp
lea rcx, str.Cannot_read__ld_bytes_to__s
mov edx, ebx
call fcn.140001110
int3
lea rcx, str.Unknown_precalculation_mode__d
call fcn.140001110
int3
lea rcx, str.Input_profile_is_not_operating_in_proper_color_space
call fcn.140001110
int3