Function at 0x1400c07d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, rcx
mov rcx, qword [rdx + 0x78]
or rsi, 0xffffffffffffffff
mov rbx, rdx
test rcx, rcx
je 0x1400c0835
mov rax, rsi
inc rax
cmp byte [rcx + rax], 0
jne 0x1400c0811
cmp rax, 0xff
jae 0x1400c0835
mov rax, rsi
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400c0825
lea ecx, [rax + 1]
jmp 0x1400c0837
xor ecx, ecx
mov rdx, qword [rdi]
call fcn.1401c1ae4
lea rcx, [rsp + 0x20]
call fcn.140061e90
movzx eax, word [rbx + 0x48]
mov rdx, qword [rdi]
xor ebp, ebp
dec ax
mov r12d, 1
lea r15d, [rbp + 8]
cmp ax, r12w
jbe 0x1400c08b2
mov ecx, r12d
call fcn.1401c1ae4
mov rdx, qword [rdi]
lea ecx, [rbp + 9]
cmp word [rbx + 0x138], bp
jne 0x1400c087f
mov ecx, r12d
call fcn.1401c1ae4
xor ecx, ecx
mov rdx, rdi
call fcn.140067160
mov ecx, 0x100
mov rdx, rdi
call fcn.140067160
mov rdx, qword [rdi]
mov ecx, 0x18
call fcn.1401c1ae4
mov dword [rsp + 0x40], 0x80200
jmp 0x1400c08fe
xor ecx, ecx
call fcn.1401c1ae4
cmp word [rbx + 0x138], bp
je 0x1400c08ce
mov ecx, 0xb
cmp word [rbx + 0x48], r12w
jne 0x1400c08d3
mov ecx, 3
mov rdx, qword [rdi]
call fcn.1401c1ae4
xor ecx, ecx
mov rdx, rdi
call fcn.140067160
xor ecx, ecx
mov rdx, rdi
call fcn.140067160
mov rdx, qword [rdi]
xor ecx, ecx
call fcn.1401c1ae4
mov word [rsp + 0x40], bp
xor ecx, ecx
mov rdx, rdi
call fcn.140067160
xor ecx, ecx
mov rdx, rdi
call fcn.140067160
movzx ecx, word [rbx + 0x50]
mov rdx, rdi
call fcn.140067160
movzx ecx, word [rbx + 0x54]
mov rdx, rdi
call fcn.140067160
cmp word [rbx + 0x48], r12w
mov rdx, qword [rdi]
mov ecx, r15d
cmove ecx, r12d
call fcn.1401c1ae4
cmp byte [rbx + 0x14b], bpl
mov rdx, qword [rdi]
mov ecx, 0x20
cmovne ecx, ebp
call fcn.1401c1ae4
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1400c098c
mov rax, rsi
inc rax
cmp byte [rcx + rax], bpl
jne 0x1400c0961
cmp rax, 0xff
jae 0x1400c098c
inc rsi
cmp byte [rcx + rsi], bpl
jne 0x1400c0972
mov r9, qword [rdi]
inc rsi
mov r8, r12
mov rdx, rsi
call fcn.1401c24f8
cmp word [rbx + 0x138], bp
lea rax, str.Targa_RLE
lea rcx, str.Targa
lea rdx, [rsp + 0x50]
cmovne rcx, rax
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1400c09b0
cmp word [rbx + 0x48], r12w
cmove r15w, r12w
mov word [rsp + 0x32], r15w
cmp r15w, 8
jne 0x1400c09dd
movzx r14d, word [rbx + 0x50]
jmp 0x1400c09f4
mov eax, dword [rbx + 0x50]
add eax, 7
cdq
and edx, 7
lea r14d, [rdx + rax]
sar r14d, 3
imul r14w, r15w
movsx ecx, r14w
mov word [rsp + 0x30], r12w
mov dword [rsp + 0x3c], ecx
movzx ecx, byte [rbx + 0x14b]
neg cl
mov rcx, rbx
sbb dx, dx
and dx, 0x10
mov word [rsp + 0x24], dx
lea rdx, [rsp + 0x20]
call fcn.14005fe70
movzx esi, ax
test ax, ax
jne 0x1400c0acd
cmp word [rbx + 0x48], 4
jne 0x1400c0a5c
mov r9, qword [rdi]
mov rcx, qword [rsp + 0x48]
mov edx, 0x100
mov r8d, 3
call fcn.1401c24f8
cmp rax, 3
je 0x1400c0a5c
mov esi, 6
jmp 0x1400c0acd
cmp dword [rbx + 0x54], ebp
jle 0x1400c0ac5
mov eax, ebp
mov r8d, r12d
mov edx, eax
mov rcx, rbx
call fcn.1400629c0
cmp word [rbx + 0x138], 0
je 0x1400c0a9a
cmp word [rbx + 0x48], r12w
je 0x1400c0a9a
mov r8d, dword [rbx + 0x50]
mov rdx, qword [rsp + 0x28]
mov r9d, r12d
mov rcx, rdi
call fcn.1400c05f0
movzx esi, ax
jmp 0x1400c0ab3
mov r9, qword [rdi]
mov rcx, qword [rsp + 0x28]
movsx rdx, r14w
mov r8, r12
call fcn.1401c24f8
test rax, rax
je 0x1400c0ac0
inc bp
movsx eax, bp
cmp eax, dword [rbx + 0x54]
jl 0x1400c0a63
jmp 0x1400c0ac5
mov esi, 6
mov rcx, rbx
call fcn.14005dcb0
movzx eax, si
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401bd600
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret