Function at 0x18006dda0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea eax, [rdx - 0xa]
mov r13, r8
mov dword [rsp + 0xb8], eax
mov rsi, r9
mov r8, rcx
cmp edx, eax
jbe case.0x18006de12.0
mov rdi, qword [rsp + 0xd0]
add edx, 0xffffff05
mov r15, qword [rsp + 0x50]
mov ecx, eax
mov r12, qword [rsp + 0x68]
mov dword [rsp + 0x30], edx
lea r9, [0x180000000]
cmp edx, 0x16
ja case.default.0x18006de12
mov ecx, dword [r9 + rdx*4 + 0x6e198]
add rcx, r9
jmp rcx
mov dword [rsp + 0x60], 0
jmp case.0x18006de12.3
mov eax, dword [r13]
lea ecx, [rax*2 + 1]
mov eax, dword [rsi]
inc eax
imul ecx, eax
mov eax, dword [r8]
inc eax
movsxd r15, eax
mov rax, qword [rsp + 0xd8]
movsxd rdx, ecx
add rax, rdx
add r15, rax
mov qword [rsp + 0x50], r15
jmp 0x18006e131
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x61
mov rdx, rdi
mov ecx, 0xbb
call fcn.180031510
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x68], rax
mov ecx, dword [rcx + 0x10]
mov dword [rax + 0x18], ecx
jmp 0x18006e131
mov r8, qword [rsp + 0x58]
inc dword [r8 + 8]
jmp case.0x18006de12.3
mov ecx, dword [r13]
xor r10d, r10d
test ecx, ecx
jle 0x18006df0b
xor r9d, r9d
mov r8d, ecx
mov rdx, r15
test ecx, ecx
jle 0x18006deec
nop
mov ecx, 0x11c
mov eax, ecx
sub eax, 0x11c
je 0x18006dec9
cmp eax, 0x59
jne 0x18006ded2
add rdi, 4
jmp 0x18006ded2
movzx eax, byte [rdx]
add dword [rdi], eax
add rdx, 2
add ecx, 0x59
cmp ecx, 0x1ce
jb 0x18006deb5
mov ecx, dword [r13]
inc r9d
cmp r9d, ecx
jl 0x18006deb0
mov r8d, ecx
lea eax, [r8*2 + 2]
inc r10d
movsxd r15, eax
add r15, rdx
cmp r10d, r8d
jl 0x18006dea1
mov edx, dword [rsp + 0x30]
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x60], 0
jmp case.0x18006de12.3
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
jmp case.0x18006de12.3
xor r8d, r8d
mov rdx, rdi
mov ecx, 0xb2
call fcn.180031510
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str.mks.vmva.dpbEncodeBitrateKbps
mov rcx, rax
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x58]
mov r8, qword [rax]
call fcn.18006f4c0
xor ebp, ebp
cmp qword [rsi], rbp
jbe 0x18006e131
mov r15, qword [rsp + 0xb0]
xor r14d, r14d
nop
mov esi, 0xa8
nop word [rax + rax]
mov eax, esi
sub eax, 0xa8
je 0x18006e0e0
sub eax, 1
je 0x18006e0aa
sub eax, 1
je 0x18006e07d
sub eax, 1
je 0x18006e00f
cmp eax, 1
jne 0x18006e108
mov rax, qword [r15 + r14*8]
mov ecx, 1
mov rbx, qword [r13 + r14*8]
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xb3
lea r8, [rsp + 0x40]
mov rcx, rax
mov rdx, rbx
call fcn.18004fe90
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [r15 + r14*8]
lea rdx, str.RKKHHQQjjyy
mov rcx, rax
call fcn.18006f4c0
jmp 0x18006e108
mov rax, qword [rsp + 0x38]
cmp rax, 0xa
jae 0x18006e04c
nop word [rax + rax]
inc rax
mov ecx, 1
mov qword [rsp + 0x38], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rax, qword [rsp + 0x38]
cmp rax, 0xa
jb 0x18006e020
inc rax
mov ecx, 1
mov qword [rsp + 0x38], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 1
lea rcx, [0x1800768c8]
mov r9, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18006e108
mov rax, qword [rsp + 0x38]
mov ecx, 1
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xb3
lea r8, [rsp + 0x40]
mov rcx, rax
mov rdx, r12
call fcn.18004fe90
jmp 0x18006e108
mov rax, qword [rsp + 0x38]
mov ecx, 0xa
cmp rax, 0xa
cmova rax, rcx
mov ecx, 1
mov qword [rsp + 0x38], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebp
lea rdx, str._3d:
mov rcx, rax
call fcn.18006f4c0
jmp 0x18006e108
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov r8d, 0x59
mov dword [rsp + 0x48], ebp
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.180066ab0
mov r12, rax
inc esi
cmp esi, 0xad
jb 0x18006df90
mov rsi, qword [rsp + 0xc8]
inc ebp
mov r14d, ebp
cmp r14, qword [rsi]
jb 0x18006df80
mov r15, qword [rsp + 0x50]
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0xb8]
dec edx
mov dword [rsp + 0x30], edx
lea eax, [rdx + 0xfb]
cmp eax, ecx
jbe case.0x18006de12.0
mov r8, qword [rsp + 0xb0]
jmp 0x18006ddf7
mov eax, 0x87
nop
cmp eax, 0x87
je 0x18006e190
add eax, 0xec4
cmp eax, 0xec4
jbe 0x18006e160
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x68]
jmp 0x18006e178