Function at 0x1800209c0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov esi, dword [rbp + 0x90]
mov r12, r9
imul ebx, esi, 0x70
mov r14, r8
mov r15, rdx
mov r13, rcx
mov dword [rsp + 0x60], ebx
cmp esi, ebx
ja 0x180020e10
mov rbx, qword [rbp + 0x98]
mov qword [rax + 8], rdi
imul eax, esi, 0xe
xor edx, edx
mov dword [rsp + 0x64], eax
mov ecx, dword [rsp + 0x64]
mov eax, dword [rsp + 0x60]
nop dword [rax]
cmp esi, 0xaf5
ja 0x180020afc
je 0x180020a96
mov eax, esi
sub eax, 0xbb
je 0x180020a7c
sub eax, 0x41
je 0x180020a70
sub eax, 0x21
je 0x180020a63
cmp eax, 0xb
jne 0x180020def
cmp dword [r15], 0
jne 0x180020a59
cmp dword [r14], 0
setne al
mov byte [rbx], al
mov esi, 0x128
jmp 0x180020def
movzx eax, word [r15]
mov word [rbx + 8], ax
jmp 0x180020def
mov qword [0x1800638a8], rdx
jmp 0x180020def
mov ecx, dword [r13]
mov eax, 1
shl eax, cl
mov dword [rsp + 0x78], eax
sar eax, 1
mov dword [rsp + 0x74], eax
jmp 0x180020deb
mov eax, dword [r12]
lea r8, [rbp + 0x90]
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x68]
mov eax, dword [r14]
mov r9d, 0x2d
mov rcx, rbx
mov dword [rbp + 0x90], eax
call fcn.18000aa50
mov ecx, dword [r12]
lea rdx, [rbp + 0x90]
mov dword [rsp + 0x68], ecx
mov r9d, 0xb
mov ecx, dword [r14]
mov r8, rbx
mov dword [rbp + 0x90], ecx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x70], eax
call fcn.18002f790
movzx eax, al
mov dword [rsp + 0x68], eax
jmp 0x180020deb
cmp esi, 0xec4
je 0x180020d42
cmp esi, 0x152f
je 0x180020b6d
cmp esi, 0x1c8c
jne 0x180020df3
cmp dword [rbx + 0x40], 0
mov edi, edx
jle 0x180020b5b
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbx + 0x48]
mov r8d, 1
movsxd rdx, dword [rbx + 0x3c]
mov r9, qword [0x1800638a8]
imul eax, edi
movsxd rcx, eax
add rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
inc edi
cmp edi, dword [rbx + 0x40]
jl 0x180020b30
mov rcx, qword [0x1800638a8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
jmp 0x180020deb
cmp dword [rsp + 0x70], 0
je 0x180020df3
cmp dword [rsp + 0x68], 1
je 0x180020df3
mov esi, dword [rsp + 0x74]
mov edi, 0x126
nop dword [rax]
mov eax, edi
sub eax, 0x124
je 0x180020caf
sub eax, 1
je 0x180020c45
cmp eax, 1
jne 0x180020d29
mov ecx, dword [r13]
lea rdx, str.Internal_query_creation_failed_
mov r9d, dword [r12]
mov r8d, dword [r14]
shl eax, cl
mov ecx, 5
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call fcn.180035ef0
mov eax, dword [rsp + 0x78]
lea r8, [rbp - 0x60]
mov dword [rbp - 0x60], eax
lea rdx, [rbp - 0x58]
mov eax, dword [r13]
xor ecx, ecx
mov dword [rbp - 0x50], eax
mov r9, r15
mov eax, dword [r12]
mov dword [rbp - 0x58], eax
mov eax, dword [r14]
mov dword [rbp - 0x80], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x70], ecx
mov dword [rbp - 0x68], ecx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa4
call fcn.18000ac40
jmp 0x180020d27
mov eax, dword [r13]
lea r9, [rbp - 0x18]
mov dword [rbp - 0x20], eax
lea r8, [rbp - 0x10]
mov eax, dword [r12]
mov dword [rbp - 0x48], eax
mov eax, dword [r14]
mov dword [rbp - 0x28], eax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x38]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov dword [rbp - 0x38], 1
mov dword [rbp - 0x18], esi
mov dword [rbp - 0x10], edx
mov dword [rbp - 0x30], edx
mov dword [rbp - 0x40], edx
jmp 0x180020d17
mov eax, dword [r13]
lea r9, [rbp + 0x28]
mov dword [rbp + 0x20], eax
lea r8, [rbp + 0x30]
mov eax, dword [r12]
mov dword [rbp - 8], eax
mov eax, dword [r14]
mov dword [rbp + 0x18], eax
lea rax, [rbp - 8]
mov qword [rsp + 0x50], rax
lea rax, [rbp]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 8]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov dword [rbp + 8], 2
mov dword [rbp + 0x28], esi
mov dword [rbp + 0x30], edx
mov dword [rbp + 0x10], edx
mov dword [rbp], edx
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.180022c80
xor edx, edx
dec edi
cmp edi, 0x123
ja 0x180020b90
mov esi, dword [rbp + 0x90]
jmp 0x180020deb
cmp qword [0x1800638a8], 0
jne 0x180020d69
lea rdx, [0x180054af4]
lea rcx, str.out.yuv
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1800638a8], rax
xor edx, edx
cmp dword [rbx + 0x38], 0
mov edi, edx
jle 0x180020dac
nop dword [rax]
nop word [rax + rax]
movsxd rdx, dword [rbx + 0x34]
mov eax, edi
imul eax, dword [rbx + 0x44]
mov r8d, 1
mov r9, qword [0x1800638a8]
movsxd rcx, eax
add rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
inc edi
cmp edi, dword [rbx + 0x38]
jl 0x180020d80
xor edx, edx
cmp dword [rbx + 0x40], 0
mov edi, edx
jle 0x180020deb
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbx + 0x48]
mov r8d, 1
movsxd rdx, dword [rbx + 0x3c]
mov r9, qword [0x1800638a8]
imul eax, edi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
inc edi
cmp edi, dword [rbx + 0x40]
jl 0x180020dc0
mov ecx, dword [rsp + 0x64]
mov eax, dword [rsp + 0x60]
add esi, ecx
mov edx, 0
mov dword [rbp + 0x90], esi
cmp esi, eax
jbe 0x180020a20
mov rdi, qword [rsp + 0x170]
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret