Function at 0x18000df30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
xor edi, edi
movaps xmmword [rsp + 0x70], xmm6
lea eax, [rcx + 0x298]
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
mov r14, r8
mov dword [rsp + 0x34], eax
mov r11, r9
mov r8, rdx
mov ebx, edi
cmp ecx, eax
jae 0x18000e61a
mov rbp, qword [rsp + 0x40]
lea r13, [0x180000000]
mov esi, dword [rsp + 0xd0]
add ecx, 0xffffffc3
mov r15, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xf0]
movsd xmm7, qword [0x18006bae0]
movsd xmm8, qword [0x18006bad0]
mov r12d, dword [rsp + 0xd0]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov r9, qword [rsp + 0xf8]
mov r10, qword [rsp + 0x108]
cmp ecx, 0xf1
ja case.0x18000e000.8
mov eax, ecx
movzx eax, byte [rax + r13 + 0xe668]
mov ecx, dword [r13 + rax*4 + 0xe644]
add rcx, r13
jmp rcx
mov ecx, dword [rdx]
mov r13d, 1
shl r13d, cl
movsxd rcx, dword [r14]
mov eax, r13d
test ecx, ecx
jne 0x18000e100
cdq
and edx, 3
lea r11d, [rdx + rax]
mov eax, r13d
cdq
sar r11d, 2
and edx, 3
add eax, edx
sar eax, 2
neg eax
mov r8d, eax
cmp eax, r11d
jg 0x18000e266
mov r14, qword [rsp + 0xd8]
mov eax, r13d
mov rdi, qword [rsp + 0x110]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
lea eax, [r13*2]
add eax, r13d
mov r13, qword [rsp + 0xf8]
cdq
and edx, 3
lea ebp, [rdx + rax]
mov rdx, qword [rsp + 0xe8]
sar ebp, 2
mov eax, dword [rdx]
add eax, r9d
add eax, r8d
imul eax, dword [r14]
add eax, dword [rdi]
add eax, r11d
movsxd rcx, eax
movzx eax, byte [r13]
mov byte [rcx + r10], al
mov eax, dword [rdx]
add eax, r9d
add eax, r8d
imul eax, dword [r14]
add eax, ebp
add eax, dword [rdi]
movsxd rcx, eax
movzx eax, byte [r13]
mov byte [rcx + r10], al
mov eax, dword [rdx]
add eax, r11d
imul eax, dword [r14]
add eax, r9d
add eax, dword [rdi]
add eax, r8d
movsxd rcx, eax
movzx eax, byte [r13]
mov byte [rcx + r10], al
mov eax, dword [rdx]
add eax, ebp
imul eax, dword [r14]
add eax, r9d
add eax, dword [rdi]
add eax, r8d
inc r8d
movsxd rcx, eax
movzx eax, byte [r13]
mov byte [rcx + r10], al
cmp r8d, r11d
jle 0x18000e081
jmp 0x18000e25c
cmp ecx, 1
jne 0x18000e2aa
cdq
and edx, 3
lea r14d, [rdx + rax]
mov eax, r13d
cdq
sar r14d, 2
and edx, 3
neg r14d
add eax, edx
sar eax, 2
cmp r14d, eax
jge 0x18000e25e
mov rdi, qword [rsp + 0x110]
mov r15d, r13d
imul r15d, r13d
mov esi, eax
nop
mov ecx, r14d
mov eax, r15d
imul ecx, r14d
mov ebp, 0x46
shl ecx, 4
sub eax, ecx
movd xmm6, eax
cvtdq2pd xmm6, xmm6
nop dword [rax]
mov eax, ebp
sub eax, 0x44
je 0x18000e212
sub eax, 1
je 0x18000e1b4
cmp eax, 1
jne 0x18000e238
movaps xmm0, xmm6
call fcn.18004fb10
mov r10, qword [rsp + 0x108]
addsd xmm0, xmm7
mov r8, qword [rsp + 0xd8]
mov r9, qword [rsp + 0xf8]
mov r11, qword [rsp + 0xe8]
mulsd xmm0, xmm8
cvttsd2si r12d, xmm0
jmp 0x18000e238
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [r11]
add eax, edx
add eax, r12d
imul eax, dword [r8]
add eax, edx
add eax, dword [rdi]
add eax, r14d
movsxd rcx, eax
movzx eax, byte [r9]
mov byte [rcx + r10], al
mov eax, dword [r11]
sub eax, r12d
add eax, edx
imul eax, dword [r8]
add eax, edx
add eax, dword [rdi]
add eax, r14d
movsxd rcx, eax
movzx eax, byte [r9]
mov byte [rcx + r10], al
mov eax, dword [r11]
add eax, edx
add eax, r14d
imul eax, dword [r8]
add eax, edx
add eax, dword [rdi]
add eax, r12d
movsxd rcx, eax
jmp 0x18000e230
mov ecx, dword [r11]
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
add ecx, eax
add ecx, r14d
imul ecx, dword [r8]
sub ecx, r12d
add ecx, eax
add ecx, dword [rdi]
movsxd rcx, ecx
movzx eax, byte [r9]
mov byte [rcx + r10], al
dec ebp
cmp ebp, 0x43
ja 0x18000e160
inc r14d
cmp r14d, esi
jl 0x18000e140
mov r15, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x38]
xor edi, edi
mov r14, qword [rsp + 0xe0]
lea r13, [0x180000000]
mov rdx, qword [rsp + 0xf0]
mov r8d, dword [rsp + 0x30]
add r8d, 0x53
mov dword [rsp + 0x30], r8d
lea eax, [r8 + 0x3d]
cmp eax, dword [rsp + 0x34]
jae 0x18000e61a
mov r8, qword [rsp + 0xd8]
mov r11, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0x30]
jmp 0x18000dfce
lea rdx, [0x180000000]
mov r11d, dword [rdx + rcx*4 + 0x66640]
cdq
sub eax, edx
sar eax, 1
mov r10d, eax
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
neg eax
mov r9d, eax
cmp ecx, 0x12
jge 0x18000e370
cmp eax, r10d
jge 0x18000e266
mov rbp, qword [rsp + 0x108]
mov r8d, eax
mov r14, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0x110]
imul r8d, r11d
nop dword [rax + rax]
test r8d, r8d
jle 0x18000e31c
mov eax, 1
jmp 0x18000e322
mov eax, r8d
sar eax, 0x1f
mov ecx, dword [rdi]
shl eax, 4
add eax, r8d
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
sub ecx, eax
add ecx, r10d
js 0x18000e360
mov rax, qword [r15 + 0x47fc8]
cmp ecx, dword [rax + 0x1ac]
jge 0x18000e360
imul ecx, dword [r14]
movzx eax, byte [r13]
add ecx, r10d
add ecx, dword [rsi]
add ecx, r9d
movsxd rcx, ecx
mov byte [rcx + rbp], al
inc r9d
add r8d, r11d
cmp r9d, r10d
jl 0x18000e310
jmp 0x18000e257
cmp eax, r10d
jge 0x18000e266
mov rbp, qword [rsp + 0x108]
mov r8d, eax
mov r14, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0x110]
imul r8d, r11d
test r8d, r8d
jle 0x18000e3b4
mov eax, 1
jmp 0x18000e3ba
mov eax, r8d
sar eax, 0x1f
shl eax, 4
mov ecx, r10d
add eax, r8d
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
sub ecx, eax
add ecx, dword [rsi]
js 0x18000e3fa
mov rax, qword [r15 + 0x47fc8]
cmp ecx, dword [rax + 0x1a8]
jge 0x18000e3fa
mov eax, dword [rdi]
add eax, r10d
add eax, r9d
imul eax, dword [r14]
add eax, ecx
movsxd rcx, eax
movzx eax, byte [r13]
mov byte [rcx + rbp], al
inc r9d
add r8d, r11d
cmp r9d, r10d
jl 0x18000e3a8
jmp 0x18000e257
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
jmp 0x18000e26d
xor edx, edx
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea ecx, [rdx + 0x41]
call fcn.18001d6c0
mov rcx, qword [r15 + 8]
mov rsi, rax
mov r9, qword [r15]
mov r8, rcx
sub r8, r9
mov edx, eax
sar r8, 4
mov qword [rsp + 0x38], rax
mov byte [rsp + 0xd0], 0
cmp rdx, r8
jae 0x18000e46f
shl rdx, 4
add rdx, r9
mov qword [r15 + 8], rdx
jmp 0x18000e26d
jbe 0x18000e26d
mov rax, qword [r15 + 0x10]
sub rax, r9
sar rax, 4
cmp rdx, rax
jbe 0x18000e49a
lea r8, [rsp + 0xd0]
mov rcx, r15
call fcn.1800034f0
jmp 0x18000e26d
sub rdx, r8
je 0x18000e4bb
nop
mov dword [rcx + 0xc], edi
mov qword [rcx], rdi
mov dword [rcx + 8], 0xffffffff
mov byte [rcx + 0xc], 0
add rcx, 0x10
sub rdx, 1
jne 0x18000e4a0
mov qword [r15 + 8], rcx
jmp 0x18000e26d
mov qword [0x18008b678], rdi
jmp case.0x18000e000.8
mov eax, edi
test esi, esi
je 0x18000e4ee
nop word [rax + rax]
mov dword [rbx + 8], eax
add rbx, 0x10
add eax, 2
cmp eax, esi
jb 0x18000e4e0
mov eax, 1
cmp esi, eax
jbe case.0x18000e000.8
nop dword [rax + rax]
mov dword [rbx + 8], eax
add rbx, 0x10
add eax, 2
cmp eax, esi
jb 0x18000e500
jmp case.0x18000e000.8
mov rbx, qword [r15]
jmp case.0x18000e000.8
cmp qword [0x18008b678], 0
jne 0x18000e53f
lea rdx, [0x18006b6ac]
lea rcx, str.out.yuv
call fcn.18004cf4c
mov qword [0x18008b678], rax
cmp dword [r15 + 0x38], 0
mov ebp, edi
jle 0x18000e57b
nop dword [rax + rax]
mov eax, dword [r15 + 0x44]
mov r8d, 1
movsxd rdx, dword [r15 + 0x34]
mov r9, qword [0x18008b678]
imul eax, ebp
movsxd rcx, eax
add rcx, qword [r15]
call fcn.18004d4e0
inc ebp
cmp ebp, dword [r15 + 0x38]
jl 0x18000e550
mov eax, dword [r15 + 0x40]
mov ebp, edi
test eax, eax
jle 0x18000e5b3
movsxd rdx, dword [r15 + 0x3c]
mov eax, ebp
imul eax, dword [r15 + 0x48]
mov r8d, 1
mov r9, qword [0x18008b678]
movsxd rcx, eax
add rcx, qword [r15 + 8]
call fcn.18004d4e0
mov eax, dword [r15 + 0x40]
inc ebp
cmp ebp, eax
jl 0x18000e585
mov ebp, edi
test eax, eax
jle 0x18000e5ec
nop dword [rax]
movsxd rdx, dword [r15 + 0x3c]
mov eax, ebp
imul eax, dword [r15 + 0x48]
mov r8d, 1
mov r9, qword [0x18008b678]
movsxd rcx, eax
add rcx, qword [r15 + 0x10]
call fcn.18004d4e0
inc ebp
cmp ebp, dword [r15 + 0x40]
jl 0x18000e5c0
mov rcx, qword [0x18008b678]
call fcn.18004ce38
jmp 0x18000e26d
mov rbp, qword [rsp + 0x40]
test rbp, rbp
jne 0x18000e60c
mov rax, rdi
jmp 0x18000e61f
mov rdx, r10
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x18000e61f
mov rax, qword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x50]
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret